|
atheaker Newbie
Joined: 10 Dec 2011 Posts: 9
|
Posted: 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 |
|
|
|
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: 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.
|
|
|
|
atheaker Newbie
Joined: 10 Dec 2011 Posts: 9
|
Posted: 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. |
|
|
|
|
|