- Joined
- May 15, 2017
- Messages
- 3
- Reaction score
- 0
- First Language
- English
- Primarily Uses
- RMMV
I'm using Yanfly's Row Formation Plugin to make a custom battle system and have run into a snag that has me tearing my hair out the past couple days.
So, what I want to do is simple in theory. I want a skill that moves my character to the back row and fires his bow. I've got all that set up and working, but here's the problem: no matter what I do, the row change (and state assignment) happens AFTER damage is calculated. So if he started in the front row the skill does extra damage, middle does normal, back row does reduced damage. If I make the skill attack 2 random enemies, the first hit gets calculated from the starting row and second hit calculates from the destination.
I think the issue is that Yanfly's script passes the 'row change request' to some sort of update method and that method isn't being called until the first damage calc happens. I have tried all the Lunatic Mode methods as well and the skill still behaves the same.
Yanfly's script works flawlessly for normal usage so there is nothing wrong with the plugin, it's just an issue with this particular usage case.
I have a couple workarounds in mind, like using a blank dummy skill before the real attack or somehow triggering the row change when the skill select window opens (I'd like to learn how to do that as well, so share if u know how) but my knowledge of RM only goes so far (been at this less than half a week). I would prefer a more elegant solution (like extending Yanfly's plugin) rather than a workaround if possible.
ANY guidance would be very much appreciated with this issue.
Thanks
PS:
I'm an experienced programmer, studied game dev in college, but I'm fairly new to Rpg Maker. C# is my specialty though and javascript feels very chaotic and unorganized to me, but don't be afraid to get technical if you need to. I need to learn anyway since I've fallen in love with RM and need to learn its language anyway. I'm not afraid to write a plugin if I need to.
So, what I want to do is simple in theory. I want a skill that moves my character to the back row and fires his bow. I've got all that set up and working, but here's the problem: no matter what I do, the row change (and state assignment) happens AFTER damage is calculated. So if he started in the front row the skill does extra damage, middle does normal, back row does reduced damage. If I make the skill attack 2 random enemies, the first hit gets calculated from the starting row and second hit calculates from the destination.
I think the issue is that Yanfly's script passes the 'row change request' to some sort of update method and that method isn't being called until the first damage calc happens. I have tried all the Lunatic Mode methods as well and the skill still behaves the same.
Yanfly's script works flawlessly for normal usage so there is nothing wrong with the plugin, it's just an issue with this particular usage case.
I have a couple workarounds in mind, like using a blank dummy skill before the real attack or somehow triggering the row change when the skill select window opens (I'd like to learn how to do that as well, so share if u know how) but my knowledge of RM only goes so far (been at this less than half a week). I would prefer a more elegant solution (like extending Yanfly's plugin) rather than a workaround if possible.
ANY guidance would be very much appreciated with this issue.
Thanks
PS:
I'm an experienced programmer, studied game dev in college, but I'm fairly new to Rpg Maker. C# is my specialty though and javascript feels very chaotic and unorganized to me, but don't be afraid to get technical if you need to. I need to learn anyway since I've fallen in love with RM and need to learn its language anyway. I'm not afraid to write a plugin if I need to.


