How would I do this?

Posted by Matthias on Fri 08 Aug 2003 12:54 AM — 3 posts, 14,189 views.

#0
I'm trying to make a sort of thing that uses 2 buttons, 1 to switch weapons, and one that uses it. How would I use it, if to switch, I would have to:
unwield weapon1
wield weapon2
while weilding one weapon1 to switch, and use:
unwield weapon2
wield weapon1
In one button?
And the weapons use different attacks, also. Weapon1 uses jab, and weapon2 uses bop. So how would I use variables and stuff to make it work?
Greece #1
OK, I can't type a lot due to minor surgery that makes me stand up, but I'd say you could write aliases to do that and then assign them to the macro buttons.
Australia Forum Administrator #2
Make an alias that looks like this (you can copy this and paste into the alias configuration window) ...


<aliases>
  <alias
   match="x"
   enabled="y"
   send_to="12"
   sequence="100"
  >
  <send>if GetVariable ("weapon") = "1" then
  Send "unwield weapon1"
  Send "wield weapon2"
  SetVariable "weapon", "2"
else
  Send "unwield weapon2"
  Send "wield weapon1"
  SetVariable "weapon", "1"
end if

</send>
  </alias>
</aliases>


In my example I made the alias "x" so you could type it quickly (see the "match" line). If you want to make it a button (eg. F2) then make a macro in the macros configuration screen that sends the alias (eg. sends "x" in this case). Then hitting that button will switch weapons.