switchToken: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: ==Function switchToken== {{TrustedOnlyFunction}} Changes the Current Token for the remainder of the Macro:Macro. ===Usage=== <source lang="mtmacro" line> [h:...)
 
m (Applied Template:MacroFunction)
Line 1: Line 1:
==Function switchToken==
{{MacroFunction
{{TrustedOnlyFunction}}
|name=switchToken
 
|trusted=true
|description=
Changes the [[Token:Current Token|Current Token]] for the remainder of the [[Macro:Macro|Macro]].
Changes the [[Token:Current Token|Current Token]] for the remainder of the [[Macro:Macro|Macro]].


===Usage===
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: switchToken(tokenId)]
[h: switchToken(tokenId)]
</source>
</source>
}}
[[Category:Token Function]]

Revision as of 05:27, 9 March 2009

switchToken() Function

 Note: This function can only be used in a Trusted Macro

Changes the Current Token for the remainder of the Macro.

Usage

[h: switchToken(tokenId)]