SC2Mapster Forums

Development > Data

Ability Help: Energy Tap

  • 6 posts
    #1 Nov 18, 2012 at 20:51 UTC - 0 likes

    I want to create an ability that steals up to 50 energy from a target enemy unit (transfers from the target to the caster), and for each energy drained deal 2 damage. So if the target only have 30 energy it will deal 60 damage and only transfer 30 energy to the caster.

    Also, I would like to make it deal a minimum of 20 damage (if the target only have 2 energy, it drain the energy and deal 20 damage (instead of the 4 damage based on the drain))

    How is this done? (I know I can create it with the trigger editor, but I prefer to do it with the data editor (to get better with it).

    #2 Nov 18, 2012 at 23:00 UTC - 0 likes

    @Demtrod: Go

    what do you mean steals 50 energy

    You know how I know you're gay? You have hots beta.

    #3 Nov 18, 2012 at 23:01 UTC - 0 likes

    @XLIIVI: Go

    sorry for the double post. your ability can just do 20 damage via a validated effect. if the validator returns false then the extra damage doesn't occur.

    on the one hand you can just copy the existing ability and change it to do something that it does already. there's nothing wrong with feedback as is so i'm not surprised you don't create something radically different.

    Last edited Nov 18, 2012 by XLIIVI
    #4 Nov 19, 2012 at 12:17 UTC - 0 likes

    @XLIIVI: Go

    I thought I made it pretty clear, but I'll try again :)

    I want an ability that removes up to 50 energy from a target unit (like feedback with a limit) and for each point of energy removed, it restores 1 energy to the caster, and deals 2 damage to the target. So if the target got 30 energy it gives 30 energy to the caster and deals 60 damage to the target.

    The problem lies in how I make so that the caster get's the right amount of energy restored.

    #5 Nov 19, 2012 at 21:27 UTC - 0 likes

    @Demtrod: Go

    Sorry, that person is just coming to terms with the data editor themself.

    You will need a Switch effect that validates using Unit Compare Vital validators that the unit has over 10 evergy. It then uses a system similar to the hight templar Feedback ability that uses a Damage effect to do damage based on the amount of energy the target unit has before doing a seperate function. Use a Create Persistent that uses several rounds of a Create Healer effect to perform the transfer for the desired amount.

    If it has less than 10 energy you just get the damage effect to do a flat amount and then use the drain.

    Last edited Nov 19, 2012 by DrSuperEvil
    #6 Nov 19, 2012 at 23:27 UTC - 0 likes

    @DrSuperEvil: Go

    I think I'll make it with a trigger, as it seems like it would be simpler, but it's always good to learn something new :) Thank you for the help :D

  • 6 posts

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