running a new script at the end of a dialog

Started by Bobsy, Thu 13/08/2009 14:37:01

Previous topic - Next topic

Bobsy

I have a long(ish) dialog (dStranger01). When it finishes I want to run a new script which will incorporate characters moving around, playing animations etc. Problem is I don't know how to script running a new script.

One option is, of course, just putting the script lines into dStranger01. Which would be fine, except the end of the dialog has three options, each with seperate responses. So I'd have to copy-paste the script three times, which seems silly to me.

Alternatively, I could make a new dialog, put all the script into that, and have dStranger01 switch directly to it. This is easy enough, but it seems equally daft to have a dialog solely for script commands. I mean, we have script files for that, right?

So, what I'm looking for is a line of script to run a seperate script. I can find no such command. Am I being blind/stupid/utterly wrong?

Matti

Why don't you just set a variable at the end of the dialog (a boolean to true or something similar)? Then, in the rep-ex of the room, you start the script when the variable is true..

Bobsy


Matti


Bobsy

Ah cheers. It's an idea that makes sense, but...

Well, I'm trying to use the most elegant solution in all cases, and this seems somewhat more convoluted than sticking it all in a new dialog. Is there really no command to run a new script?

Matti

Sorry, I'm not really familiar with dialogs anymore, since I'm only working on non-adventure games for a long time now..

..but there is a run-script x command for using in dialogs. You should look that up in the manual.

SMF spam blocked by CleanTalk