TPL["triggers"] = `
Triggers in vam can be used to add more advanced logic to your scenes and connect vam features and plugins in specific ways. If you want to use Alive triggers you have to add this plugin to any atom: Plugins/AliveEvents.cslist. Then you can trigger things by doing a normal vam trigger call to Atom > plugin#_SPQR.AliveEvents > AliveData and putting an Alive Event in the Text To Send vam field.
I'll try to add more documentation about available triggers, but there are so many and in constant change these days and DIY stuff tools like this are very low priority so for now the best way to use it is by copying UI functionality. If you want to do something that the Alive UI can do, you can do it first through the UI and then come back to this app and copy the event and then paste it in the vam trigger in the AliveData field. Events that are specific to an atom (changing a person setting, or moving an atom, etc) must be sent to an AliveEvents plugin on that specific atom. Then the <%id%> part will get replaced with the id of the atom that gets the event.
This app logs the latest events, formats them to work with triggers and lets you copy them when you click on them. So if you want to find how to do something that the UI does, do it first in the UI and then come back to the UI and you should see it in the recent events lists, from where you can copy and paste it in a VAM trigger. There will be other extra triggers created specifically for vam triggers that will be listed separately in this app in the Custom tab.
For events that are specific to a particular person or other atom, the trigger must be sent to an instance of the AliveEvents.cslist plugin that is on that atom. The <%id%> part that appears in some events will be replaced with the internal ID of the atom that has the plugin to which the event is sent. So if you want to do person triggers, the person must have the AliveEvents plugin, similar a bit with how the old person-specific Alive plugin worked.
Alive Events are formatted as JSON strings, same as VAM's save files (looks, scenes, etc). They're basically a list inside {} like {"a":"value for A", "b":"value for B"}. The only thing you really need to be careful about are texts that include ". It's better to just avoid " and use ' instead. If you google "json formatter online" there are also plenty of tools to validate or help build such strings if you want to do something more complex.