getPlayerName

From RPTools Wiki
Revision as of 18:38, 14 March 2023 by Taustin (talk | contribs) (Text replacement - "source>" to "syntaxhighlight>")
Jump to navigation Jump to search

getPlayerName() Function

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

Usage

<source lang="mtmacro" line> getPlayerName() </syntaxhighlight>

Example

<source lang="mtmacro" line>

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

</syntaxhighlight>