I_RULE_YOU
New Member
- Reaction score
- 34
I'm trying to have an aura that slowly draws in enemy heroes, and when I try to enable the trigger I get a popup window highlighting:
And telling me it expected a variable name. Heres the complete trigger below:
This is probably a simple problem, but it has dumbfounded me. What should I do?
Code:
set x = GetLocationX(udg_Grudge5)
And telling me it expected a variable name. Heres the complete trigger below:
Code:
Grudge Aura
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Custom script: local real x
Custom script: local real y
Set GrudgeGroup = (Units in ALLREGION matching (((Level of Grudge Aura for (Matching unit)) Greater than 0) and (((Matching unit) is alive) Equal to True)))
Unit Group - Pick every unit in GrudgeGroup and do (Actions)
Loop - Actions
Set Grudge1 = (Picked unit)
Set Grudge2 = (Position of Grudge1)
Set Grudge3 = (Units within 900.00 of Grudge2 matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) belongs to an enemy of (Owner of Grudge1)) Equal to True) and (((Matching unit) is A Hero) Equal
Unit Group - Pick every unit in Grudge3 and do (Actions)
Loop - Actions
Set Grudge4 = (Position of (Picked unit))
Set Grudge5 = (Grudge4 offset by (10.00 x (Real((Level of Grudge Aura for Grudge1)))) towards (Angle from Grudge4 to Grudge2) degrees)
Custom script: set x = GetLocationX(udg_Grudge5)
Custom script: set y = GetLocationY(udg_Grudge5)
Custom script: call SetUnitX(GetEnumUnit(),x)
Custom script: call SetUnitY(GetEnumUnit(),y)
Custom script: call RemoveLocation(udg_Grudge4)
Custom script: call RemoveLocation(udg_Grudge5)
Custom script: call DestroyGroup(udg_Grudge4)
Custom script: call RemoveLocation(udg_Grudge1)
Code:
Grudge AuraB
Events
Map initialization
Conditions
Actions
Set ALLREGION = (Playable map area)
This is probably a simple problem, but it has dumbfounded me. What should I do?