Jump to content

Zmud help with variables


f0xx

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 months later...

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

Link to comment
Share on other sites

  • 3 weeks later...

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...