setOwnedByAll: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 3: | Line 3: | ||
|version=1.4.2.0 | |version=1.4.2.0 | ||
|description= | |description= | ||
Allows | Allows changing the '''ownedByAll''' value of a token. | ||
|usage= | |usage= | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
setOwnedByAll( | setOwnedByAll(owned) | ||
setOwnedByAll(owned, id) | setOwnedByAll(owned, id) | ||
</source> | </source> | ||
'''Parameter''' | '''Parameter''' | ||
{{param|owned|The value of the setting to set, {{ | {{param|owned|The value of the setting to set, {{true}} or {{false}}.}} | ||
{{param|id|The token {{code|id}} of the token which has its [[Owned by All]] status set, defaults to the [[Current Token]]. {{TrustedParameter}} }} | {{param|id|The token {{code|id}} of the token which has its [[Owned by All]] status set, defaults to the [[Current Token]]. {{TrustedParameter}} }} | ||
Revision as of 04:47, 7 March 2019
setOwnedByAll() Function
• Introduced in version 1.4.2.0
Allows changing the ownedByAll value of a token.
Usage
setOwnedByAll(owned)
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")]