|
schazer Newbie
Joined: 30 May 2001 Posts: 3
|
Posted: Sun Apr 14, 2002 9:08 am
macro and variables |
I'm certain this most likely simple but I have been away awhile and cant quite get it.
All I want to do is set up a way to hit a macro key to perform some combat strings.
Kill human
F1 would kick human
F2 would trip human
etc.
As long as whatever is keyed after kill is used for the macro. |
|
|
|
Agroamar Beginner
Joined: 09 Feb 2002 Posts: 10 Location: USA
|
Posted: Sun Apr 14, 2002 1:18 pm |
From the zMUD help file you can do this:
#KEY F1 {eat bread}
I don't know where a list of keys words are, but it also shows
<ALT-D>={drink water}
So I would assume its: #KEY <ALT-D>={drink water}
(which is ALT plus the D key)
So its pretty easy... i think thats what you where asking for. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Apr 14, 2002 4:34 pm |
Two steps.
Step one: Make an alias for kill which creates a target variable
Step two: Make your macros using the target variable
#AL {kill} {#VAR target %1;~kill %1}
#KEY {F1} {kick @target}
#KEY {F2} {trip @target}
LightBulb
Vague questions get vague answers |
|
|
|
schazer Newbie
Joined: 30 May 2001 Posts: 3
|
Posted: Tue Apr 16, 2002 8:09 am |
thanks works perfect.
|
|
|
|
|
|