Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
ToyMage
Apprentice


Joined: 01 Sep 2005
Posts: 120

PostPosted: Fri Jul 19, 2019 2:36 pm   

TickTimer
 
is it possible to do a #IF with tick timer?

#IF (TickerTimerLeft<20) {cast spell}
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4682
Location: Pensacola, FL, USA

PostPosted: Fri Jul 19, 2019 7:52 pm   
 
Yes and no.

#T?

Will return:

Tick in 52 secs

So you can do a trigger off of that output message:

#TR {Tick in (%d) secs} {#IF (%1<20) {cast spell}}

Alternatively, just set the command into the timer itself:

#Timer 1 {cast spell} 0 20

That will autocast every tick. Use #TSET to set the timer interval.
_________________
Discord: Shalimarwildcat
Reply with quote
ToyMage
Apprentice


Joined: 01 Sep 2005
Posts: 120

PostPosted: Mon Jul 22, 2019 9:14 pm   
 
thanks thanks
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net