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
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: 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
Reply with quote
iljhar
GURU


Joined: 10 Oct 2000
Posts: 1116
Location: USA

PostPosted: Sun Oct 13, 2002 10:27 pm   
 
Give it an id:

#temp "blah" {TempTriggerHere} {actionhere}

Iljhar
Reply with quote
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: 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
Reply with quote
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: 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)
Reply with quote
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Mon Oct 14, 2002 3:39 am   
 
thanks
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