- Joined
- Dec 21, 2008
- Messages
- 766
[trigger=Colossal Might]
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Colossal Might
Actions
Set CM_Hero = (Triggering unit)
Set CM_Point[1] = (Position of (Triggering unit))
Set CM_Real[1] = 600.00
Set CM_Inter[1] = (Level of Colossal Might for CM_Hero)
Set CM_Unit_Group = (Units within CM_Real[1] of CM_Point[1] matching (((Picked unit) belongs to an enemy of (Owner of CM_Hero)) Equal to True))
Unit Group - Pick every unit in CM_Unit_Group and do (Actions)
Loop - Actions
Unit - Create 1 Dummy for (Owner of CM_Hero) at CM_Point[1] facing (1.00 + 1.00) degrees
Set CM_Dummy = (Last created unit)
Unit - Set level of Storm Bolt for CM_Dummy to CM_Inter[1]
Unit - Add a 0.50 second Generic expiration timer to CM_Dummy
Unit - Order CM_Dummy to Human Mountain King - Storm Bolt (Picked unit)
Custom script: call RemoveLocation(udg_CM_Point[1])
Custom script: call DestroyGroup(udg_CM_Unit_Group)[/trigger]
Never mind, I fixed it Took a while tho.
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Colossal Might
Actions
Set CM_Hero = (Triggering unit)
Set CM_Point[1] = (Position of (Triggering unit))
Set CM_Real[1] = 600.00
Set CM_Inter[1] = (Level of Colossal Might for CM_Hero)
Set CM_Unit_Group = (Units within CM_Real[1] of CM_Point[1] matching (((Picked unit) belongs to an enemy of (Owner of CM_Hero)) Equal to True))
Unit Group - Pick every unit in CM_Unit_Group and do (Actions)
Loop - Actions
Unit - Create 1 Dummy for (Owner of CM_Hero) at CM_Point[1] facing (1.00 + 1.00) degrees
Set CM_Dummy = (Last created unit)
Unit - Set level of Storm Bolt for CM_Dummy to CM_Inter[1]
Unit - Add a 0.50 second Generic expiration timer to CM_Dummy
Unit - Order CM_Dummy to Human Mountain King - Storm Bolt (Picked unit)
Custom script: call RemoveLocation(udg_CM_Point[1])
Custom script: call DestroyGroup(udg_CM_Unit_Group)[/trigger]
Never mind, I fixed it Took a while tho.
Last edited: