Walk to position and after that disappear.

Started by Minimi, Sun 24/08/2003 11:44:38

Previous topic - Next topic

Minimi

I want to make that after a certain dialog a character, not the player.. will walk onto a door, and disappear when it's on the right position in front of the door. How to make that?

Archangel (aka SoupDragon)

Just use character[CHAR].room = -1 (where CHAR is the character's script name, obviously)

Minimi

tnx, but i havent done any code for awhile... only graphics, and i kinda forgot how to implend. Where do I add that line? I can't add it at the dialogscript. Do I need to use "if" command?

inFERNo

Actually you'll need to add a run-script X (where X is a parameter of your choice) right before the stop command in your dialog. This will call the dialog_request(X) function, which you can find in the global script. If it's not there, you'll need to add it. In this function you need to put what's supposed to happen right after the dialog.

Ginny

Actually, instead of using run-script before 'stop', just use run-script X and in the dialog request use an if statement to check that script X was called, and then use the StopDialog Function. I think this can be done with using the stop command in the dialog too, incase you want this to only happen once.
:)
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