I caught this error when I ran the following command.
add key "timer" with value max(0,DATA.Get("timer")-1)
The problem arose as I had previously defined the contents of DATA.get("time") as an int, and I had changed it to text. My mistake. Either way, there's a casting issue and this throws up the following error when executed in the browser. So the error could have arisen because of the subtraction, or the MAX function. This might be useful to other people who are trying to decipher the error. If you see an assertion error, check if you are misusing a text variable. It might be worth to Ashley or the developers to put in an error check to help catch the problem or to help a developer diagnose the failure if they've made the same mistake.
Assertion failure: Calling expvalue.set_float without number type
at assert2 ()
at ExpValue.prototype.set_float ()
at SysExps.prototype.max ()
at ExpNode.prototype.eval_system_exp ()
at Parameter.prototype.get_exp ()
at Action.prototype.run_object ()
at EventBlock.prototype.run_actions_and_subevents ()
at EventBlock.prototype.run ()
at EventSheet.prototype.run ()
at EventInclude.prototype.run ()