logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
GetNormalAppearance() ?

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development
View previous topic :: View next topic  
Author Message
xorbaxian



Joined: 18 Dec 2007
Posts: 45

PostPosted: Fri Sep 01, 2017 4:54    Post subject: GetNormalAppearance() ? Reply with quote

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
View user's profile Send private message
ShaDoOoW



Joined: 20 Aug 2005
Posts: 584

PostPosted: Fri Sep 01, 2017 6:01    Post subject: Reply with quote

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
View user's profile Send private message
xorbaxian



Joined: 18 Dec 2007
Posts: 45

PostPosted: Thu Sep 07, 2017 7:18    Post subject: Reply with quote

thanks, ShaDoOoW. Smile

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
View user's profile Send private message
xorbaxian



Joined: 18 Dec 2007
Posts: 45

PostPosted: Thu Sep 07, 2017 18:03    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group