Page 1 of 1

Usecode for Dbl-clicking items

Posted: Fri Jun 25, 2004 12:23 pm
by TMNM Dragon
Where is it determined which usecode function is executed when a certain item is dbl-clicked? Is this hardcoded? if so, where in the source can I find that info?

Re: Usecode for Dbl-clicking items

Posted: Fri Jun 25, 2004 2:21 pm
by drcode
I don't have the source in front of me, but it's in "gamewin.cc". Maybe search for 'click'. Generally, the usecode # is the object's shape #, except for NPC's. For them, it's 0x400 + npc# for NPC's 0-255. For NPC's 256 and higher, it's stored within the NPC's structure (and is settable in ExultStudio).