G3

gMinion

A Gibberlings Three Mod
Author:
Eric Kerr (aka Cirerrek)
On the web:
Home page and discussion forum

Version 3
Languages: English
Platforms: Windows, Mac OS X, Linux

Overview

These scripts are designed to enhance and increase the enjoyment of the Baldurs Gate II series of games produced by Bioware. They increase the ingame intelligence of the creatures that are summoned by Spells and Items, so that they behave more in line with the original intentions of both Bioware and more Purist D&D Roleplayers.

The gMinion Series consists of:

  • BCS (Baldurs Character Script) files that replace ingame BCS files
  • BCS scripts that act as substitutes for Allied Summons
  • Auxillary files that fix things wrong with Creatures and Spells (CRE & SPL files)

Notes:

  • The AI applies only to PARTY monsters and does not increase the intelligence of "wild" or enemy creatures.

gMinion was created by Greg Hodgson (aka Sarkyn). I've have updated the gMinion series here and there to account for the additional summons available in the expansion pack TOB, but the majority of original content is intact and as potent as ever.

Compatibility

This mod is designed to work with BG2: Shadows of Amn with or without the expansion pack Throne of Bhaal, the new Enhanced Editions (BGEE, BG2EE) and the various conversions prjects (Tutu, BGT, EET).

Bug Reporting

If you should encounter any bugs, please report them to the authors at Cirerrek's AI Scripts forum.

Installation

Enhanced Editions Note
The Enhanced Editions are actively supported games. Please note that every patch update will wipe your current mod setup! If in the middle of a modded game you might want to delay the patch update (if possible) as even after reinstalling the mods, you might not be able to continue with your old savegames. Alternatively, copy the whole game's folder into a new one that can be modded and will stay untouched by game patches. For BG2:EE it is important that you install the mod to the language version you are playing the game in. Otherwise, the dialogues of the mod will not show but give error messages.

Windows
gMinion for Windows is distributed as a self-extracting archive and includes a WeiDU installer. To install, simply double-click the archive and follow the instructions on screen.

Alternatively, the files can be extracted into your game directory using 7zip or WinRAR. When properly extracted, your game directory will contain setup-gminion.exe and the folder gminion. To install, double-click setup-gminion.exe and follow the instructions on screen.

You can run setup-gminion.exe in your game folder to reinstall, uninstall or otherwise change components.

Mac OS X
gMinion for Mac OS X is distributed as a compressed tarball and includes a WeiDU installer.

First, extract the files from the tarball into your game directory. When properly extracted, your game directory will contain setup-gminion, setup-gminion.command, and the folder gminion. To install, double-click setup-gminion.command and follow the instructions on screen.

You can run setup-gminion.command in your game folder to reinstall, uninstall or otherwise change components.

Linux
gMinion for Linux is distributed as a compressed tarball and does not include a WeiDU installer.

Extract the contents of the mod to the folder of the game you wish to modify.

Download the latest version of WeiDU for Linux from WeiDU.org and copy WeiDU and WeInstall to /usr/bin. Following that, open a terminal, cd to your game installation directory, run tolower and answer Y to both queries. You can avoid running the second option (linux.ini) if you've already ran it once in the same directory. To save time, the archive is already tolowered, so there's no need to run the first option (lowercasing file names) either if you've extracted only this mod since the last time you lowercased file names. If you're unsure, running tolower and choosing both options is the safe bet.

To install, run WeInstall gminion in your game folder. Then run wine BGMain.exe and start playing.

Note for Complete Uninstallation
In addition to the methods above for removing individual components, you can completely uninstall the mod using setup-gminion --uninstall at the command line to remove all components without wading through prompts. .

Contents

The following scripts are included:

gMinionM
Melee-Summons that rely on melee attacks

gMinionR
Range-Summons that primarily rely on ranged attacks

gMinionS
Spellcaster-Summons with spellcasting abilities

gMinionC - Temporarily Deprecated
Clone-Summons that are clones of the caster, but this has been dropped temporarily from the install for the moment. A better way to do the script switching and keep it compatible with SimDing0's Improved Clones Tweak is being developed.

Features

  • No Turning Hostile, Minions do NOT have free-will according to purist D&D rules
  • Players choices will ALWAYS override the script
  • Minions will return unfailingly to the caster if ever they find themselves more than a few feet away in a non-combat situation
  • Minions will form up behind the caster, and follow them without needing to be ordered to until a higher priority action takes over
    • Being given an order
    • Seeing an enemy
    • etc.
  • Minions will no longer carelessly use their spells (the Efreet comes to mind) so that the party is caught in the splash radius
  • Cast-n-Attack - minions will make the best use of every second of every round by attacking in the 5 second downtime. This makes spell casting minions much more effective.
  • Better Targeting - Minions will now selectively chose their foes according to the same algorithm that gSeries uses.
  • Improved Combat Effectiveness - Even the humble Kobold Archer, and Ogre didn't go untouched, they now have better targeting, quicker responses and better consistency with the attacks per round they should have had.

Hotkeys

Hotkey Association Default Description
D [D]isable AI Off Turns AI OFF for individual Summons
E [E]nable AI On Turns AI ON for individual Summons
S [S]ummon Off Only works for "clones" created by Simulacrum, Project Image & Mislead
B [B]uff Off Causes spell casting minions to cast defensive spells

Supported Summons: Divine

Spell .CRE File Add. Info
Animal Summoning I
  • WOLFDISU
  • DOGWASU
  • Dire Wolf
  • War Dog
Animal Summoning II
  • BEARBLSU
  • BEARBRSU
  • BEARCASU
  • CATJAGSU
  • Black Bear
  • Brown Bear
  • Cave Bear
  • Panther
Animal Summoning III
  • CATLIOSU
  • WOLFWWSU
  • BEARCASU
  • BEARPOSU
  • Lion
  • Winter Wolf
  • Cave Bear
  • Polar Bear
Animate Dead
  • GHASTSU
  • SKELWASU
  • Skeleton
  • Skeleton Warrior
Aerial Servant
  • SERVSU
  • Aerial Servant
Call Woodland Beings
  • NYMPHSU
  • Nymph
    • Barkskin
    • Call Lightning
    • Domination
    • Miscast Magic
    • Confusion
    • Hold Monster
    • Cause Serious Wounds
    • Dimension Door
Conjure Animals
  • BEARPOSU
  • Polar Bear
Conjure Fire Elemental
  • ELFIRSU2
  • ELFIRSU3
  • ELFIRSU4
  • Fire Elemental: 12HD
  • Fire Elemental: 16HD
  • Fire Elemental: 24HD
Elemental Summoning
  • SWAFIR01
  • SWAEAR01
  • SWAAIR01
  • ELEMZAAM
  • ELEMSUN
  • ELEMCHAN
  • Fire Elemental: 16HD
  • Earth Elemental: 16HD
  • Air Elemental: 16HD
  • Zaaman Rul - Fire Elemental Prince
    • Flamestrike
  • Sunnis - Earth Elemental Prince
    • Earthquake
  • Chan - Air Elemental Prince
Greater Elemental Summoning
  • ELEMZAAM
  • ELEMSUN
  • ELEMCHAN
  • Zaaman Rul - Fire Elemental Prince
    • Flamestrike
  • Sunnis - Earth Elemental Prince
    • Earthquake
  • Chan - Air Elemental Prince
Summon Deva
  • DEVAGOOD
  • Deva
    • Remove Fear
    • Cure Disease
    • Dispel Magic
    • Neutralize Poison
    • Cure Critical Wounds
    • Globe of Blades
    • Chaos
Summon Fallen Deva
  • DEVAEVIL
  • Fallen Deva
    • Remove Fear
    • Cure Disease
    • Dispel Magic
    • Neutralize Poison
    • Cure Critical Wounds
    • Globe of Blades
    • Chaos
Totemic Druid Summon Animal Spirit
  • SPIRBEAR
  • SPIRWOLF
  • SPIRSNAK
  • SPIRLION
  • Spirit Bear
  • Spirit Wolf
  • Spirit Snake
  • Spirit Lion

Supported Summons: Arcane

Spell .CRE File Add. Info
Monster Summoning I
  • KOBOLDSU
  • OGRELESU
  • WORGSU
  • DOGWISU
  • Kobold Commando
  • Ogrillon
  • Worg
  • Rabid Dog
Monster Summoning II
  • GNOLLSU
  • WOLFDISU
  • HOBOGOBSU
  • OGRESU
  • Gnoll Elite
  • Dire Wolf
  • Hobgoblin Elite
  • Ogre
Monster Summoning III
  • ETTERCSU
  • OGREGRSU
  • Ettercap
  • Ogre Berserker
Spider Spawn
  • SPIDGISU
  • SPIDPHSU
  • SPIDSWSU
  • Giant Spider
  • Phase Spider
  • Sword Spider
Animate Dead
  • GHASTSU
  • SKELWASU
  • Skeleton
  • Skeleton Warrior
Conjure Lesser Air Elemental
  • ELAIRSU1
  • Air Elemental: 8HD
Conjure Lesser Earth Elemental
  • ELEARSU1
  • Earth Elemental: 8HD
Conjure Lesser Fire Elemental
  • ELFIRSU1
  • Fire Elemental: 8HD
Carrion Summons
  • CARRIOSU
  • Mutated Crawler
Conjure Air Elemental
  • ELAIRSUW
  • ELAIRSU2
  • ELAIRSU3
  • Air Elemental: 8HD
  • Air Elemental: 16HD
  • Air Elemental: 20HD
Conjure Earth Elemental
  • ELEARSU2
  • ELEARSU3
  • ELEARSU4
  • Earth Elemental: 12HD
  • Earth Elemental: 16HD
  • Earth Elemental: 24HD
Conjure Fire Elemental
  • ELFIRSU2
  • ELFIRSU3
  • ELFIRSU4
  • Fire Elemental: 12HD
  • Fire Elemental: 16HD
  • Fire Elemental: 24HD
Invisible Stalker
  • STALKE
  • Invisible Stalker
Summon Nishruu
  • NISHRUSU
  • Nishruu
    • Magic Missile
    • Melf's Acid Arrow
    • Agannazar's Scorcher
    • Lightning Bolt
    • Ghost Armor
Wyvern Call
  • WYVERNSU
  • Wyvern
Limited Wish
  • RABBITSU
  • Rabbit
Mordekainen's Sword
  • SWORD01
  • Magical Sword
Summon Djinni
  • DJINNISU
  • Djinni
    • Magic Missile
    • Melf's Acid Arrow
    • Agannazar's Scorcher
    • Lightning Bolt
    • Ghost Armor
    • Globe of Invulnerability
    • Protection From Magical Weapons
    • Shadow Door
Summon Efreeti
  • EFREETSU
  • Efreeti
    • Magic Missile
    • Melf's Acid Arrow
    • Agannazar's Scorcher
    • Lightning Bolt
    • Ghost Armor
    • FireBall
    • Flame Arrow
    • Fire Shield (Red)
    • Invisibility
Summon Hakeashar
  • HAKSU
  • Hakeashar
    • Magic Missile
    • Melf's Acid Arrow
    • Agannazar's Scorcher
    • Lightning Bolt
    • Ghost Armor
Mislead
  • Temporarily not supported
 
Projected Image
  • Temporarily not supported
 
Simulacrum
  • Temporarily not supported
 
Summon Planetar
  • PLANGOOD
  • Planetar
    • Remove Fear
    • Neutralize Poison
    • Cure Disease
    • Disple Magic
    • Lesser Restoration
    • True Sight
    • Flamestrike
    • Insect Plague
    • Heal
    • Globe of Blades
    • Earthquake
    • Fire Storm
    • Symbol: Fear
    • Symbol: Death
    • Magic Missle
    • Detect Invisibility
    • Flame Arrow
    • Improved Invisibility
    • Chaos
    • Holy Word
Summon Fallen Planetar
  • PLANEVIL
  • Fallen Planetar
    • Remove Fear
    • Neutralize Poison
    • Cure Disease
    • Disple Magic
    • Lesser Restoration
    • True Sight
    • Flamestrike
    • Insect Plague
    • Heal
    • Globe of Blades
    • Earthquake
    • Fire Storm
    • Symbol: Fear
    • Symbol: Death
    • Magic Missle
    • Detect Invisibility
    • Flame Arrow
    • Improved Invisibility
    • Chaos
    • Unholy Word

Supported Summons: Items

Item .CRE File Add. Info
Silver Horn of Valhalla [MISC3I]
  • BERSERSU
  • Berserker Warrior: 5th Level
Bronze Horn of Valhalla [MISC3J]
  • BERSER02
  • Berserker Warrior: 7th Level
Iron Horn of Valhalla [MISC3K]
  • BERSER03
  • Berserker Warrior: 9th Level
Ras +2 [SW1H33]
  • SWORD02
  • Ras
Staff of the Woodlands [STAF14]
  • SMOUNDSU
  • Shambling Mound
Staff of Air [STAF15]
  • SUMELAIR
  • Lesser Air Elemental: 8HD
Staff of Earth [STAF16]
  • SUMELEAR
  • Lesser Earth Elemental: 8HD
Staff of Fire [STAF17]
  • SUMELFIRE
  • Lesser Fire Elemental: 8HD
Efreeti Bottle [MISC3C]
  • SUMEFREE
  • Efreeti
    • Magic Missile
    • Melf's Acid Arrow
    • Agannazar's Scorcher
    • Lightning Bolt
    • Ghost Armor
    • FireBall
    • Flame Arrow
    • Fire Shield (Red)
    • Invisibility
Ring of Djinni Summoning [RING26]
  • SUMDJINN
  • Djinni
    • Magic Missile
    • Melf's Acid Arrow
    • Agannazar's Scorcher
    • Lightning Bolt
    • Ghost Armor
    • Globe of Invulnerability
    • Protection From Magical Weapons
    • Shadow Door
Golden Lion Figurine [MISC3D]
  • CATLIOWP
  • Joolon
    • Cloak of Fear
    • Blur
Black Spider Figurine [MISC3E]
  • SPIDFGSU
  • Kitthix
    • Web Tangle
    • Phase Teleport
Moon Dog Figurine [MISC7T]
  • MOONDOG
  • Cerebus
    • Mood Dog Sight
    • Mirror Image
    • Improved Invisibility
    • Healing Lick
    • Moon Dog Howl
Jade Hound [MISC3F]
  • DOGWAWP
  • Astral Hound
Spectral Brand [SW1H68/69]
  • SWORD68
  • Spectral Brand

Unsupported Summons

Spell .CRE File Add. Info
Wizard Eye
  • WIZEYE
  • Wizard Eye
Cacofiend
  • DEMNABSU
  • Nabassu
Summon Fiend
  • DEMGLASU
  • Glabrezu
Gate
  • DEMPITSU
  • Pit Fiend

Contact Information

gMinion was originally created by Greg Hodgson (aka Sarkyn). Eric Kerr (aka Cirerrek) is now the project author and updates the gMinion series here and there to account for the additional summons available in the expansion pack ToB, but the majority of original content is intact and as potent as ever. You can visit The Gibberlings Three for information on this and any other mods on which we may be working.

Thanks and Acknowledgements

Black Isle Studios - For producing such an excellent RPG
Bioware - For the Infinity Engine and making such an outstanding RPG
Sarkyn (Greg Hodgson) - gSeries and gMinion
Göran Rimén - scripting tutorials, script segments, etc.,.
Xyx (Jochem van't Hull) - General Insight and Helpfulness
GBlucher (Gebhard Blucher) - GB-Scripts
Rich Martel - uScript
TeamBG - Editors, Tutorials, Forums
BWScripts - Defunct but not forgotten
BGScripts - Where player AI scripting really came to life
Jon Hauglid - Near Infinity and eSeries Debugging
SimDing0 - A little of this, a little of that, and all very helpful
Max (aka Potencius) - a font of information about everything Infinity Engine
Macready - researching how to make gMinion TuTu compatible
CamDawg - hosting, installation package, TuTu compatability coding, G3'ifying documentation

Tools Used in Creation

Credits and Copyright Information

Permission is granted to use and modify the contents of this mod, as long as credit is given to Cirerrek and the original authors and support is handled by the modifying party.

Version History

Version 3 - September 3, 2018

  • Compatibility updates for EE
  • Added Azzazello's expanded coverage for MegaMod games
  • Streamlined code

Version 2

  • Removed setup.bat
  • Updated to WeiDU v213

Version 1.8

  • Moved HaveSpell(), HaveSpellRES() triggers to top of snippets
  • Made compatible with TuTu
  • WeiDU v191

Version 1.7

  • Added OS X installer
  • Moved to The Gibberlings Three
  • Scripts compiled on-the-fly
  • Creature files are patched instead of overwritten

Version 1.6.7

  • Fixed Minion Retirement Behavior so it works as intended
  • Pulled gMinionC from the installation for the interim while I work on a new method for assigning scripts to clones
  • Added SpIn683 WEB_TANGLE to the Scriptable Spells segment. This should prevent CTDs that some users were experiencing.

Version 1.6.6

  • Added Minon Retirement Behavior - Nymph casts MassCure before expiring, if they still have the spell - Suggestion by Bursk
  • Changed installation so that the files SWORD02.CRE (Ras) and SWORD68.CRE (Spectral Brand) are no longer overwritten
  • WeiDU v185

Version 1.6.5

  • WeiDU v137

Version 1.6.4

  • NI's nifty updated compiler caught a couple of missing parenthesis in gMinionS and gMinionC series - Fixed! Thanks Jon
  • A while back I changed all my Specifics.IDS values to be under a byte (<255) and apparently forgot to update gs_Acknowledge_Clone, which was preventing the clones from acknowledging properly. Fixed!
  • WeiDU v125

Version 1.6.3

  • Major re-vamp of gMinionC so that I am no longer handicapped with two sets of scripts segments gs_ and gmc_ for now on this script will be created from gs_ segments only, thereby reducing my workload by copying any changes I make to the gs_ segements onto gMinionC
  • A number of minor tweaks and adjustments to gMinionS (probably a few more to come), gMinionR and gMinionM remain largely the same
  • WeiDU v119

Version 1.6.2

  • Changed usage of MOONDOG_SIGHT (spin696) and MOONDOG_HOWL (spin891) to HaveSpellRES after fixing their spell files which had their levels set incorrectly----MOONDOG_MIRROR_IMAGE and MOONDOG_IMPROVED_INVISIBILITY have their levels set to something other than 1, so they might benefit from having their levels changed
  • The spell files didn't actually get fixed properly so I had to do it again. Should to be good to go.
  • Also fixed MOONDOG_MIRROR_IMAGE (spin697) and MOONDOG_IMPROVED_INVISIBILITY (spin698) this time around and changed their spell usage to HaveSpellRES
  • Tweaked Nymphs use of Miscast Magic a bit

Version 1.6.1

  • Removed Vhailor's Helm from gmc_Summons_TL4_Items because clones really shouldn't be able to create other clones, if the player wants to do it manually, that is their affair
  • Fixed Double !Range(blah,4) in the usage of the Thieves' Hood
  • Removed magic resistance check from WIZARD_DRAGONS_BREATH because the spell bypasses it
  • Removed RESISTMAGICFIRE check from WIZARD_COMET and WIZARD_DRAGONS_BREATH
  • Changed resistance check to 50% for Comet and 25% for Dragon's Breath
  • Added Save vs. Death check to Comet to increase the chance of a proper wing buffet/unconciousness results
  • Added check !Class(LastSeenBy(Myself),FIRE_ELEMENTAL) to gs_TurnUndead because some of them are defined as General - UNDEAD