forums wiki races classes cabals religions world history immortals all pages bugs items helps stats changes calendar map login donate play now

Zmud help with variables

The helpfile says:

To define a variable, you still use the #VARIABLE command. For example, #VAR container waterskin stores the string ‘waterskin’ into the variable container. To return the contents of the variable, precede its name with the @ character. For example, fill @container would expand to fill waterskin.

I tried that and it doesn't work. Can someone help me? Use the same example.

Yea, you have to go to http://www.gammon.com.au/files/mushclient/mushclient437.exe

That should show you pretty much all you need to know

I really have no clue how to use Zmud, but mushclient is REDICULOUSLY easy to learn to use.

Ah come please, if you have useful advice share it with me, if not, let's not start the argument about whose mud client is better.

zMUD is best. Though sadly I am not one to take advantage of all of it's capabilities.

However I am an alias/highlighting fool!

I've never had any problems with it. I'll often use:

#var target

then set up alias' to start combat with:

m = murder @target

f = charge @target

di = dirt @target

As well as highlighting the target with a trigger:

Pattern: @target

Value: #cw

This has worked with every version of zmud/cmud I've used over the past few years.

I don't think it works that way. At least not on my 3.62a 32-bit Zmud version from 4-Aug-1996.

You need to create an Zmud alias to use the @variable.

  • You first create the variable @container. There should be a list with all the variables you created in Zmud, check if it's there.

  • Then you create an alias to use that variable.

#alias 2 fill @container

Next time you type "2" Return, you will send "fill @container" to the mud, with @container being the value of your @container variable.

It is a good idea to put something inside @container variable or it will be null.

I've never had any problems with it. I'll often use:

#var target

then set up alias' to start combat with:

m = murder @target

f = charge @target

di = dirt @target

As well as highlighting the target with a trigger:

Pattern: @target

Value: #cw

This has worked with every version of zmud/cmud I've used over the past few years.

Yes, this is how it should be used according to the help files as well, the thing is, it doesn't work with my version it seems (7.21).

I guess I will re-install it.

Hmmm.... after playing around with it a bit, it seems like the the places of the actualy variable and the "target" are switched...

It works now, thanks Mya and Grosek_.

Hey foxx, I'm having the same difficulties it seems. I have the same version as you. Mind explaining it a bit for me? It works except that I can't swap out the variable by entering "target tom"

Trigger:

Pattern: @target

Value: #TRIGGER {@target} {#CW magenta}

Variable:

Name: target

Value: bob

Alias

Name: m

Value: murder @target

Try:

#Alias targ target = %1

Then just type:

Targ Mya

To have Mya inside the variable Target.

If it does not work add a @

#Alias targ **@**target = %1

Also, you can always use:

Target = "Tom"

Always.

Awesome! Thanks Mya!

not quite sure what goes where to do the targeting..?

Changing variable parameters on the fly.

Here is a quick tutorial on how to change values on the fly.

Lets say you have multiple targets in range and want to change. Instead of making an alias, you can simply type this on the command line of ZMUD...

**@target = ** (provided that you have made the variable 'target' already.

Let's say you are being attacked by Demon-wannabe. type on the command line, between running, @target = Demon-wannabe. Then your other alias' are set. Now Vampiredude logs on and comes after you. Type @target = Vampiredude and you change targets in midstream.

Grey