Its been a while but...

Posted by Aryzure on Sat 26 Jul 2003 05:14 PM — 4 posts, 16,621 views.

#0
I was wondering how you can make it so that when you type in a certain thing, like "kill boy" it would become your target so you can use a variable for all the monsters. Like...I type kill boy, and i have an alias set for fireball. The alias would be FB and it'd say fireball @kill or something...then, whoever i had targeted gets fireballed. I dont quite remember how to do this, so can anyone help me?
Australia Forum Administrator #1
This should do it. The first alias, "kill *" sends the kill command, and also remembers the target. The second one, "FB" uses the saved target.


<aliases>

  <alias
   match="kill *"
   enabled="y"
   send_to="12"
   omit_from_output="y"
   sequence="100"
  >
  <send>Send "kill %1"
SetVariable "target", "%1"</send>
  </alias>

  <alias
   match="FB"
   enabled="y"
   echo_alias="y"
   expand_variables="y"
   sequence="100"
  >
  <send>fireball @target</send>
  </alias>

</aliases>
#2
Alright, thanks a ton man! Sorry, but I forgot to ask how to make a variable. I use to a long time ago but I got a short memory span and forgot how to.
Australia Forum Administrator #3
It's in the alias above:


SetVariable "name", "contents"

You can also do it in the world configuration screen - Variables tab.