Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

PF2e Automated Combat

1683308086

Edited 1683309200
Has anyone created an API and Macros that can do the following: Player selects their Token Player selects an "attack-weapon" Token Macro button. Query: "Select the Target Token" Query: "Select Weapon" (a dropdown populated by weapons on character sheet) Query: "Additional Attack Modifier" Query: "Additional Damage Modifier" The dice are rolled to determine results Critical or Fumble results are applied Any damage is applied to the target's character sheet or token Any Ammunition is deducted Finally, a narrative is presented in the Chat, something like this: This is what I would like to have and it would speed up combat so, so, much. If this can already be accomplished, can someone please walk me through how it would be done? Jim
I don't think that the current set of Pathfinder 2E specific API are still supported. I couldn't get them to work for the functionality I tested, so I'm guessing they are not compatible with the current sheet. TokenMod, Token Action Maker, and ChatSetAttr work fine with the sheet, though with ChatSetAttr you'll have to go through the sheet yourself to figure out what you want to change. There does not appear to be a good up-to-date list. TokenMod will allow you to alter the properties of a token, including syncing with a character.&nbsp; <a href="https://app.roll20.net/forum/post/4225825/script-update-tokenmod-an-interface-to-adjusting-properties-of-a-token-from-a-macro-or-the-chat-area" rel="nofollow">https://app.roll20.net/forum/post/4225825/script-update-tokenmod-an-interface-to-adjusting-properties-of-a-token-from-a-macro-or-the-chat-area</a> With Token Action Maker, you can create token buttons for any character. It loads up 2nds and 3rd attacks, too. You can add or remove buttons afterwards.&nbsp; <a href="https://app.roll20.net/forum/post/8458497/script-token-action-maker-v-dot-0-2-dot-7/?pagenum=1" rel="nofollow">https://app.roll20.net/forum/post/8458497/script-token-action-maker-v-dot-0-2-dot-7/?pagenum=1</a> &nbsp;If a character has the option toggled such that rolls ask for bonuses to rolls, then activating the button brings up a query that will ask for a bonus; otherwise not. ChatSetAttr is the least user friendly of the list, but gives you a lot of flexibility in assigning attributes to a character.&nbsp; <a href="https://wiki.roll20.net/Script:ChatSetAttr" rel="nofollow">https://wiki.roll20.net/Script:ChatSetAttr</a> &nbsp; Group Initiative will work fine with Pathfinder 2E.&nbsp; <a href="https://wiki.roll20.net/Script:Group_Initiative" rel="nofollow">https://wiki.roll20.net/Script:Group_Initiative</a> &nbsp;So will TurnMarker1.&nbsp; <a href="https://app.roll20.net/forum/post/931415/script-turnmarker-turn-token-highlight-round-counter-player-advance-command-turn-announce-plus-spiny-graphics-if-you-want-them" rel="nofollow">https://app.roll20.net/forum/post/931415/script-turnmarker-turn-token-highlight-round-counter-player-advance-command-turn-announce-plus-spiny-graphics-if-you-want-them</a> Below are some macros I use (all require a token to be selected). To make standard secret rolls (no API): &amp;{template:rolls} {{charactername=GM}} {{header=secret rolls}}&nbsp; {{info01_name=Secret}} {{info01=Secret rolls made!}} /w GM &amp;{template:rolls} {{charactername=@{selected|character_name}}} {{header=Secret Rolls}} {{subheader=Each Individually}}}&nbsp; {{info01_name=perception}} {{info01=[[1d20cs20cf1 + [@{selected|perception_proficiency_display}] (@{selected|perception})[@{selected|text_modifier}] + (@{selected|query_roll_bonus})[@{selected|text_bonus}]]]}} {{info02_name=Stealth}} {{info02=[[1d20cs20cf1 + [@{selected|stealth_proficiency_display}] (@{selected|stealth})[@{selected|text_modifier}] + (@{selected|query_roll_bonus})[@{selected|text_bonus}]]]}} {{info03_name=Deception}} {{info03=[[1d20cs20cf1 + [@{selected|deception_proficiency_display}] (@{selected|deception})[@{selected|text_modifier}] + (@{selected|query_roll_bonus})[@{selected|text_bonus}]]]}}&nbsp; {{desc=}} To make standard Recall Knowledge (no API): &amp;{template:rolls} {{charactername=GM}} {{header=secret rolls}}&nbsp; {{info01_name=Secret}} {{info01=Secret rolls made for @{selected|character_name}!}} /w GM &amp;{template:rolls} {{charactername=@{selected|character_name}}} {{header=Secret Recall Knowledge}} {{subheader=Each Individually}}&nbsp; {{info01_name=Arcana}} {{info01=[[1d20cs20cf1 + [@{selected|arcana_proficiency_display}] (@{selected|arcana})[@{selected|text_modifier}] + (@{selected|query_roll_bonus})[@{selected|text_bonus}]]]}} {{info02_name=Nature}} {{info02=[[1d20cs20cf1 + [@{selected|nature_proficiency_display}] (@{selected|nature})[@{selected|text_modifier}] + (@{selected|query_roll_bonus})[@{selected|text_bonus}]]]}} {{info03_name=Occultism}} {{info03=[[1d20cs20cf1 + [@{selected|occultism_proficiency_display}] (@{selected|occultism})[@{selected|text_modifier}] + (@{selected|query_roll_bonus})[@{selected|text_bonus}]]]}} {{info04_name=Religion}} {{info04=[[1d20cs20cf1 + [@{selected|religion_proficiency_display}] (@{selected|religion})[@{selected|text_modifier}] + (@{selected|query_roll_bonus})[@{selected|text_bonus}]]]}} {{desc=}} To set up a unique NPC token (Token Mod): !token-mod {{ --on &nbsp; showplayers_bar1 &nbsp; Showplayers_bar2 &nbsp; showname &nbsp; has_bright_light_vision --off &nbsp; showplayers_aura1 &nbsp; Showplayers_aura2 &nbsp; playersedit_bar1 &nbsp; playersedit_bar2 &nbsp; playersedit_bar3 &nbsp; playersedit_name &nbsp; playersedit_aura1 &nbsp; playersedit_aura2 --set&nbsp; &nbsp; bar1_link| &nbsp; bar2_link| &nbsp; bar3_link| &nbsp; bar1_link|hit_points &nbsp; bar2_value|@{selected|armor_class} &nbsp; bar2_max| &nbsp; name|"@{selected|character_name}" &nbsp; defaulttoken }} /w GM Set Up Token - for specific NPC @{selected|character_name} To set up a NPC character with multiple tokens of the same type (TokenMod): !token-mod {{ --on &nbsp; showplayers_bar1 &nbsp; showplayers_bar2 &nbsp; showname --off &nbsp; has_bright_light_vision &nbsp; showplayers_aura1 &nbsp; showplayers_aura2 &nbsp; playersedit_bar1 &nbsp; playersedit_bar2 &nbsp; playersedit_bar3 &nbsp; playersedit_name &nbsp; playersedit_aura1 &nbsp; playersedit_aura2 --set&nbsp; &nbsp; bar1_link| &nbsp; bar2_link| &nbsp; bar3_link| &nbsp; bar1_value|@{selected|hit_points|max} &nbsp; bar1_max|@{selected|hit_points|max} &nbsp; bar2_value|@{selected|armor_class} &nbsp; bar2_max| &nbsp; bar3_value| &nbsp; bar3_max| &nbsp; name|"@{selected|character_name}" &nbsp; defaulttoken }} /w GM Set Up Token - for multiple copies @{selected|character_name} A menu to do things with Token Action Maker: /w @{selected|character_name} &amp;{template:rolls} {{name=Create Token Actions}} {{desc=[All](!ta pf2) | [Attacks](!ta pf2 attacks)) | [Spells](!ta pf2 spells) [Checks](!ta pf2 checks) | [Saves](!ta saves) | [Initiative](!ta pf2 init) [Delete ALL Token Actions](!deleteta)}} Macro to set up basic token actions for a character (Token Action Maker): !ta pf2 attacks checks saves init spells /w GM standard actions added for @{selected|character_name} Macro to set up all possible token actions for a character (Token Action Maker): !ta pf2 /w GM all actions added for @{selected|character_name}