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


Joined: 30 Apr 2005
Posts: 6

PostPosted: Mon Mar 23, 2015 9:12 am   

stopping a alarm once its triggered?
 
I can view a running alarm with the #alarm command... and I see one counting down... what is the #command to suspend that alarm?

I tried #suspend alarm but that dosent seem to stop it once its started.

Thanks
Reply with quote
shalimar
GURU


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

PostPosted: Mon Mar 23, 2015 10:06 am   
 
You would have to disable it
#T-
or delete it
#UNTRIGGER

Both of those commands, like #SUSPEND, work best if the #ALARM is declared with an ID.
If yours has none, it will be easier to remove it via the GUI.

Make sure to use the proper time reference in your #ALARM if you only want it to fire once.
_________________
Discord: Shalimarwildcat
Reply with quote
ahlebik
Newbie


Joined: 30 Apr 2005
Posts: 6

PostPosted: Mon Mar 23, 2015 10:13 am   
 
When I turn off the trigger the alarm is already running so it will execute one more time once its diabled.
Reply with quote
shalimar
GURU


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

PostPosted: Mon Mar 23, 2015 10:34 am   
 
#ALARMs are just a type of #TRIGGER.
_________________
Discord: Shalimarwildcat
Reply with quote
ahlebik
Newbie


Joined: 30 Apr 2005
Posts: 6

PostPosted: Mon Mar 23, 2015 10:57 am   
 
<class name="rebash" enabled="false" id="232">
<trigger priority="2330" id="233">
<pattern>Your bash at %1 sends</pattern>
<value>#ALARM +5.73 {bash}</value>
</trigger>
<trigger priority="2340" id="234">
<pattern>They already seem to be stunned.</pattern>
<value>bash %1</value>
</trigger>
</class>

I have it set up on a button like so:

<button type="Toggle" autosize="false" width="85" height="23" color="#993300" priority="2410" id="241">
<caption>Rebash OFF</caption>
<value>#T+ rebash</value>
<button color="lime" id="242">
<caption>Rbash ON</caption>
<value>#suspend alarm +5.73
#T- Rebash
#suspend alarm +5.73</value>
</button>
</button>


But when i toggle it off there is normally a alarm running to bash one more time. I can see the alarm running with #alarm but dont know how to kill it. I thought the #suspend alarm +5.73 would do it but nogo
Reply with quote
shalimar
GURU


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

PostPosted: Mon Mar 23, 2015 12:56 pm   
 
change the alarm to something like

#ALARM "rebash" +5.73 {bash}

the problem with the time as an ID is that the time will change before you can target it, this way you could

#SUSPEND rebash

I think I know what game you are playing on though (warrior, right?), and you might well benefit from instead timing out how long it takes before you can reuse the command again.
I use something similar to the following:

This requires you to have a button that only issues the power command where the ID is the powername.

#TR {message for succesful use of the power} {
#CALL %btncol(powerName,,firebrick)
#ALARM "powerNaming" +16 {#CALL %btncol(powerName,,lime)}
}

This template will change the color of the button red when you cant use it, then green when you can. just change powerName and powerNaming as needed, along with the time in the #ALARM.
_________________
Discord: Shalimarwildcat
Reply with quote
ahlebik
Newbie


Joined: 30 Apr 2005
Posts: 6

PostPosted: Fri Mar 27, 2015 9:04 am   
 
thanks mate giving it the name inside quotes allowed me to #suspend it.

all is well now.
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