I'm trying to make a dialog option change the value of a Global Variable. I foung it on the help file, but i can't make it work. I'm sure that i'm scripting it wrong (i'm quite a begginer in the subject), but since the help file doesn't provide an example, i can't make out.
Can anyone enlighten me?
Try:
dialog script:
@1 // option 1
run-script 3
return
main global script
function dialog_request(int value) {
Ã, Ã, Ã, if (value == 3) SetGlobalInt (...);
}
Works?