-unlock give player current gold to allies

Aiden

Member
Reaction score
0
Events
Player - Player 1 (Red) types a chat message containing -unlock as An exact match
Player - Player 2 (Blue) types a chat message containing -unlock as An exact match
Player - Player 3 (Teal) types a chat message containing -unlock as An exact match
Player - Player 4 (Purple) types a chat message containing -unlock as An exact match
Player - Player 5 (Yellow) types a chat message containing -unlock as An exact match
Player - Player 6 (Orange) types a chat message containing -unlock as An exact match

Actions

Player Group - Pick every player in PlayerKITERS_DOWN and do (Actions)
Loop - Actions
Set GoldRedteam = (((Picked player) Current gold) / (Number of players in TeamRed[1]))
Game - Display to (All players) the text: (PlayerNames[(Player number of (Picked player))] + ( has be + Unlocked))

Player Group - Pick every player in TeamRed[1] and do (Actions)
Loop - Actions
Player - Add GoldRedteam to (Picked player) Current gold
---------
My question its this.
If i pick 5 players from Kiters_Down and then :set current gold of piked player ...
whats means exactly ?
if player 1 = 200 gold
2 = 300 gold
4 = 50 gold

The result will be 550 / number of Teamred[1] ?
 

Shadow

TH.net Regular
Reaction score
23
I'm not sure without seeing your variables and them being set

but isn't this what you want?

Code:
Unlock
    Events
        Player - Player 1 (Red) types a chat message containing -unlock as An exact match
        Player - Player 2 (Blue) types a chat message containing -unlock as An exact match
        Player - Player 3 (Teal) types a chat message containing -unlock as An exact match
        Player - Player 4 (Purple) types a chat message containing -unlock as An exact match
        Player - Player 5 (Yellow) types a chat message containing -unlock as An exact match
        Player - Player 6 (Orange) types a chat message containing -unlock as An exact match
    Conditions
    Actions
        Player Group - Pick every player in (All allies of (Triggering player)) and do (Actions)
            Loop - Actions
                Player - Add (((Triggering player) Current gold) / (Number of players in (All allies of (Triggering player)))) to (Picked player) Current gold
 

Aiden

Member
Reaction score
0
I'm not sure without seeing your variables and them being set

but isn't this what you want?

Code:
Unlock
    Events
        Player - Player 1 (Red) types a chat message containing -unlock as An exact match
        Player - Player 2 (Blue) types a chat message containing -unlock as An exact match
        Player - Player 3 (Teal) types a chat message containing -unlock as An exact match
        Player - Player 4 (Purple) types a chat message containing -unlock as An exact match
        Player - Player 5 (Yellow) types a chat message containing -unlock as An exact match
        Player - Player 6 (Orange) types a chat message containing -unlock as An exact match
    Conditions
    Actions
        Player Group - Pick every player in (All allies of (Triggering player)) and do (Actions)
            Loop - Actions
                Player - [B]Add (((Triggering player) Current gold)[/B] / (Number of players in (All allies of (Triggering player)))) to (Picked player) Current gold
I want to unlock a leaver player.
and current gold / to his allies.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top