isBarVisible

From RPTools Wiki
Revision as of 11:44, 30 May 2009 by Verisimilar (talk | contribs) (Corrected "examples" header.)
Jump to navigation Jump to search

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

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!.
[if(isBarVisible("Health"), code:
{
    The health bar is visible!
};{
    The health bar is not visible!
}]

Toggles the visibility of the bar named Fatigue.

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

See Also