setBarVisible: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added version.)
m (Unifying Current Token red link.)
Line 3: Line 3:
|version=1.3b46
|version=1.3b46
|description=
|description=
Sets if the specified [[Token:bar|bar]] for the [[Token:Current Token|Current Token]] is visible or not. If the value is non zero then the [[Token:bar|bar]] is visible, if it is 0 it is not visible.
Sets if the specified [[Token:bar|bar]] for the [[Current Token]] is visible or not. If the value is non zero then the [[Token:bar|bar]] is visible, if it is 0 it is not visible.


|usage=
|usage=
Line 11: Line 11:


|examples=
|examples=
Make "health" [[Token:bar|bar]] for the [[Token:Current Token|Current Token]] visible.
Make "health" [[Token:bar|bar]] for the [[Current Token]] visible.
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: setBarVisible("health", 1)]
[h: setBarVisible("health", 1)]
</source>
</source>


Hide "health" [[Token:bar|bar]] for the [[Token:Current Token|Current Token]].
Hide "health" [[Token:bar|bar]] for the [[Current Token]].
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: setBarVisible("health", 0)]
[h: setBarVisible("health", 0)]

Revision as of 21:30, 4 April 2009

setBarVisible() Function

Introduced in version 1.3b46
Sets if the specified bar for the Current Token is visible or not. If the value is non zero then the bar is visible, if it is 0 it is not visible.

Usage

setBarVisible(name, value)

Examples

Make "health" bar for the Current Token visible.
[h: setBarVisible("health", 1)]

Hide "health" bar for the Current Token.

[h: setBarVisible("health", 0)]