Usecode for Dbl-clicking items
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Usecode for Dbl-clicking items
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
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).