![](https://s3.amazonaws.com/files.d20.io/images/155375437/zSTfPHJiqJptW6GlWnp9Ww/thumb.jpg?1596582930773)
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.