PDA

View Full Version : Trigger needed


Dayoh
09-15-2005, 7:50 PM
I need a trigger so when after you finished construction on a building a farm for example then you get 15 Gold every say 15Sec's

And what would be a trigger if you had multiple farms.

Zipsco
09-16-2005, 3:53 PM
I would surgest, that you make a trigger which stores the number of farms a player owns, then every time the "timer" goes off, then add the base amount multiplicided with the number of farms... for instance, a unit finish constructing a building, building equals to farm, set variable nr of farms = nr of farms + 1 (incrementing), and as "destructor" a building is destroyed (or something like that), building equal to farm, (decrement variable) set variable nr of farms = nr of farms - 1..... thats my idea, maybe others can do better... and sorry i don't have time to get the precise names of the triggers, or set them up nice, watching a movie (having a break) and i do not have war3tft installed on this computer. Hope it helpes... if you have some problems understanding this, just tell me what your having problems with and ill try to elaborate that part of the post.


Zipsco

hooded
09-16-2005, 4:47 PM
event-
every 15 seconds (periodic time event)

conditions
none

actions
player group-pick every player and do actions -
unit group-pick every unit of unit type <money farm> and do actions
player-add property- add 15 gold to <picked player>

or something like that

this gives every player 15 gold every 15 seconds for each farm they own.

Dayoh
09-17-2005, 2:58 AM
Thx for the help and by the way is their such thing as an image extractor for SC?

Zipsco
09-17-2005, 1:34 PM
:D and hooded goes for the rescue... guess you could do that insteed.... good work!

hooded
09-19-2005, 11:50 PM
yeah, its easier...btw, my friend is leeb is SC editing, and he could do it in paint...wether or not he had to convert the files, i am unsure of. Also, they may be in the mpq, so just use winMPQ or another mpq editor. Google it, or try some of the mpq editors at www.war3sear.ch (http://www.war3sear.ch)