So I've tried to make a skill that changes attack and gives a passive ability to the hero depending on which form is he. Skill is based on the Bear Form and both dummy passives in spellbook are based on Bombs.
My translated triggers:
Trigger FireAttack
I know the triggers don't look like they're suppose on forum, but I'm too tired to fix it.
My translated triggers:
Trigger FireAttack
-
Unit - A unit starts casting ability
-
(Ability being cast) equals to ChangingForm
-
Unit - Remove spellbook FrostAttack from (Triggering unit)
-
Unit - Add spellbook FireAttack to (Triggering unit)
-
Unit - Set level of FireAttack for (Triggering unit) to (Level of ChangingForm for (Triggering unit)
-
Trigger - Turn on FrostAttack <gen>
-
Trigger - Turn off (This trigger)
-
Unit - A unit starts casting ability
-
(Ability being cast) equals to ChangingForm
-
Unit - Remove spellbook FiretAttack from (Triggering unit)
-
Unit - Add spellbook FrostAttack to (Triggering unit)
-
Unit - Set level of FireAttack for (Triggering unit) to (Level of ChangingForm for (Triggering unit)
-
Trigger - Turn on FireAttack <gen>
-
Trigger - Turn off (This trigger)
-
Unit - A unit is attacked
-
(Level of FrostAttack for (Attacking unit)) is not equal to 0
-
Set PositionOfAttackedUnit = (Position of (Attacked unit))
-
Unit - Create 1 dummy for (Owner of (Attacking unit)) at PositionOfAttackedUnit facing default degrees
-
Unit - Set level of FireAttack for (Triggering unit) to (Level of ChangingForm for (Triggering unit)
-
Set dummy = (Last created unit)
-
Unit - Add DummyFrostNova to dummy
-
Unit - Set level of DummyFrostNova for dummy to (Level of FrostAttack for (Attacking unit)
-
Unit - Order (Last created unit) to Undead - Lich - Frost Nova (Attacked unit)
-
Wait 2.00 seconds
-
Unit - Remove dummy from the game
-
Custom script: call RemoveLocation(udg_PositionOfAttackedUnit)
-
Game - Display to (All players) the text: (String((Level of FrostAttack for (Attacking unit))))
I know the triggers don't look like they're suppose on forum, but I'm too tired to fix it.
Last edited: