Jougi
New Member
- Reaction score
- 2
How can i make a trigger that gives money of leaving player to his/her allies?
Well, I for one can. I'll attach it again, try loading it.
What does it say when you try to left click it (or have you tried left clicking it)? Is it even visible to you?
Money share
Events
Player - Player 1 (Red) leaves the game
Player - Player 2 (Blue) leaves the game
Player - Player 3 (Teal) leaves the game
Player - Player 4 (Purple) leaves the game
Player - Player 5 (Yellow) leaves the game
Player - Player 6 (Orange) leaves the game
Conditions
Actions
Set tmpMoney = ((Triggering player) Current gold)
Set tmpPlayerGroup = (All allies of (Triggering player))
Player Group - Pick every player in tmpPlayerGroup and do (Actions)
Loop - Actions
Player - Add (tmpMoney / (Number of players in tmpPlayerGroup)) to (Picked player) Current gold
Custom script: call DestroyForce(udg_tmpPlayerGroup)