Limited amount of workers/buildings
Moderator: Cheaters
-
- Junior Member
- Posts: 43
- Joined: November 30th, 2008, 2:28 am
Limited amount of workers/buildings
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
-
- Forum Staff
- Posts: 506
- Joined: November 17th, 2008, 3:49 pm
Re: Limited amount of workers/buildings
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))
-
- Junior Member
- Posts: 43
- Joined: November 30th, 2008, 2:28 am
Re: Limited amount of workers/buildings
i meant buildings to b limited not workers
EDITED: i understand
EDITED: i understand
Last edited by hermit17 on December 24th, 2008, 2:06 am, edited 1 time in total.
-
- Forum Staff
- Posts: 506
- Joined: November 17th, 2008, 3:49 pm
Re: Limited amount of workers/buildings
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.
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.
-
- Junior Member
- Posts: 43
- Joined: November 30th, 2008, 2:28 am