Register

Auto Combat AI

An Add-on Module by AtranonStudios

Publisher: AtranonStudios Purchase: Publisher Foundry Versions 13 to 14 (Verified 14) Last Updated 6 days, 23 hours ago

 

Auto Combat AI is a module that fully automates an NPCs turn (hostile or Friendly) in FoundryVTT v13 & v14, for the D&D5e system, allowing GMs / DMs to focus on one or more specific NPCs to focus on, whilst letting the module controls the other smaller enemies.

 

On each NPC (their token, not actor sheet), the module handles:

 

All behavior can be changed via the settings, which are on a per-token basis, so you can change any and all behavior of the AI based on the specific token (or simply set a general baseline of settings for one token, and then duplicate that token so that all NPCs have the same settings).

 

To see the full system breakdown and specifications, see the Technical Design Document (TDD) linked here: https://docs.google.com/document/d/1vvweEMDxzEXT4hvbztq1ueANC-u8hMRmjV9iMTZ-b6s/edit?usp=sharing

 


How To Use ACAI (Auto Combat AI)

  1. Simple drag a NPC actor token onto a scene
  2. Select the token in the scene
  3. Click the Robot icon in the Token Controls bar on the left side

This will open the settings menu for the AI.

As mentioned above, AI settings are PER-TOKEN, if you want to a group of enemies (e.g. 5 Goblins) who all share the same settings, simply set all the specific settings for the AI and then duplicate the token as many times as you want / need.

 

Important Settings Information

There are a few specific things you need to know to not run into any issues down the line. 

Generally speaking, all settings and options have text explaining what they do, but the below listed things are still imporant to read.

Below here I talk about all main things.

Pathfinding

Pathfinding for the AI works in the sense of the AI moving across the scene, and striclty avoiding walls. 

The AI will treat walls like a PC (Player Character) would, not being able to walk through one, and thus walk around it.

if you have a battlemap which features off-limit areas / restricted areas (e.g. a lava lake, ravine, hole, etc) where you DO NOT want the AI to walk to, you have to do the following:

  1.  Create a normal wall & place it around the restricted area 
  2. Open the wall settings
  3. Set the following Wall Restrictions
    1. Movement = Normal
    2. Light = None
    3. Sight = None
    4. Sound = None

This will make it so an invisible wall exists on the scene, where NPCs and AI tokens are not able to walk through

This is important to do, as without it, the AI (depending on its settings) will simply walk across the scene to reach its target, which can mean it walking onto an area it would not be able to walk onto in-game.

 

Targeting & Movement

 When setting up an AI for an NPC (friendly or hostile), it is important you do not enable conflicting settings (per se).

One example would be:

Having these two settings on will result in the AI targeting the nearest opponent, but not moving towards them to attack, which can cause confusion for DMs.

So, ensure you go through every single setting, and tweak all of them to ensure there are no conflicts / weird behaviors you have set that could cause confusion during sessions.

Supported Game Systems

  1. Dungeons & Dragons Fifth Edition

    Latest Version: Version 5.3.3 Last Updated 2 months, 3 weeks ago

Categories

Available Versions

  1. Version 1.0.0

    6 days, 23 hours ago
    Foundry Version 13 - 14 (Verified 14) Manifest URL