Hello,
I have a problem creating a special damage formula by using Yanflys Plugins:
Goal:
I want to deal double (or value x) damage to an enemy, affected by a state.
It should double all incoming damage to an enemy, if the "enemy type" is "ghost". I made a <Passive State: 61> which resembles this enemy type "Ghost".
Context:
I use RPG Maker MV and use some of yanflys plugins. The Skill is inspired by the witcher and uses at the moment the exact names from the game.
Situation:
Player Character has Skill: 93 - Trap: Yrden. It should resemble making a trap a sphere of influence.
Effects: Add State: Trap: Yrden to player
State 79 - Trap: Yrden (Player is affected by this)
Note:
<Custom React Effect>
if (user && target && target.result().isHit()) {
user.addState(80);
}
</Custom React Effect>
State 80 - Yrden affected (Enemy is affected by this)
---Until here, everything seems working---
Note
<Custom Damage Eval>
if (b.isStateAffected(61)) {
value *= 2.0;
}
</Custom Damage Eval>
But if I attack the ghost, the damge stays the same as if I attack without the "Yrden affection", it deals no double dmg.
Thanks in advance 🙂
I have a problem creating a special damage formula by using Yanflys Plugins:
Goal:
I want to deal double (or value x) damage to an enemy, affected by a state.
It should double all incoming damage to an enemy, if the "enemy type" is "ghost". I made a <Passive State: 61> which resembles this enemy type "Ghost".
Context:
I use RPG Maker MV and use some of yanflys plugins. The Skill is inspired by the witcher and uses at the moment the exact names from the game.
Situation:
Player Character has Skill: 93 - Trap: Yrden. It should resemble making a trap a sphere of influence.
Effects: Add State: Trap: Yrden to player
State 79 - Trap: Yrden (Player is affected by this)
Note:
<Custom React Effect>
if (user && target && target.result().isHit()) {
user.addState(80);
}
</Custom React Effect>
State 80 - Yrden affected (Enemy is affected by this)
---Until here, everything seems working---
Note
<Custom Damage Eval>
if (b.isStateAffected(61)) {
value *= 2.0;
}
</Custom Damage Eval>
But if I attack the ghost, the damge stays the same as if I attack without the "Yrden affection", it deals no double dmg.
Thanks in advance 🙂