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
Curlay
Beginner


Joined: 17 May 2004
Posts: 27
Location: USA

PostPosted: Mon Aug 22, 2005 3:34 pm   

Boolean checker all the time?
 
I'm wondering if it's possible to set a trigger upon a variable achieving a certain number.

For example,

If I'd like to make it so that when I'm unbalanced, my status line says Unbalanced (along with whatever else I have.) and when I'm balanced, it just erases the word 'unbalanced.'

My system knows I'm unbalanced because when I do skills that unbalance me, it sets @balance = 1, and when I get the balance recovery statement, it sets @balance = 0.

Do any of you have recommendations? I'm sure it could be much better, but I'm not sure how else to do it.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Aug 22, 2005 8:47 pm   
 
By status line you mean the zmud status line or some sort of prompt modification? If you mean a zmud status line, you probably can use an %if() to include the word Balanced in it:

#status {%if(@Balanced,"Balanced ","")}

If you already have a status bar and you want to include this in that one, just copy the bold part into the status line at the appropriate location.
_________________
EDIT: I didn't like my old signature
Reply with quote
Curlay
Beginner


Joined: 17 May 2004
Posts: 27
Location: USA

PostPosted: Tue Aug 23, 2005 11:45 am   
 
Thanks! Works like a charm!
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