by Drocket on Mon Dec 29, 2003 10:20 pm
That really wouldn't help either, since it would simply always print the message, making the checks rather pointless. The big thing that you need to do is...
var prevtime := ReadGameClock() + 5;
--> Do something here <--
if(ReadGameClock() > prevtime)
SendSysMessage(caster, "Voce demorou demais e perdeu o focus.",3,70);
return 0;
endif
It looks like you want a 5 second time limit for the player to do something, but you never give them a chance to do anything. You save the time, then immediately check the time with no opportunity for the player to do anything.