Dialog "addon" functions.

Started by Reven, Tue 24/01/2006 00:49:37

Previous topic - Next topic

Peder 🚀

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..

Ashen

You need to read the BFAQ, it explains the proper way to use dialog_request.
I know what you're thinking ... Don't think that.

Peder 🚀

#2
Thanks!!

SMF spam blocked by CleanTalk