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
dazed-n-confused
Novice


Joined: 14 Jan 2004
Posts: 31

PostPosted: Mon Jan 19, 2004 10:41 am   

calculating parameters
 
the trigger is something like this: *has a mana of (%c) out of (%c)
if (param1<(param2/2)) {sip potion}. where the first (%c) is param1 and the secound (%c) is param2. Incase its not evident what im trying to do(imagine that) ill try to put it in words. if the first mana value is less than half the secound value perform the necissary action. I have an ailias that I use periodically to check mana, if it shows a true value i want the trigger to perform the action. hope someone can help.
Reply with quote
Danlo
Magician


Joined: 28 Nov 2003
Posts: 313
Location: Australia

PostPosted: Mon Jan 19, 2004 11:10 am   
 
I'm not familiar with a %c wildcard, what does it do? But since you're obviously comparing numbers, I changed it to %d anyway.

#trigger {*has a mana of (%d) out of (%d)} {#if (%1 < %eval(%2/2)) {sip potion}}
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