EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   UI Developer Discussion (https://www.eq2interface.com/forums/forumdisplay.php?f=3)
-   -   Help with code please (https://www.eq2interface.com/forums/showthread.php?t=4057)

Profit 08-31-2005 03:13 AM

Help with code please
 
I'm trying to evaluate if the target windows' power is showing "0%" or "None"

Now this trigger works in the builder, but not ingame, any ideas?

Parent.Trigger.Activated=((Parent.PowerPage.Power.LocalText)==('None'))

taco-man 08-31-2005 03:18 AM

dont use localtext, that wont do anything, use the regular text

Profit 08-31-2005 03:33 AM

Thanks Taco, I've tried this, still no go.

Local text has worked for other triggers I've done....

Landiin 08-31-2005 07:55 AM

If you working on test you shold be able to do

Parent.Trigger.Activated=((Parent.PowerPage.Power.LocalText = 'None') ? true : false)

I haven't tested ternary operators yet, but one of the patch notes said they added them.


All times are GMT -5. The time now is 11:22 PM.

vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI