Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
uviel
Beginner


Joined: 24 Feb 2007
Posts: 12

PostPosted: 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
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Sun Feb 25, 2007 5:47 am   
 
#if (@ALIGN>=-199 AND @ALIGN<=199) {neutral}
_________________
Discord: Shalimarwildcat
Reply with quote
uviel
Beginner


Joined: 24 Feb 2007
Posts: 12

PostPosted: Sun Feb 25, 2007 6:15 am   
 
That solved it, thanks, I feel stupid now. :P
Reply with quote
knight35966
Beginner


Joined: 28 Feb 2007
Posts: 11
Location: Alabama

PostPosted: 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?
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net