RESOLVED.
(SOLVED) Zombie Status
RPG Maker MV Support'Tutorials' is where people who have made a tutorial for the benefit of others can post them.
Moved to: RPG Maker MV
Moved to: RPG Maker MV
Awesome, thank you.
I believe that Hime's Custom Death States plugin will do what you need to do, since it will judge a party or troop fully made up of "Zombied" party members as defeated.
Go ahead and try that. I think it will do it for you! If it works properly but doesn't do what you were hoping for, then I can show you a Troop Event-based solution for doing this, but it is a much more complex setup than using the plugin.
Go ahead and try that. I think it will do it for you! If it works properly but doesn't do what you were hoping for, then I can show you a Troop Event-based solution for doing this, but it is a much more complex setup than using the plugin.
Awesome, I will give it a go. Thanks!
Seems to work great for wiping the party. Only downfall is that you can't attack a dead person so there is no chance to kill it, and given they're technically dead they won't randomly attack everything as desired. Also the item I created to cure "zombie" status effect doesn't work because they're dead.
Oh no! I didn't expect that to happen.
I wrote up my Troop Event solution for you, but as I reviewed it I realized that it would either run endlessly (causing the game to freeze), or would only run once a turn (allowing an entire turn to play out once an entire team is KOed/Zombied). I'll think through it some more and hopefully come up with something.
By the way, please don't post twice in succession (unless someone else has posted in the topic since, or it's been 72 hours since your last post). Just edit your last post instead.
I wrote up my Troop Event solution for you, but as I reviewed it I realized that it would either run endlessly (causing the game to freeze), or would only run once a turn (allowing an entire turn to play out once an entire team is KOed/Zombied). I'll think through it some more and hopefully come up with something.
By the way, please don't post twice in succession (unless someone else has posted in the topic since, or it's been 72 hours since your last post). Just edit your last post instead.
Could you not setup an parallel Common Event that checks if every party member has zombie state and if so Game Over?
You'd need to have a Troop Event to call this Common Event, right? The problem is the timing of the troop event - you need it to fire often enough to end the battle in a loss, but not constantly (because that would cause the game to hang). What timing could work?
(And you can't just call the Common Event when a skill that might apply Zombie is applied - because that might be the 3rd member to have Zombie, but the check would actually need to be made when the 4th character is KO'ed.)
You could have a switch that turns on at the beginning of the game. One of those turn on and forget switches. Have the parallel common event be running in the background as long as that switch is on. As long as you do not have too many parallel commands going it should work just fine. It should constantly check to see if members of your party have said state.
Would this still work if I have over 20 playable characters? I allow x5 in a party at one time. Seems like it might be a little complex for a noob like me, lol.
Right, that's the best I was able to think of, as well, and might be the best we can do without changing default code. Checks are done at the end of each full turn. Still not too bad. What do you think, @jcmtexas01?
If you are using Yanflys Buff and States Core could you make something like this?
Where 3 would be the state ID for Zombie. It would check on each application to see if your other party members have the state and if they do it will run Game Over.
I don't use Buff and States core anymore so I wasn't able to check it myself.
Code:
<Custom Apply Effect>
if $gameParty.members()[0].isStateAffected(3) && $gameParty.members()[1].isStateAffected(3) && $gameParty.members()[2].isStateAffected(3) && $gameParty.members()[3].isStateAffected(3) {
SceneManager.goto(Scene_Gameover);
}
</Custom Apply Effect>
Where 3 would be the state ID for Zombie. It would check on each application to see if your other party members have the state and if they do it will run Game Over.
I don't use Buff and States core anymore so I wasn't able to check it myself.
@Pots Talos I don't think it would work because if any members are KO'ed the condition wouldn't be true. Even if you were to check each member for either state, it would only work if the application of Zombie makes everyone either KO'ed or Zombified. Although, if you also added it to the KO state, then maybe it would work as intended? 🙂
@Wavelength Ah! I didn't think of that, good call.
Take a look at this plugin, it was given to me a few years ago and I don't use it anymore but it might work for you.
Take a look at this plugin, it was given to me a few years ago and I don't use it anymore but it might work for you.
Code:
/*:
* @plugindesc v1.0 Custom Death States (First Copy for Brian Swahn)
* @author Soulpour777 - soulxregalia.wordpress.com
*
* @param Custom Death States
* @desc The states that will make the battle game over when this is applied to everyone. (Dont DEL []).
* @default [4, 5, 6, 7]
*
* @help
This plugin does not have any plugin commands.
Instructions:
Place the states that will game over the players when the state is applied
to EVERYONE. Please don't delete the []. Every state id should be separated
by a comma.
Author: Soulpour777
*
*/
(function(){
var xxx = PluginManager.parameters('SOUL_CustomDeathStates');
var states = eval(xxx['Custom Death States']);
var battleManager_endTurn = BattleManager.endTurn;
BattleManager.endTurn = function() {
battleManager_endTurn.call(this);
if ($gameParty.isAllDeadCustom()) {
this.processDefeat();
}
};
Game_Party.prototype.isAllDeadCustom = function() {
if (Game_Unit.prototype.isAllDeadX.call(this)) {
return this.inBattle() || !this.isEmpty();
} else {
return false;
}
};
Game_Unit.prototype.isAllDeadX = function() {
return this.aliveMembersX().length === 0;
};
Game_Unit.prototype.aliveMembersX = function() {
return this.members().filter(function(member) {
return member.isAliveX();
});
};
Game_BattlerBase.prototype.isAliveX = function() {
return this.isAppeared() && !this.isDeathStateAffectedX();
};
Game_BattlerBase.prototype.isDeathStateAffectedX = function() {
for (var i = 0; i < states.length; i++) {
return this.isStateAffected(states[i]);
}
};
})();
Hmmm...didn't work for me. Does my script look correct? Could it be a spacing error? Also tried using switch name, and just it's number.
@jcmtexas01 try changing the Conditions to also include Turn End and see if that fixes it.
No dice. Even tried using a JS checker to make sure I didn't fat finger it.
isStateAffected(x) x should be the states ID number in database
gameSwiches.setValue(y, allState) y is the switch you want turned on.
If: z is On z should be the same switch as in the gameSwitches up above.
gameSwiches.setValue(y, allState) y is the switch you want turned on.
If: z is On z should be the same switch as in the gameSwitches up above.
Code:
var allState = true;
var party = $gameParty.aliveMembers();
for (i = 0; i < party.length; i++) {
if (!party[i].isStateAffected(x)) {
allState = false;
}
}
$gameSwitches.setValue(y, allState)
Original thread: https://forums.rpgmakerweb.com/threads/solved-zombie-status.113561/
