loop help

Started by paddy irishman, Thu 21/08/2003 18:25:02

Previous topic - Next topic

paddy irishman

how do you run a loop during a conversation  ??? ??? ???

Ishmael

Was? Dialog_request? In manual?
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

inFERNo

Do you mean a character animation loop?
If so, in the dialog script editor put run-script X (check help file) and place the animation in the dialog_request function in the global script.

What I still haven't figured out with the dialog_request and the "X" parameter in the run-script is if you can you run different scripts from one dialog. That means, e.g. putting run-script 1 and run script 2 on two different places in the dialog. How would you call the scripts sepparately in the dialog request? I suppose making two dialog request containing the diffferent parameters won"t work...
Sorry, don't mean to hijack any posts here, this is just a side question..

Ginny

use an if statement like this:

function dialog_request (dm) {

if (dm==1) {
//whatever loop you want to have
}
if (dm==2) {
//whatever
}

}

So that in the dialog script you can use run-script X with any number as X and each will do something else. :)
Try Not to Breathe - coming sooner or later!

We may have years, we may have hours, but sooner or later, we push up flowers. - Membrillo, Grim Fandango coroner

inFERNo

Oh, this is awesome, I really can use that. Great! Thanks!

TerranRich

Check the Beginners' FAQ for the complete explanation of run-script.
Status: Trying to come up with some ideas...

Ginny

inFERNO: your welcome :)
btw, "dm" can be anything. I meant to write dr, dunno why it came out dm :P
Try Not to Breathe - coming sooner or later!

We may have years, we may have hours, but sooner or later, we push up flowers. - Membrillo, Grim Fandango coroner

SMF spam blocked by CleanTalk