Life Steal (YEP)

From Yanfly.moe Wiki
Jump to navigation Jump to search


System

This is a plugin created for RPG Maker MV.

For help on how to install plugins, click here.

For help on how to update plugins, click here.

Got errors with your RPG Maker MV plugin? Click here.

Download

Yanfly Engine Plugins

This plugin is a part of the Yanfly Engine Plugins library.

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

Introduction

Life Steal is a mechanic in RPG Maker MV that only exists in the form of
specific skills or items. There is no way to passively gain Life Steal from
physical, magical, or certain hit attacks. This plugin will allow you to set
passive Life Steal traits for physical, magical, and certain hit attacks for
both HP and MP values.

Notetags

NotetagsMV.png

RPG Maker MV's editor is unable to allow for custom traits/properties that a game dev may wish to associate with a database object, event, map, etc. Notetags are used to work around such limitations by allowing the game dev to tag certain traits/properties using specific Notetags declared by the related plugin.

Here is a list of Notetag(s) that you may use.

You can use the following notetags to alter how Life Stealing works for the
various database entries.

---

Skill and Item Notetags:

  <HP Life Steal: x%>
  <MP Life Steal: x%>
  This causes this attack to life steal x% of HP or MP back relative to the
  amount of damage dealt.

  <HP Life Steal: x>
  <MP Life Steal: x>
  This causes this attack to life steal exactly x amount of HP or MP back
  regardless of damage dealt.

  <Cancel Life Steal>
  Makes this skill or item cancel any Life Steal effects from passively
  activating for this action. However, HP Drain and MP Drain will still
  still occur.

  <Cancel HP Life Steal>
  <Cancel MP Life Steal>
  Specifically cancels out HP Life Steal or MP Life Steal effects from
  passively activating for this action. However, HP Drain and MP Drain will
  still occur.

---

Actor, Class, Enemy, Weapon, Armor, State Notetags:

  <HP Life Steal Physical: +x%>
  <HP Life Steal Magical: +x%>
  <HP Life Steal Certain: +x%>

  <MP Life Steal Physical: +x%>
  <MP Life Steal Magical: +x%>
  <MP Life Steal Certain: +x%>

  <HP Life Steal Physical: -x%>
  <HP Life Steal Magical: -x%>
  <HP Life Steal Certain: -x%>

  <MP Life Steal Physical: -x%>
  <MP Life Steal Magical: -x%>
  <MP Life Steal Certain: -x%>
  This causes the related battler to multiplicatively increase its passive
  Life Steal by +x% or -x% of the damage dealt towards Physical, Magical, or
  Certain Hit type of attacks. This effect stacks multiplicatively.

  <HP Life Steal Physical: +x>
  <HP Life Steal Magical: +x>
  <HP Life Steal Certain: +x>

  <MP Life Steal Physical: +x>
  <MP Life Steal Magical: +x>
  <MP Life Steal Certain: +x>

  <HP Life Steal Physical: -x>
  <HP Life Steal Magical: -x>
  <HP Life Steal Certain: -x>

  <MP Life Steal Physical: -x>
  <MP Life Steal Magical: -x>
  <MP Life Steal Certain: -x>
  This causes the related battler to additively increase its passive Life
  Steal by a flat +x or -x of the damage dealt towards Physical, Magical, or
  Certain Hit type of attacks. This effect stacks additively.

  <Guard Life Steal>
  The related battler cannot be life stolen from for both HP and MP.

  <Guard HP Life Steal>
  <Guard MP Life Steal>
  The related battler cannot be life stolen from for either HP or MP.

  <Cancel Life Steal>
  The related battler cannot passively life steal both HP and MP.

  <Cancel HP Life Steal>
  <Cancel MP Life Steal>
  The related battler cannot passively life steal HP or MP specifically.

---

Lunatic Mode

JavaScript.png

For advanced users who have an understanding of JavaScript, you can use the following features added by the plugin to further enhance what you can do with your game project.

For those with JavaScript proficiency, you can utilize these notetags to
have your various database objects have dynamic Life Steal values.

--- Skill and Item Notetags ---

  <Custom HP Life Steal Rate>
   rate = user.hpRate();
  </Custom HP Life Steal Rate>

  <Custom MP Life Steal Rate>
   rate = user.hpRate();
  </Custom MP Life Steal Rate>
  The 'rate' variable is the amount of HP/MP that the skill/item will life
  steal from the target based on the damage dealt to the target. This is a
  percentile value.

  --- --- ---

  <Custom HP Life Steal Flat>
   flat = user.mhp;
  </Custom HP Life Steal Flat>

  <Custom MP Life Steal Flat>
   flat = user.mhp;
  </Custom MP Life Steal Flat>
  The 'flat' variable is the amount of HP/MP that the skill/item will life
  steal from the target based on the damage dealt to the target. This is a
  flat value.

--- Actor, Class, Enemy, Weapon, Armor, State Notetags ---

  <Custom HP Life Steal Physical Rate>
   rate = user.hpRate();
  </Custom HP Life Steal Physical Rate>

  <Custom HP Life Steal Magical Rate>
   rate = user.hpRate();
  </Custom HP Life Steal Magical Rate>

  <Custom HP Life Steal Certain Rate>
   rate = user.hpRate();
  </Custom HP Life Steal Certain Rate>

  <Custom MP Life Steal Physical Rate>
   rate = user.hpRate();
  </Custom MP Life Steal Physical Rate>

  <Custom MP Life Steal Magical Rate>
   rate = user.hpRate();
  </Custom MP Life Steal Magical Rate>

  <Custom MP Life Steal Certain Rate>
   rate = user.hpRate();
  </Custom MP Life Steal Certain Rate>
  The 'rate' variable is the bonus amount of multiplicative rate the related
  user will life steal HP/MP from its target relative to the damage dealt.
  This is a percentile value and stacks multiplicatively.

  --- --- ---

  <Custom HP Life Steal Physical Flat>
   flat = user.mhp;
  </Custom HP Life Steal Physical Flat>

  <Custom HP Life Steal Magical Flat>
   flat = user.mhp;
  </Custom HP Life Steal Magical Flat>

  <Custom HP Life Steal Certain Flat>
   flat = user.mhp;
  </Custom HP Life Steal Certain Flat>

  <Custom MP Life Steal Physical Flat>
   flat = user.mhp;
  </Custom MP Life Steal Physical Flat>

  <Custom MP Life Steal Magical Flat>
   flat = user.mhp;
  </Custom MP Life Steal Magical Flat>

  <Custom MP Life Steal Certain Flat>
   flat = user.mhp;
  </Custom MP Life Steal Certain Flat>
  The 'flat' variable is the bonus amount of flat bonus the related user
  will life steal HP/MP from its target relative to the damage dealt. This
  is a flat bonus value and stacks additively.

Tips & Tricks

The following Tips & Tricks effects use this plugin:

Changelog

Version 1.04:
- Bypass the isDevToolsOpen() error when bad code is inserted into a script
call or custom Lunatic Mode code segment due to updating to MV 1.6.1.

Version 1.03:
- Updated for RPG Maker MV version 1.5.0.

Version 1.02:
- Lunatic Mode fail safes added.

Version 1.01:
- Updated for RPG Maker MV version 1.1.0.

Version 1.00:
- Finished Plugin!