token.name: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: The variable ''token.name'' allows programmatic querying and setting of the token's Name (the first text field in the screenshot of the Edit Token dialog). [[Image:E...)
 
Line 15: Line 15:
===Setting the Token Name===
===Setting the Token Name===
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h:token.gm_name = "Marok the Red"]
[h:token.name = "Marok the Red"]
</source>
</source>


Sets the value of ''token.name'' to "Marok the Red."
Sets the value of ''token.name'' to "Marok the Red."
==Related Pages==
* [[Macros:Special_Variables:token.gm_name|token.gm_name]]
* [[Macros:Special_Variables:token.label|token.label]]

Revision as of 17:20, 22 December 2008

The variable token.name allows programmatic querying and setting of the token's Name (the first text field in the screenshot of the Edit Token dialog).

Examples

Getting the Token Name

[h:charName=token.name]
Token Name: [charName]

Outputs the value of token.name.

Setting the Token Name

[h:token.name = "Marok the Red"]

Sets the value of token.name to "Marok the Red."

Related Pages