ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Thu Aug 22, 2019 11:22 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: [v1.3.0+] Golem Gender
PostPosted: Sun Jul 21, 2019 1:43 am 
Offline
Sher'Tul Godslayer

Joined: Thu Jan 23, 2003 8:13 pm
Posts: 1640
Location: A shallow water area south of Bree
On a whim, my most recent Alchemist character named her golem Suzie Q (memories of old JoJo episodes… :wink: ). It was a bit disconcerting after that, though, to get log messages like "Suzie Q (servant of <player-name>) uses his Bill's Tree Trunk." :? A bit of source diving revealed that the engine's pronoun handling assumes an actor is male unless it's specifically flagged as female or neuter, and with a bit of deep wizardry, I figured out where to sneak in and set the appropriate flag when the golem is created.

Now, I wasn't going to release this addon originally, since I felt that if I was making the golem female, I should make her look female, and I assumed that that would require hand-drawing a whole bunch of new tile modifications for various armor types, which is far beyond my skill level. :oops: It turns out, though, that the upper-body mods used for the golem are almost (if not exactly) identical to those for male dwarf characters, and that Actor:updateModdableTile() has a convenient hook where I can slip in and craftily swap in the corresponding mods for female dwarf characters as needed.

Thus my new Golem Gender addon. Purely cosmetic, but hey, if we can have an addon that makes Ogres look like Shaloren, then why not? :twisted: The actual configuration of your golem's gender is done in the "Customize" subdialog from the character creation dialog (internally, this is implemented as a cosmetic unlock, but I unlock them for you for free :wink: ).

For reference, the drolem's appearance is not modified by this addon; I briefly considered adding a pink hairbow for female drolems, but when I looked more closely, I realized I'd been completely mistaken about where the drolem's actual head is, and that said head is far too small for a bow to be noticeable. I'm sure you're disappointed. :wink: Similarly, if you've changed your golem's appearance via the Mirror of Reflection, that overrides any appearance changes from this addon.

[Technical notes:]
Code:
Hooks:
  ToME:load [to add customizations to Alchemist descriptor and modify Refit Golem to use them]
  Actor:updateModdableTile:middle [to modify tile appearance for female golems]

_________________
"Blessed are the yeeks, for they shall inherit Arda..."


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group