PrettyDebug() is just a fancy thing. The core NwScript functions are
SendMessageToPC() - prints to the chatbox
PrintString() - prints to the nwn2 logfile
DebugPostString() - prints to the screen
And here’s a guide to setting up logging on your machine:
here’s the description of DebugPostString()
// Prints a debug string to the screen at the given location for the given
// duration in the given color.
// It gets displayed on the screen of the object passed in as oTarget.
// - output controlled by ini settings:
// nwn.ini - [Game Options]Debug Text
// nwnplayer.ini - [Server Options]Scripts Print To Screen
void DebugPostString(object oTarget, string sMesg, int nX, int nY, float fDuration, int nColor=4294901760);
But personally i tried and gave up on PrettyDebug() and DebugPostString(). Nwn2 doesn’t seem to even use nwn.ini or nwnplayer.ini – it does use, rather, nwn2.ini and nwn2player.ini … and there’s no [Game Options] section in nwn2.ini; it looks to me like [Game Options] is in nwn2player.ini, etc. So my needs get covered by SendMessageToPC() and PrintString(). The latter is useful (prints to the logfile) when loading and the chatbox isn’t available.
mind, nwn2 brings whole new meaning to the kiss principle,