|
uviel Beginner
Joined: 24 Feb 2007 Posts: 12
|
Posted: Sun Feb 25, 2007 4:52 am
Logical if function, to display alignment |
I set us a trigger that captures my current alignment and stores it in a varibale. I want then to set a new trigger or script that will send the words good, evil or neutral to status window under these conditions;
If @align <=-200 then send evil to the windw, if @align >= 200 thehn send good
I got that part working pretty much however i hit a problem when trying to define a range
If @align <=-199 and <= 199 then send neutral
How would I se that up, it has been bothering me the whole day.
Thanks |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Sun Feb 25, 2007 5:47 am |
#if (@ALIGN>=-199 AND @ALIGN<=199) {neutral}
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
uviel Beginner
Joined: 24 Feb 2007 Posts: 12
|
Posted: Sun Feb 25, 2007 6:15 am |
That solved it, thanks, I feel stupid now. :P
|
|
|
|
knight35966 Beginner
Joined: 28 Feb 2007 Posts: 11 Location: Alabama
|
Posted: Fri Mar 02, 2007 11:08 pm |
That sounds like a cool trig. I'm still kind of new at this and was wandering if you could post the whole trig on here for me?
|
|
|
|
|
|