getPlayerName: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page GetPlayerName to getPlayerName: Converting page titles to lowercase)
m (Text replacement - "source>" to "syntaxhighlight>")
Line 7: Line 7:
<source lang="mtmacro" line>
<source lang="mtmacro" line>
getPlayerName()
getPlayerName()
</source>
</syntaxhighlight>


|example=
|example=
<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>
</syntaxhighlight>
}}
}}
[[Category:Miscellaneous Function]]
[[Category:Miscellaneous Function]]

Revision as of 18:38, 14 March 2023

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>