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
Ggoss
Apprentice


Joined: 01 Nov 2006
Posts: 114

PostPosted: Wed Sep 19, 2007 4:25 pm   

(1.34) Alias help
 
Ok i want to disarm a target of his weapon

my current set up for using a skill vs a target is something like this

#if (%numparam() = 0) {bash @target} {bash %params}

so i would hit my alias for bash and it would bash target or what ever i type after

how would i change that so that it would follow

disarm @target weapon
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Wed Sep 19, 2007 5:04 pm   
 
If you want it to follow the bash part (i.e. you bash first, then disarm it) then...

#if (%numparam()=0) {bash @target;disarm @target} {bash %params;disarm %params}

If you're talking about something else, give a clearer example. :)

Charneus
Reply with quote
Ggoss
Apprentice


Joined: 01 Nov 2006
Posts: 114

PostPosted: Sun Sep 23, 2007 6:43 am   
 
sorry ok, the syntax i have to use is

disarm human sword

i want an alias that allows me to do that, i want to beable to type

either

da human sword

da sword when i have the variable target filled

and it give me

disarm @target sword
Reply with quote
Thinjon100
Apprentice


Joined: 12 Jul 2004
Posts: 190
Location: Canada

PostPosted: Sun Sep 23, 2007 3:20 pm   
 
Try:
#if (%numparam()=2) {disarm %1 %2} {disarm @target %params}
_________________
If you're ever around Aardwolf, I'm that invisible guy you can never see. Wizi ftw! :)
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sun Sep 23, 2007 3:23 pm   
 
Or even

#if (%2) {disarm %1 %2} {disarm @target %params}
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
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