|
drifter Newbie
Joined: 10 Oct 2005 Posts: 2
|
Posted: Fri Jul 25, 2008 6:53 am
#if question |
I'm sure this has been answered elsewhere, but I can't find it. I'm using zmud, and want to create an #if to check if 2 conditions are true, and if so, execute a command. Any help from the gurus would be much appreciated.
basically I'll have @hits and @mana, checking to see if each is less than 80% of @maxhit and @maxmana, to lay hands
Thanks in advance.
Phil |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: Fri Jul 25, 2008 7:03 am |
#IF (@hits<@maxhit/5 AND @mana<@maxmana/5) {do this}
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
Qaiia Wanderer
Joined: 06 Apr 2007 Posts: 59
|
Posted: Fri Jul 25, 2008 9:11 am |
If you want to check for EITHER stat being less than 80% of full value, use the following:
#IF (@hits<@maxhit*.8 OR @mana<@maxmana*.8) {lay hands}
Swap out OR for AND if you want them BOTH to be less than 80% before laying hands. |
|
|
|
|
|