Introducing: Attack script for Advanced Dungeons and Dragons 1e sheet Purpose: Provide a script that automates Attacks using the revised Advanced Dungeons and Dragons 1e sheet. Minimize setup requirements. Requirements: The Game Server must be using the latest Advanced Dungeons and Dragons 1e sheet maintained by Vince. The GM (only) must have a Roll20 Pro account and must install the ScriptCards mod (directions below) and then cut-and-paste the Attack script into a Macro in Roll20 (directions below). No need for additional mods/APIs. How it Works. Once the script is installed as a Macro and set as a Token Action, users simply click on a token they control, click the Attack button in the upper left, and then select the weapon they want to attack with from the menu in the chat. The script will ask for a target. Once the target is selected, the script will run, using the weapon selected to make the Attack Roll, Determine Attack Result, and, if successful, Apply Damage to the target token. All rolls will be adjusted based on sheet data and token information. Results are printed to chat and the target token HP bar is modified as appropriate. All roll detail is labeled clearly in hover over text. Features (“Support” means “Optional”) - All sheet included weapon types from the repeating Attacks section, broken into Melee and Missile categories. - Auto apply all adjustments contained in the sheet repeating weapon rows including adjustments for Str/Dex, Primary/Secondary, Target Size, etc. - Each weapon in menu has an ADJ button allowing the user to enter a custom adjustment to the Attack Roll, Damage, and/or Target’s AC. - All roll data is made available with individual Labels accessible using the hover over in chat. - Support for selecting Multiple Attacker Tokens (must be same sheet) to attack a single target. - Support for sound effects on hit and “death”. Support for FX on hit. Support to auto apply Dead marker. - Support for common conditions applied using Token Statusmarkers: Blind, Charging, Fleeing, Helpless, Immobile, Invisible, Slowed, NoDex, Dead. - Support for Token Statusmarker numbers indicating specific adjustments: MinusAC, PlusAc, and NoDamage. - Support for Mirror Image using a statusmarker - Randomly assigns attack to available targets and determines result. - Calculates Backstab damage. Support for Critical calculation (Nat 20) - Support for Nat 20/Nat 1 auto Hit/Miss. - Support for automated Missile Range calculation and adjustments to Attack Roll (token to token distance). - Support for Touch AC (not including physical armor). - Support for Weapon Type vs Armor Rating (auto adjusts). Supports ability to add adjustment to Attack Roll or Target AC (and supports flipping the numbers if the sheet is setup one way but the GM wants to use the other). - All Settings are at the top of the Script and can be set by changing them with a text editor. - The script is only setup for descending AC (-10 to 10). See It In Action. Log into the ADD 1e Revised Beta Roll20 server ( <a href="https://app.roll20.net/join/731454/6RYNIQ" rel="nofollow">https://app.roll20.net/join/731454/6RYNIQ</a> ), click a token and click the Attack token action button. (Most statusmarkers are NOT set in the public beta server, but red, green, and purple work: MinusAC, PlusAC, and Mirror-Image). How to Install ScriptCards. Go to Roll20>My Games. Click on the name of your Game (Server). Click Settings>Mod (API) Scripts. From the Mod Library tab, click on the Mod Library drop down and type ScriptCards. Select ScriptCards. Click Save Script. Done! How to install the Attack macro/script. Go to <a href="https://github.com/daemonslye/1e-scripts/blob/main/Attack" rel="nofollow">https://github.com/daemonslye/1e-scripts/blob/main/Attack</a> . Found on the right side of the screen, is an icon looking like two squares lying on top of one another (hover over says “Copy raw file”). Click this - and you should see a popup that says “Copied!” Go to your game server and Launch your game as the GM. Found on the upper right is an icon that looks like 3 20-siders (hover over says “Collections”). Click it and to the right of the word, Macros, click the +Add button. In the popup, enter “Attack” (without quotes) in the Name field. Then click the large empty text box and Paste (Ctrl-V) the script into it. Click the checkbox “Show as Token Action?” and Click the Visible to Players field and select All Players. Then click Save Changes at the bottom of the dialog box. Thats it! How to Use the Script. Click a token, click the Attack button in the upper left. You’ll see an Action menu in the chat with all of the Weapons/Attacks on the character sheet. Click the weapon you want to attack with. Then click the target you want to attack and the script will run the attack. Setting up the Script for Your Server. By default, the script uses token bar 1 for HP and token bar 3 for AC. If you don’t, you should change the settings in the script before pasting it into your macros. Make sure you use a good text editor - other apps tend to strip or add characters. It is usually a bad idea to edit files directly in the popup in Roll20 for the same reason. There are a bunch of settings at the top of the file that let you set up the Attack script to work for your game - So make sure you review those and set them as desired. I have built many scripts for running a 1e game: Ability, Actions, Attack, Declare, Initiative, and Save. Actions supports spell casting, spell prep, special ability use, magic item equipment use, curing/causing wounds, casting mirror image and invis, etc. I have a Token menu that supports Vision, Light, Markers/conditions, Adding Equipment, Armor, Spells, and Abilities to the 1e revised sheet. It also does a bunch of GM tasks like linking token bars, toggling layers, resizing, adding numbers, etc. I have additional scripts for GMs like Surprise, Sense Invisible, Grapple, Morale, and Stat Block. I also have additional PC based scripts like Thief Skills, Expert Miner, Tracking, Turn Undead, Scan-Search checks, and Check for Traps. All of these scripts use ScriptCards (only), but there is a more involved setup and they are tailored to my game and game rules ( <a href="http://www.VileDarkness.com" rel="nofollow">www.VileDarkness.com</a> ). The Attack script above is my attempt to share a more basic script with the community. If there is enough interest, I can share what I already have or generate another basic capability (like Actions or Add Spell or whatever). If you have questions or need help, find me here or at Discord (same name). I'll also post this in the Macros forum, but given it is specific to this sheet, I wanted to post here first. Vince, I hope that's OK. Thanks. ~Dave (NOTE: Fonts might look weird until Vince gets the sheet updated, unless that got done already.)