G3

Sequencer Memory

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

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

Overview

seqmem.bs is a little script written by cirerrek to enable a player to remember what they have stored in their minor spell sequencers, spell sequencers, and spell triggers, after a couple of days away from the game.

The basic mechanics for this script were originally developed by Bruce Harding.

Sequencer Memory is really intended to be a plugin for existing Player AI scripts and you are welcome to add it to your own. The downloadable version of this script includes the commented .baf for your convenience.

The variables set by this script can easily be used to allow Player AI scripts to cast sequencers automatically. I don't plan on going into any details about this here, but if you are interested in this feature and are having trouble figuring out how to implement it, please contact me at cirerrek@hotmail.com

The script will NOT report the exact spells you have stored in your sequencers but it will give you a general idea of how you originally chose to target the sequencer(s). The three targeting strategies available are: Offensive, Disabling, and Defensive.

You select a targeting strategy through the use of hotkeys. The choice of keys may seem a bit odd, but they are some of the few hotkeys that were not used by the eSeries player AI scripts developed by Sarkyn and modified/continued/updated by me (cirerrek).

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). At present there are no known incompatibilities.

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
Sequencer Memory 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-seqmem.exe and the folder seqmem. To install, double-click setup-seqmem.exe and follow the instructions on screen.

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

Mac OS X
Sequencer Memory 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-seqmem, setup-seqmem.command, and the folder seqmem. To install, double-click setup-seqmem.command and follow the instructions on screen.

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

Linux
Sequencer Memory 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 seqmem 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-seqmem --uninstall at the command line to remove all components without wading through prompts. .

Contents

How to select the script:

  1. Select a spellcaster in your party by left clicking on them
  2. Press R on the keyboard, which will take you to the selected characters record sheet
  3. Left Click on Customize (located towards the bottom of the record sheet)
  4. Left Click on Script
  5. Scroll through the avaible Party AI Scripts until you come to SEQUENCER-MEMORY
  6. Left click on it to select this script
  7. Click Done
  8. Click Done Again
  9. You should now be back to the record sheet. Press G on the keyboard to return to the game world.

How to utilize the script:

Press V on the keyboard This will display the current status of your sequencers (Locked or Inactive)

  • Locked - Into a particular strategy (Offensive, Disabling, or Defensive)
  • Inactive - You do not have a sequencer active

Inactive will be returned for one of two reasons:

  • You do not have a sequencer active, meaning you have not memorized and cast any of the three types of sequencers.
  • You started a save game in which you already have a sequencer active and did not use SEQUENCER-MEMORY to 'record' a targeting strategy when you originally activated the sequencer.

Locked+Targeting Strategy will be returned if you have used SEQUENCER-MEMORY to 'record' a targeting strategy for one or more of the three types of sequencers.

How to lock a targeting strategy (Example):

  1. Have one of your wizards of the appropriate level memorize the spell Minor Spell Sequencer
  2. Make sure your wizard also has two first level offensive spells such as Magic Missile or Chromatic Orb memorized.
  3. Rest
  4. Cast Minor Spell Sequencer
  5. Select two first level offensive spells to place in the Minor Spell Sequencer
  6. Left Click Done
  7. A few seconds later, the message text "Toggle the N key to select a targeting strategy followed by the F key to confirm the strategy." will float over the character's head and also be displayed in the text box at the bottom of the game screen.
  8. Press the N key 1, 2, or 3 times depending on the targeting strategy you would like to select.
    • N Key Once - Offensive
    • N Key Twice - Disabling
    • N Key Thrice - Defensive
    A message will float over your head each time you press the N Key. The contents of the message will change depending on what type of sequencer you have cast and are trying to target. This message will also be displayed in the text box, along with the text "To change, toggle N; to confirm, press F"
  9. Since for this example we have chosen to memorize two first level offensive spells we will want to press F to lock in the targeting strategy after pressing N only once.
  10. Once F has been pressed, a message will be displayed over the character's head and in the text box. The contents of the message will change depending on what type of sequencer you have cast and are trying to lock, but whichever sequencer it is, you will see "-Locked" at the end of the message.
  11. Congratulations, you have successfully locked in the targeting strategy for the sequencer!
  12. Press V and the following messages will be displayed in the text box: Minor Spell Sequencer Locked - Offensive Spell Sequencer - Inactive Spell Trigger - Inactive
  13. Three days later when you come back to your saved game and you don't remember what you have stored in Minor Spell Sequencer, press V. You will be reminded that offensive spells are stored, and you will know not to use your sequencer on yourself or another party member ;)

This method works the same way for all three types of sequencers: Minor Spell Sequencer, Spell Sequencer, and Spell Trigger. Only the floating and text box messages will change to reflect which type of sequencer you are trying to target.

Known Issues:

The game mechanics do not allow for two sequencers of the same type to be active on any one character at at time. This means that if you already have a Spell Trigger active and try to cast another, you will be greeted by a message "You can not cast multiple instances of the same contigency spell on yourself". This message is not caused by this script.

This feature is important to this script because if you do cast any of the three types of sequencers while you already have one of that type active, the script will be activated and you will prompted to re-target that sequencer. If you do not target the sequencer exactly the same way you initially targeted the sequencer using SEQUENCER-MEMORY, the sequencer in question will then have an incorrect targeting definition assigned to it.

Contact Information

The basic mechanics for Sequencer Memory were originally developed by Bruce Harding. Eric Kerr (aka Cirerrek) is now the project author and maintains Sequencer Memory. 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

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 2 - September 3, 2018

  • Compatibility updates for EE
  • Streamlined code

Version 1.3

  • Removed setup.bat
  • Updated to WeiDU v213

Version 1.2

  • Added OS X installer
  • Moved to The Gibberlings Three
  • WeiDU v185
  • Scripts compiled on-the-fly

Version 1.1

  • WeiDU v137

Version 1.0

  • Initial assembly and distribution of mod