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
TerrellKl
Novice


Joined: 30 Aug 2005
Posts: 49

PostPosted: Thu Sep 01, 2005 4:57 am   

#if and expressions
 
#trigger {(%d)%p(%d)hp} {
#if ((%2*.75) > %1) {
heal Guy
}
}

That doesnt work right.. why?
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Thu Sep 01, 2005 7:44 am   
 
I don't have zmud installed anymore, so this is off the top of my head

try using eval for the calculation

#trigger {(%d)%p(%d)hp} {
#if (%eval(%2*0.75) > %1) {
heal Guy
}
}
Reply with quote
TerrellKl
Novice


Joined: 30 Aug 2005
Posts: 49

PostPosted: Thu Sep 01, 2005 12:49 pm   
 
Thx it works now
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