Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Minimi on Sun 24/08/2003 11:44:38

Title: Walk to position and after that disappear.
Post by: Minimi on Sun 24/08/2003 11:44:38
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?
Title: Re:Walk to position and after that disappear.
Post by: Archangel (aka SoupDragon) on Sun 24/08/2003 11:48:13
Just use character[CHAR].room = -1 (where CHAR is the character's script name, obviously)
Title: Re:Walk to position and after that disappear.
Post by: Minimi on Sun 24/08/2003 14:43:21
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?
Title: Re:Walk to position and after that disappear.
Post by: inFERNo on Sun 24/08/2003 15:22:43
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.
Title: Re:Walk to position and after that disappear.
Post by: Ginny on Sun 24/08/2003 16:33:27
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.
:)