isOwner: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
(Applied Template:MacroFunction)
Line 1: Line 1:
==Function isOwner==
{{MacroFunction
 
|name=isOwner
|description=
Returns 1 if the [[Player]] is and owner of the [[Token:Current Token|Current Token]].
Returns 1 if the [[Player]] is and owner of the [[Token:Current Token|Current Token]].


===Usage===
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: owner = isOwner()]
[h: owner = isOwner()]
Line 9: Line 10:




===Examples===
|examples=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[r, if(isOwner()): "You can edit me."]
[r, if(isOwner()): "You can edit me."]
</source>
</source>
}}
[[Category:Token Function]]

Revision as of 21:00, 8 March 2009

isOwner() Function

Returns 1 if the Player is and owner of the Current Token.

Usage

[h: owner = isOwner()]

Examples

[r, if(isOwner()): "You can edit me."]