Need help with trigger!

Jougi

New Member
Reaction score
2
How can i make a trigger that gives money of leaving player to his/her allies?
 
Reaction score
65
Well, I for one can. I'll attach it again, try loading it.
 

Attachments

  • spoils of war.w3x
    17 KB · Views: 77
Reaction score
65
What does it say when you try to left click it (or have you tried left clicking it)? Is it even visible to you?
 
K

KiD-X

Guest
lol this is prolly a bad way of doing it but create a real variable for each player and set the variable every 2 seconds equal to the players gold, with the condition that the user is still in the game. Then set a trigger so when a player leaves add to each player "variable/number of players" gold. Make sense?
 

Jougi

New Member
Reaction score
2
What does it say when you try to left click it (or have you tried left clicking it)? Is it even visible to you?

It says

We're sorry, but you may not access the requested page. Possible causes are:

* only selected computers are allowed to access this resource
* the directory is not freely accessible
* the document you're trying to access doesn't exist and the server can't provide alternative content

We apologize for the inconvenience.

If you're entitled to access this document and the problem persists, you may contact us in order to get your issue resolved.
 

Bjerrum

New Member
Reaction score
12
Do like this:

Code:
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)
(NOTE: it is not tested)

hope it helps :)
 
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