Can the invincible just arm cut, leg cut, hungry and blindness? Or can you teach me how to edit it
Viewing post in Cheshire's Fear & Hunger Mods comments
I think I got it.
// If the enemy is doing a special attack and if we allow coin flip deaths then take damage
const Game_Battler_GainHp = Game_Battler.prototype.gainHp; // BODY
Game_Battler.prototype.gainHp = function(value) {
if (this.isActor() && !isDeathEnabled()) {
value = value < 0 ? 0 : value;
}
Game_Battler_GainHp.call(this, value);
};
This is the part,right isn't?
Sure, lets see.
(You should make a backup of the original file first).
You can remove the sections that mention these:
// BODY, // MIND, // NO SKILL COST
and if you play Termina, you can also remove the following sections:
// FREE REVs and // NO REV COST
you can then change "addState" to this:
(but don't remove this from above it const Game_Battler_AddState = Game_Battler.prototype.addState;)
Game_Battler.prototype.addState = function(stateId) {
if (this.isActor() && isStateImmune(stateId)) return;
Game_Battler_AddState.call(this, stateId);
};
and then you can remove the "DEAD" section from "const stateImmunities".
(As in the entire line with "DEAD" on it).
// STATE IDs const stateImmunities = [ 1, // DEAD
(optionally you can also remove BLEEDING, POISON, TOXIC, FRACTURE, CONFUSED, PARASITES, PARALYZED, BRAIN FLOWER, TENTACLES).
Then if you want special attacks back for real, then you to remove everything that is inside "const fnh1CoinSwitches" or "const fnh2CoinSwitches".
Then you will remove everything in "const fnh1Switches" up till 3554, // CAVED IN
Then you can remove what is inside "const fnh1Events" or "const fnh2Events" if you want the on-map traps back.
And i think this should be all?
I don't guarantee that this may work right off the bat(assuming you did everything correctly).
But if you bump into any issues let me know.