Gaming
 

Simple XP reward for disarming trap

From NWNWiki

[edit] Simple XP reward for disarming trap

[edit] SCRIPT AUTHOR

Kel-nage


[edit] WHAT IT DOES

This simple script awards a set amount of XP to whoever disarms a trap with this script in its "on disarm" property. As you can see, its very simple to edit and it is 100% working, unlike other trap XP scripts. Just cut and paste this...

void main()
{
object oPC = GetLastDisarmed();
int iExperience = 200;
GiveXPToCreature(oPC, iExperience);
}