|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
tbone235 Apprentice
Joined: 02 Nov 2002 Posts: 107 Location: Australia
|
Posted: 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
|
|
|
|
Emit Magician
Joined: 24 Feb 2001 Posts: 342 Location: USA
|
Posted: 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 |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Wed Jan 29, 2003 8:41 am |
Thanks for the quick reply, i got it working
|
|
|
|
|
|