isOwnedByAll: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) m (Added version.) |
Verisimilar (talk | contribs) 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 | 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
Usage
isOwnedByAll()
isOwnedByAll(id)
Parameter
id
- The tokenid
of the token which has its Owned by All status checked, defaults to the Current Token.Note: This parameter can only be used in a Trusted Macro.
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.