Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Apply damage API no longer working?

February 24 (1 month ago)

I'm a fan of the Apply damage API however recently it has stopped working for me. Whenever I try using it I get an error message and all my API stop working till I reset the sandbox. Anyone know if there is a fix?

Error listed below \/

TypeError: attrValue.match is not a function TypeError: attrValue.match is not a function at apiscript.js:14347:29 at String.replace (<anonymous>) at processFormula (apiscript.js:14341:27) at processTokenRollData (apiscript.js:14373:46) at apiscript.js:14628:24 at Array.map (<anonymous>) at handleRolls (apiscript.js:14627:45) at handleInput (apiscript.js:14667:63) at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:186:1), <anonymous>:65:16) at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:186:1), <anonymous>:70:8)

March 04 (4 weeks ago)

This is the current macro I use for it.

!group-check {{
--hideformula
--public
--?{Which Save Stat|Strength,Strength Save|Dexterity,Dexterity Save|Constitution,Constitution Save|Intelligence,Intelligence Save|Wisdom,Wisdom Save|Charisma,Charisma Save}
--process
--subheader vs DC ?{DC}
--button ApplyDamage !apply-damage
~dmg [[?{Damage}]]
~type ?{Damage on Save|Half,half|None,none}
~DC ?{DC}
~saves RESULTS(,)
~ids IDS(,)
}}
Done