Help - Search - Members - Calendar
Full Version: Percentage In A Trigger
Achaea's Forums > Off-Topic > Tech Support > Client Help
Horuce
#CLASS {Apostate_Combat|Apostasy|Mana_Percent}
#VAR mana {4397}
#VAR curmana {4039}
#TRIGGER {^(%w)'s mana stands at (%d)~/(%d).$} {curmana=%2;mana=%3;#if (@curmana <1/2 @mana) {#SHOW %ansi (blink,Green,white)Cathable}{#show %ansi (blink,Red,white) Not Cathable}}
#CLASS 0

this is what I get when I try it

3325h, 3356m, 16200e, 16200w ex- (13:42:39)CONTEMPLATE test_subject

Test_subect's mana stands at 4039/4397.
{#SHOW (blink,Green,white)Cathable}{#show (blink,Red,white) Not Cathable}
3325h, 3306m, 16200e, 16190w x- (13:42:47)
Quit trying to confuse me.
3325h, 3306m, 16200e, 16190w x- (13:42:47)

is there a something I'm doing wrong?
Iocun
"1/2 @mana" isn't a valid expression. Use "0.5*@mana" or "@mana/2" or "(1/2)*@mana".
Horuce
Thank you all. Its working now.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.