setBarVisible: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) m (Added version.) |
Verisimilar (talk | contribs) 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 [[ | 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 [[ | 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 [[ | 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)]