Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Secret Fawful on Mon 03/01/2005 01:17:29

Title: My room interactions won't work right. Two of them don't happen.
Post by: Secret Fawful on Mon 03/01/2005 01:17:29
I have a problem. I am trying to get the character to first display a message, then go to a certain spot in the room, then display a message again, then appear in a different room.  The last two things don't happen. He just stays stuck where he is and never does what he is supposed to do.
Title: Re: My room interactions won't work right. Two of them don't happen.
Post by: Candle on Mon 03/01/2005 02:10:05
Do you have the walk area for the char to walk in .
DisplayMessage(220);
MoveCharacter(EGO,155,122);
DisplayMessage(221);
Title: Re: My room interactions won't work right. Two of them don't happen.
Post by: strazer on Mon 03/01/2005 08:06:40
Please post the actual code you're using.
Title: Re: My room interactions won't work right. Two of them don't happen.
Post by: Secret Fawful on Mon 03/01/2005 17:27:58
here it is

Character-Stop Walking(EGO)
Game-Display a message(5)
Player-Go to a different room(At specific coordinates)(1,127,72)
Game-Display a message(6)
Player-Go to a different room(At specific coordinates)(3,111,74)

Title: Re: My room interactions won't work right. Two of them don't happen.
Post by: Proskrito on Mon 03/01/2005 18:36:41
try putting the last 2 commands in the 'player enters screen after fadein' in room 1. I think that they are not being run because you change to another room before.
Title: Re: My room interactions won't work right. Two of them don't happen.
Post by: Secret Fawful on Mon 03/01/2005 19:08:38
Now when the character gets to the second room, he is stuck in the ceiling and the game exits with an error saying the characters view is set to 113 and the highest is 2.
Title: Re: My room interactions won't work right. Two of them don't happen.
Post by: Candle on Mon 03/01/2005 19:58:18
Looking at the 111,74) in my game ( I use 640x480 ) that is high up in the window .
Sure that is the right place you want the ego to be ?
Title: Re: My room interactions won't work right. Two of them don't happen.
Post by: .. on Mon 03/01/2005 20:08:24
yes, are you sure you are using the correct part of the character as reference for you co-ordinates
Title: Re: My room interactions won't work right. Two of them don't happen.
Post by: Goot on Mon 03/01/2005 20:33:20
The coordinates of the character are at the bottom-middle of the character's picture.
Title: Re: My room interactions won't work right. Two of them don't happen.
Post by: SilverWizard_OTF on Mon 03/01/2005 20:35:54
Try this:
Ã,  MoveCharacter() Ã, (Or any other thing you want)
Ã,  DisplayMessage()
Ã,  SetVariableValue(ROOM,2) Ã, at the interaction editor
Ã,  pause command prosecor for a certain time(20)
Ã,  Go to a different room at specific coordinates...
-----In the other room AfterFadeIn section------------------------------------------
If a variable is set to a certain value(ROCK,2)-->
Ã,  Ã,  Ã,  MoveCharacter()
Ã,  Ã,  Ã,  DisplayMessage
Ã,  Ã,  Ã,  SetVariableValue(ROCK,1) Ã,  Ã, to avoid happen that again if you re enter in this room

I think i helped a bit... didn't i?
Title: Re: My room interactions won't work right. Two of them don't happen.
Post by: Secret Fawful on Mon 03/01/2005 23:19:21
It wouldn't work. It said that the peramiters for the script was wrong for all lines. And whenever the character changes screens, he is still stuck in the ceiling, he is only supposed to be stuck in the ceiling in the first bg.
Title: Re: My room interactions won't work right. Two of them don't happen.
Post by: Gilbert on Tue 04/01/2005 01:35:09
Quote from: Fawfulhasfury on Mon 03/01/2005 19:08:38
...and the game exits with an error saying the characters view is set to 113 and the highest is 2.
Now that's strange, make sure that you checked carefully the interaction was "Player-Go to a different room(At specific coordinates)(3,111,74)", not "Character - change character view".
Title: Re: My room interactions won't work right. Two of them don't happen.
Post by: strazer on Tue 04/01/2005 01:47:31
This sounds very strange.
Are you sure it doesn't have to do with your problem in this thread (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=18487)? Any chance some of your game files may have been corrupted?
Make a backup of your game and try rebuilding all rooms (menu "Game" -> "Rebuild all room files").
Title: Re: My room interactions won't work right. Two of them don't happen.
Post by: Secret Fawful on Tue 04/01/2005 02:00:25
I get that error everytime I edit the script. And yes, it is move char to a different room at specific coordinates. What if I saved the game like it is and upload it, so you could see for youself???
Title: Re: My room interactions won't work right. Two of them don't happen.
Post by: Gilbert on Tue 04/01/2005 04:33:32
Quote from: Fawfulhasfury on Tue 04/01/2005 02:00:25
What if I saved the game like it is and upload it, so you could see for youself???
Yeah, you may do that if that's convenient for you.
Title: Re: My room interactions won't work right. Two of them don't happen.
Post by: SilverWizard_OTF on Tue 04/01/2005 18:52:58
Follow the instructions i gave you above using ONLY the interaction editor. (Because you probably do something wrong with the script commands)
Title: Re: My room interactions won't work right. Two of them don't happen.
Post by: Secret Fawful on Fri 07/01/2005 21:25:07
I'll try.