SC2Mapster Forums

Development > Data

(Solved) Damage spell: less distance -> more dmg

  • 4 posts
    #1 Dec 10, 2012 at 16:38 UTC - 0 likes

    I want to make a dmg spell, AOE or not, doesnt matter. What i want is, the less distance between the caster and the target, the higher the damage should be. Of course that should be no problem with triggers, but is there a way to do it with data only ?

    #2 Dec 10, 2012 at 17:39 UTC - 0 likes

    Yep, you need to set up your search area correctly, so that it links to different damage effects in different ranges.

    So in range of 2 it will link to high damage in the search range 2 - 5 it will do mid damage etc

    Current Project: Community Project

    #3 Dec 10, 2012 at 20:48 UTC - 1 like

    Else just have a Switch effect that uses a few Location Range validators linking to different damage effects.

    #4 Dec 13, 2012 at 01:31 UTC - 0 likes

    thx guys, both solutions seem to fit well.

  • 4 posts

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