Hi, I am VERY new and I have no idea about the Neverwinter Nights Scripts, but I need help to know how to load or where to place a series of commands to be executed in the main campaign of the game.
What I am looking for is very basic; I want my character to get some XP every time he picks a lock or disarms a trap, like in Dragon Age: Origins. The problem is that I understand absolutely nothing and the information on the internet is very confusing to me.
I found that the game’s wiki has the exact command line for the game to give you some XP when you disable a trap;
“// Traps & XP
// Rewards player with XP if trap was disarmed
// by Incanus - big THX to Benn
// enjoy or destroy
object oPC; //player who disarmed trap
int nXP; //XP player gets
int nDC; //DC
//Get PC who disarmed the trap
oPC = GetLastDisarmed();
//Get level of PC
nlevel = GetHitDice(oPC);
//Get DC for disarming trap (needed for calculation of XP)
nDC = GetTrapDisarmDC(OBJECT_SELF);
//Check, if trap was set by another PC. Otherwise give XP
nXP = (nDC-(15+nlevel))2nlevel;
What I don’t understand is in what format all those commands are saved, nor do I know where they are saved. I also don’t understand what the Wiki is referring to with “OnDisarm” it seems that it refers to an internal parameter of the game. Do I have to open some editor and add it manually? How is it done? I want to know that.
Thanks in advance and sorry for this noob question.