getCurrentInitiative

From RPTools Wiki
Revision as of 19:58, 1 December 2008 by Craig (talk | contribs) (New page: ==Function getCurrentInitiative== {{GMOnlyFunction}} Gets the offset of the Token:token in the Initiative:initiative panel that has the Initiative:initiative. The offset sta...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function getCurrentInitiative

This is a GM only function, it can not be called by players.

Gets the offset of the token in the initiative panel that has the initiative. The offset starts at 0, if no token has initiative then -1 is returned.

Usage

[h: offset = getCurrentInitiative()]