getBar: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
==Function getBar==
==Function getBar==
Gets the value of the specified [[Token:bar|bar]] for the [[Token:token|token]]. The value returned is between 0 and 1 for 0% to 100% respectively.
Gets the value of the specified [[Token:bar|bar]] for the [[Token:Current Token|Current Token]]. The value returned is between 0 and 1 for 0% to 100% respectively.


===Usage===
===Usage===

Revision as of 12:54, 13 December 2008

Function getBar

Gets the value of the specified bar for the Current Token. The value returned is between 0 and 1 for 0% to 100% respectively.

Usage

[h: pct = getBar(name)]

Examples

[r: healthPct = getBar("health") * 100]