isGM: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: ==Function isGM== Returns 1 if the player is a GM or 0 if they are not. ===Usage=== <source lang="mtmacro" line> [h: gm = isGM()] </source> ===Examples=== <source lang="mtmacro" line> I...)
 
(Applied Template:MacroFunction)
Line 1: Line 1:
==Function isGM==
{{MacroFunction
|name=isGM
|description=
Returns 1 if the player is a GM or 0 if they are not.
Returns 1 if the player is a GM or 0 if they are not.


===Usage===
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: gm = isGM()]
[h: gm = isGM()]
</source>
</source>


 
|example=
===Examples===
<source lang="mtmacro" line>
<source lang="mtmacro" line>
I am a [r: if(isGM(), "GM", "Player")]
I am a [r: if(isGM(), "GM", "Player")]
</source>
</source>
}}
[[Category:Miscellaneous Function]]

Revision as of 20:51, 8 March 2009

isGM() Function

Returns 1 if the player is a GM or 0 if they are not.

Usage

[h: gm = isGM()]

Example

I am a [r: if(isGM(), "GM", "Player")]