Scripted Custom Damage Formula not working?

I am having trouble understanding how to combine the use of scripts with custom damage formulas. I followed the tutorial at http://forums.rpgmakerweb.com/index.php?/topic/1716-how-to-make-the-most-of-custom-formulae-part-2/ however the damage dealt is always zero. Has something changed within the past two years, or am I missing something really obvious?

rpgmaker_damage_formula.png

rpgmaker_damage_script.png
What first comes to mind is, how are the stat numbers?

Try adjusting the heroes' and the monsters' stats up a bit, see if that changes anything.
What first comes to mind is, how are the stat numbers?

Try adjusting the heroes' and the monsters' stats up a bit, see if that changes anything.
No effect. Even passing a hardcoded value with no relation to the actor/enemy stats does nothing.

Edit: Okay, I feel silly. I was using Battle Test in the editor, and I didn't realize that changes made to scripts are only reflected in Battle Test after you've saved the project. It's working as intended after all.
That... would account for the problem, yes. Good thing you worked it out. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/scripted-custom-damage-formula-not-working.33763/