Eval Collection: Bul-Kathos’s Wedding Band

unt1.PNG

Bul-Kathos’s Wedding Band is a legendary Ring from Diablo 3. Its unique ability drains life from nearby enemies. Here’s how to recreate this effect in RPG Maker MV.

Requirements:

♦ YEP_BuffsStatesCore.js

♦ YEP_AutoPassiveStates.js

  1. First, create the ring in the database.
  2. Use this notetag in its notebox:

<Passive State: x>

x is the number of the Passive State used for our Bul-Kathos effect.

  1. Create a new state in the Database at Index x. (the one from the notebox)
  2. Use the following notetag in the state’s notebox:

 


<Custom Turn End Effect>
for (var i = 0; i < $gameTroop.aliveMembers().length; i++) {
var enemy = $gameTroop.aliveMembers()[i];
var dmg = Math.ceil(enemy.hp * 0.02);
enemy.gainHp(-dmg);
enemy.startDamagePopup();
enemy.clearResult();
user.gainHp(dmg);
user.startDamagePopup();
user.clearResult();
if (enemy.hp <= 0) { enemy.performCollapse() };
};
</Custom Turn End Effect>

Line 4 needs adjustment! Change the part within brackets to the amount of HP you would like to absorb. In my case, Bul-Kathos’s Wedding Band absorbs 2% of the current HP of each enemy.

 

 

Advertisements

2 thoughts on “Eval Collection: Bul-Kathos’s Wedding Band

Write a comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s