i wanna make a spell with a percent chance to get the ability "whirlwind". After that the unit cast automatically "whirldwind" for 2 seconds but how??? i dont know how to set it that the unit cast automatically "whirldwind" after the unit get the ability whirlwind.
Yep. This is a trigger job. Simply get it to cast the spell you used as a template for whirlwind (Unit- Issue order targeting a point), after giving the unit whirlwind.
You are not telling us what the event for the learning is. Is it when the unit is attacked, it attacks, another spell is cast, an item is bought...what is it? Cant give a trigger answer for such vague request.
For learning unit abilities there is an action under the "units" category.
And to order an unit to cast whirlwind you will need to use an action found in the same "units" category: "issue order unit without target".
ok sorry! my hero (grom hellscream) is attacking an unit, with a chance of 50% to cast "whirlwind" for 2 seconds. this ability is like the spell of Axe (DOtA) with the diffrent that the hero attacking an unti and not attacked by an unit
events: unit is attacked conditions: attacking unit is 'grom' actions: if: random number between 1 and 2 is 1 (integer comparison) then: add ability 'custom 2 sec bladestorm' order 'grom' to orc - blade master => bladestorm