Warcraft III resources & community, 2003–2006 · archived

Need help on a trigger.

7 posts
#1

Need help on a trigger.

Say Player 1 builds a farm. Then every 3 seconds I want him to get +1 gold. Can someone post the triggers I need to use?
#2
Player one build building or something as the event, Condition: builiding is farm, then make a second trigger that's initially off. make it have a 3 second periodic event, then make the action set player one gold to (player one gold + 1). Then in the first trigger, make it turn that on.
#3
I don't get it. :roll:
#4
ummm i couldn't find the rules for this section because it said that they were outdated. But any ways here is what MobKing meant (i think):

Trigger 01
    Events
        Unit - A unit Finishes construction
    Conditions
        (Unit-type of (Triggering unit)) Equal to Farm
    Actions
        Trigger - Turn on Trigger 02 <gen>

initially on = unchecked

Trigger 02
    Events
        Time - Every 3.00 seconds of game time
    Conditions
    Actions
        Player - Add 1 to Player 1 (Red) Current gold
#5
Sorry but that wont work i think, well it would work but not the way he wants it because that would only work for one farm my guess he wants it like tree tags income system. I dont realy know how to do this but im guessing it takes some sort of variable knowledge
#6
Events
Every 3 seconds of game time
Conditions
(none)
Actions
Custom Script: set bj_wantDestroyGroup = true
Unit Group - Pick Every Unit of type Farm and do actions
Add 1 to Owner Of Picked Unit's Current Gold
#7
bj_wantdetroygroup=true is a little bit laggy bc it decrases the lagg and not terminates it.

More that you chose these option:
For each unit of type Farm 2 do Add 2 Gold to Owner of Picked unit current gold