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.
    [2026-8-11. : 4:44 am]
    Zycorax -- :wob:
    [2026-8-11. : 2:30 am]
    Symmetry -- :wob:
    [2026-8-10. : 1:36 am]
    Moose -- Thinking on it more, I vaguely remember it being annoying because it kept repeating some short loop of the Super Mario World theme LMAO
    [2026-8-10. : 12:57 am]
    Oh_Man -- I thought i remembered an old mario map but i searched super mario starcraft on utube and i couldnt see anything cept UMS
    [2026-8-09. : 11:40 pm]
    lil-Inferno -- Blizzard forgot about SC so it's okay
    [2026-8-09. : 7:04 pm]
    Symmetry -- malware maps for everyone
    [2026-8-09. : 7:03 pm]
    Moose -- probs lmao
    [2026-8-09. : 6:57 pm]
    Symmetry -- (and will be patched)
    [2026-8-09. : 6:56 pm]
    Symmetry -- The old stuff would've gotten patched no? this is current
    [2026-8-09. : 6:55 pm]
    Moose -- Just made? I thought we had that years ago
    Please log in to shout.


    Members Online: jun3hong, RIVE