function int Q4SC() { if (!hasObjVar(this, "myLoyalty")) { return (0x00); } int myLoyalty = getObjVar(this, "myLoyalty"); if (myLoyalty > 0x64) { myLoyalty = 0x64; setObjVar(this, "myLoyalty", myLoyalty); } return (myLoyalty); }