Zed's Death Mark (MV Plugin Tips & Tricks)

From Yanfly.moe Wiki
Jump to navigation Jump to search

Welcome to the wiki! This is where you can find resources from Yanfly.moe, Ækashics.moe,
VisuStella, Caz Wolf, Fallen Angel Olivia, Atelier Irina, and other affiliated content creators.


Zed’s Death Mark is a status effect that triggers once it expires. When it expires, it deals a percentage of all the damage Zed dealt to the target foe during the duration of the Death Mark. Now, this special effect can be recreated in RPG Maker MV!

Required Plugins

The following plugin(s) is required to create this Tips & Tricks effect:

For help on how to install plugins, click here.

For help on how to update plugins, click here.

About

This is a Tips & Tricks effect created for RPG Maker MV. Tips & Tricks are not to be confused with plugins. Instead, they are usually customized code created for the sake of producing unique features/effects that do not require an entire plugin to do.

Yanfly Engine Plugins

This Tips & Tricks effect is made possible due to the Yanfly Engine Plugins library.

Click here if you want to help support Team Yanfly on Patreon.

Instructions

Follow video instructions.

You can get the copy and paste version of the code here:

<Custom Apply Effect>
target._deathMarkDmg = 0;
</Custom Apply Effect>

<Custom React Effect>
if (value > 0 && attacker === origin && this.isHpEffect()) {
  target._deathMarkDmg += value;
}
</Custom React Effect>

<Custom Leave Effect>
target.startAnimation(101);
var dmg = Math.round(-0.50 * target._deathMarkDmg);
target.gainHp(dmg);
target._deathMarkDmg = 0;
target.startDamagePopup();
target.clearResult();
</Custom Leave Effect>

Place this into your Death Mark state’s notebox!

Be sure to set the state to Turn End and not Action End!