I am trying to implement a hiding action for enemy characters using TokenMod. The macro I've got set up rolls Stealth for the token and stows that value in bar3. It works well enough, but I would like to have some way for my players to tell whether their perception allows them to see the hiding enemy or not. I realize that I could expose the bar to the players but for readability I would prefer to handle it another way, with the DC for the enemy's stealth clearly visible to the players. One that came to mind was creating custom status markers and setting them like set statusmarkers|="hidden{bar3_value}", or setting name|"DC{bar3_value}" and making the nameplate visible to the players. I have tried to achieve this three ways: By setting bar_value using token-mod, and trying in the same --set or subsequent --set operations to access that 'bar3_value' variable. Can't figure out whether that's possible, or what the syntax would be. By running a follow-up command to simply --set name|@{selected|bar3}. That will always give the value that bar3 was prior to running the macro, but not the updated value. Using !delay and then running the --set name, but it seems that compatibility with token-mod has been broken for some time. Any ideas on how I can achieve this? Below is the macro code I'm playing with: !token-mod {{
--set
statusmarkers|=ninja-mask
bar3_value|[[1d20+@{selected|npcd_stealth}]]
--set name|"DC{bar3_value}" # This variable does not get expanded the way that it does in the --report string below and sets the name to the raw string
# @{selected|bar3} comes closer but provides the bar3 value from prior to macro run
--report gm|"{represents} Stealth roll: {bar3_value}"
}} I just need some way to access that variable, but I'm not sure whether it's a problem with my syntax or the name field simply doesn't support that expansion in the token-mod script. I appreciate any guidance!