[MV] Armonic effect

Started by ICF-Soft, February 06, 2017, 05:49:28 pm

Previous topic - Next topic

ICF-Soft

This is an effect you can found in Monster Legends game. When a battler is affected by a skill with it's resisted, it recovers energy.
For this tutorial I'll configure an actor to be armonic to fire and ice, but you can make it for classes, enemies, states, etc.

We will need these plugins:



Step 1:
Install plugins, main utility must be before element core. You can edit element core configuration to your liking or leave as is.

Step 2:
Select what actor will have armony, first as example.

You can use main utility notation (<JSEVAL MASTER elemreact 2>) or element core one (<ELEMENT REACT: 2>), both will work.

Let's see some options:

Code: Option 1

<element react: 2>
this.gainMp(20);
<element react: 3>
this.gainMp(20);
</element react>

Code: Option  2

<element react: 2>
this.gainMp(this.mmp / 10);
<element react: 3>
this.gainMp(this.mmp / 10);
</element react>

Code: Option  3

<element react: 2>
this.gainMp(Math.abs(this._result.hpDamage + this._result.mpDamage + this._result.tpDamage) / 10);
<element react: 3>
this.gainMp(Math.abs(this._result.hpDamage + this._result.mpDamage + this._result.tpDamage) / 10);
</element react>

First option gives a fixed amount of mp, second fills 10% mp and third gives an amount relative to damage and heal. This effect gives mp for every armonic element a skill or item has.

Step 3: test result:
Next to do is test battles. You can create an enemy that attacks with fire and/or ice and test result.

Final:
This effect can be applied to specified actors, classes (with enemies core classes can be applied to enemies), enemies, states, even equipment.
There are unlimited posibilities.

And now you have armonic effect for RPG Maker MV.

This tutorial is avaiable in my blog (in spanish): http://icfsoft.blogspot.com/2017/02/tutorial-efecto-armonico.html and in patreon.
I hope you like it.
GBY :)
My blog (in spanish): https://icfsoft.blogspot.com/     My list of updated plugins Terms of Use   Itch.io profile

Voice change software Buy Try free
If you like my work you can support me in patreon: https://www.patreon.com/icfsoft