Okay, I'm still not sure where you've put the different parts of your code.
You probably want to set it up like this:
Code: ags
Code: ags
You probably want to set it up like this:
// script for object: Interact with object
SetGlobalInt(83, 1);
object[4].Visible = true;
object[4].SetView(54);
object[4].Animate(0, 3, eRepeat, eNoBlock);
character[JUAREZ].ChangeView(55);
character[JUAREZ].SpeechView = 55;
character[JUAREZ].SetIdleView(56, 0);
SetTimer (1, 80); // start timer that expires in 2 seconds
// script for room: Repeatedly execute
if (IsTimerExpired(1) == 1) { // if the timer is expired (will only be true once, see above)
object[4].Visible = false;
SetGlobalInt(83, 0);
DisplaySpeech(JUAREZ, "Oh. It's back to normal. That was strange.");
}