SC2Mapster Forums

General > General Chat

Wc3 Style Armor System

  • 3 posts
    #1 Nov 18, 2012 at 02:11 UTC - 0 likes

    How to create a Wc3 style armor system? It should be quite easy through triggers using the Unit Takes Damage event but that feels like it would be ineffective, is there any other way to do it?

    I have the formula, now I just need somewhere to put it.

    private constant real ARMOR_REDUCTION_MULTIPLIER = 0.06

    This equals amount of damage reduced

    Above 0 armor baseDamage*(1.-((armor*ARMOR_REDUCTION_MULTIPLIER)/(1.+ARMOR_REDUCTION_MULTIPLIER*armor)))

    Less than 0 armor baseDamage*(2.-Pow(0.94,-armor))

    Last edited Nov 18, 2012 by Gwypaas
    #2 Nov 20, 2012 at 22:39 UTC - 0 likes

    @Gwypaas: Go

    have you read this thread?
    Warcraft 3 Armor System
    don't know if the suggestions mentioned in the replies still work.

    Helral's Lair
    Meow meoow meeow. I'm ze evil SC2MapsterKitten.

    UI Tutorials listing

    current projects:

    #3 Nov 21, 2012 at 15:34 UTC - 0 likes

    We have something kinda similar and achieve it through adding a certain amount of buffs per armor point, and differentiate the buffs on the amount of armor like 1+, 10+, 100+ for example. (From memory, don't quote me on it though).

  • 3 posts

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