Super.Gnome
New Member
- Reaction score
- 0
Title says it all. I think it does, but I want to confirm it.
I mean player group, not unit group..... >.>
I think I should do it like this:
Trigger:
- DarkSideGetGold
- Events
- Unit - A unit owned by Player 10 (Light Blue) Dies
- Conditions
- Actions
- Player Group - Pick every player in (All allies of Player 3 (Teal)) and do (Actions)
- Loop - Actions
- If (DSP Equal to 1) then do (Player - Add 9 to (Picked player) Current gold) else do (If (DSP Equal to 2) then do (Player - Add 8 to (Picked player) Current gold) else do (If (DSP Equal to 3) then do (Player - Add 7 to (Picked player) Current gold) else do (If (DSP Equal to 4) then do (Player - Add 6 to (Picked player) Current gold) else do (...
- Loop - Actions
- Player Group - Pick every player in (All allies of Player 3 (Teal)) and do (Actions)
- Events
I mean player group, not unit group..... >.>
I think I should do it like this:
Trigger:
- DarkSideGetGold
- Events
- Unit - A unit owned by Player 10 (Light Blue) Dies
- Conditions
- Actions
- Set TempPGroup = (All allies of Player 3 (Teal))
- Player Group - Pick every player in TempPGroup and do (Actions)
- Loop - Actions
- If (DSP Equal to 1) then do (Player - Add 9 to (Picked player) Current gold) else do (If (DSP Equal to 2) then do (Player - Add 8 to (Picked player) Current gold) else do (If (DSP Equal to 3) then do (Player - Add 7 to (Picked player) Current gold) else do (If (DSP Equal to 4) then do (Player - Add 6 to (Picked player) Current gold) else do (
- Loop - Actions
- Custom script: call DestroyForce (udg_TempPGroup)
- Events