- Joined
- Oct 10, 2009
- Messages
- 111
I'm creating a simple "Triple Blink" (Triangular ability, stacking three points (one initial and two additional based on that one) which also damages enemy units in a small cone. What does the ability do? Well ... it does all required. However, in addition, it ignores the cooldown (meaning there is not one) and also damages Hero in the process. I know it has something to do with "Unit Group" but I'm not sure whether I should pre-define it or there's just some miss or something alike in the actual trigger.
-
Triangular BlinkINT
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to Triangular Blink
-
Actions
- Set TB_Caster = (Triggering unit)
- Set TB_Damage = (Agility of TB_Caster (Include bonuses))
- Set TB_Range = 400
- Set TB_DMG_RAD = 250
- Set TB_Temp_Points[0] = (Target point of ability being cast)
- Set TB_Temp_Points[1] = (TB_Temp_Points[0] offset by (Real(TB_Range)) towards 20.00 degrees)
- Set TB_Temp_Points[2] = (TB_Temp_Points[1] offset by (Real(TB_Range)) towards 90.00 degrees)
- Unit - Move TB_Caster instantly to TB_Temp_Points[0]
-
Unit Group - Pick every unit in (Units within (Real(TB_DMG_RAD)) of (Position of TB_Caster) matching (((Picked unit) belongs to an enemy of (Owner of TB_Caster)) Equal to True)) and do (Actions)
-
Loop - Actions
- Unit - Cause TB_Caster to damage (Triggering unit), dealing (Real(TB_Damage)) damage of attack type Pierce and damage type Normal
- Special Effect - Create a special effect at TB_Temp_Points[0] using Abilities\Spells\Items\SpellShieldAmulet\SpellShieldCaster.mdl
- Special Effect - Destroy (Last created special effect)
-
Loop - Actions
- Wait 0.40 seconds
- Unit - Move TB_Caster instantly to TB_Temp_Points[1]
-
Unit Group - Pick every unit in (Units within (Real(TB_DMG_RAD)) of TB_Temp_Points[1] matching (((Picked unit) belongs to an enemy of (Owner of TB_Caster)) Equal to True)) and do (Actions)
-
Loop - Actions
- Unit - Cause TB_Caster to damage (Triggering unit), dealing (Real(TB_Damage)) damage of attack type Pierce and damage type Normal
- Special Effect - Create a special effect at TB_Temp_Points[1] using Abilities\Spells\Items\SpellShieldAmulet\SpellShieldCaster.mdl
- Special Effect - Destroy (Last created special effect)
-
Loop - Actions
- Wait 0.40 seconds
- Unit - Move TB_Caster instantly to TB_Temp_Points[2]
-
Unit Group - Pick every unit in (Units within (Real(TB_DMG_RAD)) of TB_Temp_Points[2] matching (((Picked unit) belongs to an enemy of (Owner of TB_Caster)) Equal to True)) and do (Actions)
-
Loop - Actions
- Unit - Cause TB_Caster to damage (Triggering unit), dealing (Real(TB_Damage)) damage of attack type Pierce and damage type Normal
- Special Effect - Create a special effect at TB_Temp_Points[2] using Abilities\Spells\Items\SpellShieldAmulet\SpellShieldCaster.mdl
- Special Effect - Destroy (Last created special effect)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_TB_Temp_Points[0])
- Custom script: call RemoveLocation(udg_TB_Temp_Points[1])
- Custom script: call RemoveLocation(udg_TB_Temp_Points[2])
-
Events