I am currently looking for a method to make a permanent debuff that reduces all healing to 0 while instead healing when MP is regenerated. Is there any method capable of performing this task? I'm unfamiliar with the system, but I would like to start with difficult tasks for the sake of learning the system thoroughly quickly.
Unique States
RPG Maker MZ Supportthe first part is easy: you have all healing skills use a healing element and give the actors a elemental damage rate of zero for that element and it will stop that working.
the other part will require some plugin, and you would have to give a more detailed description of what you want to happen to tell of way to handle it
the other part will require some plugin, and you would have to give a more detailed description of what you want to happen to tell of way to handle it
You'll need a plugin for the second part. Paste the below into a text editor, save as a *.js file, include as a plugin.
Replace 42 with the ID of the state (no leading zeros). As written, that will heal HP for the same amount of MP being gained; if you want to manipulate it, put whatever formula inside of the parentheses where it just has
Code:
Game_Battler.prototype.gainMp = function(value)
{
this._result.mpDamage = -value;
this.setMp(this.mp + value);
if (this.isStateAffected(42))
this.gainHp(value);
};
Replace 42 with the ID of the state (no leading zeros). As written, that will heal HP for the same amount of MP being gained; if you want to manipulate it, put whatever formula inside of the parentheses where it just has
valueOriginal thread: https://forums.rpgmakerweb.com/threads/unique-states.174212/