You'd actually use notetags from the Battle Core. Weirdly, the
So you'd put in your state:
value variable 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:
Code:
<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!