- May 12, 2022
- Reaction score
- First Language
- Primarily Uses
Ahh, thank you, that seems like it works perfectly!You'd actually use notetags from the Battle Core. Weirdly, the
valuevariable isn't listed in the documentation, but I'm pretty sure it's there just like it was in Yanfly plugins.
So you'd put in your state:
<JS Pre-Damage as Target> value=Math.min(value, 500); </JS Pre-Damage as Target>
And yeah, from what I can see there's a few holes in Visustella's documentation regarding JS stuff, compared to the more in-depth examples they had on Yanfly. Can make it a bit awkward fumbling around trying to figure things out, haha. I appreciate the quick solution, though!