Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
zema
Wanderer


Joined: 22 Jun 2005
Posts: 79

PostPosted: Fri Mar 20, 2009 11:13 pm   

veryy easy question
 
This is an easy question i know I took some time off from mudding and now i cant remember how to do this. Basically i have an ability called wavefist what i want to do is make an alias so i can shorten what i have to type to attack something this is what i have to type out to hit something in full "use punchart spinfist at targetname". Now i know how to make an alias and have it made what i want to do is make an alias for my attack then add the targetname..like this.

sf = use punchart spinfist at

so all i have to type is "sf guard" or sf rabite"

I can get the alias to work, but i cant seem to add the target name to the alias.
_________________
There are 3 things i hate kids, animals, and women with attitudes..
Reply with quote
calesta
Apprentice


Joined: 07 Dec 2008
Posts: 102
Location: New Hampshire, USA

PostPosted: Fri Mar 20, 2009 11:28 pm   
 
Use %1 to refer to the parameter you pass to the alias.
Code:
#alias sf {use punchart spinfist at %1}
Reply with quote
Progonoi
Magician


Joined: 28 Jan 2007
Posts: 430

PostPosted: Fri Mar 20, 2009 11:28 pm   
 
Code:

<alias name="sf" id="1">
  <value>use punchart spinfist at $target</value>
  <arglist>$target</arglist>
</alias>
_________________
The Proud new owner of CMud.

--------------------------------
Intel Core i5-650 3,2GHz
4 DD3 RAM
GTX 460 768MB
Win 7 Home Premium 64x
--------------------------------
Reply with quote
zema
Wanderer


Joined: 22 Jun 2005
Posts: 79

PostPosted: Fri Mar 20, 2009 11:31 pm   
 
Thanks and where did you find the %1 ...i can't remember what that's called. I was looking though the helpfiles and nothing is ringing a bell..
_________________
There are 3 things i hate kids, animals, and women with attitudes..
Reply with quote
calesta
Apprentice


Joined: 07 Dec 2008
Posts: 102
Location: New Hampshire, USA

PostPosted: Fri Mar 20, 2009 11:37 pm   
 
The aliases help page has it just a little ways down the page.
Reply with quote
zema
Wanderer


Joined: 22 Jun 2005
Posts: 79

PostPosted: Sat Mar 21, 2009 12:05 am   
 
Thanks alot!
_________________
There are 3 things i hate kids, animals, and women with attitudes..
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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