Beastmaster help?

iTroll

New Member
Reaction score
1
how would i make a beasmaster ability to tame animals. I tried using charm, but its hard to make it only work on animals and not anything else. Im not sure exactly what to do because i put targets allowed - neutral, but that only works on neutral passive, not neutral hostile, and i want the animals to attack you.
 

Avaleirra

Is back. Probably.
Reaction score
128
Use charm but then trigger it so that it can only target the certain untis you want. You could also try making the neutral hostile "ancients" and then make your charm only target ancients.
 

iTroll

New Member
Reaction score
1
OH thanks the ancient part worked quite well, but oh sorry for another question but how would i trigger it so that they can only charm one animal?
 

Nenad

~Choco Coronet~ Omnomnom
Reaction score
137
When you cast an ability set an integer variable MaxAnimals to 1. Then if MaxAnimals is 1, order the unit to stop and display an error message (or do what you want really x) )

Trigger:
  • Event
    • Unit starts the effects of an ability
    • Conditions
    • Ability being cast equal to Charm Animals<i>&lt;-Ability Comparison</i>
    • MaxAnimals equal to 0<i>&lt;-Integer Comparison</i>
    • Actions
    • Set MaxAnimals = 1
    • Set Animal = Target Point of Ability Being Cast<i>&lt;-Unit Variable</i>


Trigger:
  • Event
    • Animal Dies
    • Conditions
    • Actions
    • Set MaxAnimals = 0


Sorry it's freehand, but this should limit the animals to 1, and when the animal dies it will enable you to charm another
 

jomik

New Member
Reaction score
17
This will make it non-MUI...
You could do this when he casts the ability:
Take all units owned by triggering player of type ancient.
If there's more than 0 units, then cancel the ability, otherwise go on :p

Or you can remove the ability when he gets the animal, and give it when it dies. Or you can base it off channel and trigger it (if the charm is cast too fast for the trigger to stop it).
Pretty many ways to do it. I'll be happy to make one for ya :D
 

Nenad

~Choco Coronet~ Omnomnom
Reaction score
137
If you want to make my solution MUI (even though he didn't ask for it) Just make all the variables arrays and use Player Number in them.

Also, i forgot a trigger >.<
Trigger:
  • Event
    • Unit Starts casting an ability
    • Conditions
    • Ability being cast equal to charm
    • MaxAnimals equal to 1
    • Actions
    • Unit Order Casting unit to Stop
 

G00dG4m3

New Member
Reaction score
1
Use trigger with Begins casting ability event (after the effect is started, it's imposible to cancel by using stop order.) and condition with ability being cast to charm, as mentioned above. If the count for the Beasts[Player number of Caster's owner] is equals to 0 then do nothing, else issue triggering unit to hold position, play caster's stand animation and then reset animations, pause and unpause it and show a game message for owner of the <hero> that he already has a tamed animal.

I hope you understood this :)
 

iTroll

New Member
Reaction score
1
oh sorry k i keep forgetting to say stuff >.< but in this map you control about 5 heroes of your choice, so also would there be a way to trigger it to 1 animal per beastmaster?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top