how to make custom commands?

Status
Not open for further replies.
Like this?

  • KIll
    • Events
      • Player - Player 1 (Red) types a chat message containing -kill as An exact match
    • Conditions
    • Actions
      • Unit - Kill Archmage 0000 <gen>
 
You cant use triggering unit as there is no triggering unit. I Suggest that you either use a Unitvariable to reference each hero as it is picked to each seperate player or to use

Pick every unit in owner by trigger player
Pick every unit matching condition Bolean=to hero true
Kill unit
:P

The first option is preferrable as it allows for better referencing for custom abillities as well.
 
you can't use triggering unit since there is no unit triggering it, the player is not the unit so you could make different one for each hero like

-kill Pally
-kill fire mage

or you could use a hashtable and save the hero to the player so that when you type -kill hero you make it load that player's hero from the hashtable
 
Idk how to do it unless you select the hero like from a tavern or something, but idk how to save it if you start out with the hero so you might want to try what brambleclaw said or just make one for ever hero or just wait for someone eles who knows more too come by
 
Status
Not open for further replies.
Back
Top