• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Some Day I'll Have Money, Money isn't easy come by...

Status
Not open for further replies.
  • Events
    • Time - Every 10 seconds of Game time
  • Actions
    • Player Group - Pick Evey Player in All Players and do
      • Do - Actions
        • Custom script:set bj_wantdestroygroup = true
        • Unit Group - Pick every unit owned by Picked Player matching UnitTyped of Matching unit is equal to YourGoldStructure and do
          • Do - Actions
            • Player - Add 5 gold to PickedPlayer
as for the increasing gold, its doable too but I'm kinda tired an need to rest...
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Untitled Trigger 012
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to Farm) and (((Matching unit) is alive) Equal to True))) and do (Actions)
        • Loop - Actions
          • Player - Add 10 to (Owner of (Picked unit)) Current gold
          • Floating Text - Create floating text that reads |cffffcc00+10|r above (Picked unit) with Z offset 0.00, using font size 10.00, color...
          • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
          • Floating Text - Change (Last created floating text): Disable permanence
          • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
          • Floating Text - Change the fading age of (Last created floating text) to 1.50 seconds
^Adiktuz, you need to filter out dead units :)

One could also use a dynamic group instead of creating/destroying new ones.
 
as for the increasing gold, its doable too but I'm kinda tired an need to rest...
Set variable base value to 10 then below all trigger actions increase it's value by some amount (1 for example, x = x + 1), don't forget to use that variable in trigger [Player - Add x to (Owner of (Picked unit)) Current gold]

This way you will add gold to player in this way:
1st time = 10 gold
2nd time = 11 gold
3rd time = 12 gold
...

You can use real numbers, or any other math functions to do things like this:
1st 5 times = 10 gold
another 5 times (or 6 times) = 11 gold
and so on

Just don't forget to convert variable to integer :p
 
Status
Not open for further replies.
Top