// set the name of the trigger to the number of experience points you want the player // to have. void main() { object oPC=GetEnteringObject(); object oWP=GetNearestObjectByTag("LEVELUP_POINT"); string sName=GetName(oWP); int nX=StringToInt(sName); if (GetIsPC(oPC)==TRUE) { // PC if (nX>GetXP(oPC)) { // level up SetXP(oPC,nX); } // level up } // PC }