Adding bonus damage popup for skill

● ARCHIVED · READ-ONLY
Started by Icenick 1 posts View original ↗
  1. Im trying to write a skill that if target has a state a bonus skill is cast and deals another source of damage. Since force action does not work with Yanfly STB system this is causing me a headache.
    Here is what I have;
    Code:
            if (b.isStateAffected(20)) {                     
                damage *= 1.5
                b.removeState(20)                                           
                if (damage > b.hp) {}
                else{
                b.startDamagePopup()
                b.startAnimation(94)
                b.gainHp(-damage*.5)                       
            }
        }
    Currently it just multiples the damage by 50%.
    I would like to have it cast an additional skill if certain conditions are met, show an animation and damage separately and if possible be cast as an aoe so it changes targets to anything nearby enemy.