Scripting Problem w/ ChangeRoom after Fadein [SOLVED]

Started by Anarcho, Thu 14/04/2005 18:47:27

Previous topic - Next topic

Anarcho

I'm have a little scripting problem here.  Maybe I should put this in techincal--i don't know.  I'm using 2.70 beta.  Here's the script, it's in the script for one of the characters:

      SetGlobalInt(80, 1); //
      cEgo.FaceCharacter(cLucy);
      DisplaySpeech(EGO, "Say goodnight Lucinda.");
      DisplaySpeech(LUCY, "Goodnight Lucinda.");
      FadeOut(30);
      Wait(100);
      character[EGO].ChangeRoom(2,102,68);
      FadeIn(10);
      object[3].Visible = true;
      DisplaySpeech(EGO, "She had more fight in her than you'd think.");
      Wait(100);   
      DisplaySpeech(EGO, "What? Don't look at me like that. I'm a killer.");
      DisplaySpeech(EGO, "I was born this way.  What's your excuse?");
      SetDialogOption(9, 9, eOptionOn);


The problem is that the character isn't going to Room 2.  As it right now, it fades into the same room and says that there is an incorrect object number---which would be correct because there isn't an Object three in the starting room.  Why would this not work?


Ashen

Quote from: The ManualIMPORTANT: This command does not change the room immediately; instead, it will perform the actual room change once your script function has finished (This is to avoid problems with unloading the script while it is still running). This means that you should not use any other commands which rely on the new room (object positionings, and so on) after this command within the same function.

So, try putting everything after the ChangeRoom command in the after fade-in for the new room.
I know what you're thinking ... Don't think that.

Anarcho



SMF spam blocked by CleanTalk