Hi all!
I'd like to give my Bats a life-stealing skill, similar to Zubat's Life Leech, but I'm running into some problems.
What works:
Dealing damage (duh)
Healing self with a set amount afterwards
What doesn't work:
Self-healing based off the damage
What I have so far:

A skill that targets one enemy of choice, deals damage to HP (called Life Points in my game) and sets the damage in a temp variable.

Afterwards it recovers 10 LP

Is there a way to read a formula in script?
For example `u.lp += v[101]` to raise the user's LP by the value of variable 101?
P.S.: If my images seem stretched, you can right-click them and open them in a new tab or save them, there they look fine.
Doing u.lp += Core.Game.current.variables[101] works?
 The Ramen Dutchman  Topic starter  17/05/2025 1:22 pm
 The Ramen Dutchman  Topic starter  17/05/2025 1:22 pm @wano Yep it does!
 Thank you very much!
I should really try to find things in the documentation/code better >.<"
 Wano 12/08/2025 7:32 pm
 Wano 12/08/2025 7:32 pm Maybe try "u.lp = Math.min(u.lp + Core.Game.current.variables[101], u.maxlp);"
