void main() { object oPC = GetClickingObject(); object oMod = GetModule(); int nInt = GetLocalInt(oMod, "challenge"); if (nInt==1) { DelayCommand(1.0, FloatingTextStringOnCreature("Super challenge in progress. Gates will unlock on completion.", oPC)); } if (GetLocalInt(oPC, "gate_locked")==1) { FloatingTextStringOnCreature("You must loot your reward chest first.", oPC); } }