Adding a State to the DMG Formula?

Hi all!

I'm looking to see how to add a state to the damage formula in skills. I have an Ice magic user who will occasionally "Freeze" targets with her abilities (it's basically a paralyze with a different icon). But she also has an ability I'd like to add that's called "Break the Ice." I'd love this ability to do 100% extra damage on "Frozen" targets. And then the Frozen state goes away. I know how to get rid of the state, but I don't know how to add the extra damage.

I found this post: http://forums.rpgmakerweb.com/index.php?/topic/11832-checkerasing-a-state-via-skills-damage-formula/ but it doesn't look like it's been solved... T.T I'm also not sure how I'd use that formula, it wasn't really explained...

Thanks for any help! <3
a.state?(id) damage with bonus : damage

if you want to remove the state too, then:

x = a.state?(id); a.remove_state(id); x? damage with bonus : damage

You check first for the state since you need to know if it exist for the bonus damage...
a.state?(id) damage with bonus : damage

if you want to remove the state too, then:

x = a.state?(id); a.remove_state(id); x? damage with bonus : damage

You check first for the state since you need to know if it exist for the bonus damage...
Thanks so much!

I'm still in the planning stage with MS Excel so I can't test it just yet, but its in my documents! Excited :3
you would use b instead of a in the calculations though

so something like

c = 4 * a.mat - 2 * b.mdf; if b.state?(id); b.remove_state(id); c *= 2;end; c

replace id with the id of your frozen state.

Edit:fixed typo in formula
uhm, you checked a.state, but removed it from b?
indeed I did.

fixed the typo.

Original thread: https://forums.rpgmakerweb.com/threads/adding-a-state-to-the-dmg-formula.15331/