- Feb 7, 2019
- Reaction score
- First Language
- Primarily Uses
how do i make a weapon that can damage or kill the user much like devil weapons from fire emblem
weapons with higher base stats but hurt the user when they land a hit.Can you describe how the devil weapons from Fire Emblem work for the benefit of those who aren't familiar with them?
if (Math.randomInt(100)<15) a.gainHp(-10);
no, something as simple as affecting the user whenever the skill hits can be done completely without a plugin, just by damage code.this would probably require passive states and buff state core plugins.
That is even simpler than ATT_Turan's example abovebackfire damage to the user for ex. 10 hp dmg whenever they hit
a.gainHP(-10); 4* a.atk - 2* b.def
if ($dataWeapons[a.equips().itemId()].meta["devil"]) a.gainHp(-10);