I'm trying to use TokenMod to place a value in Bar3 that updates as the character uses a torch. I'm running 1st Ed AD&D character sheet. I've got a macro that calls the Torch script when they light a torch, ChatSetAttr to deduct a torch from the character's inventory and another script that calls TokenMod (after a delay) when the torch "goes out". I've tried using: !token-mod --set bar3_value|@(selected|repeating_equipment_$0_quantity) as torches are in that repeating section slot, but it obediently puts the whole string in there rather than the value. I then tried: !token-mod --set bar3_value|[[@(selected|repeating_equipment_$0_quantity)]] and end up getting a syntax error. Yes - I do have a token selected before running the command and I have insured that there is a value in that field. Is it possible to do this? I want to use Bar3 to let the characters see how many torches they have left without having to pull up their character sheet every time. The macro (currently) to take care of the other stuff is: !torch 80 72 yes --360 @{selected|token_id}
!setattr --silent --sel --repeating_equipment_$0_quantity|[[@{selected|repeating_equipment_$0_quantity} -1]]
!delay [[10*60*1000]] !token-mod --set light_radius|20 light_dimradius|18 light_otherplayers|yes light_angle|360 I'd like to be able to add in (after Line 1 or Line 2) where the Bar3 Value gets updated with how many torches they have left. I've probably got the formatting wrong (hence the syntax error on the 2nd one) or it isn't possible - that would be my guess as to why it's not working as I hoped. Thanks!