My room interactions won't work right. Two of them don't happen.

Started by Secret Fawful, Mon 03/01/2005 01:17:29

Previous topic - Next topic

Secret Fawful

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.

Candle

Do you have the walk area for the char to walk in .
DisplayMessage(220);
MoveCharacter(EGO,155,122);
DisplayMessage(221);

strazer


Secret Fawful

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)


Proskrito

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.

Secret Fawful

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.

Candle

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 ?

..

yes, are you sure you are using the correct part of the character as reference for you co-ordinates

Goot

The coordinates of the character are at the bottom-middle of the character's picture.

SilverWizard_OTF

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?
"All we have to decide is what to do, with the time that is given to us"

Secret Fawful

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.

Gilbert

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".

strazer

This sounds very strange.
Are you sure it doesn't have to do with your problem in this thread? 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").

Secret Fawful

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???

Gilbert

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.

SilverWizard_OTF

Follow the instructions i gave you above using ONLY the interaction editor. (Because you probably do something wrong with the script commands)
"All we have to decide is what to do, with the time that is given to us"

Secret Fawful


SMF spam blocked by CleanTalk