Getting character to do things in certain order

Started by Puanx, Tue 10/08/2004 05:40:15

Previous topic - Next topic

Puanx

Ok, I just go AGS, awesome and suprisingly easy to use programÃ,  :)

Now on to the quesiton. I have a room, and it's a videostore. The only object in the room is a videotape that you can pick up. So when you have the tape in your inventory, choose it, then use the tape on the video store worker, how do you make it so your character walks over to the clerk, engages a dialog conversation, then walks down, exiting the store and ending up in room2?

I've been able to get it so you use the tape on the clerk, your guy walks over to him but immediantely walks down to the exit, and the clerk goes through his conversation. So it's basically just an issue in getting these actions to occur in a certain order.

Thanks for any help.


Also, another question:
Say for the "Walk off edge of screen" Interaction for Room1, I have it
Conditional - If a variable is set to a certain value (2, 1)
Player go to a different room (2, 0)

So I'm thinking that would make it so if the variable I named "2" is changed to 1, then you can walk off the bottom of the screen and it takes you to room 2.

Then in the interactions of a character, I have it so after you talk to him,
Game - Set variable value (2, 1)

I tested the game, and it's fine how you can't exit from the bottom at first, but after you talk to the guy you still can't exit. How do I fix this problem?

Mr Jake

I think the only thing you need to do is make sure you use
MoveCharacterBlocking(..);
This will make sure that the character has finished the move before continuing with the script. Other than that putting the commands in the order you want should be good enough.

SMF spam blocked by CleanTalk