Hi folks, I've been working on my campaign, setting up macros and scripts for my players to use. One of the scripts I've installed is ChatSetAttr, and it's worked wonderfully so far, but there's one character with one specific attribute that's just acting up and I can't for the life of me figure out why. I was hoping someone else here might've encountered the same issue or is able to help me troubleshoot the cause. The character in question has a magical item that gains 1 charge after each attack he makes, which he can spend on effects. In his macro'd attacks, I've added... !modbattr --silent --charid -Mw-28cIKLIcOgEKhd6H --repeating_resource_$1_resource_left|+1 !!! ...in order to keep track of the number of charges he has. I've also added an activation macro to the character that'll post in chat what action he uses the charges on, and resets the number of charges to 1 when he uses it. It looks like this. !setattr --silent --charid -Mw-28cIKLIcOgEKhd6H --repeating_resource_$1_resource_left|1 !!! The thing is, whenever the first line of code is run, it also adds 6 to his passive_wisdom score for some reason. Whenever the second line of code is run, it also sets his passive_wisdom to 1 . I've used the exact same code for other characters without having any issues, so I started troubleshooting in an attempt to fix it. In one of my many attempts, I noticed that if I added another set of repeating resources, changed the code to $2 instead of $1, and ran it again, then it worked without messing with passive_wisdom . The issue only appears when repeating_resource_$1_resource_left or right is used to track the charges. Now, an easy solution would be to just not use that resource line, skipping it all together for the character. But I'd really prefer to find a solution to the problem, so if I run into it again in the future, I know how to fix it. Edit: We're playing D&D, using the 5e OGL sheet. Figured providing the full code ahead of time for both causations might help anyone who wishes to help. Activating the item: &{template:desc} {{desc=Adrian activated the ?{Which ability?|Bonus to Attack,bonus to Attack|Bonus to Damage,bonus to Damage} ability of Vengeance! **?{Number of charges?|1|2|3|4|5|6|7|8|9}** charges expended}}
!setattr --silent --charid -Mw-28cIKLIcOgEKhd6H --repeating_resource_$1_resource_left|1 !!!
!token-mod --ids -Mw-28cIKLIcOgEKhd6H --current_page --set bar2_value|1 Adding charges on attacks: !modbattr --silent --charid -Mw-28cIKLIcOgEKhd6H --repeating_resource_$1_resource_left|+1 !!!
!token-mod --ids -Mw-28cIKLIcOgEKhd6H --current_page --set bar2_value|+1 Any help is appreciated! Thanks in advance, - Jakob F.