Squeekems
TH.net Regular
- Reaction score
- 11
How do I refer to "[ljass]((Player number of (Owner of (Triggering unit))[/ljass]" in jass? I came to the last line in this trigger, and realized I have no idea how to refer to it. Plus rep for this quick tip. <(o_- )>
Trigger:
- Barracks
- Events
- Unit - A unit Finishes construction
- Conditions
- (Unit-type of (Triggering unit)) Equal to Barracks
- Actions
- Set TempGroup[((Player number of (Owner of (Triggering unit))) - 1)] = (Units owned by (Owner of (Triggering unit)) of type Barracks)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- BarracksMax[((Player number of (Owner of (Triggering unit))) - 1)] Greater than or equal to (Number of units in TempGroup[((Player number of (Owner of (Triggering unit))) - 1)])
- Then - Actions
- Set TempGroup[((Player number of (Owner of (Triggering unit))) - 1)] = (Units owned by (Owner of (Triggering unit)) of type WorkerType[((Player number of (Owner of (Triggering unit))) - 1)])
- Else - Actions
- If - Conditions
- Custom script: call DestroyGroup(udg_TempGroup[0])
- Events