isOwner: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Updated with recent version changes.)
mNo edit summary
Line 3: Line 3:
|version=1.3b48
|version=1.3b48
|description=
|description=
Returns {{true}} if the [[Player]] is and owner of a specific [[Token]].
Returns {{true}} if the [[Player]] is an owner of a specific [[Token]].


|usage=
|usage=

Revision as of 14:13, 24 August 2009

isOwner() Function

Introduced in version 1.3b48
Returns true(1) if the Player is an owner of a specific Token.

Usage

isOwner()
isOwner(id)

Parameter

  • id - The token id of the token which is checked for ownership, defaults to the Current Token.

     Note: This parameter can only be used in a Trusted Macro

Examples

Returns You can edit me. if the Current Token is owned by the Player.
[r, if(isOwner()): "You can edit me."]

See Also

Version Changes

  • 1.3b51 - Added id parameter option.