Some commands take parameters that reference GameObject instances in-game. You can also use BindCommand to bind a command to a key or key combination so that it executes whenever the key combination is pressed, which saves having to open the console or type anything at all. If you plan on entering many commands at once, look at using the built in Exec and Batch functions. Multiple commands can be chained together using & between commands (that is, space-ampersand-space).
This works as most other UI elements are looking for keypresses with no modifiers, while the console doesn't mind either way. In this case, you may use Control + Enter to enter a command. While most UI elements handle this, some do not, which can be annoying if it affects whatever you're trying to do. Sometimes you might find that pressing enter to run a command also propagates the keypress to whatever window is opened in-game (for example, a dialogue window). Deadfire has slightly more control over navigating, selecting, and cursoring through text in the console, but both games have these features. Pressing tab key after a completed command or parameter will cycle to the next valid value, and shift-tab will cycle to the previous value. Escape characters are not supported in the console, however Unity-formatted Rich Text is.Īs with a traditional console, you can use the Up and Down arrow keys to cycle through previously entered commands, and use the Tab key to complete partially entered commands and parameters (but only object instances of the parameter type) to save having to type them out.
If the parameter contains spaces, enclose it, or the entire parameter section, in quotes to prevent the whitespace being flagged as the end of a parameter. Note that most commands are NOT case sensitive. Here, "GiveItem" is the command, and "Item_Pet_Kaz" is its parameter. To suppress errors in Deadfire, you can prefix the command with example of a typical console command is as follows: While the Deadfire console will output feedback on every command - and usually nothing if the command is successful - note that the console in Pillars of Eternity will not display errors, making it tricky to find out what went wrong, if anything. Errors and output messages are shown in the combat log.
Unlike a traditional console, all parameters must be entered otherwise the console will return an error. Parameters are named to give some indication as to what they are for, or what information is expected.Įach command may define any number of parameters (or sometimes none) that are required as part of the command. Most commands have parameters (also called "arguments"), that are entered after the command and describe information that the command should act on.
PILLARS OF ETERNITY DEFINITIVE EDITION MODS CODE
Internally, each command is mapped to a function (or "method"), which is a block of code that actually carries out the command.
Also note that the combat log/output is not visible while on the world map, which can make observing the result of entered commands difficult.Ī command is an instruction that defines something that the game should do or change. The console can be opened up in-game, and in the main menu - but not during loading screens. Note that in Pillars of Eternity after pressing the console key, the Enter key (right thumbstick on console) must be pressed before entering a command (and then again to actually submit the command). To rebind the console key, go to Options (by pressing Esc in-game) > Controls > Interface > Toggle Console, and bind it to your key of choice. A physical keyboard may also be plugged in to make inputting commands easier. After entering the command, press enter to finalize input, it can be submitted by clicking the right thumbstick again. On home consoles, the console can be opened by holding down the left trigger (LT on Xbox, L2 on PS4), then clicking in the right thumbstick (RS on Xbox, R3 on PS4). The main purpose of the console is to give developers and modders the ability to test underlying systems and mechanics on any regular copy of the game, and players the freedom to explore and tinker without restriction.įor most keyboard layouts the default key that opens the console is either backtick ( ` - same key as tilde ~, found above tab, to the left of the 1 key on a US keyboard), or "o with diaeresis" ( ö found below P, to the right of the L key on a Swedish keyboard).