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
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Wed Jan 29, 2003 7:34 am   

variable alias
 
trying to figure out how to properly set up an alias to randomly perform a attack comand
something along the order of

at = (VariableAttackCommand) %1
Reply with quote
tbone235
Apprentice


Joined: 02 Nov 2002
Posts: 107
Location: Australia

PostPosted: Wed Jan 29, 2003 7:35 am   
 
first you would need to make a list of all the different types of attacks you want it to choose from.... as far as doing the random bit...i'm not entirely sure myself yet
Reply with quote
Emit
Magician


Joined: 24 Feb 2001
Posts: 342
Location: USA

PostPosted: Wed Jan 29, 2003 7:54 am   
 
#var ratt {kick|punch|hit|bash|dirt kick}
#alias rattack {
%item(@ratt, %random(1, %numitems(@ratt))) %1
}

just replace each command in the @ratt with the ones you want ("kick" for "c 'magic missile'" maybe) and when your ready to use it enter command:
rattack evilundeadmob

of course, only if your fighting or going to fight something named evilundeadmob.

--------

moon.icebound.net:9000
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Wed Jan 29, 2003 8:41 am   
 
Thanks for the quick reply, i got it working
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