isOwnedByAll: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added version.)
m (Updated with recent version changes.)
Line 1: Line 1:
{{stub|Examples using new functionality.}}
{{MacroFunction
{{MacroFunction
|name=isOwnedByAll
|name=isOwnedByAll
|version=1.3b48
|version=1.3b48
|description=
|description=
Returns 1 if the [[Token:Current Token|Current Token]] has the [[Token:owned by all|owned by all]] check box checked.
Returns {{true}} if a [[Token]] has the [[Owned by All]] check box checked.


|usage=
|usage=
Line 9: Line 10:
isOwnedByAll()
isOwnedByAll()
</source>
</source>
<source lang="mtmacro" line>
isOwnedByAll(id)
</source>
'''Parameter'''
{{param|id|The token {{code|id}} of the token which has its [[Owned by All]] status checked, defaults to the [[Current Token]]. {{TrustedParameter}} }}


|example=
|example=
Returns {{code|Anyone can edit me}} if the [[Current Token]] has the [[Owned by All]] check box checked.
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[r, if(isOnwedByAll()): "Anyone can edit me"]
[r, if(isOnwedByAll()): "Anyone can edit me"]
</source>
</source>
|also=
[[getOwners|getOwners()]],
[[isOwner|isOwner()]]
|changes=
{{change|1.3b51|Added {{code|id}} parameter option.}}
}}
}}
[[Category:Token Function]]
[[Category:Token Function]]

Revision as of 03:54, 31 March 2009

 This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.
 This article needs: Examples using new functionality.

isOwnedByAll() Function

Introduced in version 1.3b48
Returns true(1) if a Token has the Owned by All check box checked.

Usage

isOwnedByAll()
isOwnedByAll(id)

Parameter

Example

Returns Anyone can edit me if the Current Token has the Owned by All check box checked.
[r, if(isOnwedByAll()): "Anyone can edit me"]

See Also

Version Changes

  • 1.3b51 - Added id parameter option.