- Joined
- Aug 16, 2015
- Messages
- 10
- Reaction score
- 3
- First Language
- Spanish
- Primarily Uses
Hello people,
So the idea is as it follows. This skill shouldn't be a normal "cover" skill where the actor gets all the blows from the enemy, as such effect could be easily recreated with Yanfly's "Taunt" plugin.
The effect of this skill would be to block the incoming damage of an enemy's AoE skill for the "covered" battlers and transfer that negated damage to the battler covering.
I've been searching for a while, and I've found a guy using Yanfly's "Buffs states core". He made a custom effect for the cover skill, writing this costume formula on the state's notebox.
<Custom Respond Effect>
if (this.isHpEffect() && value > 0){
origin.gainHp(-value);
origin.startDamagePopup();
target.gainHp(value);
target.startDamagePopup();
target.clearResult();
}
</Custom Respond Effect>
This formula works pretty close as the idea intended, but instead of blocking damage to the "covered" allies, it heals them. The damage gets redirected to the "tank" just fine, so that far it works.
If you try to change this line:
target.gainHp(value); to -----> target.gainHp(0);
It appears as "0" damage displayed, but actually the battlers lose HP anyways.
So what im asking you guys is if you could think of a way to modify the formula for the intended results, or instead, if you have any other ideas that could work, id also like to hear them.
Thanks.
So the idea is as it follows. This skill shouldn't be a normal "cover" skill where the actor gets all the blows from the enemy, as such effect could be easily recreated with Yanfly's "Taunt" plugin.
The effect of this skill would be to block the incoming damage of an enemy's AoE skill for the "covered" battlers and transfer that negated damage to the battler covering.
I've been searching for a while, and I've found a guy using Yanfly's "Buffs states core". He made a custom effect for the cover skill, writing this costume formula on the state's notebox.
<Custom Respond Effect>
if (this.isHpEffect() && value > 0){
origin.gainHp(-value);
origin.startDamagePopup();
target.gainHp(value);
target.startDamagePopup();
target.clearResult();
}
</Custom Respond Effect>
This formula works pretty close as the idea intended, but instead of blocking damage to the "covered" allies, it heals them. The damage gets redirected to the "tank" just fine, so that far it works.
If you try to change this line:
target.gainHp(value); to -----> target.gainHp(0);
It appears as "0" damage displayed, but actually the battlers lose HP anyways.
So what im asking you guys is if you could think of a way to modify the formula for the intended results, or instead, if you have any other ideas that could work, id also like to hear them.
Thanks.
Last edited:






