void main() { object oPC=GetExitingObject(); if (GetLocalInt(oPC,"nIsVampire")==TRUE) { // vampire SetLocalInt(oPC,"nSunSafe",FALSE); } // vampire }