I put together this shared bounty trigger with the intention to Share the bounty of killed units from player12 between 4 players and should divert 80% of the total income from killing player to player 9, then distribute that at 4 gold to 1 gold for each of the players. I did something wrong, not sure if it's due to solo testing but i'm pretty sure it shouldnt sometimes give me 4 gold, sometimes 1, sometimes 3 ect...
Ive seen similar posts but didnt find anything that would solve my issue, if all else fails i will try using this Shared Bounty: How to do it?
Can someone please take a few minutes to look at the triggers (they are short) and tell me where i went wrong?
Ive seen similar posts but didnt find anything that would solve my issue, if all else fails i will try using this Shared Bounty: How to do it?
Can someone please take a few minutes to look at the triggers (they are short) and tell me where i went wrong?
-
Player Counter
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


Player Group - Pick every player in (All players) and do (Actions)
-



Loop - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






((Picked player) controller) Equal to User
-
-





Then - Actions
-






Player Group - Add (Picked player) to ActivePlayerGroup
-






Set VariableSet ActivePlayerCount = (ActivePlayerCount + 1)
-
-





Else - Actions
-






Do nothing
-
-
-
-
-
-
-
Shared Income Choice
-

Events
-


Dialog - A dialog button is clicked for BlitzVoteWindow
-
-

Conditions
-


(Triggering player) Equal to Player 1 (Red)
-
-

Actions
-


Dialog - Clear DialogMenu
-


Dialog - Change the title of DialogMenu to |cff808080I|r|cff79...
-


Dialog - Create a dialog button for DialogMenu labelled |cffd45e19S|r|cffd7...
-


Set VariableSet DialogButtonAr[0] = (Last created dialog Button)
-


Dialog - Create a dialog button for DialogMenu labelled |cff800080U|r|cff88...
-


Set VariableSet DialogButtonAr[1] = (Last created dialog Button)
-


Dialog - Show DialogMenu for Player 1 (Red)
-


Dialog - Clear (Clicked dialog)
-
-
-
Shared Income Active
-

Events
-


Dialog - A dialog button is clicked for DialogMenu
-
-

Conditions
-


(Clicked dialog button) Equal to DialogButtonAr[0]
-
-

Actions
-


Game - Display to (All players) the text: ------>Shared Incom...
-


Player - Set Player 9 (Gray).Current gold to 0
-


Player Group - Pick every player in ActivePlayerGroup and do (Actions)
-



Loop - Actions
-




Player - Divert 80% of the Gold income of (Picked player) to Player 9 (Gray)
-
-
-
-
-
Shared income Distribution
-

Events
-


Player - Player 9 (Gray)'s Current gold becomes Greater than or equal to 4.00
-
-

Conditions
-

Actions
-


Set VariableSet GoldDistribution = ((Player 9 (Gray) Current gold) / ActivePlayerCount)
-


Player Group - Pick every player in ActivePlayerGroup and do (Actions)
-



Loop - Actions
-




Player - Add GoldDistribution to (Picked player).Current gold
-
-
-


Player - Set Player 9 (Gray).Current gold to 0
-
-

