- Joined
- Sep 12, 2016
- Messages
- 5
- Reaction score
- 5
- First Language
- English
- Primarily Uses
Update 2016-10-28: Fixed the Formation window so that at least one hero must be alive when exiting the window. My thanks to willer111 for pointing it out.
Credit where credit is due- I got the idea from Yanfly's Party System engine and had originally written these changes into his code. I was originally going to contact him to offer my changes as a contribution, but then I realized that I had made no actual changes to any of his work. So I split my code out and am offering it as an extension for his plugin. I will also concede that the code format for my plugin is mostly a rip and duplicate effort based on his work.
This plugin enhances the Yanfly Engine Party System plugin by providing the option for live party members not involved in combat to replace dead members if everyone fighting dies. It has two main options: allow the player to select a replacement party using the Formation menu, or randomly fill the combat team with random members that are not dead. Before swapping out members, the game will display a customization message to let the player know what's going on. This only works for actors *in* the party, so if you couldn't chose them from the Formation menu, you can't get them here either.
I'm releasing this as version 0.90; I'm not certain I'm happy with the way the way the combatants are replaced if the menu is not used and may want to see how I can better animate it. I'm also not 100% certain that this code is fully functional. While there are only a couple of options available for configuration, I can't promise that it will work with all YEP plugins. I know that it works with the Battle core and ActorPartySwitch extensions, primarily.
As of this time, there are no scripting commands to turn on or off any functionality. I'm not interested in learning how to do that tonight.
To use this plugin, please place it in your project's plugin folder with YEP_PartySystem.js and link my script beneath the PartySystem plugin.
View attachment YEP_X_PartyReplaceOnDeath.js
Credit where credit is due- I got the idea from Yanfly's Party System engine and had originally written these changes into his code. I was originally going to contact him to offer my changes as a contribution, but then I realized that I had made no actual changes to any of his work. So I split my code out and am offering it as an extension for his plugin. I will also concede that the code format for my plugin is mostly a rip and duplicate effort based on his work.
This plugin enhances the Yanfly Engine Party System plugin by providing the option for live party members not involved in combat to replace dead members if everyone fighting dies. It has two main options: allow the player to select a replacement party using the Formation menu, or randomly fill the combat team with random members that are not dead. Before swapping out members, the game will display a customization message to let the player know what's going on. This only works for actors *in* the party, so if you couldn't chose them from the Formation menu, you can't get them here either.
I'm releasing this as version 0.90; I'm not certain I'm happy with the way the way the combatants are replaced if the menu is not used and may want to see how I can better animate it. I'm also not 100% certain that this code is fully functional. While there are only a couple of options available for configuration, I can't promise that it will work with all YEP plugins. I know that it works with the Battle core and ActorPartySwitch extensions, primarily.
As of this time, there are no scripting commands to turn on or off any functionality. I'm not interested in learning how to do that tonight.
To use this plugin, please place it in your project's plugin folder with YEP_PartySystem.js and link my script beneath the PartySystem plugin.
View attachment YEP_X_PartyReplaceOnDeath.js
Last edited by a moderator: