getPlayerName: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) (Applied Template:MacroFunction) |
|||
Line 1: | Line 1: | ||
= | {{MacroFunction | ||
Returns the name of the player for the [[ | |name=getPlayerName | ||
|description=Returns the name of the player for the [[Client]] that it executes on. | |||
|usage= | |||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h: name = getPlayerName()] | [h: name = getPlayerName()] | ||
</source> | </source> | ||
|example= | |||
To display the ids of all of the [[Token | To display the ids of all of the [[NPC Token|NPC token]]s on the current [[Map|map]] use. | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
/say My name is [r: getPlayerName()] nice to meet you! | /say My name is [r: getPlayerName()] nice to meet you! | ||
</source> | </source> | ||
}} | |||
[[Category:Miscellaneous Function]] |
Revision as of 03:22, 8 March 2009
getPlayerName() Function
Returns the name of the player for the Client that it executes on.
Usage
[h: name = getPlayerName()]
Example
To display the ids of all of the NPC tokens on the current map use.
/say My name is [r: getPlayerName()] nice to meet you!