So, Fomar0153's Custom Formulae tutorials are a big help here, but...
I seem to have hit a snag; I'm trying to set up a skill similar to a hybrid of D&D's Magic Missile and Prismatic Spray; multiple hits with separate damage calculations, and two random status effects.
Thus far, it seems like the damage calculation formulae and the random status effect formulae (for the record, the random status effect formula is b.add_state(2+rand(6)) with use of the standard database status entries) are skipped until the last entry, which is applied as the only effect.
Setting up the script (following the second tutorial) as follows:
def multiblast(a, 😎
(1+rand(a.atk))-(1+rand(b.atk))
(1+rand(a.atk))-(1+rand(b.atk))
(1+rand(a.atk))-(1+rand(b.atk))
(1+rand(a.atk))-(1+rand(b.atk))
b.add_state(2+rand(6))
b.add_state(2+rand(6))
end
It seems that only the last line is applied, the rest are ignored. Am I missing something important here?
I seem to have hit a snag; I'm trying to set up a skill similar to a hybrid of D&D's Magic Missile and Prismatic Spray; multiple hits with separate damage calculations, and two random status effects.
Thus far, it seems like the damage calculation formulae and the random status effect formulae (for the record, the random status effect formula is b.add_state(2+rand(6)) with use of the standard database status entries) are skipped until the last entry, which is applied as the only effect.
Setting up the script (following the second tutorial) as follows:
def multiblast(a, 😎
(1+rand(a.atk))-(1+rand(b.atk))
(1+rand(a.atk))-(1+rand(b.atk))
(1+rand(a.atk))-(1+rand(b.atk))
(1+rand(a.atk))-(1+rand(b.atk))
b.add_state(2+rand(6))
b.add_state(2+rand(6))
end
It seems that only the last line is applied, the rest are ignored. Am I missing something important here?