Author Topic: Timer display?  (Read 2195 times)

0 Members and 1 Guest are viewing this topic.

Offline Citrus82Topic starter

  • Jr. Member
  • **
  • Posts: 12
  • Activity:
    0%
  • Reputation Power: 1
  • Citrus82 has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Timer display?
« on: July 15, 2014, 03:36:29 AM »
0
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
« Last Edit: July 15, 2014, 03:40:10 AM by Citrus82 »

Offline manwinc

  • Elite
  • *
  • *
  • Posts: 2556
  • Activity:
    0%
  • Reputation Power: 32
  • manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!
  • Gender: Male
  • "The Devs Hard at Work"
  • Respect: +123
  • Referrals: 1
    • View Profile
Re: Timer display?
« Reply #1 on: July 15, 2014, 08:16:57 AM »
0
Code: [Select]
set %timer #SCNT + 1320
repeat
set %Time_Left %Timer - #Scnt
event exmsg #CHARID 0 40 %time_left
wait 20
until #SCNT > %timer
Monkeys and Typewriters!

" Oh I know, We'll make a Boss Encounter that requires 3 keys per player to enter, Then we'll make it not a closed instance so you never know if you are going to pop into a fresh room or a boss that has 1% Health left with 20 dudes smashing its face in, wasting your time and effort"

Offline Citrus82Topic starter

  • Jr. Member
  • **
  • Posts: 12
  • Activity:
    0%
  • Reputation Power: 1
  • Citrus82 has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Timer display?
« Reply #2 on: July 15, 2014, 12:43:09 PM »
0
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.

Tags: