For your 1st question, I haven't tested it but...
I am still trying to figure out how to do damage without using the damage formula box? Currently trying for simple damage using the below code, just to see if it can work. If i was to get it to work I can make the damage more interactive
<JS Pre-Damage>
const damage = 22;
target.gainHp(-damage);
</JS Pre-Damage>
My final goal is to get something like the old Arcane Blast from Word of Warcraft where the move increases in power and resource cost with each consecutive use... i was thinking using a stacking counter like yall suggested in my earlier post
<JS On Add State>
target._pain ??= 0;
target._pain++;
</JS On Add State>
<JS On Erase State>
delete target._pain;
</JS On Erase State>
<JS Pre-Regenerate>
target._pain ??= 0;
const stacks = Math.min(3, target._pain);
const damage = stacks * 100;
$gameTemp.requestAnimation([target], 59);
target.gainHp(-damage);
</JS Pre-Regenerate>
That is not the suggested code for the Arcane Blast, just an example of the stacks I was thinking of trying to use
