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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
wooku
Newbie


Joined: 28 Jun 2012
Posts: 3

PostPosted: Thu Jun 28, 2012 5:17 pm   

What I should use? Wait, alarm or something else?
 
Hi,

I've read this topic http://www.zuggsoft.com/page.php?file=zmud/timers.htm,
but still I don't have an idea what to use for something like that:

From MUD:
You lose concentration
Me After 7 Sec:
recast spell

but what is important for me it's to cast spell only once even if "You lose concentration" will be shown few times in a row, so:

You lose concentration
You lose concentration
You lose concentration

And me after the last "You lose concentration" and t sec:
recast spell - only once


Is there any way to do that?
Reply with quote
shalimar
GURU


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

PostPosted: Thu Jun 28, 2012 6:06 pm   
 
for zMUD you will want to use an alarm.
naming the alarm will keep it from being replicated

#ALARM "recaster" +7 {recast}
_________________
Discord: Shalimarwildcat
Reply with quote
wooku
Newbie


Joined: 28 Jun 2012
Posts: 3

PostPosted: Thu Jun 28, 2012 7:32 pm   
 
Thanks! It works!
Reply with quote
wooku
Newbie


Joined: 28 Jun 2012
Posts: 3

PostPosted: Sun Jul 01, 2012 8:40 am   
 
Hey Again,

I have new idea, but I'm not sure where to start.

I need something like this:

From MUD:
You lose concentration
Me After 7 Sec:
recast spell

And after this, for 30 second, I would like to make triger "You lose concentration" not enabled.

I'm thinking abut something like that:

#TRIGGER {You lose concentration} { (anyway, what's or where's trigger ID?)
#ALARM "recaster" +7 {recast}
#ALARM "off" +8 {#T- You lose concentration (Is this trigger ID?)}
#ALARM "onr" +38 {#T+ You lose concentration (Is this trigger ID?)}
}

What do you think, will it work?
Reply with quote
shalimar
GURU


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

PostPosted: Sun Jul 01, 2012 10:56 am   
 
If you open the editor and look at your triggers, there is a little button neear the bottom that says more
expand that and you will see the ID field

#TRIGGER "spellFailed" {You lose concentration} {
#ALARM "recaster" +7 {recast}
#T- spellFailed
#ALARM "spellRestart" +38 {#T+ spellFailed}
}
_________________
Discord: Shalimarwildcat
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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