Nethrezim
New Member
- Reaction score
- 2
Ok so how can I create a Mass Purge spell to slow units in an area and deal imense damage to summoned units in an area? [Targeting needs to be like Kael's Flame Strike]
Mass Purge
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Flame Strike
Actions
Set TempPoint[1] = (Target point of ability being cast)
Set TempGroup = (Units within 350.00 of TempPoint[1] matching (((Matching unit) is Summoned) Equal to True))
Unit Group - Pick every unit in TempGroup and do (Actions)
Loop - Actions
Set TempPoint[2] = (Position of (Picked unit))
Unit - Create 1 Footman for (Owner of (Triggering unit)) at TempPoint[2] facing Default building facing degrees
Unit - Add a 4.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Orc Shaman - Purge (Picked unit)
Custom script: call RemoveLocation(udg_TempPoint[2])
Custom script: call RemoveLocation(udg_TempPoint[1])
Custom script: call DestroyGroup(udg_TempGroup)
Code:Mass Purge Events Unit - A unit Starts the effect of an ability Conditions (Ability being cast) Equal to Flame Strike Actions Set TempPoint[1] = (Target point of ability being cast) Set TempGroup = (Units within 350.00 of TempPoint[1] matching (((Matching unit) is Summoned) Equal to True)) Unit Group - Pick every unit in TempGroup and do (Actions) Loop - Actions Set TempPoint[2] = (Position of (Picked unit)) Unit - Create 1 Footman for (Owner of (Triggering unit)) at TempPoint[2] facing Default building facing degrees Unit - Add a 4.00 second Generic expiration timer to (Last created unit) Unit - Order (Last created unit) to Orc Shaman - Purge (Picked unit) Custom script: call RemoveLocation(udg_TempPoint[2]) Custom script: call RemoveLocation(udg_TempPoint[1]) Custom script: call DestroyGroup(udg_TempGroup)