Baldur's Gate

File information

Last updated

Original upload

Created by

ikonomov

Uploaded by

ikonomov

Virus scan

Safe to use

Tags for this mod

About this mod

This mod contains simple, effective and easy to use scripts for Baldur's Gate: Tales of the Sword Coast, Baldur's Gate II: Throne of Bhaal, Baldur's Gate: Siege of Dragonspear and Baldur's Gate II: Enhanced Edition.

Permissions and credits
Changelogs
After searching for numerous places to find useful scripts, I made some simple ones of my own that I'm sharing here.  I've found all spell casting scripts to be useless and while I quite like having the control with AI turned off, there are certain tasks that are too repetitive and rather more effective when done by the AI.

In BG1 there are a lot of limitations for the actions that can be scripted so the functionality is limited.  The two scripts included for BG1 are tweaked versions of the ones already included in the game that I find give bit more direct control of the characters.

SSattack.bs: (BG2, BG1EE, BG2EE)
Standard attack mode, attacking when enemies are nearby and using whatever weapon is currently equipped.  If able, the character will detect traps when idle.

Hotkey F (toggle): Forces the character to detect traps constantly, if able, even if being attacked.
"Find Traps" will be displayed above the character when forced to detect traps and "Certainly!" when turned off.

Hotkey S (toggle): The character will hide in shadows, if able, but will attack when enemies are nearby.  In order to backstab the game does require to be hidden and somewhat behind the opponent.  Unfortunately there is no way to control the way a character approaches an enemy when attacking with a script.  A separate toggle activated with the hotkey B described below is intended to prevent an invisible character from attacking when enemies are nearby.  This allows manual control of the first attack while invisible for a possible backstab.
"Hide In Shadows" will be displayed above the character when hiding in shadows and "Certainly!" when turned off.

Hotkey B (toggle): An invisible character will not attack if enemies are nearby.  After becoming visible the character will attack as normal.
"Invisible" will be displayed above the character when trying to stay invisible and "Certainly!" when turned off.

Hotkey D (toggle): The character will turn undead when undead enemies (but not friendly undead) are nearby, if able, unless forced to detect traps or invisible.
"Turn Undead" will be displayed above the character when turning undead and "Certainly!" when turned off.

Hotkey V (toggle): A bard will sing constantly, even if being attacked.
"Singing Battlesong" or "Singing Bard Song" will be displayed above the character when singing and "Certainly!" when turned off.

SSranged.bs: (BG2, BG1EE, BG2EE)
Same as SSattack.bs except preferring a ranged weapon unless an enemy is within 4 squares (2-handed weapon can reach from 2 squares away) prompting the character to switch to a melee weapon.

SSattack.bs: (BG1)
Standard attack mode, attacking when enemies are nearby, using whatever weapon is currently equipped.

SSranged.bs: (BG1)
The character will equip and use a ranged weapon unless an enemy is within 4 squares (2-handed weapon can reach from 2 squares away) prompting switching to a melee weapon.

none.bs:
An empty script that turns off AI for a specific character.

After extracting the files to the BG1, BG2, BG1EE or BG2EE folder run Setup-BGx_Simple_Scripts.exe to install.