setBarVisible: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added version.)
Line 1: Line 1:
{{MacroFunction
{{MacroFunction
|name=setBarVisible
|name=setBarVisible
|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 [[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.
Line 6: Line 7:
|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: setBarVisible(name, value)]
setBarVisible(name, value)
</source>
</source>



Revision as of 11:23, 10 March 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)]