CLUA Console


Activating the Console (BG / BG:TotS)
Enable
Open the Baldur.ini file (located in the BG installaion directory).
Find the line [Game Options] and add the text Cheats=1 underneath.
Access
Create a new game / load a save game.
Press ctrl and tab together.
CLUA commands can be entered in the editing area that appears at the bottom of the screen.
Commands must be prefixed with CLUAConsole:


Cheat Keys
After using the CLUAConsole:EnableCheatKeys() command the following cheat keys are activated.
CTRL+1    Change armor level animation
CTRL+2    Fade screen to black
CTRL+3    Fade screen to normal
CTRL+4    Highlight background-interactive objects
CTRL+5    Unknown
CTRL+6    Change avatar animation previous
CTRL+7    Change avatar animation next
CTRL+8    Highlights the text boxes
CTRL+9    Highlight the sprites
CTRL+0    Unknown
CTRL+A    Animation avatar (see CTRL+S)
CTRL+C    Jump to next chapter
CTRL+D    Display some numbers (framerate related?)
CTRL+F    Turn the character
CTRL+J    Teleport to cursor position
CTRL+K    Creature under cursor kick out party
CTRL+M    (Followed by ENTER) Debug Dump
CTRL+Q    Creature under cursor joins party (usually crash's the game soon after)
CTRL+R    Heals character under cursor
CTRL+S    Select avatar animation
CTRL+X    Extended position information
CTRL+Y    Kills creature under cursor


Using the Console
Commands
AddGold(<int>)
Adds the gold specified by <int> to the party.
AddSpell("<string>")
Adds the spell specified by <string> to the selected character.
CreateEngine(<int>)
Unknown - seems to start a new single (0) or multi (1) player game.
CreateCreature("<string>")
Creates the creature specified by <string>.
CreateItem("<string>",<int1>,<int2>,<int3>)
Creates the item specified by <string>.
The parameters control the amount/charges of the item.
DisplayText("<string>")
Displays the text specified by <string>.
EnableCheatKeys(<int>)
Enables (1) or disables (0) cheat keys, based on the value of <int>.
ExploreArea()
Explores the current area.
MoveToArea("<string>")
Move the selected characters to the area specified by <string>.
PlaySound("<string>")
Plays the sound specified by <string>.
SetCurrentXP("<int>")
Sets the XP of the selected character to <int>.
SetGlobal("<string1>","<string2>",<int>)
Sets the variable specified by <string1> (of type <string2>) to the value of <int>.
SetWeather(<int>)
Sets the current weather.
StartStore("<string>")
Crashes (starts the store specified by <string>).
StrrefOn()
Strings are displayed with their associated strref numbers.
StrrefOff()
Strings are not displayed with their associated strref numbers.

NB. While the console is enabled, the following cheat is also enabled.
At the stat distribution screen, pressing CTRL+8 will yield maximum stat value.