token.gm name: Difference between revisions
Jump to navigation
Jump to search
m (Conversion script moved page token.gm name to Token.gm name without leaving a redirect: Converting page title to first-letter uppercase) |
m (Conversion script moved page Token.gm name to token.gm name: Converting page titles to lowercase) |
(No difference)
|
Revision as of 23:01, 9 February 2023
The variable token.gm_name allows programmatic querying and setting of the token's GM Name (the second text field in the screenshot of the Edit Token dialog).
token.gm_name is only a valid expression in a trusted macro.
Examples
Getting the Token GM Name
[h:secretName=token.gm_name]
GM's Name: [secretName]
Outputs the value of token.gm_name.
Setting the Token GM Name
[h:token.gm_name = "Soldier"]
Sets the value of token.gm_name to "Soldier."