|
hoax808 Newbie
Joined: 05 Nov 2001 Posts: 3 Location: USA
|
Posted: 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 |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
hoax808 Newbie
Joined: 05 Nov 2001 Posts: 3 Location: USA
|
Posted: Mon Nov 12, 2001 8:06 pm |
You're right. It DOES seem to be working now. Odd. Thanks a bunch.
|
|
|
|
|
|