Gold Share

Kebabnisse

New Member
Reaction score
1
Okay, so this is my last question, how do i make gold share for 2 players?
I'm making a TD for me and my brother and he wants gold share

Is it even possible?

Explain easy thx xD
 

rApp

New Member
Reaction score
3
Ofcourse it´s possible.
Just create a trigger which run when a monster die.
In this trigger ju save the amount of gold you want to give and devide it on how many players there are.
Then you just "Add property" or what it´s called.

EDIT:
Some misspelling :p
 

Xorifelse

I'd love to elaborate about discussions...........
Reaction score
87
Have you considered sharing gold when making buildings, or units in general actually.

Sharing gold is kinda hard to do, because there is no function in Jass ( language behind the trigger editor ) that returns the units cost of gold/lumber.
There are other ways to get the accurate data, but is considered pretty slow.

Otherways is to throw all the costs of units into variables and completely trigger the costs of buying units, which is currently your best way of doing this.
 

Charapanga

New Member
Reaction score
46
I would suggest making a trigger that runs when a unit is killed and adds a specific amount of gold to both players.
Alongside that trigger you would make a trigger that when a player constructs a building a fee would be deducted from both players.
 
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