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).
Gridlock TD : Elements
what do you mean steals 50 energy
You know how I know you're gay? You have hots beta.
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.
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.
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.
Contribute to the wiki (Wiki button at top of page)
Considered easy altering of the unit textures?
For my public assets look here!
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
You must login to post a comment. Don't have an account? Register to get one!