Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Difference between revisions of "Script:Triggered Cleanup"

From Roll20 Wiki

Jump to: navigation, search
(Created page with "{{revdate}} {{page template}} The Triggered Cleanup API was generated as a Utility Mod to help improve optimization. During play in a Living Community/West Marches style camp...")
 
Line 6: Line 6:
 
|author={{user profile|4069317|Jeffrey S.}}
 
|author={{user profile|4069317|Jeffrey S.}}
 
|version=1.0
 
|version=1.0
|lastmodified=2023-06-26
+
|lastmodified=2023-06-26}}
|code=The Darkness is Closing In
+
|dependencies={{api repository link|Bloodied and Dead Status Markers}}, {{api repository link|Raise Count}}
+
|conflicts={{api repository link|Blood-and-Honor}}}}
+
  
 
== Installation and Configuration ==
 
== Installation and Configuration ==

Revision as of 01:45, 30 July 2023

The Triggered Cleanup API was generated as a Utility Mod to help improve optimization. During play in a Living Community/West Marches style campaign, where sessions are a series of one-offs with varying participation of players and rotating Game Masters, it was found that manual cleanup was necessary to improve reactions of APIs and overall experience of the VTT. This API applies two features to help with the cleanup. The first is an API command that removes all tokens on all maps, to include archived maps and excluding any maps with the term 'bullpen' (not case-sensitive) in the title.

API ScriptAuthor: Jeffrey S.
Version: 1.0
Last Modified: 2023-06-26
Code: Triggered Cleanup
Dependencies: None
Conflicts: None

Installation and Configuration

Triggered Cleanup can be added to a table using the Mod Scripts option in the Settings of the main page for a given table. It can be added from the Roll20 Mods Library. There are no configuration requirements.

Script Use

The script only requires the use of a single command: [!cleanup]. This command is not case-sensitive. It will delete every token on every layer on every map, archives included and with the exception of any maps with the term 'bullpen' in the name.

Additionally, whenever a character sheet is deleted, any tokens that represent that character sheet will also be removed from every layer on every map, archives included and with the exception of any maps with the term 'bullpen' in the name.