Once of the macros that I have is one that allows the GM to select a player or NPC token, adjust the health, update the health bar and provide a textual description of the current life situation. We are playing a campaign where rolls are secret and only known to the GM. Players still initiate the roll (to feel more involved) but they only see that they initiated the roll and only the GM sees the results. We are doing a similar thing with HP. Players can see their and the enemy life bars but not the exact numbers. The approximate HP is indicated by the life bar and also by a description such as lightly wounded, moderately wounded, etc.
The issue that I am having is that because the macro runs on the lib token, the result (in the chat) is said by the "lib:GM" token. While this works, I would prefer to have a more nice name (like "GM" instead of "lib:GM"). I believe that in order to do this, I need to impersonate a token (e.g. create a GM token and then impersonate it) but I have not figured out how to do that.
Within the macro, I have tried:
Code: Select all
/impersonate GM [r: selection + " is now " + condition]
Code: Select all
[r, token("GM"): selection + " is now " + condition]
Code: Select all
[h: switchToken("GM")]
[r: selection + " is now " + condition]