Staredit Network > Forums > SC1 Mapping Tools > Topic: StarEdit
StarEdit
Nov 17 2020, 2:05 pm
By: juallere  

Nov 17 2020, 2:05 pm juallere Post #1



Hi.
Anyone know how to show the number of workers, I have this.

Players
All

Condition:
Always

Action: (Leader Board:Control)
Show Leader Board for most control of Drone- Display Drone
wait
Show Leader Board for most control of VCE - Display VCE
wait
Show Leader Board for most control of Probe - Display Probe
wait

But it shows all the players what the others have
I would like it individually



None.

Nov 17 2020, 2:12 pm IlyaSnopchenko Post #2

The Curious

Add the action "Leaderboard Computer Players (State)", set to "disabled".



Who am I, and why should I care?

Nov 17 2020, 5:45 pm GGmano Post #3

Mr.Pete-Tong

You cant individualize leaderboard without using euds.. theres some other threads on how to do this roy made an good explaining to me a year ago or so.

But if you want to use euds you need eud editor2 or 3 and other stuff to i think. So if you wanna go this way i can search to find the thread on how to do this with euds for you..

Heres short explaining on how to do it if need more you can ask roy individualized leaderboard

Post has been edited 1 time(s), last time on Nov 17 2020, 5:53 pm by GGmano.



Trust is everything

Nov 18 2020, 11:48 am NudeRaider Post #4

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

There's also a way without EUDs. It requires a lot of conventional triggers. The idea is to have a trigger system that can count the number of workers and put the result in custom score and then display that. This assumes you don't care about the race of workers (but can be easily modified to only show a certain worker type).

As for counting there's 2 ways:
a) Binary Countoffs
b) One trigger for every possible number of workers

a) Uses only a few triggers (e.g. 7 instead of 100). But you need to give the workers from one player to another as often as you want to refresh the count. This deselects any selected workers, which becomes an issue if you want to build something with it, and potentially other side effects.

I recommend b) since a) is probably not practical. Use a trigger duplicator or another.

So what you do is have a lot of triggers that look like this:
Player has 1 worker
Players

  • Player Force (or whoever you need it to run for)
  • Conditions

  • Current Player Commands exactly 1 worker
  • Actions

  • Set Current Player Custom Score to 1
  • Preserve Trigger


  • Player has 2 workers
    Players

  • Player Force (or whoever you need it to run for)
  • Conditions

  • Current Player Commands exactly 2 workers
  • Actions

  • Set Current Player Custom Score to 2
  • Preserve Trigger


  • ... up until however many workers you can possibly have (e.g. 100)

    Player has 100 workers
    Players

  • Player Force (or whoever you need it to run for)
  • Conditions

  • Current Player Commands exactly 100 workers
  • Actions

  • Set Current Player Custom Score to 100
  • Preserve Trigger





  • Nov 18 2020, 7:05 pm GGmano Post #5

    Mr.Pete-Tong

    Quote from NudeRaider
    Collapse Box
    And a trigger to show custom score in leaderboard? i assume you can max have 1 individualized custom score show for players than if im correct? idk i tryid many things with leaderboard but it always showed score for all players only computer players you can leave out from the leaderboard. also in my ds map i have custom score shown on leaderboard too but it shows all players customs score. so im not fully sure if your correct in the possibilty to show only 1 players score in the leaderboard but your probaly right.. ive only done this with euds tho.. The way i see your triggers is that if player 1 owns 4 workers and player 2 owns 8 workers, than you can have a leaderboard showing 4 p1(redplayer) 8p2(blue) for both players correct me if im wrong but thats still not individualized shown for each player. i think he wants player 1 to only see the amount of workers player 1 have on leaderboard and player 2 to only see the amount of workers player 2 have and i beleive this is not possible without euds.

    Post has been edited 1 time(s), last time on Nov 18 2020, 8:27 pm by NudeRaider.



    Trust is everything

    Nov 18 2020, 8:32 pm NudeRaider Post #6

    We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

    I see. Yeah I assumed he wants show everyone's worker count to everyone.




    Nov 18 2020, 8:54 pm GGmano Post #7

    Mr.Pete-Tong

    Quote from juallere
    But it shows all the players what the others have
    I would like it individually

    from my understanding he wants it to be shown for only for one player. and that as far as i know is only possible with euds



    Trust is everything

    Options
      Back to forum
    Please log in to reply to this topic or to report it.
    Members in this topic: None.
    [11:19 pm]
    Vrael -- only downside is occasionally I travel for work, so in a week I'll be venturing out into the COVID-ridden world
    [11:18 pm]
    Vrael -- mostly same for me, I was full time telecommute before COVID hit so nothing changed :D
    [09:46 pm]
    jjf28 -- ya, covid only a mild inconvenience for me; urges to do things I can't have largely subsided
    [09:19 pm]
    Centreri -- As a software engineer, I got really lucky with coronavirus. Smooth transition to remote work, not too much pressure, time to game
    [09:18 pm]
    Centreri -- I've started playing SCII with my brother recently again! Quite a lot, I'm not very good. custom maps in SCII are so bad though
    [07:51 pm]
    Vrael -- actually played some starcraft this weekend without feeling like I needed to be working, was a good feeling
    [07:50 pm]
    Vrael -- Centreri
    Centreri shouted: so how you doing vrael
    doing good man, finally got a handle on work after like 3 months of busting my ass
    [07:15 pm]
    Moose -- smart talk do be dead tbh
    [06:36 pm]
    jjf28 -- well we talk on discord... not really as intellectuals :P
    [06:02 pm]
    Centreri -- so how you doing vrael
    Please log in to shout.


    Members Online: Roy, topg2020, TheSophomancer