Is there any way to use token-mod or chatsetattr to check the resource value and stop the script or macro if the resource is 0? This could be a class ability (class_resource or other_resource) or even any of the repeating resources for ammo, potions, etc? I see there is a way to prevent healing beyond hp_max so wondering if there is something similar to setting a hard floor of 0 for resources.