transferCoverVBL

From RPTools Wiki
Revision as of 03:55, 10 February 2024 by Cold Ankles (talk | contribs) (Added transferCoverVBL)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

 This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.

transferCoverVBL() Function

 Note: This function can only be used in a Trusted Macro

Introduced in version 1.15
Directly transfers Cover VBL from token to the Cover VBL layer if true; otherwise, it transfers from the Cover VBL layer to the token's Cover VBL.

Usage

transferCoverVBL(direction)
transferCoverVBL(direction, delete)
transferCoverVBL(direction, id)
transferCoverVBL(direction, delete, id)

Parameters

  • direction - This value can be:
    • 0 transfer normal (red) Cover VBL to token (yellow) Cover VBL
    • 1 transfer token (yellow) Cover VBL to normal (red) Cover VBL
  • delete - Defines if the transferred Cover VBL is deleted from the source.
  • id - OPTIONAL: The token id of the token being acted upon. Defaults to the Current Token.

Examples

Example: Transfer Cover VBL from Token to Map
[h: transferCoverVBL(1, "Dragon")]
[h: transferCoverVBL(0)]

Example: Transfer Cover VBL from Map to current Token

[h: transferCoverVBL(0)]

Example: Clear Cover VBL from Token after transfer

[h: transferCoverVBL(1, 1)]

See Also