Hi, I want a script that gives the player 5 seconds to type a word, with 'input'. But when the time runs out, the script runs normally, and after, read the event label of the time out.
Here is what I tried:
mes "type anything in 5 seconds";
addtimer(5000, strnpcinfo(NPC_NAME_UNIQUE)+"::On5secs");
input(.@text);
deltimer(strnpcinfo(NPC_NAME_UNIQUE)+"::On5secs");
next;
mes "you did it";
close;On5secs:
mes "time over";
close;
Maybe is impossible for the 'timer' force close the 'input', but at least, I want a way that after the 'input', run the time out label if the time out, without run the lines above of the script. How I can do it?
Hi, I want a script that gives the player 5 seconds to type a word, with 'input'. But when the time runs out, the script runs normally, and after, read the event label of the time out.
Here is what I tried:
Maybe is impossible for the 'timer' force close the 'input', but at least, I want a way that after the 'input', run the time out label if the time out, without run the lines above of the script. How I can do it?
Share this post
Link to post
Share on other sites