void main() { // Set the variables SetLocalInt(GetPCSpeaker(), "nattick2", 1); // Remove items from the player's inventory object oItemToTake; oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "notetograym"); if(GetIsObjectValid(oItemToTake) != 0) ActionTakeItem(oItemToTake, GetPCSpeaker()); }