I hope that you script-nerds... Eee, I mean script-knowers
can help me with this:
This is my code:
function room_a() {
Ã, // script for room: Player enters screen (before fadein)
SetTimer(1,1000);
IsTimerExpired(1)==1;
{DisplayMessage (9);}
}
with 40 cycles per second, it would take 25 seconds before the message is displayed, but it displays directly when the player enters the room.
I tried
function room_a() {
Ã, // script for room: Player enters screen (before fadein)
SetTimer(1,1000);
If (IsTimerExpired(1)==1
{DisplayMessage (9);}
}
But it returned the message 'unidentified token If' or something like that.
What am I doing wrong?
And then some questions about timer: I beleave that the timer is supposed to be a 'you got five minutes to solve this mission' thing, that counts down not depending of what room you are in, right? But in this case, I want the timer to stop if the player leaves the room before timeout, and be re-set if he enters again.
Suggestions?

This is my code:
function room_a() {
Ã, // script for room: Player enters screen (before fadein)
SetTimer(1,1000);
IsTimerExpired(1)==1;
{DisplayMessage (9);}
}
with 40 cycles per second, it would take 25 seconds before the message is displayed, but it displays directly when the player enters the room.
I tried
function room_a() {
Ã, // script for room: Player enters screen (before fadein)
SetTimer(1,1000);
If (IsTimerExpired(1)==1
{DisplayMessage (9);}
}
But it returned the message 'unidentified token If' or something like that.
What am I doing wrong?
And then some questions about timer: I beleave that the timer is supposed to be a 'you got five minutes to solve this mission' thing, that counts down not depending of what room you are in, right? But in this case, I want the timer to stop if the player leaves the room before timeout, and be re-set if he enters again.
Suggestions?