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


Joined: 09 Nov 2000
Posts: 8
Location: Austria

PostPosted: Sun Jul 27, 2003 10:34 pm   

problems getting right variables from trigger
 
the status looks like that:
(257/257hp 157/163mn 178/178mv)
this is my trigger:
(&{hpvar}/&{mhpvar}hp &{mvar}/&{mmvar}mn &{mvvar}/&{mmvvar}mv)
if i delete the ) on the end, it works properly, if not i get a 7th var with the value 178mv, but the worst problem is, i always get (257 as %1, not even if i delete the ( from the trigger. How can i get that bracket away?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Jul 27, 2003 10:48 pm   
 
Use the appropriate wildcards, as listed in Help under Patterns. For numbers, that would be %d or %n.
&%dhpvar/&%d{mhpvar}hp
Reply with quote
Matthias
Newbie


Joined: 09 Nov 2000
Posts: 8
Location: Austria

PostPosted: Mon Jul 28, 2003 1:12 am   
 
thanks, that worked
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