From RPTools Wiki
Jump to navigation Jump to search

removeFromInitiative() Function

Removes the Current Token from the Initiative Panel. Additional parameters allow you to specify the token.


removeFromInitiative(tokenRef, mapname)


  • tokenRef - Either the token id or Token Name of the token to be removed from the initiative. Defaults to the Current Token.

     Note: This parameter can only be used in a Trusted Macro

  • mapname - The name of the map to find the token. Defaults to the current map.
  • return - Returns 1 if removed from the initiative, 0 if did not.
Token IDs are unique, but Token Names can be duplicated. Using Token Name when more than one token has the same name can produce unexpected results.


To remove the token with the name "Dragon" in current map from the initiative panel.
[h: removeFromInitiative("Dragon")]

See Also

Version Changes

  • 1.5.7 - Added id and mapname parameter options.