getCurrentInitiative: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(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...)
(No difference)

Revision as of 19:58, 1 December 2008

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