setOwnedByAll

From RPTools Wiki
Revision as of 14:54, 11 August 2017 by Wolph42 (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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) 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")]


|also= getOwners(), isOwner(), isOwnedByAll()

|changes=

  • 1.3b51 - Added id parameter option.

}}