Eval Collection: Thorn Aura

A thorn aura is a state that will reflect any damage taken back to the attacker.

Requirements:

♦ YEP_BuffsStatesCore

ta2.png

In the picture above, Dean is being attacked, taking 100 Damage. Since he has the thorn aura state the damage is reflected back to the enemy.

Use this notetag in the notebox of your state:


<Custom Respond Effect>
user.gainHp(-value);
if (user.hp <= 0) { user.performCollapse() };
</Custom Respond Effect>

Line 2 needs adjusting! In some cases you may have a weaker or stronger version of the thorn aura meaning you may want it to reflect more or less damage back. “value” is the amount of damage your actor has taken. Some suggestions for altering it:
-value * 2 = This thorn aura will reflect twice as much damage back.

-value * 0.5 = This thorn aura is a bit weaker and reflects only 50% damage back.

Or you could replace it with an integer altogether. Maybe your shield always returns 200 damage back?

Advertisements

5 thoughts on “Eval Collection: Thorn Aura

  1. Howdy, I do believe your web site might be having browser compatibility issues.
    When I take a look at your web ssite in Safari, it looks fine however,when opening in I.E., it’s goot some overlapping issues.
    I simply wanted to provide you with a quick heads up!
    Besides that, fantastic website!

    Like

  2. Can not you to return only damage at the time of this enemy physical attack?
    I want to not return a damage caused by magic attack

    Like

    1. For physical attacks only:

      <Custom Respond Effect>
      if (this.isPhysical()) {
      user.gainHp(-value);
      if (user.hp <= 0) { user.performCollapse() };
      };
      </Custom Respond Effect>
      

      For magical attacks only:

      <Custom Respond Effect>
      if (this.isMagical()) {
      user.gainHp(-value);
      if (user.hp <= 0) { user.performCollapse() };
      };
      </Custom Respond Effect>
      

      Like

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