- Joined
- Sep 7, 2018
- Messages
- 39
- Reaction score
- 6
- First Language
- English
- Primarily Uses
- RMMV
Ok so i have the recoil damage working perfectly except for 1 thing. I can get it to return "Physical" damage without an issue but for the life of me i cant figure out how to return elemental damage.
That is the base of the reocil damage formula im using. It checks to see if the mob deals more then 0 damage and that the monster is dealing physical damage then does a random damage calculation for the recoil that is then returned to the mob. which then im using yanfly plugin for <Custome React Effect>
I know the above is not showing any element. If someone would be kind enough to help/show how to change this from physical to an element damage please. I dont mean the check for the monster i want that to stay physical but the recoil damage change it from physical to elemental
I want to change the recoil damage from physical to elemental so i can add each elemental so that way monsters that have resistance to certen elmentals will eaither heal or take less damage bassed on the resistance or nulifaction of a certen element
if (value > 0 && this.isPhysical()) {
var recoil = Math.floor(Math.random() * (16 - 8 + 1) + 8);
a.gainHp(-recoil);
}
That is the base of the reocil damage formula im using. It checks to see if the mob deals more then 0 damage and that the monster is dealing physical damage then does a random damage calculation for the recoil that is then returned to the mob. which then im using yanfly plugin for <Custome React Effect>
I know the above is not showing any element. If someone would be kind enough to help/show how to change this from physical to an element damage please. I dont mean the check for the monster i want that to stay physical but the recoil damage change it from physical to elemental
I want to change the recoil damage from physical to elemental so i can add each elemental so that way monsters that have resistance to certen elmentals will eaither heal or take less damage bassed on the resistance or nulifaction of a certen element