Author Topic: Simple Timer  (Read 1566 times)

0 Members and 1 Guest are viewing this topic.

Offline decloTopic starter

  • Jr. Member
  • **
  • Posts: 90
  • Activity:
    0%
  • Reputation Power: 2
  • declo has no influence.
  • Respect: +16
  • Referrals: 1
    • View Profile
Simple Timer
« on: April 22, 2015, 06:05:50 PM »
0
For what ever reason, I can't wrap my mind around how to use #time to make a simple timer that can execute after 30, 40 or 60 seconds.

Any help for this old mind would be very appreciated.

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: Simple Timer
« Reply #1 on: April 22, 2015, 08:48:16 PM »
0
Typically for seconds you want to use #scnt

set %Timer #Scnt + 30 ; (30 seconds)
repeat
wait 1
Until %Timer <= #Scnt


You can also use #Systime (ms) if you are looking for something more exact.

set %Timer #Systime + 30000
Repeat
wait 1
Until %Timer <= #Systime
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 decloTopic starter

  • Jr. Member
  • **
  • Posts: 90
  • Activity:
    0%
  • Reputation Power: 2
  • declo has no influence.
  • Respect: +16
  • Referrals: 1
    • View Profile
Re: Simple Timer
« Reply #2 on: April 23, 2015, 06:13:15 PM »
0
Thank you!!!!

Tags: