I've finally started digging deeper into macros and using the API and im running into an issue I can't solve. I think it is specifically with the apply damage script addition to Group Check found here . I'm getting the following error in my API. ReferenceError: playerIsGm is not defined at apiscript.js:3520:32 I've tried playing around with the code based on my basic understading but just amending / removing that part just created more errors. Any help would be appreciated. My ultimate aim is to roll the apply damage script into a wider macro that allows me to choose the check and then easily apply damage with a macro similar to the below. I'm assuming the issue is with the script and not the macro's given I've tried using the one linked in the thread but perhaps I'm missing something. !group-check {{ --hideformula --?{Output|Public,public|Whisper,whisper} --?{Ability Save|Strength,Strength Save|Dexterity,Dexterity Save|Constitution,Constitution Save|Intelligence,Intelligence Save|Wisdom,Wisdom Save|Charisma,Charisma Save} --ro ?{Roll Type|Normal,roll1|Advantage,adv|Disadvantage,dis} --subheader vs DC ?{DC} --process --button ApplyDamage !apply-damage ~dmg [[?{Damage}]] ~type ?{Damage on Save|Half,half|None,none} ~DC ?{DC} ~saves RESULTS(,) ~ids IDS(,) }}