setOwnedByAll: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{MacroFunction |name=setOwnedByAll |version=1.4.2.0 |description= Allows you to set or unset the ownedByAll value of the token. |usage= <source lang="mtmacro" line> setOwned...") |
No edit summary |
||
Line 21: | Line 21: | ||
[h: setOwnedByAll(0, "Dragon")] | [h: setOwnedByAll(0, "Dragon")] | ||
</source> | </source> | ||
|also= | |also= | ||
Line 28: | Line 26: | ||
[[isOwner|isOwner()]], | [[isOwner|isOwner()]], | ||
[[isOwnedByAll|isOwnedByAll()]] | [[isOwnedByAll|isOwnedByAll()]] | ||
}} | }} | ||
[[Category:Token Function]] | [[Category:Token Function]] |
Revision as of 14:55, 11 August 2017
setOwnedByAll() Function
• Introduced in version 1.4.2.0
Allows you to set or unset the ownedByAll value of the token.
Usage
setOwnedByAll(value)
setOwnedByAll(owned, id)
Parameter
owned
- The value of the setting to set,true
(1
) orfalse
(0
).id
- The tokenid
of the token which has its Owned by All status set, defaults to the Current Token.Note: This parameter can only be used in a Trusted Macro.
Example
[h: setOwnedByAll(1)]
[h: setOwnedByAll(0, "Dragon")]