Hi i asm trying to use the dialog_request function and it comes up with an error
So in my dialog i say
run-script 1
and in the global script, after repetedly execute (right place?)
i put this code:
function dialog_request (1) {
StopMusic(); //stops the music
SetCharacterView(JAZZ, 17);
AnimateCharacter(JAZZ, 2, 8, 1);
}
It says that thier is a parser error at one. I dont understand because in the help it says put:
dialog_request (int parameter)
Called when a dialog script line "run-script" is processed. PARAMETER is the value of the number following the "run-script" on that line of the dialog script.
so either i am being stupid (probably) or the number should be 1 and there is no parser error
thanks
dialog_request works like this:
function dialog_request (int parameter) {
if (parameter == 1) {
StopMusic(); //stops the music
SetCharacterView(JAZZ, 17);
AnimateCharacter(JAZZ, 2, 8, 1);
}
}