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
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:
This does 1 to 8 damage, plus your strength modifier.
If you have the "Powerful Strike" state, then it will add 6 damage to the normal formula.
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.
Anyone else have insight of how to use this script correctly?
Code:
when /TOXIC COMBAT BLADE/i
value += example formula
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?