AI Scripts

These AI scripts can be copied and pasted into the AI Module field of a SpawnPoint prop. Newly created creatures will use this script when attacking targets. All mobs in the game use one of these scripts. Some of them (NPC, catapult, etc) are not designed for normal mobs.

Most of these scripts were derived from ability triggers extracted from official gameplay. Some additional abilities were added to round out certain scripts, like executes to spend charges.

Also note, although ability skills use the same name as player skills (Assault, Bash, etc) their attacks are often slightly different, using different formulas or a mix of elemental and physical damage.

AI Script Skill Set
4_druid_melee_30 Spirit of Solomon, Trauma, Wither, Malice Blast, Melee Autoattack, Deadly Shot
4_druid_range_30 Root, Spirit of Solomon, Soul Needles, Soul Burst, Ranged Autoattack
4_knight_30 Taurian Might, Assault, Bash, Melee Autoattack
4_mage_30 Athena's Gift, Mage Armor, Firebolt, Pyro Blast, Ranged Autoattack
4_rogue_30 Feline's Grace, Assail, Disembowel, Melee Autoattack
Bastion_NPC_CatapultFiringAnimation (animation effects)
Bastion_NPC_GuardBowAnimation1 (animation effects)
Bastion_NPC_GuardBowAnimation2 (animation effects)
Bastion_NPC_GuardMeleeAnimation1 (animation effects)
Bastion_NPC_GuardMeleeAnimation2 (animation effects)
Bastion_NPC_GuardMeleeAnimation3 (animation effects)
Corsica_NPC_AnubianCatapult1 (animation effects)
Corsica_NPC_AnubianCatapult2 (animation effects)
death_creature_brave_6 Deathly, Assault, Wither, Malice Blast, Melee Autoattack
druid_bow_brave_1 Sting, Deadly Shot, Ranged Autoattack
druid_bow_brave_6 Root, Sting, Deadly Shot, Ranged Autoattack
druid_death_brave_6 Spirit of Solomon, Trauma, Wither, Malice Blast, Ranged Autoattack, Deadly Shot
druid_mystic_brave_6 Root, Spirit of Solomon, Soul Needles, Soul Burst, Ranged Autoattack
Earthrise_flavor_catapultfiring1 (animation effects)
example Melee Autoattack
FailsafeAI Forcebolt, Force blast, Ranged Autoattack
fire_creature_brave_6 Blazing, Assault, Firebolt, Melee Autoattack, Bash, Pyro Blast
flytrap_brave Assault, Flytrap Spray, Melee Autoattack
frost_creature_brave_6 Frozen, Assault, Frost Spear, Jarnsaxa's Kiss, Melee Autoattack, Bash
knight_brave_1 Assault, Bash, Melee Autoattack
knight_brave_6 Taurian Might, Assault, Bash, Melee Autoattack
mage_fire_brave_1 Firebolt, Pyro Blast, Ranged Autoattack
mage_fire_brave_6 Athena's Gift, Mage Armor, Firebolt, Pyro Blast, Ranged Autoattack
mage_frost_brave_6 Athena's Gift, Frost Spear, Jarnsaxa's Kiss, Ranged Autoattack
melee_creature_brave_1 Assault, Disembowel, Melee Autoattack
melee_creature_brave_6 Taurian Might, Assault, Disembowel, Melee Autoattack
mystic_creature_brave_6 Mystical, Assault, Soul Needles, Soul Burst, Melee Autoattack, Bash
Newb_Knight Melee Autoattack
rogue_brave_1 Assail, Disembowel, Melee Autoattack
rogue_brave_6 Feline's Grace, Assail, Disembowel, Melee Autoattack
shroomie_brave Forcebolt, Force blast, Ranged Autoattack
thunderwalker_brave Thunderbolt, Thunder Blast, Melee Autoattack