setBar: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Verisimilar (talk | contribs) m (Applied Template:MacroFunction) |
||
Line 1: | Line 1: | ||
= | {{MacroFunction | ||
|name=setBar | |||
|description= | |||
Sets the value of the specified [[Token:bar|bar]] for the [[Token:Current Token|Current Token]]. The value to set is between 0 and 1 for 0% to 100% respectively. | Sets the value of the specified [[Token:bar|bar]] for the [[Token:Current Token|Current Token]]. The value to set is between 0 and 1 for 0% to 100% respectively. | ||
|usage= | |||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h: setBar(name, pct/100)] | [h: setBar(name, pct/100)] | ||
</source> | </source> | ||
|example= | |||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h: setBar("health", HP/MaxHP)] | [h: setBar("health", HP/MaxHP)] | ||
</source> | </source> | ||
}} | |||
[[Category:Bar Function]] |
Revision as of 03:41, 9 March 2009
setBar() Function
Sets the value of the specified bar for the Current Token. The value to set is between 0 and 1 for 0% to 100% respectively.
Usage
[h: setBar(name, pct/100)]
Example
[h: setBar("health", HP/MaxHP)]