Hi! I´m coming from this other thread https://forums.rpgmakerweb.com/inde...-appear-at-safe-place-after-game-over.177932/ where I found out at the end that MCkathlin Gameover plugin (for MZ) https://www.tyruswoo.com/rpg-maker/mz/game-over-mz/ to get the character to safety after a game over through a common event is conflicting with this other one I´m using, by making the game over and common event to run twice (?) I have tried tweaking by myself Mckathlin´s plugin by erasing the lines that used the "actor leader" in case that was what made it odd but it did nothing at all, so I don´t know what could be the thing making it double.
Thanks a mil! if it´s not possible it wouldn´t be a drama and I would just leave the default game over but it would be grand to get this to work haha
Thanks a mil! if it´s not possible it wouldn´t be a drama and I would just leave the default game over but it would be grand to get this to work haha
Code:
/*:
* @target MZ
* @plugindesc Party leader (map) is always actor 1.
* @author Caethyril
* @url https://steamcommunity.com/app/1096900/discussions/0/4333105935809404961/
* @help Free to use and/or modify for any project, no credit required.
*/
// Override - party leader is actor ID 1.
Game_Party.prototype.leader = function() {
return $gameActors.actor(1); // <- change this number if needed
};
// Patch - first party member is now first follower.
void (alias => {
Game_Followers.prototype.setup = function() {
alias.apply(this, arguments);
// add party member index 0
const L = this._data.unshift(new Game_Follower(0));
// reapply max followers
if (L > $gameParty.maxBattleMembers())
this._data.pop();
};
})(Game_Followers.prototype.setup);