- Joined
- Feb 19, 2016
- Messages
- 10
- Reaction score
- 2
- First Language
- Spanish
- Primarily Uses
Hi guys!
Today I have another question, I hope it can be resolved!
Currently, I'm using Yanfly Buffs&States Core and the autopassive states plugins to recreate the undead state of Final Fantasy X. The next youtube video shows how to use it in enemies but it can easly done for anything. However, it only works for healing abilities! (which is good, but not thaaaaat good). Healing abilities damages the heroes if they're inflicted with the undead state but, the HP regeneration heals a heroe even if they're undead. So my question is, Can it be possible to make that all types of healings hurts them instead of only abilities?
https://youtu.be/CILbgvxz7DA
PD: I tried modifying the rpg_objects file by changing the Game_Battler.prototype.regenerateHp but i don't know why it doesn't work. The code i placed instead of the default code:
Game_Battler.prototype.regenerateHp = function() {
var value = Math.floor(this.mhp * this.hrg);
value = Math.max(value, -this.maxSlipDamage());
if (this.meetsStateCondition == 48) {
if (value !== 0) {
value = value * -1;
this.gainHp(value);
}
}
else {
if (value !== 0) {
this.gainHp(value);
}
}
};
EDIT: Zombie State ID is 48.
Today I have another question, I hope it can be resolved!
Currently, I'm using Yanfly Buffs&States Core and the autopassive states plugins to recreate the undead state of Final Fantasy X. The next youtube video shows how to use it in enemies but it can easly done for anything. However, it only works for healing abilities! (which is good, but not thaaaaat good). Healing abilities damages the heroes if they're inflicted with the undead state but, the HP regeneration heals a heroe even if they're undead. So my question is, Can it be possible to make that all types of healings hurts them instead of only abilities?
https://youtu.be/CILbgvxz7DA
PD: I tried modifying the rpg_objects file by changing the Game_Battler.prototype.regenerateHp but i don't know why it doesn't work. The code i placed instead of the default code:
Game_Battler.prototype.regenerateHp = function() {
var value = Math.floor(this.mhp * this.hrg);
value = Math.max(value, -this.maxSlipDamage());
if (this.meetsStateCondition == 48) {
if (value !== 0) {
value = value * -1;
this.gainHp(value);
}
}
else {
if (value !== 0) {
this.gainHp(value);
}
}
};
EDIT: Zombie State ID is 48.
Last edited by a moderator:


