Get % of Total Players Gold

Slayerxx

You can change this now in User CP.
Reaction score
3
I use GUI, but for this trigger im pretty sure its better to do it in jass then GUI. I just want to give the Owner of A hero A % of the total amount of gold every 12 seconds. i have defined 4 Local Integers, but i want to set say Integer A to the Total Amount of Gold for Player 1, and Integer B To be the Total Gold for Player 2...etc. How do i set this?
 

Dirac

22710180
Reaction score
147
This is an extremely simple operation, you don't need JASS for this silly thing
Trigger:
  • Untitled Trigger 001
    • Events
      • Time - Every 12.00 seconds of game time
    • Conditions
    • Actions
      • Player - Add (Integer(((Real((Player 1 (Red) Current gold))) x 0.05))) to Player 1 (Red) Current gold
In my example i'm adding 5% gold (0.05x)
 

Slayerxx

You can change this now in User CP.
Reaction score
3
Ha Oh well i Solved it sorry but thankyou anyway its gud 2 know how to do it in GUI now XD
 
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