And a semi-colon isn't use to separate the 'if' from the 'else', curly braces are used for that.
In fairness, you only need the curly braces when the if/else statements are working with multiple lines.
Try this
Code:
a.isActor() === true ? (300 + (a.mat * v[44])) : (300 + (a.mat * 3) + a.hrg * a.mrg)
When checking whether something is true or false, you don't need the a.isActor() === true part since a.isActor() already returns true or false. a.isActor() === true is basically asking if (true === true).
---
All that aside, I think this is what the OP is looking for:
Code:
b.isActor() ? 300 + a.mat * v[44] : 300 + a.mat * 3 + a.hrg * a.mrg
Note that you don't put a semicolon at the end of a statement in the damage formula box when you want that statement's result to be used to calculate damage
Edit: Or replace b.isActor with a.isActor if it's supposed to check whether the caster is an actor rather than the target. I got the feeling it was mean to be based on the target though, so I changed the a to b.