EDIT: Added features through version 0.3.3 to this initial post! This script will automatically create ability macros that can be selected as a token actions from the Abilities & Attributes tab of the character journal. The following token actions can be created: Attacks Actions DELETE Initiative Lair Actions Legendary Actions Reactions Resources Saves Skills Spells Traits Syntax: !ta --option1, option2, ... Where the options can be any combination of attacks, actions, initiative, lair, legendary, reactions, resources, saves, spells, or traits. For example if I wanted to setup an NPC with token actions for initiative, saves, actions and reactions, I would use the following command: !ta --initiative, saves, actions, reactions
There is one configuration option in the script (line 5): var showAsTokenAction = true; Setting true will automatically enable any newly created token actions. Setting false leaves newly created token actions disabled. NOTE: The saves and skills macro created currently whispers save command buttons to the character where the appropriate save can be clicked. The whisper is to help eliminate some of the potential spam of having multiple people save at the same time. If someone is able to provide a clean and functional query macro, I would be happy to use it. IMPORTANT: The DELETE option must be executed in all capitals as a small safeguard because it will remove ALL Abilities on the Attributes & Abilities tab of the selected token. Syntax example: !ta --DELETE Script: <a href="https://raw.githubusercontent.com/beeke01/TokenAct" rel="nofollow">https://raw.githubusercontent.com/beeke01/TokenAct</a>... Thank you to The Aaron and Kryx for their assistance and feedback! Thank you Filip Č for adding skills to the script! Thank you Saevar L. "Liquid-Sonic" for the suggestion to add resources to the script!