I am getting a crashing sandbox with this error:
The macro being used:
For reference, the error message generated was: TypeError: update.match is not a function
TypeError: update.match is not a function
at getRelativeChange (apiscript.js:6412:19)
at apiscript.js:6787:68
at Function._.each._.forEach (/home/node/d20-api-server/node_modules/underscore/underscore.js:153:9)
at apiscript.js:6774:8
at Function._.each._.forEach (/home/node/d20-api-server/node_modules/underscore/underscore.js:158:9)
at applyModListToToken (apiscript.js:6750:5)
at apiscript.js:7093:25
at Function._.each._.forEach (/home/node/d20-api-server/node_modules/underscore/underscore.js:153:9)
at _.(anonymous function) [as each] (/home/node/d20-api-server/node_modules/underscore/underscore.js:1496:34)
at handleInput (apiscript.js:7092:22)
The macro being used:
!token-mod --set statusmarkers#?{Status| Disadvantaged,red| Advantaged,green| Concentrating,blue| Readying,stopwatch| ―, | Prone,back-pain| Restrained,fishing-net| Grappled,grab| ―, | Incapacitated,interdiction| Stunned,pummeled| Unconscious,sleepy| Dying,skull| ―, | Charmed,chained-heart| Frightened,screaming| ―, | Poisoned,half-heart| Blinded,bleeding-eye| Deafened,lightning-helix| Paralyzed,padlock| Petrified,broken-skull| ―, | Dodging,bolt-shield| Cover (half),broken-shield:2| Cover (three-quarters),broken-shield:5| Cover (full),white-tower| Invisible,ninja-mask| ―, } /w gm &{template:default} {{name=?{Status} [–](!token-mod --set statusmarkers#?{Status}:-1)[+](!token-mod --set statusmarkers#?{Status}:+1)[#](!token-mod --set statusmarkers#?{Status}:?{Number|1|2|3|4|5|6|7|8|9|None,-9}) [Toggle](!token-mod --set statusmarkers#!?{Status}) [Clear All](!token-mod --set statusmarkers#=red#-red)}}