The last line gives me 'expected a name' error.
Trigger:
- Events
- Unit - A unit Dies
- Actions
- Custom script: local integer r
- For each (Integer A) from 1 to 12, do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Prm_RegnBase[(Integer A)] contains (Dying unit)) Equal to True
- Then - Actions
- Custom script: set r = GetForLoopIndexA()
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Set Tmp_UG = (Units within 1440.00 of (Position of (Triggering unit)) matching ((((Matching unit) belongs to an ally of (Owner of (Triggering unit))) Equal to False) and ((((Matching unit) is in Prm_UG_ClckAlph) Equal to True) and (((Matching unit) is in Prm_UG_ClckSpwn)
- Unit Group - Pick every unit in Tmp_UG and do (Actions)
- Loop - Actions
- Custom script: call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(udg_Prm_RegnJnct[r]) )
- Loop - Actions