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


Joined: 30 May 2001
Posts: 3

PostPosted: 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.
Reply with quote
Agroamar
Beginner


Joined: 09 Feb 2002
Posts: 10
Location: USA

PostPosted: 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.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
schazer
Newbie


Joined: 30 May 2001
Posts: 3

PostPosted: Tue Apr 16, 2002 8:09 am   
 
thanks works perfect.
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