

SharpAI



Blade & Sorcery combat AI enhancement project



Version 1.0 beta

Created by Siilk, based on original B&S AI code by KospY

﻿

﻿





THIS MOD IS PROVIDED AS-IS, USE AT YOUR OWN RISK.﻿

What's newVersion 1.1b:* Mod is reworked for U7 compatibility* Loot tables updated to make use of new U7 weaponsVersion 1.0b:* Initial public beta releaseAbout:SharpAI is an ongoing attempt to improve the combat capabilities of B&S NPCs by adding new functionality to combat AI. Being a scripted mod, SharpAI builds upon the existing AI codebase and enhances it with more than 1800 lines of C# code. This code introduces new NPC behaviour patterns such counter attacking, dashing backstepping to evade the incoming strike and retaliating after being hit. Existing combat patterns are also improved as NPCs will move and attack faster, will not lose weapons as easily and will have improved stability to resist pushing and kicking. Future plans for SharpAI project include improving NPC awareness of the game world, adding more complex reactions to player actions and adding NPC-to-NPC coordination for a more intelligent behaviour of NPC groups.Installation & usage:﻿This mod is Vortex-compatible. If using a manual installation, please follow the steps below.1) Unzip SharpAI folder and copy it into BladeAndSorcery_Data\StreamingAssets\ folder in the Blade & Sorcery installation folder.2) When the game is loaded, new waves marked with "S.AI" prefix will be available in the Enemy Wave Books of each map.Be aware that for each custom wave, player and NPC health is updated to balance the overall threat level. In most cases, player health is set to 25HP and NPC health is set to 100HP. Composition of each custom wave was balanced around these values so to keep the expected level of challenge it is not recommended to change them.Enemy loadouts used in this mod(weapon presets are configured to use standard B&S weapons):* Swordsman: broadsword or falchion* Swashbuckler: buckler, one of: broadsword, falchion, rapier, short sword, dagger or mace* Shieldbearer: large shield or medium shield, one of: broadsword, falchion, rapier, short sword, dagger or mace* Archer: Bow, quiver of arrows, one of: short sword, axe, mace or dagger* Mage: lightning spell, one of: broadsword, falchion, rapier, short sword, dagger or maceThe following new waves of enemies controlled by SharpAI are added:* Easy difficulty- Mixed group: swordsmen, swashbucklers and mages* Medium difficulty- Mixed group: swordsmen, swashbucklers, archers and mages* Hard difficulty- Mixed group: swordsmen, swashbucklers, shieldbearers, bowmen and mages- Endless groups: hard mixed group, repeated endlessly* Very hard difficulty- Archer squad: archers only- Ranger squad: swordsmen and archers- Band of brigands: swordsmen and swashbucklers- Heavy spellsword squad: swordsmen, shieldbearers and mages- Light spellsword squad: swordsmen, swashbucklers and mages- Mixed group: swordsmen, swashbucklers, shieldbearers, archers and mages- Mixed group, insane: large group of swordsmen, swashbucklers, shieldbearers, archers and mages- Endless groups: very hard mixed group, repeated endlessly- Endless insanity: insane mixed group, repeated endlessly* 1 vs 1- Endless archers- Endless mages- Endless shieldbearers- Endless swashbucklers- Endless swordsmen* Special- Rangers vs Barbarians: friendly swordsmen and archers versus random barbariansKnown issues:Everything listed in this section is either a known bug or an incomplete feature and is planned to be be addressed in the future version of this mod.* NPCs might occasionally trip and fall after dashing* NPC archers might occasionally drop arrows* NPC awareness of player and their actions is still limited so some cheesing tactics will still work* NPCs are not yet fully aware of each other, resulting in clashing and friendly damage* Custom waves are affected by the problem with max enemy alive count not being honoured by the spawning code. This issue is inherited form the main game.Acknowledgment:AI code of this mod is based on original B&S AI code by KospY