Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Health System Capping
Health System Capping
Sep 26 2013, 10:58 pm
By: sugarrushx  

Sep 26 2013, 10:58 pm sugarrushx Post #1



So, I'm making a health system for an RPG map I'm making.
It utilizes Health Orbs (represented by Crystals) used to recover health.
Health is represented by vespene gas so I could subtract or add health AT WILL!
I want to cap the health so you can't go above limit, but it's not working.
Is there something wrong with the triggers?

The idea is that an unused player (Player 9) has 50 gas, which is the highest health I want the player (Player 1) to go.
To test if Player 1 went over the limit, I check if Player 1 has the most gas in the game. If so, I set Player 1's gas to 50.
Health Orbs work by getting an SCV and moving it to a location in another platform (which is the inventory). When it is moved there, it will add 10 gas to the player.
Trigger
Players
  • Player 8
  • Conditions
  • Always.
  • Actions
  • Set gas for Player 9 to 50.

  • Trigger
    Players
  • Player 1
  • Conditions
  • Current player has most gas.
  • Actions
  • Set gas for Player 1 to 50.

  • Thank you for reading this longer than necessary description.



    None.

    Sep 26 2013, 11:03 pm lil-Inferno Post #2

    Just here for the pie

    Player 9 can't have gas. You'll have to settle for the simpler solution of checking if player 1 has over 50 gas.




    Sep 26 2013, 11:09 pm Roy Post #3

    An artist's depiction of an Extended Unit Death

    Is there any reason you couldn't do a simpler method like Inferno says, using the "Accumulate" condition?

    Trigger
    Players
  • Player 1
  • Conditions
  • Current Player accumulates at least 51 gas.
  • Actions
  • Modify resources for Current Player: set to 50 gas.
  • Preserve Trigger.





  • Sep 27 2013, 12:07 am sugarrushx Post #4



    Oops. I din't see that option... :blush:



    None.

    Options
      Back to forum
    Please log in to reply to this topic or to report it.
    Members in this topic: None.
    [01:57 pm]
    Oh_Man -- SEN is kinda like, a place wher u can be pretty much gauranteed u talking to a millenial, prob born around the early 1990s, its like a time capsule
    [01:05 pm]
    NudeRaider -- well he is calling himself weirdo...
    [03:25 am]
    Symmetry -- the best part is that he perfectly summed up SEN's discord
    [03:12 am]
    Ultraviolet -- WeirdoX4857
    WeirdoX4857 shouted: Nigga how you ask is it still going strong when you get a text every 3 miles per hour or something
    Joined: Yesterday, 12:08 pm Last Active: Yesterday, 12:14 pm , truly a glorious 6 minutes.
    [03:11 am]
    Ultraviolet -- :lol:
    [2026-9-29. : 2:43 am]
    Symmetry -- I'm doing my best, damn it
    [2026-9-28. : 4:46 pm]
    Ultraviolet -- @:@
    @:@ shouted: this community still going strong?
    Still going.. strong is debatable though.
    [2026-9-28. : 4:13 pm]
    WeirdoX4857 -- I can't believe this is really been around since 2003 but it does look classic and old asf still better than talking to kids on discord ranting about skibidi toilet and sexuality or whatever mental illness is going on in their heads
    [2026-9-28. : 4:11 pm]
    WeirdoX4857 -- Nigga how you ask is it still going strong when you get a text every 3 miles per hour or something
    [2026-9-28. : 4:10 pm]
    WeirdoX4857 -- Where is everybody
    Please log in to shout.


    Members Online: Wing Zero, Oh_Man