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


Joined: 05 Nov 2001
Posts: 3
Location: USA

PostPosted: Mon Nov 12, 2001 4:43 pm   

#VAR command and variables
 
I'm a newbie at this so bear with me.
I made a script like this.

#var wep sword
#al k {kill %1;wield @wep}

Instead of sending the word "sword" out to the mud, it sends "@wep". I checked my special characters settings in the preferences area and everything checks out ok. What am I doing wrong? Please help. Thanks.

Hoax Latimer @ Moral Decay
131.247.113.1 3003
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Nov 12, 2001 6:32 pm   
 
quote:

I'm a newbie at this so bear with me.
I made a script like this.

#var wep sword
#al k {kill %1;wield @wep}

Instead of sending the word "sword" out to the mud, it sends "@wep". I checked my special characters settings in the preferences area and everything checks out ok. What am I doing wrong? Please help. Thanks.

Hoax Latimer @ Moral Decay
131.247.113.1 3003



I think you need to surround the literal value of the variable (sword) in quotes. I could be wrong, of course, but it looks like ZMud doesn't know what to do with 'sword'.

li'l shmoe of Dragon's Gate MUD
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Mon Nov 12, 2001 7:50 pm   
 
That's strange, I copy and paste it into zMUD just as you have it in your post, and it works perfectly.

Check to see if the variable wep is being created.

Kjata
Reply with quote
hoax808
Newbie


Joined: 05 Nov 2001
Posts: 3
Location: USA

PostPosted: Mon Nov 12, 2001 8:06 pm   
 
You're right. It DOES seem to be working now. Odd. Thanks a bunch.
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