Upon further messing around and looking at how the math works. The error seems to occur when the math starts going negative. Below is line 260 in the API. Keep in mind I'm not an API ninja, but I can fumble my way through some things. sendChat(script_name, '[[1d20cf<'+( DC-con_save_mod-1 )+'cs>'+(DC-con_save_mod-1)+'+'+con_save_mod+']]', results => { With a CON SAVE MOD of 10+ and taking damage enough that equals in a Concentration Check that has a DC of 10. The math starts creating a number there that creates a negative number. I think. Check the BOLD. Say the PC takes 10 damage, the DC would be 10, but the CON SAVE MOD is 10. the math there would go "1d20cf<'( 10-10-1 )+'cs>'+( 10-10-1 ).... I'm thinking this is where the crash is occurring? Does my logic follow? Upon further messing around, the API still works if the algorithm doesn't create a DC with a higher number, such as taking 60 damage.