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
DanaLea
Beginner


Joined: 31 Jul 2002
Posts: 19
Location: USA

PostPosted: Sun May 25, 2003 12:39 am   

a question so simple it hurts to ask...
 
I looked and can't find the information I need (or rather I don't have hours and hours to read through all the documtation to find the answer to a simple question.)

I have a variable called autohunt which has a value of yes or no. if it's yes i want some commands excuted. But I can't figure out out to test the value. This is what I have (which isn't working)

#IF (@autohunt = yes) {
n
hunt @huntmob
}

can anyone help?

thanks

-dana
Reply with quote
Lain
Novice


Joined: 26 Oct 2001
Posts: 38

PostPosted: Sun May 25, 2003 2:01 am   
 
You need to put quotation marks around the word "yes".

#IF (@autohunt = "yes") {
n
hunt @huntmob
}

Lain
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