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
TommyT
Newbie


Joined: 22 Aug 2003
Posts: 2
Location: Malaysia

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


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: 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}
Reply with quote
TommyT
Newbie


Joined: 22 Aug 2003
Posts: 2
Location: Malaysia

PostPosted: Tue Feb 17, 2004 3:04 am   
 
Any difference if I want to apply this to the status window instead?
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