Life stealing skill
 
Notifications
Clear all

[Solved] Life stealing skill

2 Posts
2 Users
1 Reactions
72 Views
0
Topic starter

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:

life-draining-skill-overview

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.

it-deals-damage-and-sets-a-var

Afterwards it recovers 10 LP

raise-lp-by-exactly-10

 

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.

This topic was modified 3 weeks ago by The Ramen Dutchman
1 Answer
1

Doing u.lp += Core.Game.current.variables[101] works?

The Ramen Dutchman The Ramen Dutchman Topic starter 17/05/2025 2:22 pm

@wano Yep it does!
Thank you very much!

I should really try to find things in the documentation/code better >.<"

Share: