This article is a stub. You can help NWN2Wiki by expanding it.
Console commands
To begin using console commands, you can open the console with ~ and allow commands by typing "DebugMode 1" (without quotations). To end this mode, type "DebugMode 0" (without quotations again).
Runscript
The runscript console command accepts script parameters. The format is just like a function call. For example:
runscript ga_local_int("FavoriteNum", "=-2", "MightyGnome")
This would run the ga_local_int script which takes 3 string parameters. In this particular case, it would set the variable "FavoriteNum" to -2 on the target "MightyGnome".
It can also be shortened to "rs" instead of the entire "runscript" command.[1]
Giving/Removing Feats
To add a feat, type "givefeat #" (without quotations, and replace # with a number from 0-2255).
To remove a feat, type "removefeat #" (without quotations, and replace # with a number from 0-2255).
Combat Debugging
Enable in-game reporting of combat mechanics with the following commands:
- debugmode 1
- enablecombatdebugging 1
- debugmode 0
Altering Alignment
Type "rs ga_alignment(#,#)" (together with the parentheses, and replace the #s with numbers).
The first number picks either Good/Lawful or Evil/Chaotic, and the amount to change your alignment by, in increments of 1, 3, 10 and 70. Type 1, 2, 3 or 4, to select Good/Lawful in increasing amounts. Type -1, -2, -3 or -4, to select Evil/Chaotic in increasing amounts.
The second number sets it either on the Good-Evil axis, or the Lawful-Chaotic axis. Type 0 to alter your Good/Evil alignment. Type 1 to alter your Lawful/Chaotic alignment.
Give Experience
Type "givexp #" (without quotations, and replace # with the amount of exp you want the selected character to gain).
Note: You can give a negative amount to level down characters. Just add a - symbol:
givexp -#
This is useful if you messed up a level-up. You can remove # amount of xp then add it back to relevel. However, you can never change your original level 1 character decisions.
Give Item
Use the "giveitem #" command to give the selected character an item.
Altering Companions' Influence
rs ga_influence(x,150) will maximize a companion's influence where x is:
1: Khelgar
2: Neeshka
3: Elanee
4: Qara
5: Sand
6: Grobnar
7: Casavir
8: Bishop
9: Shandra
10: Construct
11: Zhjaeve
12: Ammon Jerro
13: Bevil
The possible list of commands most players would use is below:
| 20 in every statistic. | irolltwenties |
| A simple influence editor, in the form of a dialogue. | rs kr_influence |
| Add the feat to your currently selected character (use #'s 2 through around 500) | givefeat # |
| Allows you to use the camera with better scrolling and the such | dm_unlockcamera |
| Decreases your experience points by the value entered | givexp [-ve number] |
| Delevel you if your experience points is near to 0 | resetlevels |
| Get "1" more ore find. | rs ga_global_int ("01_Mineral_New", "1") |
| Gives a spell identified by it's id number to the character. | givespell # |
| Gives active player item | giveitem [item tag] # |
| Gives the desired amount of gold | dm_givegold # |
| Gives the desired amount of XP to your character. | givexp # |
| Invincibility | dm_god |
| Makes your character have the appearance of the # in the res ref table of the 2da appearance file...*Note this is just appearance* | Set Appearance # |
| Opens a debug dialogue with an option to open the party roster to switch party members in and out at any time. (Use caution with other features there) | rs kr_roster_edit |
| Raises influence level for that companion. | rs ga_influence (x,y) |
| Raises the amount of party members you may have at once to 6. Default is 3 in Act 1 and 4 in Acts 2 and 3. | rs ga_party_limit(6) |
| Remove the feat corresponding to that number | removefeat # |
| replace Hours, Minutes, Seconds and Milliseconds with how much time you want to advance. | rs ga_time_advance(Hours,Min,Sec,Milli) |
| Returns your controlled character to normal. | unpolymorph |
| Set charisma to given number. | SetCHA # |
| Set constitution to given number. | SetCON # |
| Set dexterity to given number. | SetDEX # |
| Set intelligence to given number. | SetINT # |
| Set strength to given number. | SetSTR # |
| Set wisdom to given number. | SetWIS # |
| Spawns a Dungeon Master NPC who will allow you to spawn items, add journal entries, open stores, add/remove party members, and teleport. | rs gr_dm |
| to move one point towards Chaos | rs ga_alignment(-1,1) |
| to move one point towards evil | rs ga_alignment(-1,0) |
| to move one point towards good | rs ga_alignment(1,0) |
| to move one point towards Law | rs ga_alignment(1,1) |
| Turns your controlled character into a different creature. | polymorph # |
See also
- NWNWiki:Console command