setOwnedByAll: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 21: Line 21:


|also=
|also=
[[getOwners|getOwners()]],  
{{func|getOwners}}, {{func|isOwner}}, {{func|isOwnedByAll}}
[[isOwner|isOwner()]],
[[isOwnedByAll|isOwnedByAll()]]


}}
}}
[[Category:Token Function]]
[[Category:Token Function]]

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) or false(0).
  • id - The token id 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")]

See Also