Neverwinter Nights 2 Tweak Guide

[Page 8] Advanced Tweaking (Pt.2)



Console Commands


The command console in Neverwinter Nights 2 allows users to apply various tweaks or changes to the game 'on the fly' while playing. To open and close the console, press the '~' key (or the key above TAB and/or below ESC) on your keyboard. To see the console text clearly you may have to disable any Antialiasing you have enabled. To implement a console command, simply type its name along with any parameters required. Importantly, for many commands to work, you will need to load up a game, and then enable debug mode by entering the following into the console then pressing ENTER:


DebugMode 1


Update: The console commands appear to no longer be case sensitive as of the 1.10 patch. The full list of updated console commands is provided further below in alphabetical order, however I provide full descriptions for the most useful commands first:



Click to enlarge

showfps - Toggles the frames per second (fps) display on/off.


trees - Toggles the rendering of all trees on/off. Useful for temporarily improving FPS in outdoor areas.


renderwater - Toggles the rendering of water on/off. Useful for temporary FPS boost in areas with water.


rain [0,1] - Toggles rain effects on if set to 1, off if set to 0.


daynight - Toggles the day/night cycle.


wireframe - Toggles wireframe mode on/off, useful for seeing the amount of detail actually being rendered/calculated in any area, even if it's not directly visible on screen.


gfxoptions - Brings up a special Graphics Options dialog box with a multitude of graphics-related settings you can change, including shadow intensity, toggling the day/night cycle, toggling rain on/off and altering the Bloom lighting parameters.


rs kr_roster_edit - Opens the NWN2 Companion Roster Editor, with a proper interface for adding, removing and altering various parameters for companions.


SetSTR, SetDEX, SetCON, SetINT, SetWIS, SetCHA [Value] - Right-click select a target, and use these commands to alter the relevant attribute to the value you wish. For example, right-click select your own character and use SetSTR 18 to give him/her 18 Strength.


givefeat [ID or all] - Select a character then use this command with the appropriate feat ID/name to give them that feat, or use 'all' to give them every feat.


giveitem [ID] [Number of items] - Select a character then use this command to give a particular item to the character, along with how many of that item to give. The list of ID tags for items can be found by launching the NWN2 Toolset, going to the Plugins menu item, selecting 'Universal Blueprint Changer', then selecting Items in the new dialog box and finding the appropriate name under the Tag column.


givespell [iD] - Select a character then use this command to give a particular spell to the character. The spell IDs can be found by launching the NWN2 Toolset, going to the View>2DA File menu option, then selecting the Spells file and using the number under the Name column.


givexp [value] - Select a character then use this command to give them the specified number of experience points.


dm_givegold [value] - Right-click select a character then use this command to give them the specified amount in gold pieces.


dm_god - Enables God mode, meaning you can't be killed.



The following are all the 207 console commands for Neverwinter Nights 2 as of the latest patch. Aside from DebugMode needing to be enabled for most of them to work, remember that many of them require you to load up a game and either be the active character, or right-click select a particular character to apply a command successfully.


aabboxes

ambient

anim_blend

animation

animglod

animlod

anims

attachcamera

auditfeats

auditspells

automemorize

axes

base

blurradius

border

bugreport

c2

c3

camera_debug

camera_debug_full

camera_debug_los

capsules

ceilingmode

clientstats

closeuiscreen

creatures

cutscene

cutscene_override

daynight

daynightscale

daytime

debugcam

debugmode

debugtext

depthbatch

depthbatchindex

diffuse

dirshadowdepthbias

dirshadowslopescaledepthbias

dm_getvarfloat

dm_getvarint

dm_getvarobject

dm_getvarstring

dm_givegold

dm_god

dm_jumptopoint

dm_modifyage

dm_setattackbase

dm_setvarint

dm_setvarobject

dm_setvarstring

dm_setfaction

dropshadows

dumpmemory

dumptextures

emo_blend

enablecombatdebugging

envshadows

exportchar

farshadows

ffxbase

flicker_lights

fog

freecam

frusta

full

gfxoptions

givefeat

giveitem

givespell

givexp

glowintens

glows

guidebug

help

hiliteintens

hilitethresh

hookpoints

irolltwenties

island

killgui

lights

loadgame

loc

loggameeffects

logrunscript

logserverai

lookat

memstats

minimapsave

mipfilter

mousepick

mousepos

netprofile

netprofilereport

normals

obb_all

obb_cdoor

obb_sdoor

obb_water

obboxes

occlusion

openuiscreen

partyadd

partyremove

paths

pbn

perception

physics

playbyname

pointshadowdepthbias

pointshadows

pointshadowslopescaledepthbias

polymorph

portraitsave

possesscompanion

printactions

printcombatdata

printcreatures

printeffects

printfactiontable

printfeats

printglobalvars

printlevelstats

printlistenexpressions

printlocalvars

printperception

printrepository

printreputation

printscripts

profiling

rain

rs

reigidpointshadowzbias

removefeat

renderpc

renderwater

resetlevels

resetpackage

resetstats

resourcestats

rigiddirshadowzbias

rosteradd

rs

runscript

savedaynightstage

savegame

sceneintens

scriptprofiling

selectionmode

selfdirshadowdepthbias

selfdirshadowslopescaledepthbias

selfpointshadowdepthbias

selfpointshadowslopescaledepthbias

serverstats

setcha

setcon

setdex

setint

setstr

setwis

setdierollmode

setnoticetext

setstatsdepth

shadowmap

shadows

showattacks

showcomments

showfps

showscriptcalls

showstats

showtriggerevents

skels

skindirshadowzbias

skinpointshadowbias

sky

snow

softshadows

solid

specular

spheres

stats

surface

surfaceonly

takedamage

terraindirshadowdepthbias

terraindirshadowslopescaledepthbias

terraindirshadowzbias

texfilter

textborder

tiles

tint

toggleserver

trees

unloaduiscreen

unpolymorph

usebehavior

usescriptset

verifymemory

voiceover

wami

waterreflections

wireframe



For most intents and purposes the majority of these commands are relatively obscure diagnostic/debugging features, act as cheats or alter functions which can easily be changed using the in-game settings. However if you find any particular commands you believe would be genuinely useful to most players, and wish to have their description added at the top of this page, please Email Me with the details.



The next section brings the guide to a conclusion with some important tips and tweaks.