- Joined
- Aug 3, 2004
- Messages
- 2,877
The purpose of this spell is to locate any friendly unit with a buff and move it to a random point within a range of the caster. A special effect is created at both the starting and ending point of the moved unit.
Currently I get "cannot convert location to real"
Currently I get "cannot convert location to real"
-
Dark Mark Summon
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Dark Summoning
-
Actions
- Set Dark_Mark_Point_A = (Position of (Triggering unit))
- Set Dark_Mark_Group = (Units owned by (Owner of (Triggering unit)) matching (((Matching unit) has buff Dark Mark ) Equal to True))
-
Unit Group - Pick every unit in Dark_Mark_Group and do (Actions)
-
Loop - Actions
- Custom script: local unit Dark_Mark_Unit_A = GetEnumUnit()
- Set Dark_Mark_Point_B = (Dark_Mark_Point_A offset by (Random real number between 0.00 and 175.00) towards (Random angle) degrees)
- Custom script: call SetUnitX(Dark_Mark_Unit_A, udg_Dark_Mark_Point_B)
- Custom script: call SetUnitY(Dark_Mark_Unit_A, udg_Dark_Mark_Point_B)
- Custom script: set udg_Dark_Mark_Point_C = GetUnitLoc(Dark_Mark_Unit_A)
- Unit - Create 1 Dummy (Dark Mark) for Neutral Passive at Dark_Mark_Point_B facing Default building facing degrees
- Unit - Create 1 Dummy (Dark Mark) for Neutral Passive at Dark_Mark_Point_C facing Default building facing degrees
- Custom script: set Dark_Mark_Unit_A = null
- Custom script: call RemoveLocation (udg_Dark_Mark_Point_C)
- Custom script: call RemoveLocation (udg_Dark_Mark_Point_B)
-
Loop - Actions
- Custom script: call DestroyGroup(udg_Dark_Mark_Group)
- Custom script: call RemoveLocation (udg_Dark_Mark_Point_A)
-
Events