use DisableHotspot(1); in dialog

Started by skulls, Thu 22/04/2004 16:53:44

Previous topic - Next topic

skulls

I can't use DisableHotspot(1); in dialog
It's normal ?
How can i do ?
Un francais parmis la comunauté AGS

Ashen

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.

skulls

#2

thanks a lot  :D
Un francais parmis la comunauté AGS

SMF spam blocked by CleanTalk