Version 0.3.8: Fixed a script crash when running !ta with no options while a token linked to a journal is selected. (Thanks Thorsten!) Version 0.3.7: Fix for "prepared" spells option to prevent newly created, but unprepared spells from showing up as prepared. Added the "spellbook" option. This will whisper the character a list of "spell buttons" sorted by level. Clicking on the spell button will cast the spell from the characters sheet. Example: Version 0.3.6: Updated to support the Class Features section of the Shaped-Sheet 2.2.8+ (!ta --features) Removed "resources" as an option as this section was replaced by the Class Features section noted above Version 0.3.5: 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 Class Features Initiative Lair Actions Legendary Actions Prepared Spells Reactions Saves Both chat buttons and query macros are an option for Saves Skills Both chat buttons and query macros are an option for Skills Spells Traits Syntax: !ta --option1, option2, ... Where the options can be any combination of actions, attacks, DELETE, initiative, lair, legendary, prepared, reactions, resources, saves, savequery, spells, skillquery, or traits. For example if I wanted to setup an NPC with token actions for initiative, saves (using the save query macro), actions and reactions, I would use the following command: !ta --initiative, savequery, 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: Please note, the saves, savequery, skills, skillquery are now using the Shaped built in rolls. Please note that there are limitations to the save query macros as detailed by Kryx in his Shaped Sheet thread. 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 suggestions!