Hi everyone,
I've recently hit a snag while making a skill for my new project. I'd like to have it so that the player can only steal from an enemy if they have less than a certain percentage (say, 30%) of their health, and the enemy instantly gets KO'd when the skill is used under that condition. (Essentially kind of a vampire-type skill- take your enemy's stuff & destroy them if they're weak enough. If you haven't weakened them, the skill is useless- better hit them some more!)
The problem is that I can't figure out how to make the Steal effect conditional- the notetag for the Steal/Snatch effect is a standard <Steal: x%> tag, and I'm just not proficient enough with JavaScript to deduce how to work with that.
Can this be done, and if so, how?
Thank you in advance for your help.