getPlayerName: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added version.)
(Removed incorrect summary in example)
Line 10: Line 10:


|example=
|example=
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!

Revision as of 18:04, 19 September 2012

getPlayerName() Function

Introduced in version 1.3b48
Returns the name of the player for the Client that it executes on.

Usage

getPlayerName()

Example

/say My name is [r: getPlayerName()] nice to meet you!