clearLights
clearLights() Function
• Introduced in version 1.3b48
Turns off all of the light sources for the Current Token.
Usage
Examples
To turn off all of the light sources for the current token.
To turn off all the lights sources on the map you could run the following script, note you will have to be the GM or run it
as part of a trusted macro.
Ok Kids lights out!
[h,foreach(tok, getTokens()), code: { [token(tok): clearLights()]}]
Token: A visual marker representing a character, monster, or NPCTrusted Macro: A macro run from a Library token or run by the GM, that cannot be edited by a player.Macro: A series of text instructions used to automate processes in MapTool.Map: An image file displayed in the map display area in MapTool. This image is shared among all connected players and the GM.