wc3 editor help - Gold of killing "creeps" + gold each second?

wrseb

New Member
Reaction score
1
Hello! I'm making my own map, so yeah I made a shop :) Now I need some gold for the players to buy from the shops. So the map is like:
Its a small (32x32) square, and in the top, bottom, left and right theres spawning creeps. Well, these creeps goes into the middle where they fight each other AND vs A huge 500,000hp granite golem. Each top,bottom,left and right got a health fountain where the creeps spawn. Well, thats fountain also sells stuff. So the players needs gold to buy.

I need two ways to get gold:

1. Each "creep" (it's footmens) gives x gold. How do I do that? The bounty-function in the object editor doesn't work... Do I have to add something else too?

2. I got the 2 by myself, thanks :D It was trigger, timed event (each 1. second) add x gold to player 1 (red) current gold :)


Please help, thanks :D
 

Sjaakje

New Member
Reaction score
9
The bounty function will work when you enable it via a trigger line.
Player - Turn Player Flag On/Off
Then change that to Turn Gives Bounty On for >Footmen Owner<
Do it for all players that own footmen.
 

Sevion

The DIY Ninja
Reaction score
413
Or do a loop...

Trigger:
  • Player - Turn Gives Bounty On for (Player (Integer A))
 

wrseb

New Member
Reaction score
1
:S Didn't get it to work.

At where you said "footmen owner" I did player 1 (red), (next trigger>) player 28blue) and so on...

Is that wrong? Or do I have to add "Turn on (This Trigger)" too? :)
 

Sjaakje

New Member
Reaction score
9
Unless you made the trigger initially off, you shouldnt have to turn it on.
Post your entire trigger please.
 

wrseb

New Member
Reaction score
1
Sorry, here :) :
Emm.. didn't figure out how..... I know the tags but... Lol... I try:
Trigger:
  • Player - Turn Gives bounty On for Player 1 (Red)
    • Player - Turn Gives bounty On for (Owner of Footman 0024 &lt;gen&gt;)


Lol :p I wrote it :S Maybe a picture wud be better... Tell me how to do that please >.< Im pretty new to this forum :)

EDIT: Oh jeez it worked :D Except that one thing... Oh well :)


^Thats all the 2 codes I have for the units of player red. I got the same codes for blue, teal and purple too, except the footmen's number is changed and player 2 blue etc is changed :p
 

Sevion

The DIY Ninja
Reaction score
413
What are you doing that for?

Trigger:
  • For each (Integer A) from 1 to 12, do (Actions)
    • Loop - Actions
      • Player - Turn Gives bounty On for (Player((Integer A)))
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top