transferVBL: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Created page with "{{MacroFunction |name=transferVBL |proposed=false |trusted=true |version=1.3b90 |description=directly transfers vbl from token to normal VBL if true, otherwise it transfers fr...")
 
No edit summary
Line 15: Line 15:
'''Parameters'''
'''Parameters'''
{{param|value|The value of the setting to set, {{code|token (yellow) VBL to normal (blue) VBL}}({{code|1}}) or {{code|normal (blue) VBL to token (yellow) VBL}}({{code|0}}).}}
{{param|value|The value of the setting to set, {{code|token (yellow) VBL to normal (blue) VBL}}({{code|1}}) or {{code|normal (blue) VBL to token (yellow) VBL}}({{code|0}}).}}
{{param|id|OPTIONAL: The token {{code|id}} of the token for which you want to set this setting, defaults to the [[Current Token]]. {{TrustedParameter}} }}
{{param|id|OPTIONAL: The token {{code|id}} of the token for which you want to set this setting, defaults to the [[Current Token]]. }}





Revision as of 21:26, 10 August 2017

transferVBL() Function

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

Introduced in version 1.3b90
directly transfers vbl from token to normal VBL if true, otherwise it transfers from VBL to token

Usage

transferVBL(value, id)

This function can be used to transfer TOKEN VBL to NORMAL VBL or vice versa. Token vbl moves with the token, can be set under the VBL tab on the token edit menu and is colored YELLOW. Normal vbl is static, can be created with the VBL drawing tools or with the use of VBL functions and is colored BLUE.

Parameters

  • value - The value of the setting to set, token (yellow) VBL to normal (blue) VBL(1) or normal (blue) VBL to token (yellow) VBL(0).
  • id - OPTIONAL: The token id of the token for which you want to set this setting, defaults to the Current Token.


Example:

[h:transferVBL(1, "Dragon")]
[h:transferVBL(0)]



See Also