setBarVisible: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: ==Function setBarVisible== Sets if the specified bar for the Current Token is visible or not. If the value is non zero then the Token:bar is visi...)
 
m (Applied Template:MacroFunction)
Line 1: Line 1:
==Function setBarVisible==
{{MacroFunction
|name=setBarVisible
|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.


===Usage===
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: setBarVisible(name, value)]
[h: setBarVisible(name, value)]
</source>
</source>


===Examples===
|examples=
Make "health" [[Token:bar|bar]] for the [[Token:Current Token|Current Token]] visible.
Make "health" [[Token:bar|bar]] for the [[Token:Current Token|Current Token]] visible.
<source lang="mtmacro" line>
<source lang="mtmacro" line>
Line 17: Line 19:
[h: setBarVisible("health", 0)]
[h: setBarVisible("health", 0)]
</source>
</source>
}}
[[Category:Bar Function]]

Revision as of 03:43, 9 March 2009

setBarVisible() Function

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

[h: 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)]