- Joined
- Nov 13, 2010
- Messages
- 254
hey hive.
i made a spell Ensnare AOE. and i need need help to utilizing it and fixing leaks on it.
that my coding skills is not that good
i made a spell Ensnare AOE. and i need need help to utilizing it and fixing leaks on it.
that my coding skills is not that good
-
Ensnare AOE
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Ensnare
-
Actions
- Set VariableSet Ensnare_AOE = (Units within 400.00 of (Target point of ability being cast) matching (((Matching unit) belongs to an enemy of (Triggering player).) Equal to True).)
- Set VariableSet Ensnare_Targetpoint = (Target point of ability being cast)
- Set VariableSet Ensnare_TargetUnit = (Target unit of ability being cast)
-
Unit Group - Pick every unit in Ensnare_AOE and do (Actions)
-
Loop - Actions
- Unit - Create 1 Ensnare Dummy for (Owner of (Casting unit)) at (Target point of ability being cast) facing Default building facing degrees
- Unit - Add Ensnare AOE to (Last created unit)
- Unit - Set level of Ensnare AOE for (Last created unit) to (Level of Ensnare for (Triggering unit))
- Unit - Order (Last created unit) to Orc Raider - Ensnare (Picked unit)
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-
Loop - Actions
- Unit - Remove (Last created unit) from the game
-
Unit Group - Pick every unit in (Units within 380.00 of Ensnare_Targetpoint matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of Caster).) Equal to True))).) and do (Actions)
-
Loop - Actions
- Unit - Cause Caster to damage (Picked unit), dealing (Real((Intelligence of Caster (Include bonuses)))) damage of attack type Spells and damage type Normal
-
Loop - Actions
- Custom script: call DestroyGroup(udg_Ensnare_AOE)
- Custom script: set bj_wantDestroyGroup = true
-
Events