|
dazed-n-confused Novice
Joined: 14 Jan 2004 Posts: 31
|
Posted: 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. |
|
|
|
Danlo Magician
Joined: 28 Nov 2003 Posts: 313 Location: Australia
|
Posted: 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}} |
|
|
|
|
|