token.name: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
The variable ''token.name'' allows programmatic querying and setting of the token's [[Token:Token_name|Name]] (the first text field in the screenshot of the Edit Token dialog).  
The variable ''token.name'' allows programmatic querying and setting of the token's [[Introduction to Tokens|Name]] (the first text field in the screenshot of the Edit Token dialog).  


[[Image:Edittoken-name-and-label.jpg]]
[[Image:Edittoken-name-and-label.jpg]]
Line 25: Line 25:
* [[token.label]]
* [[token.label]]
[[Category:Special Variable]]
[[Category:Special Variable]]
[[Category:Macro Function]]

Latest revision as of 20:07, 4 July 2023

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