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


Joined: 22 Nov 2002
Posts: 4

PostPosted: Fri Nov 22, 2002 10:53 pm   

Trigger
 
How do I make a trigger of this
< Lifeforce (69) Armor (0) Energy (85)>
< Powerlevel (1,119/1,230)>
They are 2 lines, I am going to make a guage of the first line where MaxLF = 100
And I am going to make a guage of PL to where
MaxPL = 5000, I tried to make one but it never put anything in the variables ... ???
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Nov 23, 2002 12:26 am   
 
#TR {~< Lifeforce ~((%d)~) Armor ~((%d)~) Energy ~((%d)~)~>$~< Powerlevel ~((%n)/(%n)~)~>} {#VAR LF %1;#var armor %2;#var energy %3;#VAR PL %4;#var pl2 %5} {} {nocr|prompt}

I included variables for the other numbers since you may want them at some point. Nocr and prompt are options which make it a prompt trigger.

LightBulb
Senior Member
Reply with quote
Maarek
Newbie


Joined: 22 Nov 2002
Posts: 4

PostPosted: Sat Nov 23, 2002 12:59 pm   
 
I see thank you, I will try it in a second, BTW will that still work for PL with the numbers having a " , " in the number ?? I dont know where I went wrong making it, I was trying to do it with the gui and not with command line scripting which I really should learn =P Thanks for the help ^.^
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Nov 23, 2002 4:26 pm   
 
Yes, %n will work with numbers that have commas.

LightBulb
Senior Member
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