ScriptUO

Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: Citrus82 on July 15, 2014, 03:36:29 AM

Title: Timer display?
Post by: Citrus82 on July 15, 2014, 03:36:29 AM
I made a script that executes and then when it has run through it waits so long and activates again, i was wondering if i could somehow add a wait timer over the top of my characters head that counts down while its waiting.

I could use something like. . .

Code: [Select]
event exmsg #CHARID 0 40 %time_left
My current wait is set up like this, if it helps.

Code: [Select]
set %timer #SCNT + 1320
repeat
until #SCNT > %timer
Title: Re: Timer display?
Post by: manwinc on July 15, 2014, 08:16:57 AM
Code: [Select]
set %timer #SCNT + 1320
repeat
set %Time_Left %Timer - #Scnt
event exmsg #CHARID 0 40 %time_left
wait 20
until #SCNT > %timer
Title: Re: Timer display?
Post by: Citrus82 on July 15, 2014, 12:43:09 PM
Code: [Select]
set %timer #SCNT + 1320
repeat
set %Time_Left %Timer - #Scnt
event exmsg #CHARID 0 40 %time_left
wait 20
until #SCNT > %timer

Thanks for the reply, but i screwed up and lost the whole script (forgot to save it) but if i get the urge to re-write it i'll throw this in there.

Lesson learned, save your work every now and then. . . heh.