setBar: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: ==Function setBar== 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. ===Us...)
 
No edit summary
Line 9: Line 9:
===Examples===
===Examples===
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[r: setBar("health", HP/MaxHP)]
[h: setBar("health", HP/MaxHP)]
</source>
</source>

Revision as of 13:28, 13 December 2008

Function setBar

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)]

Examples

[h: setBar("health", HP/MaxHP)]