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.
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.
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.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
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 :) )
Hello all!
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.
Use:
- 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.
@Ahli634: Go
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?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@ElBushido: Go
Use ONLY the requirement, don't use charges
@TheAlmaity: Go
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.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
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.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg