SC2Mapster Forums

Development > Data

(Solved?) how to limit number of workers

  • 9 posts
    #1 Nov 14, 2012 at 04:34 UTC - 0 likes

    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... :)

    Last edited Nov 14, 2012 by ElBushido
    #2 Nov 14, 2012 at 05:03 UTC - 1 like

    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.

    Last edited Nov 14, 2012 by Ahli634

    http://img42.imageshack.us/img42/7586/signaturemj.jpg

    #3 Nov 14, 2012 at 07:08 UTC - 0 likes

    @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 ?

    Last edited Nov 14, 2012 by ElBushido
    #4 Nov 14, 2012 at 21:50 UTC - 0 likes

    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.

    #5 Nov 14, 2012 at 22:29 UTC - 0 likes

    @ElBushido: Go

    Use ONLY the requirement, don't use charges

    Projects: Starmon - RuneCraft
    http://i.imgur.com/1jpXAne.png

    #6 Nov 15, 2012 at 17:59 UTC - 0 likes

    @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.

    • SC2_2012-11-15_12-49-47-98.jpg
      No counter on probe icon
    • SC2_2012-11-15_12-51-40-73.jpg
      Counter on probe icon
    #7 Nov 15, 2012 at 22:30 UTC - 0 likes

    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.

    #8 Nov 15, 2012 at 23:53 UTC - 0 likes

    @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 !!

    Last edited Nov 15, 2012 by ElBushido
    #9 Nov 16, 2012 at 22:12 UTC - 0 likes

    Erm, rather pointless since requirements like the mothership and carrier interceptors rely on number of units not pop.

  • 9 posts

You must login to post a comment. Don't have an account? Register to get one!