Using Built-in Codes

content auto translated from {from}

The developer console allows performing various actions that are not available during fair play (killing all enemies, enabling immortality, etc.). It can be used for fast tracking, fixing the consequences of various game bugs, etc.

[cut]

Note 1: using codes may lead to damage to game saves. Therefore, it's recommended to back up your saves before using the console.

Note 2: despite its name, the developer console is available only in the PC and Mac versions of the game.

Activating the Console

There are two ways. For the Steam version of the game, only the second method works.

1. Creating a Shortcut

Create a shortcut to the DragonAge2.exe file (usually located in …\Dragon Age II\bin_ship). Go to the Properties of the shortcut and add –enabledeveloperconsole to the end of the Target field. It should look something like this:

"C:\Program Files\Dragon Age II\bin_ship\DragonAge2.exe" –enabledeveloperconsole

Make sure there is a space between the last quotation mark and the hyphen.

2. Editing Game Files

For PC version: edit the …\Dragon Age II\Data\DragonAge2Launcher.xml file. Do this very carefully, not forgetting to create a backup of the file first. In the file, find the line:

It should be followed by something like this:

Add the property arguments="-enabledeveloperconsole":

For Mac version: add:

[AppDefaults\\DragonAge2.exe\\transgaming]

"cmdlineadd" = "-enabledeveloperconsole"

To the end of the ~/Library/Application Support/Dragon Age II/config file.

Accessing the Console

Open the …\BioWare\Dragon Age II\Settings\KeyBindings.ini file (located in 'My Documents') with a text editor. Find the line OpenConsole_0=Keyboard::Button_X (by default, X stands for GRAVE, but X can be replaced with any free key). If you leave the default value, the console will be triggered with the tilde key (Ё). For some players in the Steam version, using the console with the "tilde" key doesn’t work for some reason. If other keys don’t work either, try assigning the F6 key to the console.

In the EA Direct Download version, the tilde key must be referred to as Kanji.

Note: the entered commands do not appear on the screen. Replacing the fonts.erf file, as in DAO, will not help in Dragon Age II.

After that, press the key that activates the console in-game, enter the code, and hit Enter. The console's functionality can be quickly checked with the code runscript zz_upgrade, which opens the item enchanting screen (works in any location of the game).

Command List

Basic

  • runscript healplayer - Restores health to all party members

  • runscript injury remparty - Removes injuries from all party members

  • runscript injury remall - Removes injuries from the selected character

  • runscript addmoney X - Adds X copper coins; 10000 copper = 1 gold coin

  • runscript killallhostiles - Kills all enemies. Should be used cautiously as it may break scripts and hinder further progress.

  • runscript addxp X - Adds X experience points

  • runscript pc_immortal - Makes the player invulnerable

  • runscript cheat - Temporarily increases party defense, damage remains unchanged

  • runscript zz_upgrade - Opens the enchanting screen

  • runscript zz_app_debug - Allows modifying approval of companions and setting romance flags (does not work on Sebastian)

  • runscript zz_supercrit player - Adds Hawke 1000 health and stamina points, 50 strength and dexterity. Note: the effect is irreversible.

  • To apply the effect to any companion, replace player with gen00fl_[Companion Name (in English)]. For example: zz_supercrit gen00fl_anders

  • runscript dbg_setattrib [attrib] [value] - Increases the value of a certain character attribute for 180 seconds, [Attrib] - attribute number (1 - strength, 2 - dexterity, 3 - magic, 4 - cunning, 5 - willpower, 6 - constitution), [value] - number by which the attribute value is increased

  • runscript dbg_setattrib [attrib] [-value] - Works similarly to the code above, only decreases the attribute value. (e.g., -50)

  • runscript bowlingforferelden – creates an energy ball around Hawke that knocks NPCs (including companions) away like bowling pins. Be sure to save before using it, as the duration of the effect is unknown and can be permanent.

  • runscript zz_party – adds Aveline, Anders, and Isabella to the party.

  • runscript zz_lgt_debug – opens the debug menu for various side quests

  • runscript zz_mer_debug – opens the debug menu for Merchant quests

  • runscript zz_per_debug - opens the debug menu for Hawke's character/dialogue tones. Displays the current tone and allows a full reset.

  • runscript chargen warrior XX - Makes the player a warrior of level XX

  • runscript chargen mage XX - Makes the player a mage of level XX

  • runscript chargen rogue XX - Makes the player a rogue of level XX

  • Caution: changing a character's class also resets their appearance.

  • runscript zz_dae_debug - allows modifying the party, transitioning to another act/location/quest, and debugging the map.

  • With this code, you can even bring back a fallen brother/sister.

  • runscript zz_rdr start | goto | daynight | set | get | talk

  • runscript zz_rdr start 1

  • runscript zz_rdr start 2

  • runscript zz_rdr start 3

  • runscript zz_rdr goto tavern 1

  • runscript zz_rdr goto tavern 1 night

  • runscript zz_rdr goto docks 1

  • runscript zz_rdr goto docks 1 night

  • runscript zz_rdr goto warehouse

  • runscript zz_rdr goto keep 2

  • runscript zz_rdr goto keep 2 night

  • runscript zz_rdr goto tavern 2

  • runscript zz_rdr goto tavern 2 night

  • runscript zz_rdr goto docks 2

  • runscript zz_rdr goto docks 2 night

  • runscript zz_rdr goto ambush

  • runscript zz_rdr goto hideout

  • runscript zz_rdr goto stash

  • runscript zz_rdr goto finale

Companions

The codes below allow changing companion approval, setting romance/friendship/rivalry flags, etc. (Changing approval for some reason does not work in Merrill’s debug menu. Use the runscript zz_app_debug code for this purpose)

  • runscript zz_and_debug - Anders
  • runscript zz_mrl_debug - Merrill
  • runscript zz_vrc_debug - Varric
  • runscript zz_ave_debug - Aveline
  • runscript zz_fen_debug - Fenris
  • runscript zz_isa_debug - Isabella
  • runscript zz_bet_debug - Bethany
  • runscript zz_car_debug - Carver
  • runscript zz_seb_debug - Sebastian

Importing Saves

  • runscript zz_vault_debug - opens the debug window for importing saves, allowing you to see the current state of the world (data imported from Origins). By the way, released patches still haven’t fixed some import bugs (e.g., romance flags).

P.S. This post does not include all commands, only the most significant ones.

Author's translation.

source