View previous topic :: View next topic |
Author |
Message |
xorbaxian
Joined: 18 Dec 2007 Posts: 45
|
Posted: Fri Sep 01, 2017 4:54 Post subject: GetNormalAppearance() ? |
|
|
i'm looking for a way to retrieve a character's normal appearance when polymorphed or shifted. is this stored in the engine somewhere ? if so, i'd be happy to do the work of writing a little hook to get it, but i really have no idea where to find it.
in a similar vein, does anyone know where the code is that actually cancels a polymorph ? [i.e., what the engine does when a player character clicks on the 'cancel polymorph' button while polymorphed, or what's called when a program calls RemoveSpecificEffect(EFFECT_TYPE_POLYMORPH, oCreature)]
cheers
-x. |
|
Back to top |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Fri Sep 01, 2017 6:01 Post subject: |
|
|
Should be in CNWSCreature at 0x0BF0 at least on windows. IIRC the offsets on linux differ either -4 or +4 not sure. _________________ Community Patch / NWNX Patch / NWNX Files / NWNX Connect |
|
Back to top |
|
|
xorbaxian
Joined: 18 Dec 2007 Posts: 45
|
Posted: Thu Sep 07, 2017 7:18 Post subject: |
|
|
thanks, ShaDoOoW.
yes, i'm working in linux. i'll poke around and see if i can find anything in or near that area that looks like it might be an appearance id. |
|
Back to top |
|
|
xorbaxian
Joined: 18 Dec 2007 Posts: 45
|
Posted: Thu Sep 07, 2017 18:03 Post subject: |
|
|
does anyone happen to know what CNWSCreature->cre_appearance is ? this is almost certainly not the creature's appearance id, under any circumstances ; the creature's current appearance is cre_stats->cs_appearance. this peculiar CNWSCreature->cre_appearance is usually 0x7f000000, but may at various times contain other info [haven't figured out what]. anyone know ? |
|
Back to top |
|
|
|