 |
TommyT Newbie
Joined: 22 Aug 2003 Posts: 2 Location: Malaysia
|
Posted: Mon Feb 16, 2004 10:15 am
add/remove variable display in status window |
Hi all. I need help in this matter. Basically there are 2 variables:
@hunger and @thirst
And I whenever @hunger = 1, the word "hungry" will be displayed in the status window. Same goes for @thirst. "Thirsty" will appear in the status window whenever @thirst =1.
Finally, everytime @hunger =1 and @thirst =1, the word "DYING" will appear in the window.
Anyhow, this is part of my wish list and I wonder if this is doable. And if so, can anyone give me a rough idea how to go about this.
Thanks. |
|
|
 |
Kjata GURU

Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Mon Feb 16, 2004 12:44 pm |
In the status window or status bar? Seems like what you want to do would only require one line, so the status bar should be enough.
Anyway, what you have to do is use a few #IF's to determine the status of the variables and display the correct message in the status bar. Start with the most restrictive condition (checking for both variables equal 1). The #IF's would then store the message that you want in a variable (example: @statMessage) and the variable is then shown in the status bar with the #ST command:
#ST {@statMessage} |
|
|
 |
TommyT Newbie
Joined: 22 Aug 2003 Posts: 2 Location: Malaysia
|
Posted: Tue Feb 17, 2004 3:04 am |
Any difference if I want to apply this to the status window instead?
|
|
|
 |
|
|