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
Karjus
Newbie


Joined: 21 Aug 2011
Posts: 1

PostPosted: Sun Mar 17, 2013 8:27 pm   

Events and Triggers
 
Hello!

I'm looking for some advice about setting up an alias. I'm playing a MUD currently which utilizes roundtime to limit the rate at which actions are done, similar to Gemstone/Dragonrealms for those familiar with them.

I've managed to work out how to capture my current roundtime, and track it down to zero in a variable..

But what I'd like to do for some scripts, is that when fired they don't simply check to see if roundtime is at zero to see if they can proceed but to wait until the roundtime variable is at zero.

I can get around needing to do so with #ALARMs of course but I'm wondering if there is anyway with Events or Triggers, to have something occur when the #VAR reaches zero.

From the blurb I read regarding Events, it seems like there would be but frankly I've never used them before and wouldn't know where to start.

Thanks.
Reply with quote
shalimar
GURU


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

PostPosted: Mon Mar 18, 2013 5:36 pm   
 
I had something similar set up... let me see if i remember...

#EVENT onRtOver {#IF (@stuffToDo) {#FORALL @stuffToDo {#EXEC {%i}}}}

and just make an expression trigger on your RT

#TR {@rt=0} {#WAIT 500;#IF (@rt=0) {#RAISE onRtOver}}
_________________
Discord: Shalimarwildcat
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