How do I use Yanfly Lunatic Damage?

I must be blind, because I can't figure how how to use the script. It tells me to add <custom damage: string> to the notebox, but if I use something like <custom damage:TOXIC COMBAT BLADE>, I then have to put
Code:
when /TOXIC COMBAT BLADE/i
value += example formula
somewhere in the script. I don't know where to put it, and the instructions aren't exactly clear on the matter. Everything I try to do ends up not working. This is the damage formula I want to use:
Code:
c= a.roll(1, 8)+a.mod(:str); a.state?(50) ? (b.saving_throw(a, :bod, 20, "Toxin") ? c+6:b.add_state(61); c+6): (b.saving_throw(a, :bod, 20, "Toxin") ? c:b.add_state(61); c)

This does 1 to 8 damage, plus your strength modifier.
Code:
c= a.roll(1, 8)+a.mod(:str)

If you have the "Powerful Strike" state, then it will add 6 damage to the normal formula.
Code:
a.state?(50) ? c+6

This also has the target do a "saving throw" (if you are familiar the D&D, then you know how this works). If they fail the saving throw, then they take the damage plus have an additional state added.
Code:
(b.saving_throw(a, :bod, 20, "Toxin") ? c:b.add_state(61); c

Anyone else have insight of how to use this script correctly?

I've moved this thread to RGSSx Script Support. Thank you.

somewhere in the script. I don't know where to put it, and the instructions aren't exactly clear on the matter.
Screenshot_472.jpg

You do it like in these example.
@TheoAllen Thank you, that makes it clearer!

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-use-yanfly-lunatic-damage.120747/