SC2Mapster Forums

Development > Triggers

HELP - Actor Set Tint to Life Percentage

  • 10 posts
    #1 Nov 25, 2012 at 06:00 UTC - 0 likes

    Solved!

    What I had to do was instead of adding Red to the unit's actor I had to removed Green and Blue from the actor. This is the trigger:

    Original Post

    I am wanting to set the tint of an actor dependent on the life percentage of the unit. An example would be a unit has 100% life and will appear to be of normal coloring and tint. If that unit takes damage enough to bring them down to 99% they get a 1% red tint. Each percent gives them another 1% of red tint. Would this be possible?

    Updates

    Quote from finiteturtles: Go

    There are trigger conditions for when a unit takes damage. There are actions which set the tint of actors...

    Don't see why not.

    I have tried that but a different event because units will be able to regenerate health. It is a Unit Property Changes event.

    Quote from DogmaiSEA: Go

    Did you actually even try to do this or did you just post a theory question?

    Yes it is entirely possible, and yes you would it like said above.

    I tried, but when I did set the tint it could not compare to the life percentage. "...you would it like said above." And you are cocky to me. Anyways, I will try to do some sort of Unit Life Changes because of the reasoning above and do some kind of Repeat for a number that is the percentage lost or something.

    I have tried what is below but it changes the HDR which I want the 100% changed under the Color line.

    Last edited Nov 26, 2012 by admielke
    #2 Nov 25, 2012 at 08:39 UTC - 0 likes

    There are trigger conditions for when a unit takes damage. There are actions which set the tint of actors...

    Don't see why not.

    #3 Nov 25, 2012 at 10:27 UTC - 0 likes

    Did you actually even try to do this or did you just post a theory question?

    Yes it is entirely possible, and yes you would it like said above.

    #4 Nov 25, 2012 at 16:56 UTC - 0 likes
    Quote from finiteturtles: Go

    There are trigger conditions for when a unit takes damage. There are actions which set the tint of actors...

    Don't see why not.

    I have tried that but a different event because units will be able to regenerate health. It is a Unit Property Changes event.

    Quote from DogmaiSEA: Go

    Did you actually even try to do this or did you just post a theory question?

    Yes it is entirely possible, and yes you would it like said above.

    I tried, but when I did set the tint it could not compare to the life percentage. "...you would it like said above." And you are cocky to me. Anyways, I will try to do some sort of Unit Life Changes because of the reasoning above and do some kind of Repeat for a number that is the percentage lost or something.

    Edit:

    I have tried this, but it changes the HDR which I want the 100% changed under the Color line.

    Last edited Nov 25, 2012 by admielke
    #5 Nov 25, 2012 at 18:19 UTC - 0 likes

    Solved!

    This is what I had to do:

    #6 Nov 25, 2012 at 18:37 UTC - 0 likes

    Glad you have it solved.

    But it wasn't explained very clearly what you were wanting help with

    #7 Nov 25, 2012 at 23:43 UTC - 0 likes

    This was a very simple exercise, and whilst you cannot expect everyone to know every little way to do things, it appeared from your first post's attitude that you had in fact not even tried to attempt this and instead were asking here to save yourself time.

    #8 Nov 26, 2012 at 10:46 UTC - 0 likes
    Quote from DogmaiSEA: Go

    This was a very simple exercise, and whilst you cannot expect everyone to know every little way to do things, it appeared from your first post's attitude that you had in fact not even tried to attempt this and instead were asking here to save yourself time.

    Calm down buddy.

    #9 Nov 26, 2012 at 14:34 UTC - 0 likes

    ?

    Failed attempt at trolling?

    #10 Nov 27, 2012 at 13:02 UTC - 0 likes

    @admielke: Go

    Instead of responding like that you could simply say "Okay, I'll try to express myself more clearly next time".

    Afterall people are here trying to help you, the least you could do is to be kind to them in return.

  • 10 posts

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