Effect when your skill misses

● ARCHIVED · READ-ONLY
Started by Eremis370 5 posts View original ↗
  1. So I had this idea for a super powerful attack, if you hit then you would deal ordinary damage, but if you miss you would still be able to slow down the enemy, by debuffing them.

    However I'm having problem implementing this in my game, I tried doing it on the damage formula, I got the if statement done except I have no idea how to determine if a skill misses or not.
    I tried searching online and in the game's help page, but I still couldn't find a way to verify whether your skill hit or misses, and I'm not good with javascript so I would greatly appreciate it if anyone could provide a javascript plugin or if you could just do it in damage formula, please let me know as well.
  2. Can't be done by damage formula, because that is only executed on hit.
    You need to look for a plugin
  3. I think what you might be looking for is this plugin from Yanfly, Skill Core.
    ( http://yanfly.moe/2015/10/13/yep-8-skill-core/ )

    To my best knowledge, it lets certain effects take place post damage eval and can include parameter changes if you miss an attack.

    I hope this sets you on the right track. These plugins are used often, so you might want to update your thread with this plugin as the focus. It will possibly attract others who know more than me and have attempted to implement something similar.

    To use this plugin, I believe you need a few others, such as his engine, battle engine, etc.
  4. With that plugin, you can try this:
    Code:
    <Post-Damage Eval>
    var result = target.result();
    if (result.missed || result.evaded){
    //do somthing here
    }
    </Post-Damage Eval>
    Hope it work. In case it wont, there is still another way. And i believe that plugin is a standalone one, so it does not require his other plugins.
  5. Thanks everyone, I'll try the advices when I have time