受動的な生命は能動的な能力ではなく受動的な特性を盗むことができるプラグイン – YEP_LifeSteal.js

タイトル
Enables passive life steal traits without them beingactive abilities but instead as passive traits.
作者名
ヘルプ
============================================================================
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
============================================================================

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 - Custom Life Steal
============================================================================

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 'flate' 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.

============================================================================
Changelog
============================================================================

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

Version 1.00:
- Finished Plugin!
パラメータ
param Enable HP Overheal
desc Allow Life Steal to drain more HP than damage?
NO - false YES - true
default false

param Enable MP Overheal
desc Allow Life Steal to drain more MP than damage?
NO - false YES - true
default false

param Negative HP LifeSteal
desc Allow HP Life Steal values to go negative and damage
the attacker? NO - false YES - true
default false

param Negative MP LifeSteal
desc Allow MP Life Steal values to go negative and damage
the attacker? NO - false YES - true
default false

ライセンス表記

紹介ページ https://github.com/suppayami/yami-engine-delta/blob/master/demo/js/plugins/YEP_LifeSteal.js