Trigger:
- Set Ward1[((Number of units in (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to Sentry Ward) and (((Owner of (Triggering unit)) is in Team1) Equal to True)))) + 1)] = (Triggering unit)
Whenever I try saving the map, there's an error that says "Expected a function name." This is the line in jass
JASS:
set udg_Ward1[( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Wards2_Func001Func003001001001002))) + 1 )] = GetTriggerUnit()