About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 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
atheaker
Newbie


Joined: 10 Dec 2011
Posts: 9

PostPosted: Sat Feb 09, 2013 8:26 pm   

Triggered Alarm Timer (Solved)
 
I am trying to make an assortment of Alarm Timers, I can use to tell me when certain rooms reset.
It works good, but I am trying to figure how to extract the RoomName to each alarm through the variable I use.
Right now if I make 2 alarms the times are correct on them, but the roomnames are always the same.
The following is what I am using, I am wondernig how to extract the "current" variable to an alarm, so that when I set another time, it will use a different variable.

Code:
<alias name="augur" autoappend="true" id="1353">
  <value>#va augurroom %1
cast augur</value>
</alias>



Code:
<trigger priority="13550" id="1355">
  <pattern>You scan forward and find the reset about (%d) minutes from now.</pattern>
  <value>:MageParty:#say Augur Timer~: %1 minutes till @augurroom Resets.
#alarm +%1:00 {ptell @augurroom has just reset!;radar}</value>
</trigger>


I know my issue is using the @augurroom variable, is there a way to extract it's current syntax to the alarm, so if I change the variable for a 2nd alarm the 1st alarm name won't change?
(if that makes any sense) lol


Last edited by atheaker on Sat Feb 09, 2013 9:20 pm; edited 1 time in total
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Sat Feb 09, 2013 8:48 pm   
 
Local variables will expand in alarm creation. Just store @augurroom in a local variable before you create your alarm and use that instead.
Reply with quote
atheaker
Newbie


Joined: 10 Dec 2011
Posts: 9

PostPosted: Sat Feb 09, 2013 9:19 pm   
 
Perfect:

Code:
<trigger priority="13550" id="1355">
  <pattern>You scan forward and find the reset about (%d) minutes from now.</pattern>
  <value>:MageParty:#say Augur Timer~: %1 minutes till @augurroom Resets. Current Time: %time(h:na/p)
$augurroom = @augurroom
#alarm +%1:00 {ptell $augurroom has just reset!;radar} {Temp|Augur}</value>
</trigger>


Added the local variable in, and it worked perfect.
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