
I've been trying to do a script so that when a character casts a spell , for example Summon Beast the API ChatSetAttr will subtract 1 a Gilded Acorn from the other resource list . I just cannot get anywhere with this albeit I have tried. !modattr --charid -N8uE4_WV6Jb1gNFwXiB --repeating_resource_-NDz89k0rIZi9jmLaS4i_resource_left|-1 --repeating_resource_-NDz89k0rIZi9jmLaS4i_resource_right|-1 This line deletes the resource from the character sheet leaving me with nothing. !modattr --charid -N8uE4_WV6Jb1gNFwXiB --repeating_resource_$0_attr_resourceamount|-1 This line says it works but doesn't do anything. I'm sure I've the attributes wrong. Can someone help ? Also, what shall I type to put this script into the spell card?