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:53 am]
    Ultraviolet -- :lol:
    [06:51 pm]
    Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
    [06:50 pm]
    NudeRaider -- Vrael
    Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
    sounds like moisture control is often a pressing concern in your city
    [06:50 pm]
    Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
    [06:49 pm]
    Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
    [06:48 pm]
    Vrael -- On this Topic, I could definitely use some Introductions.
    [06:48 pm]
    Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
    [06:47 pm]
    Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
    [06:45 pm]
    NudeRaider -- Vrael
    Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
    beats me, but I'd make sure to pick the epitome of excellence and nothing less.
    [06:41 pm]
    Vrael -- It seems like I may need Introductions to multiple companies for the Topics that I care deeply about, even as early as Today, 6:03 am.
    Please log in to shout.


    Members Online: jun3hong, Roy, Dem0n