Any way you can make this as a reversal? I.E., if the player has the status, then anyone that attacks the attacker gets damaged?
Oh, and, I think it'd be a quick edit, but allowing each state to have its own damage? State 1: 40%, State 2: 30%, etc., using whatever the user defines.
Then again, I could throw in a quick fix to implement that... using...
dmg = temphp.to_f / (GameGuy::DmgPercent * i * 5)
and setting DmgPercent to 1. I believe that'd make it so state 1 would have a 5%, state 2 10%, state 3 15%, etc., etc., but there's probably an easier configuration of it anyway.
Good script though. ^_^