- Joined
- Sep 30, 2023
- Messages
- 8
- Reaction score
- 0
- First Language
- English
- Primarily Uses
- RMMV
Using Yanfly's plugins, I'm currently trying to create a state where upon the end of the inflicted target's action, an animation plays and they take damage. I know how to get the animation portion working but cannot for the life of me figure out how MV's damage formula works in Javascript form; nor how to even execute said damage formula.
Yes force action sounds like the easy solution, but weird thing about Yanfly's Buff & States core is that executing a force action upon action end, causes the game to softlock completely. If anyone is familiar with MV's JS please help!
I have attempted using an altered version of a JS damage formula that a friend sent me. (Had to be modified due to it being from MZ, but MV's JS is handled slightly differently)
Instead of it working as it should, it displays the target's damage taken as "NNN" but even then only does it on the second action end, not the first like it's supposed to
Edit: Found out the reason NNN kept coming up as a damage number was because I made a slight error in the code, but the fix only made it stop displaying damage and stopped attempting to deal damage entirely
Yes force action sounds like the easy solution, but weird thing about Yanfly's Buff & States core is that executing a force action upon action end, causes the game to softlock completely. If anyone is familiar with MV's JS please help!
I have attempted using an altered version of a JS damage formula that a friend sent me. (Had to be modified due to it being from MZ, but MV's JS is handled slightly differently)
Instead of it working as it should, it displays the target's damage taken as "NNN" but even then only does it on the second action end, not the first like it's supposed to
Edit: Found out the reason NNN kept coming up as a damage number was because I made a slight error in the code, but the fix only made it stop displaying damage and stopped attempting to deal damage entirely
Last edited: