getMacroName

From RPTools Wiki
Revision as of 22:16, 9 February 2023 by Conversion script (talk | contribs) (Conversion script moved page getMacroName to GetMacroName without leaving a redirect: Converting page title to first-letter uppercase)
Jump to navigation Jump to search

getMacroName() Function

Introduced in version 1.3b48
Returns the label/name of the macro being executed. If this macro function is run directly from chat, then this function will return "chat".

Usage

getMacroName()

Examples

[h: macroName = getMacroName()]
[if(macroName == "chat", "You are running from chat", "You are running the macro called " + macroName)]