Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: skulls on Thu 22/04/2004 16:53:44

Title: use DisableHotspot(1); in dialog
Post by: skulls on Thu 22/04/2004 16:53:44
I can't use DisableHotspot(1); in dialog
It's normal ?
How can i do ?
Title: Re:use DisableHotspot(1); in dialog
Post by: on Thu 22/04/2004 17:02:05
Are you asking how to turn a hotspot off during a conversation? If so, you need to use the run-script option in the dialog, so the dialog script should look something like:

@S // dialog startup entry point
return
@1 // option 1
EGO: I'll just take that away.
run-script 1
stop

Or whatever option/character you use. Then you need to make sure the Global Script contains:

function dialog_request(int value) {
 if (value == 1) {
   DisableHotspot(1);
 }
}

Hope this helps.
Title: Re:use DisableHotspot(1); in dialog
Post by: skulls on Fri 23/04/2004 00:21:25

thanks a lot  :D