I want to add in my game a weapon that basically damages the enemy, but it has 1% chance to do 1 hit KO. I already did this making a skill (i will replace the attack command with, using yanfly's weapon attack replace script). This skill has the same formula of basic attack, but 1% chance to add KO state. The only issue is that the player could use this against bosses, killing theme in one hit.
I don't want this, but i don't know how to solve. The way as bosses are defined in my game is a switch (i turn on before the battle and off after).
I thought how to do this and maybe a common event will help. The skill will call a common event that has the condition if boss switch is on do nothing, else control variable to casual numer 1-100.
if 1 add state to target (and there is the issue, i don't know if is possible to do this by event) else do nothing.
Any idea?
I don't want this, but i don't know how to solve. The way as bosses are defined in my game is a switch (i turn on before the battle and off after).
I thought how to do this and maybe a common event will help. The skill will call a common event that has the condition if boss switch is on do nothing, else control variable to casual numer 1-100.
if 1 add state to target (and there is the issue, i don't know if is possible to do this by event) else do nothing.
Any idea?