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
stark62
Wanderer


Joined: 04 Apr 2003
Posts: 94
Location: United Kingdom

PostPosted: Thu Dec 07, 2006 6:09 pm   

Help me to stay alive
 
Trying to stop myself dying all the time in a PKILL mud with some help on a cure warning type thing.

I want to do something like this :-

a variable say @cure has values from 0 - 5 (this is changed by a number of triggers #add cure 1)

On a status window I wish to show :-
if @cure = 0 (show nothing (no words))
if @cure = 1-5 (show potion in a green colour)

I been trying all afternoon and I know its got to be easy

Any help would be much appreciated
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Thu Dec 07, 2006 6:33 pm   
 
In the statuswindow:

%if(@cure=0,"")%if(@cure=1,do whatever)%if(@cure=2,do whatever)

and so on.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
stark62
Wanderer


Joined: 04 Apr 2003
Posts: 94
Location: United Kingdom

PostPosted: Thu Dec 07, 2006 6:47 pm   
 
thanks

so quick .... you do realise im going to be asking so much stuff now ;)

thanks again
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Thu Dec 07, 2006 8:16 pm   
 
What can I say? I'm a glutton for punishment :P
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
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