|
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: Sun Oct 13, 2002 5:47 pm
Temp Alarm, only one? |
I have a trig right now that will leave a temp alarm when one of the value is incorrect. I was wondering if there is way to have only one of those temp alarm present at a time? Since sometime multiple trigger create like 5 temp alarm, and from that it multiply like mad. :), as always thanks so much for the help
|
|
|
|
iljhar GURU
Joined: 10 Oct 2000 Posts: 1116 Location: USA
|
Posted: Sun Oct 13, 2002 10:27 pm |
Give it an id:
#temp "blah" {TempTriggerHere} {actionhere}
Iljhar |
|
|
|
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: Sun Oct 13, 2002 11:02 pm |
I don't think that is what I'm looking for, heck I don't even know how to incorporate that into this trigger
#TR {~[%d~] {@target} (%d)/ (%d) hp %d/ %d mana %d/ %d mv} {#IF (%1 < %2) {operate @target; gr pc} {#ALARM +5 {gr pc}}}
See that +5 ALARM? That is what I want to have only one of, because if I type gr pc again, it start to multiple like rabbits |
|
|
|
Troubadour GURU
Joined: 14 Oct 2000 Posts: 556 Location: USA
|
Posted: Mon Oct 14, 2002 12:44 am |
#TR {~[%d~] {@target} (%d)/ (%d) hp %d/ %d mana %d/ %d mv} {#T- chekgrp; #IF (%1 < %2) {operate @target; gr pc} {#ALARM chekgrp +5 {gr pc}}}
I've given the alarm the id "chekgrp". Whenever the pattern is received, it'll turn off the alarm. Resending the ALARM chekgrp command will override any previous incarnation of a trigger or alarm named 'chekgrp'. You could have used #UNTRIGGER instead, but that command gives an annoying message.
Troubadour
(Win 98, Pentium III, 550 MHz) |
|
|
|
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: Mon Oct 14, 2002 3:39 am |
thanks
|
|
|
|
|
|