getMacroCommand: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
==Function getMacroCommand==
{{MacroFunction
|name=getMacroCommand
|description=Returns the command that would be executed for a [[macro button]] on the [[Token:Current Token{{!}}Current Token]]. The [[getMacroIndexes{{!}} getMacroIndexes()]] function can be used to get the index of a [[macro button]].


Returns the command that would be executed for a [[macro button]] on the [[Token:Current Token|Current Token]]. The [[Macros:Functions:getMacroIndexes| getMacroIndexes()]] function can be used to get the index of a [[macro button]].
|usage=
 
===Usage===
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: command = getMacroCommand(index)]
[h: command = getMacroCommand(index)]
</source>
</source>
}}
[[Category:Metamacro Function]]

Revision as of 04:03, 7 March 2009

getMacroCommand() Function

Returns the command that would be executed for a macro button on the Current Token. The getMacroIndexes() function can be used to get the index of a macro button.

Usage

[h: command = getMacroCommand(index)]