SC2Mapster Forums

Development > Triggers

Custom health bars - how to?

    #21 Apr 27, 2012 at 18:01 UTC - 0 likes

    @Nerfpl: Go

    Yo, thanks! I've looked into it, and going to study it :) Really appreciate your effort!

    @VoidPotato: Go

    Thanks! Yeah, now it's much more clearer :)

    @Mille25: Go

    Yup, in the example Nerfpl sent me, it's not using damage taken, so it's ok :p Thanks for your (no) motivation though...

    #22 Apr 27, 2012 at 22:09 UTC - 0 likes

    Hey What's up.

    This is what my trigger looks like (in text)

    Dialog - Set Unit Status Bar Health[(Owner of (Triggering unit))] size to ((Integer(((((Triggering unit) Life (Current)) / ((Triggering unit) Maximum Life (Current))) * 190.0))), 30) for (Player group((Owner of (Triggering unit))))

    • First Convert real to integer
    • with the new converted integer, choose 'Arithmetic (real)'
    • In the first value, choose 'Arithmetic (real)' Again.
    • Now, in that second Arithmetic (real), Choose the first value and set it to Unit X's current life
    • Set the operator to '/' and set the second value to Unit X's current maximum life
    • Now, go back to the First arithmetic we created, set the operator to '*' and the second value to [the width of your dialog]

    It will now look something like ''Arithmetic (Real), *, [YourWidth]

    #23 Apr 29, 2012 at 10:21 UTC - 0 likes
    Quote from Simoneon: Go

    @Mille25: Go

    Yup, in the example Nerfpl sent me, it's not using damage taken, so it's ok :p Thanks for your (no) motivation though...

    It doesnt have anything to do with "no motivation". It just seems like you are lacking basic understanding of the trigger editor, thats why you should propably start with smth more simple.

    You wont always find somebody who does the work for you.

    Last edited Apr 29, 2012 by Mille25

    http://i55.tinypic.com/wio5t0.jpg

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