A brief tutorial on how to use the CLUAConsole to spawn items or progress the game.
This CLUAConsole tutorial was provided by one of our moderators the indispensable Kevin Lynch. For information on 3rd party mods check out the rest of the forum thread here:
http://forums.bioware.com/viewtopic.html?topic=152428&forum=10
First, open the baldur.ini file (found in your BG2 main directory) with Notepad (or your favorite text editor) and look for a heading labeled [Program Options].
Under this heading, type "Debug Mode=1" (without the quotation marks) and then save and exit the editor. Start your game in BG2 and, once you're in the game, press the key combination CTRL-SPACE to activate the console.
Once you are in the console, you can use various commands. These commands are fully case sensitive so you need to type them exactly as shown. Some of the more useful ones, used for working around glitches, are:
CLUAConsole:CreateItem("Item Code Here",Quantity Here)
CLUAConsole:CreateCreature("Creature Reference Number Goes Here")
CLUAConsole:MoveToArea("Area Reference Number Goes Here")
CLUAConsole:EnableCheatKeys()
For the first three, you'll need the code or reference number. You can get these by using Infinity Explorer. For the last, the cheat key that is most useful is the CTRL-J combo, which will move your selected characters to the location of your mouse pointer. This can be helpful if a door trigger doesn't work, for example.
Once you are finished using the CLUAConsole to fix any glitches, close it by removing the Debug Mode line from baldur.ini.
IMPORTANT! Please, before you manipulate any game in any way, keep a backup saved game elsewhere that you have not manipulated. Things can go wrong using editors and the CLUAConsole and no one but you is responsible for any glitches that occur when using them (and they've been known to happen). In fact, it is suggested to keep various saves from many points throughout the game in case of problems.