So...the game I'm building has a lot of actors who can join the party, each filling a fairly-niche role, and so the main strategy of the game comes from figuring out who needs to be in the battle when. To that end, I'm using Yanfly's Actor Party Switch plugin, and the party-switching it provides is a huge part of the gameplay. The problem with that is that actors who have been KO'd can't get a turn in order to switch to someone else, which kind of hamstrings the whole switching mechanic, and makes battles clunkier and less fluid.
To that end, I came up with a sort-of compromise that'd work, where an actor who gets KO'd will immediately be swapped out for a random living party member who isn't in the battle. Kind of like the actors in the battle are the ones doing the legwork, while the rest of the party is waiting in the wings to tag in when needed. The problem is that I can't figure out how to make that happen. As I'm also using Yanfly's Buffs & States Core, this feels like something that should be possible with the lunatic mode of that plugin. Some kind of conditional branching in a Custom Apply Effect, maybe?
In any case, I have no idea, so I was hoping I could get some advice from someone who's a better programmer than I. Any advice is immensely appreciated!
~Blackjack
Switch Party Member on KO
● ARCHIVED · READ-ONLY
-
-
[move]Javascript/Plugin Support[/move]
-
Sorry about that! Misstep on my part! XD
-
I've been trying to find a way to do this, too...
The closest thing I found was this:
https://forums.rpgmakerweb.com/inde...y-engine-party-system-replace-on-death.68189/
but it only seem to work when there's full team wipeouts, if you can work with that. -
That...is a really good plugin extension, actually. If all else fails, that'd definitely be what I end up going with. Thanks for pointing me in that direction!
It's not exactly what I was after, though. I was thinking more on an individual actor basis, either as an Apply Effect for the KO state, or during the Regenerate phase of a turn. Pretty much all I'd need to make it work is some kind of script call or plugin command for the Party System that swaps one actor for someone alive and not in the battle. Hell, I could probably event it into a Common Event and use script calls to run that. I'm just not terribly familiar with Yanfly's plugin, or javascript in general, so I'm looking for advice as a starting point.
Still, that plugin extension is an awesome backup. Thanks for showing it to me! ^^ -
https://github.com/rutan/torigoya_rpg_maker_mv_plugins/tree/master/replace_dead_member
Here is another extension (but I do believe you don't need YEP_PartySystem.)
This a actor to actor basis. -
Worked like a charm! Thanks so much! ^^