|
Curlay Beginner
Joined: 17 May 2004 Posts: 27 Location: USA
|
Posted: 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. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
Curlay Beginner
Joined: 17 May 2004 Posts: 27 Location: USA
|
Posted: Tue Aug 23, 2005 11:45 am |
Thanks! Works like a charm!
|
|
|
|
|
|