Hi
Ive added some more script using the "run-script" and "dialog_request"
cause I wants to make an character animate and go to another room after a dialog has ended..
this is what ive typed:
---->
// dialog script file
@S // dialog startup entry point
return
@1 // option 1
SECURITY: Ohh, well you guessed right!
SECURITY: So now I'll have to let you pass.
EGO: Bye.
SECURITY: Bye.
run-script 1
stop
@2 // option 2
SECURITY: Well, that was smart!
SECURITY: You can leave the building now!
EGO: Bye.
SECURITY: Bye.
run-script 1
stop
@3 // option 3
SECURITY: You cheater!!
SECURITY: Well, I have to let you pass anyway.
EGO: Bye.
SECURITY: Bye.
run-script 1
stop
@4 // option 4
SECURITY: Not bad.
SECURITY: Well, you can leave now!
EGO: Bye.
SECURITY: Bye.
run-script 1
stop
<----
in the global script:
---->
function dialog_request (int 1) {
// slutten.
ChangeCharacterView(SECURITY, 9);
AnimateCharacterEx(SECURITY, 0, 0, 0, 0, 0);
character[SECURITY].room = 7;
EnableHotspot(1);
return
}
<----
But I get an error saying:
---->
There was an error compiling your script. The problem was in 'Main script':
Error (line 116): PE02: Parse error at '1'
<----
I need help..
You need to read the BFAQ (http://americangirlscouts.org/agswiki/index.php/Scripting%2C_Code_%26_Interaction#Running_regular_code_outside_dialog), it explains the proper way to use dialog_request.
Thanks!!