I cannot figure out this bug..
Hi guys
I have newly updated this question with a new one. Not yet solved.
Btw, thx for the guidelines for the wander system! I will look into it!
And the buff issue is solved as well, thanks for the help.
Now to the new question...
I am trying to make a Hero create units when he uses an ability.
His ultimate ability will deal damage in a target area equal to surrounding units created. Trigger follows.
For some reason it doesn't work. The first Unit Group - Pick works.. But the second doesn't. The strange part however is, if I change the position of the 2 Unit Group - Pick ladders, it will accour then..
Is there some kind of rule saying not 2 Unit Group - Pick actions can go at in the same trigger.. Maybe?
The Game texts are for tests and so is the 500 damage taken to the caster... He kills himself if I rotate the two action ladders... If it is as it stands there, nothing happens to him.
Hi guys
I have newly updated this question with a new one. Not yet solved.
Btw, thx for the guidelines for the wander system! I will look into it!
And the buff issue is solved as well, thanks for the help.
Now to the new question...
I am trying to make a Hero create units when he uses an ability.
His ultimate ability will deal damage in a target area equal to surrounding units created. Trigger follows.
For some reason it doesn't work. The first Unit Group - Pick works.. But the second doesn't. The strange part however is, if I change the position of the 2 Unit Group - Pick ladders, it will accour then..
Is there some kind of rule saying not 2 Unit Group - Pick actions can go at in the same trigger.. Maybe?
The Game texts are for tests and so is the 500 damage taken to the caster... He kills himself if I rotate the two action ladders... If it is as it stands there, nothing happens to him.
-
Coretremble
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Earthen Heart (Coretremble)
-
-
Actions
-
Set ASpell_Caster = No unit
-
Set ASpell_AreaTarget_Enemy = No unit
-
Set ASpell_AreaTarget_Ally = No unit
-
Set ASpell_Counter = 0
-
Set ASpell_Caster = (Triggering unit)
-
Set ASpell_Point = (Target point of ability being cast)
-
Unit Group - Pick every unit in (Units within 400.00 of (Position of ASpell_Caster)) and do (Actions)
-
Loop - Actions
-
Set ASpell_AreaTarget_Ally = (Picked unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of ASpell_AreaTarget_Ally) Equal to Wild Rune
-
(Owner of ASpell_AreaTarget_Ally) Equal to (Owner of ASpell_Caster)
-
-
Then - Actions
-
Set ASpell_Counter = (ASpell_Counter + 1)
-
Game - Display to (All players) the text: (String(ASpell_Counter))
-
Special Effect - Create a special effect at (Position of ASpell_AreaTarget_Ally) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
-
Special Effect - Destroy (Last created special effect)
-
Unit - Kill ASpell_AreaTarget_Ally
-
-
Else - Actions
-
-
-
-
Unit Group - Pick every unit in (Units within 200.00 of ASpell_Point) and do (Actions)
-
Loop - Actions
-
Set ASpell_AreaTarget_Enemy = (Picked unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(ASpell_AreaTarget_Enemy is A structure) Equal to False
-
(ASpell_AreaTarget_Enemy is Magic Immune) Equal to False
-
(ASpell_AreaTarget_Enemy belongs to an enemy of (Owner of ASpell_Caster)) Equal to True
-
(ASpell_AreaTarget_Enemy is dead) Equal to False
-
-
Then - Actions
-
Game - Display to (All players) the text: (String(ASpell_Counter))
-
Unit - Cause ASpell_Caster to damage ASpell_Caster, dealing 500.00 damage of attack type Spells and damage type Normal
-
Unit - Cause ASpell_Caster to damage ASpell_AreaTarget_Enemy, dealing ((Real(ASpell_Counter)) x (0.55 x (Real((Intelligence of ASpell_Caster (Include bonuses)))))) damage of attack type Spells and damage type Normal
-
Unit - Cause ASpell_Caster to damage ASpell_AreaTarget_Enemy, dealing ((Real(ASpell_Counter)) x (0.05 x (Max life of ASpell_Caster))) damage of attack type Spells and damage type Normal
-
Unit - Set life of ASpell_Caster to ((Life of ASpell_Caster) + ((Real(ASpell_Counter)) x (0.05 x (Max life of ASpell_Caster))))
-
-
Else - Actions
-
-
-
-
Custom script: call RemoveLocation (udg_ASpell_Point)
-
-
Last edited: