Help with my script

Started by Hoffenlarft, Sat 29/04/2006 05:26:56

Previous topic - Next topic

Hoffenlarft

   My problem is this: I have a room with the following script (room8):

--------------------------------------------After Fade In---------------------------

if (GetGlobalInt(0)==4) {
  SetMusicRepeat(0);
  Wait(60);
  oPuertad.Visible = true;
  Wait(20);
  cDika.Walk(38, 163, eNoBlock, eAnywhere);
  cEgo.Walk(60, 163, eBlock, eAnywhere);
  Wait(40);
  oPuertai.Visible = true;
  Wait(20);
  cDika.Walk(1, 163, eNoBlock, eAnywhere);
  cEgo.Walk(2, 163, eBlock, eAnywhere);
  Wait(10);
  SetGlobalInt(0, 5);
  oAct1.Transparency = 100;
  oAct1.Visible = true;
  oAct1.Transparency = 90;
  Wait(3);
  oAct1.Transparency = 80;
  Wait(3);
  oAct1.Transparency = 70;
  Wait(3);
  oAct1.Transparency = 60;
  Wait(3);
  oAct1.Transparency = 50;
  Wait(3);
  oAct1.Transparency = 40;
  Wait(3);
  oAct1.Transparency = 30;
  Wait(3);
  oAct1.Transparency = 20;
  Wait(3);
  oAct1.Transparency = 10;
  Wait(3);
  oAct1.Transparency = 0;
  Wait(120);
  oAct1.Transparency = 10;
  Wait(3);
  oAct1.Transparency = 20;
  Wait(3);
  oAct1.Transparency = 30;
  Wait(3);
  oAct1.Transparency = 40;
  Wait(3);
  oAct1.Transparency = 50;
  Wait(3);
  oAct1.Transparency = 60;
  Wait(3);
  oAct1.Transparency = 70;
  Wait(3);
  oAct1.Transparency = 80;
  Wait(3);
  oAct1.Transparency = 90;
  Wait(3);
  oAct1.Transparency = 100;
  Wait(100);
  cEgo.ChangeRoom(9);
}

   Now, I don't know what did I do, but the thing is that when the script reads the cEgo.ChangeRoom(9) the room appears to change to the same room (room8), instead of cEgo.ChangeRoom[9] it would be cEgo.ChangeRoom[8].
Could you help me please?

Candle

Is there something in room 9 sending him back to 8? I did that onetime .

SMF spam blocked by CleanTalk