Help creating a skill with the following... (bypass Sleep state, more damage states)

I would like to create specific skill with RPG Maker MV, but am not sure how to achieve it. I am also using Yanfly Plugins if that makes it easier.

Skill name is Deathly Dagger. I'd like the skill to do the following:

1. If the enemy is sleeping and normally wakes up upon being hit, with this skill it won't. It'll have a 100% success chance of the enemy remaining asleep after skill is used.

Spoiler: This Part's Been Resolved
2. If the enemy is currently Poisoned (a state effect) then 50% more total calculated damage is dealt. I.e. Calculated damage could be a.atk * 4 - b.def * 2.
3. If the enemy is currently Bleeding (a state effect) then 70% more total calculated damage is dealt.

4. If the enemy has both Poison and Bleed on them, then the two together means 120% more total calculated damage is done.

I found code commands to do just #2 and just #3 on the internet with the damage formula box, but I couldn't find a way to do both with #4.

If anyone can help with #2, #3, #4 thanks. I prefer Yanfly Lunatic Mode to the JavaScript box, but the JavaScript box works too.

As for #1 I can't find anything on the internet so far on how to do this. I thought there might be a Tip and Trick video showing it, and if someone knows of one please link me to it, but I couldn't find it when searching.

I hope someone can help without it being too difficult.

Many thanks! : )
To do 4, you just need to restructure your damage formula so that #2 and #3 gives a modifier value instead of modifying the damage directly. Then on the part where you return the actual damage value, you multiply the damage with this modifier.

Like

Code:
var mul = 1.00; if (b.hasState(poison) ){mul+=0.5};if(b.hasState(bleed)){mul+=0.7);mul*(your actual damage);

Here, the multiplier starts as 1.00 then if he has poison, adds 0.5 to it, if he has bleed adds 0.7... So if he has both states, it will add 1.2 making the total damage as 2.2 (120 more than 100)
@Engr. Adiktuzmiko

Thanks a lot! I saw this https://steamcommunity.com/app/363890/discussions/0/1694919808747275888/

But didn't know how to add a second state to it.

This damage formula looks like it'll work! I like how mul is a variable as well, I can now see and understand that slightly. Thank you! : )


All I need now is to know a way to bypass/ignore not removing sleep upon hit with that damage formula.

If I can't achieve this, then I'd have to settle for removing the state and reapplying it if Deathly Dagger is used. I can do that much through a common event easily, but I'm sure the damage formula box or Yanfly's lunatic mode notetags could do that more easily.

Hopefully there is a simple way to bypass the sleep state with a skill.
I think you'd need a plugin for that because the engine handles it in the code, or... Just dont set the sleep state to be removed upon damage and make all other damage skills that shouldnt bypass it to remove the sleep state.
@Engr. Adiktuzmiko Thank you, again! I just realize that second option just after messing around with skillsets as well!

I think I will do that, but there isn't any harm requesting a plugin, so I'll request one too. I'll probably make more threads with skill requests here in the near future as I figure other things I'd like to do out.

Again, many thanks for the help.

Original thread: https://forums.rpgmakerweb.com/threads/help-creating-a-skill-with-the-following-bypass-sleep-state-more-damage-states.109898/