What is the CLUA Console? How do I use it?
-------------------------------------------
NOTE: There is no known CLUA Console for Planescape:Torment at this time.

The CLUA Console is basically a way of bringing files into the game which are in a .bif or in the override folder. It is also used to change settings in the game and to move to a different area.

Each game has a slightly different way of accessing the console, so I'll go through them in chronological order:

BALDUR'S GATE I and TALES OF THE SWORD COAST
--------------------------------------------------

- Go to your Baldur's gate (BG) directory and open the file Baldur.ini (it's a notepad with a gold cog on it).
- Scroll down to the heading "Game Options" and add the line underneath: "Cheats=1" (case sensitive). Save.
- Load a saved game, and press CTRL and TAB at the same time. A little text box will pop up.
- You may now enter any of the CLUA Commands. All commands start with "CLUAConsole:" then the command after the colon. Refer to the end of this post for the commands.


ICEWIND DALE
--------------------------------------------------

- Open your Icewind Dale (IWD) Directory and look for Icewind.ini (a notepad with a gold cog).
- Scroll down to the heading "Game Options" and enter the following line underneath: Cheats=1 (case sensitive). Save.
- Load any saved game and press CTRL and TABat the same time. A text box will pop up.
- In the text box, type "CHEATERSDOPROSPER:" you may now use any of the commands after the colon. Refer to the end of this post for the commands.


IWD: HEART OF WINTER
--------------------------------------------------

- Repeat every step for Icewind Dale (above) except, on the last step, it is "GETYOURCHEATON:" instead. All commands may follow the colon, refer to the end of this tutorial.


BALDUR'S GATE 2: SHADOWS OF AMN and THRONE OF BHAAL
--------------------------------------------------

- Go to your Baldur's gate 2 directory, and open the file Baldur.ini (a notepad file with a gold cog).

You now have two options:

- Scroll down to the "Game Options" heading and add the line: "Cheats=1" (case sensitive) underneath.
- Now go in game, opening any saved game. Press CTRL and SPACE BAR at the same time. A text box will pop up at the bottom. Type "CLUAConsole:EnableCheatKeys(1);" into the box and press ENTER. Now Type the line "CLUAConsole:". Any of the commands below may be used after the colon.

OR

- Under the "Program Options" heading add the line: "Debug Mode=1" (case sensitive) underneath. Save. Now open BG2 and load any saved game. Press CTRL and SPACE BAR at the same time. A text box will appear. Now Type the line "CLUAConsole:". Any of the commands below may be used after the colon.


COMMANDS
--------------------------------------------------
Just type these commands after the first portion of the Command, given in the instructions for each game. There should be no spaces and the commands are case sensitive, although the file names are not. Press enter to finish the command.

CreateItem("xxxxxxxx")
Replace xxxxxxxx with an item filename. Item filenames may only be a maximum of 8 letters long! The item will appear in the first empty backpack slot in your party.

CreateCreature("xxxxxxxx")
NOT AVAILABLE FOR ICEWIND DALE, HEART OF WINTER OR TRIALS OF THE LUREMASTER
Creates a Creature, centre screen, into the game. xxxxxxxx is the creature filename, which may only be up to 8 letters long.

MoveToArea("AR####")
Moves the entire party to the specified area file. Although I give the example "AR####" that is for only the in-game areas. Custom made areas put together by people here at TeamBG or elsewhere may not use the "AR" part. #### is always four numbers.

SetCurrentXP(##)
Sets the party's experience to the number specified. Simple as that.

SetGlobal("name","YYYYYY",#)
This changes the chosen Global. YYYYYY is GLOBAL, LOCAL or an area filename (AR####). "name" is name of the Global and # is the number to set the Global too.

eg. for BG2:
CLUAConsole:SetGlobal("TeamBG","GLOBAL",1)

AddGold(####)
Adds #### gold to the party's total. #### are of course numbers.

ExploreArea()
Removes all unexplored (black) areas from the map.

SetWeather(#)
Use one of the following 3 settings for #:
0 - No Weather 1 - Rain 2 - Snow

AddSpell("xxxxxxxx")
Where xxxxxxxx is a spell file code
Note: the cursor must be over the person who you want to get the spell and the spell will be memorized in all empty slots and added to the spell book