About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
harley
Apprentice


Joined: 05 Apr 2008
Posts: 121

PostPosted: Sun Apr 06, 2008 10:16 am   

Status Window
 
Is there a reason that you cant use #if statments in the status window?
ie
#if (@Affectedbypoison = 1) {You are poisoned!} etc
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Sun Apr 06, 2008 10:45 am   
 
Yes - the status window doesn't run commands, it only evaluates functions. You can use the %if function to do what you want, but remember to put quotes around it and to leave out the space between the comma and the start of the string:

%if(@Affectedbypoison = 1,"You are poisoned!")

to avoid typing issues.
_________________
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 » CMUD 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