Since I like to turn over control of tokens to my players during large battles, I thought I'd found a Christmas miracle with The Aaron's !emas script. However, if I try to use it in a macro thusly...
!emas @{selected|token_name} attacks @{target|token_name} with his sword!
....the script doesn't call the selected token's name. It doesn't throw an error and indeed displays a token name, but I can't figure out where the heck it's getting the name it displays from. I've looked everywhere and the name doesn't exist in any field in the selected token's properties or character sheet that I can see but it still uses another token's name (that's on the tabletop). Stumped. The target token name works as expected — it displays the token's name. But not the selected token.
I'm sure it's just user error on my part...
Thanks,
M.
!emas @{selected|token_name} attacks @{target|token_name} with his sword!
....the script doesn't call the selected token's name. It doesn't throw an error and indeed displays a token name, but I can't figure out where the heck it's getting the name it displays from. I've looked everywhere and the name doesn't exist in any field in the selected token's properties or character sheet that I can see but it still uses another token's name (that's on the tabletop). Stumped. The target token name works as expected — it displays the token's name. But not the selected token.
I'm sure it's just user error on my part...
Thanks,
M.