module
Premium content

Auto Combat AI

Endorsements
0
Comments
0
Latest version1.0.0
Minimum Core13
Compatible Core14
Last updated2 months ago
Created2 months ago
Authors
  • LenexTL
    • twitchlenex@gmail.com
    • @lenex_ats
Languages
Systems All systems
Project source Project URL

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:

  • Target Selection: attacks the nearest, lowest AC, lowest HP, most-damaged, or random target within its detection range and line of sight (includes a frustration check to make sure an NPC does not endlesslely chase one target if they keep running away or are out of reach)
  • Movement: closes in, holds a specified range, holds position, tries to flank (works with MidiQOL flanking), or flees, using a self-made pathfinding system to move around walls, taking elevation into account as well
  • Attacking: melee, ranged, spellcaster, or mixed, allowing an NPC to be any kind of attacker, with options for multiattacking and distance based spellcasting
  • Spellcasting: adjantent, close, far, and AOE spells, which the NPC casts based on distances you define, automatically upcast spells, and use AOE spells (like Fireball) to hit clusters of enemies, the AOE being driven as well by a intelligence choice making system
  • Survival: self and ally healing when a certain HP threshold is reached, running away (fleeing) when it gets too low (runs to either an ally or just away)

 

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

Subscribe
Notify of
0 Comments
0
Would love your thoughts, please comment.x
()
x