• 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.

tigger-gold per sek

Status
Not open for further replies.
Level 15
Joined
Jun 28, 2007
Messages
1,424
hm... so

I butil a tower and i get 100 gold per second
the tower is destroyed and i stop getting gold

easy, you are using 3 triggers
For Refrence # is Number
$ is a string(text)

  • Gold Tower Give
    • Events
      • Time - Every #NumberForTime# seconds of game time
    • Conditions
    • Actions
      • Player - Add #Some Gold# to $Some Player$ Current gold
Make Gold Tower Give off by uncheing the initially on check box
Then add
  • Turn On Gold
    • Events
      • Unit - A unit Finishes construction
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to $some unit$
    • Actions
      • Trigger - Turn on Gold Tower Give <gen>
this and
  • Turn On Gold
    • Events
      • Unit - A unit Finishes construction
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to $some unit$
    • Actions
      • Trigger - Turn on Gold Tower Give <gen>
this
(i want rep)

and dude get firefox
 
Level 35
Joined
Oct 9, 2006
Messages
6,394
hm... so

I butil a tower and i get 100 gold per second
the tower is destroyed and i stop getting gold

easy, you are using 3 triggers
For Refrence # is Number
$ is a string(text)

  • Gold Tower Give
    • Events
      • Time - Every #NumberForTime# seconds of game time
    • Conditions
    • Actions
      • Player - Add #Some Gold# to $Some Player$ Current gold
Make Gold Tower Give off by uncheing the initially on check box
Then add
  • Turn On Gold
    • Events
      • Unit - A unit Finishes construction
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to $some unit$
    • Actions
      • Trigger - Turn on Gold Tower Give <gen>
this and
  • Turn On Gold
    • Events
      • Unit - A unit Finishes construction
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to $some unit$
    • Actions
      • Trigger - Turn on Gold Tower Give <gen>
this
(i want rep)

and dude get firefox

One of those should be:
  • Turn Off Gold
    • Events
      • Unit - A unit dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to $some unit$
    • Actions
      • Trigger - Turn off Gold Tower Give <gen>
and yes would work for all.
 
Status
Not open for further replies.
Top