Usecode for Dbl-clicking items

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
TMNM Dragon

Usecode for Dbl-clicking items

Post 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?
drcode
Site Admin
Posts: 2267
Joined: Thu May 14, 2020 1:34 pm

Re: Usecode for Dbl-clicking items

Post 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).
Locked