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


Joined: 04 Dec 2010
Posts: 2

PostPosted: Sat Dec 04, 2010 12:36 am   

#if and string variables
 
I pay a mud that outputs what you have in each hand as a variable.

I made a skinning verb for the mud, but sometimes it fails if I target a corpse I've already skinned.

What I want to do is check if the left hand has something, and if it does, put it in a hunting sack.

When there's nothing in a hand, the variable defaults to 'none'.

I figured I'd use a not operator, but I'm not sure of the syntax for matching it to the word none.

Could someone help me out?

Quote:
sheath
get skinning knife
skin corpse
#if @lefthand NOT "none"
{
#wait 3200
put @lefthand in hun sack
}
sheath
draw t'elt tuck
draw damask tuck
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Sat Dec 04, 2010 12:43 am   
 
#if (@lefthand != "none")
{
#wait 3200
put @lefthand in hun sack
}
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
Ghostcart
Newbie


Joined: 04 Dec 2010
Posts: 2

PostPosted: Sat Dec 04, 2010 12:58 am   
 
Ooo, thank you!
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