Extension to Yanfly Engine Party System - Replace On Death
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.
data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
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
本贴来自国际rpgmaker官方论坛作者:wilminator处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/extension-to-yanfly-engine-party-system-replace-on-death.68189/
页:
[1]