- Joined
- Nov 24, 2012
- Messages
- 198
So i make a spell like this:
Why if i learn it and click it slowly the learned ability in hero
the spell it's create a too much dummy
how i can fix it??
-
Poison Aura
-

Events
-


Unit - A unit Learns a skill
-
-

Conditions
-


(Learned Hero Skill) Equal to Poison Aura
-
-

Actions
-


Set Caster = (Triggering unit)
-


Set Castpos = (Position of Caster)
-


Set Level = (Level of Poison Aura for Caster)
-


Set Owner = (Owner of Caster)
-


Trigger - Turn on AoE Effect <gen>
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Number of units in Group) Greater than 99
-
-



Then - Actions
-




Unit Group - Remove all units of Group from Group
-
-



Else - Actions
-
-
-
-
Init
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


-------- set AoE --------
-


Set AoE[1] = 350.00
-


Set AoE[2] = 375.00
-


Set AoE[3] = 400.00
-


-------- set Damage --------
-


Set Damage[1] = 25.00
-


Set Damage[2] = 30.00
-


Set Damage[3] = 30.00
-


-------- set AoE Effect --------
-


Set AoE_Effect[1] = 300.00
-


Set AoE_Effect[2] = 350.00
-


Set AoE_Effect[3] = 375.00
-


-------- set AoE Effect 2 --------
-


Set AoE_Effect_2[1] = 200.00
-


Set AoE_Effect_2[2] = 250.00
-


Set AoE_Effect_2[3] = 300.00
-


-------- set Dummy Type --------
-


Set DT = Dummy
-
-
-
AoE Effect
-

Events
-


Time - Every 1.00 seconds of game time
-
-

Conditions
-

Actions
-


For each (Integer Integer[0]) from 1 to 18, do (Actions)
-



Loop - Actions
-




Set PA_point[1] = ((Position of Caster) offset by AoE[Level] towards ((Real(Integer[0])) x (360.00 / 18.00)) degrees)
-




Unit - Create 1 Dummy for Owner at PA_point[1] facing Default building facing degrees
-




Set Dummy[1] = (Last created unit)
-




Unit Group - Add Dummy[1] to Group
-




Unit - Add a 1.00 second Generic expiration timer to Dummy[1]
-




Unit - Set level of Poison Cloud for Dummy[1] to Level
-




Set PA_point[2] = ((Position of Caster) offset by AoE_Effect[Level] towards ((Real(Integer[0])) x (360.00 / 18.00)) degrees)
-




Unit - Create 1 Dummy for Owner at PA_point[2] facing Default building facing degrees
-




Set Dummy[2] = (Last created unit)
-




Unit Group - Add Dummy[2] to Group
-




Unit - Add a 1.00 second Generic expiration timer to Dummy[2]
-




Unit - Set level of Poison Cloud for Dummy[2] to Level
-




Set PA_point[3] = ((Position of Caster) offset by AoE_Effect_2[Level] towards ((Real(Integer[0])) x (360.00 / 18.00)) degrees)
-




Unit - Create 1 Dummy for Owner at PA_point[3] facing Default building facing degrees
-




Set Dummy[3] = (Last created unit)
-




Unit Group - Add Dummy[3] to Group
-




Unit - Add a 1.00 second Generic expiration timer to Dummy[3]
-




Unit - Set level of Poison Cloud for Dummy[3] to Level
-
-
-


Custom script: call RemoveLocation(udg_PA_point[1])
-


Custom script: call RemoveLocation(udg_PA_point[2])
-


Custom script: call RemoveLocation(udg_PA_point[3])
-


Custom script: set bj_wantDestroyGroup = true
-


Unit Group - Pick every unit in (Units within AoE[Level] of Castpos matching (((Matching unit) belongs to an enemy of Owner) Equal to True)) and do (Actions)
-



Loop - Actions
-




Set picked = (Picked unit)
-




Unit - Cause Caster to damage picked, dealing Damage[Level] damage of attack type Spells and damage type Normal
-
-
-
-
-
Other
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


(Unit-type of (Dying unit)) Equal to DT
-
-

Actions
-


Unit - Remove (Dying unit) from the game
-
-
the spell it's create a too much dummy
how i can fix it??
Attachments
Last edited:





