RPTools

Personal tools
From MapToolDoc

isBarVisible

Contents

isBarVisible() Function

Introduced in version 1.3b46

Returns true(1) if the specified Token Bar on the Current Token is visible, or false(0) if it is not.

Usage

  1. isBarVisible(bar)

Parameters

  • bar - A string that contains the name of the bar that has its visibility checked.

Examples

Displays The health bar is visible! if the bar named Health is set to visible; otherwise it displays The health bar is not visible!.

  1. [if(isBarVisible("Health")), code:
  2. {
  3.     The health bar is visible!
  4. };{
  5.     The health bar is not visible!
  6. }]

Toggles the visibility of the bar named Fatigue.

  1. [h: setBarVisible("Fatigue", !isBarVisible("Fatigue"))]
  2. [h: abort(0)]

See Also

setBarVisible(), getBar(), setBar()