Limited amount of workers/buildings

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

hermit17
Junior Member
Posts: 43
Joined: November 30th, 2008, 2:28 am

Limited amount of workers/buildings

Post by hermit17 »

How do you make like u want to hav only 2 buildings of tat kind and u cannot make more than 2 so wat is the triggering for it. Another example is vamp spd when they spawn workers how to set the maximum no. of workers spawned. pls teach me
User avatar
Syre
Forum Staff
Posts: 506
Joined: November 17th, 2008, 3:49 pm

Re: Limited amount of workers/buildings

Post by Syre »

Code: Select all

Untitled Trigger 001
    Events
        Time - Elapsed game time is 0.01 seconds
    Conditions
    Actions
        Player Group - Pick every player in (All players) and do (Player - Limit training of Town Hall to 1 for (Picked player))
Just change the Town Hall and the number to what you wish.
Image
hermit17
Junior Member
Posts: 43
Joined: November 30th, 2008, 2:28 am

Re: Limited amount of workers/buildings

Post by hermit17 »

i meant buildings to b limited not workers
EDITED: i understand
Last edited by hermit17 on December 24th, 2008, 2:06 am, edited 1 time in total.
User avatar
Syre
Forum Staff
Posts: 506
Joined: November 17th, 2008, 3:49 pm

Re: Limited amount of workers/buildings

Post by Syre »

Thats what i gave you, no? Re-read the trigger i showed, it says for town hall...the trigger i gave you works for both units and buildings..If you tried it the editor when selecting your building, it will show you the Units first, then the buildings underneath them..i'd give ya a screen shot of the trigger however at the moment i cant as that im on a different comp.

Event is..Player Group, Pick every unit..(something..sorry cant think of the top of my head(Not multiple functions)) then change the Action to Player - Limit training of unit(?). Then change the unit to what you want. It should come up with Heros First, Units Underneath, Then Buildings. Then change the unit number you want as max. And instead of (Triggering Player) change it to (Picked Player)..and you should have it..And for multiple buildings just copy and paste it and change the building accordinly.
Image
hermit17
Junior Member
Posts: 43
Joined: November 30th, 2008, 2:28 am

Re: Limited amount of workers/buildings

Post by hermit17 »

Ok it works thx