- Joined
- May 12, 2022
- Messages
- 79
- Reaction score
- 76
- First Language
- English
- Primarily Uses
- RMMZ
Ahh, thank you, that seems like it works perfectly!You'd actually use notetags from the Battle Core. Weirdly, thevalue
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!