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


Joined: 19 Jun 2005
Posts: 1
Location: kansas

PostPosted: Mon Nov 26, 2007 5:10 am   

ok been fighting this for a while cant wrap my mind around it
 
have
char (%d)hp as my pattern
and
#IF (%1 < 500) {#char cast 'mira' char;#t- smira} as my value want to make a 1 line trigger
works like a charm for an automira for each char what i am trying to do is set it so
i can make the 500 a variable or an alias so i can control without opening triggers and
changing manaully.

have tried making it #al 123 = 500 #al abc = 500 am i just missing something easy

any help would be greatly appreciated

Durabane
Reply with quote
mr_kent
Enchanter


Joined: 10 Oct 2000
Posts: 698

PostPosted: Mon Nov 26, 2007 5:49 am   
 
#TRIGGER {char (%d)hp} {#VAR myhp %1;#IF (@myhp < 500) {#CHAR cast 'mira' char;#T- smira}}
#ALIAS sethp {#VAR myhp %1}
Reply with quote
Arde
Enchanter


Joined: 09 Sep 2007
Posts: 605

PostPosted: Mon Nov 26, 2007 1:33 pm   
 
I think he rather wanted something like

#VAR minhp 500
#TRIGGER {char (%d)hp} {#VAR myhp %1;#IF (@myhp < @minhp) {#CHAR cast 'mira' char;#T- smira}}
#ALIAS sethp {#VAR minhp %1}
_________________
My personal bug|wish list:
-Wrong Priority when copy-paste setting
-1 prompt trigger for Mapper, Session and General Options, not 3 different!
-#SECTION can terminate threads
-Buttons can't start threads
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