I want make this so a player can only warp-in/train/spawn 15 workers throughout the game.
I was fooling around with protoss and
I was able to limit the number of workers by going to: warp in probe ability > Info charge count max > I set this to 15 (max worker)
> Info charge start > i set this to the same as max (how many times i can use the ability)
> Info charge use > set it to 1 so it will count -1 from usage
All works neatly with 1 little bump!
If a worker dies the " Info charge use " wont count it as +1 to info charge use meaning I can only build 15 workers and if they all die I wont be able to replace them.
How do I fix this?
Hope I made sence... :)
Just make a requirement that compares the number of queued or better workers to be below 15 and add it to the train ability.
- compare 'less than'
- - - - - count 'probes' 'queued or better'
- - - - - constant '15'
Then add a small text like "max 15 workers" into the compare and you are done.
Thx a lot bud!
I added it and works great !
The only thing tho is when I add those digits (15/15/1) to the Info Charge the #15 will show up on the probe build icon and will count how many probes I built, now when i destroy 1 it wont show that I can build 1 more (only the number won't show, the icon goes colored from grayed ).
so it counts down the queued ones but wont count up if 1 killed.
Can u help me out ?
He was refering to a requirement under the Train type ability used to create them with a similar setup to that of the mothership limit.
Contribute to the wiki (Wiki button at top of page)
Considered easy altering of the unit textures?
For my public assets look here!
Use ONLY the requirement, don't use charges
Projects: Starmon - RuneCraft
But if I use Only the requirement the number wont show up on the icon.
If i add the charges than the counter is on the icon but if max charge is 15 and a have 15 workers than I kill 1, I cant make more regardless of requirement.
What I need is to somehow add 1 (for each killed worker) to max charge or a counter on the icon.
You would need a global Search Area effect on death that uses a Modify Unit effect like the vulture spider mine replenish. Still just using a requirement would be easier.
Also this would not work if you have more than one town center.
Well since this is a TD map I removed the supplies on all units .
But now I added (+) 15 to the town centers and -1 for probe/drone/SCV.
This way the supply count will show how many worker a player has, elliminating the need of the counter on the icon it self (and the requirement for that matter
but I still would like to see how its done outta curiosity :) )
Thx for your time and effort !!
Erm, rather pointless since requirements like the mothership and carrier interceptors rely on number of units not pop.
You must login to post a comment. Don't have an account? Register to get one!