void main()
{
object oPC = GetItemActivator();
string sName = GetName(GetItemActivated());
int iHungry = GetLocalInt(oPC,"ate");

if (iHungry <= 1)
    {
    SetLocalInt(oPC,"ate",1);
    FloatingTextStringOnCreature("You eat the "+ sName +" and are full.",oPC,TRUE);
    }
else if (iHungry == 1)
    {
    FloatingTextStringOnCreature("You aren't hungry, but you eat the "+ sName +" anyway.",oPC,TRUE);
    }

}