2024-08-02 23:18:00 -04:00
|
|
|
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);
|
|
|
|
}
|
2025-07-15 22:19:46 -04:00
|
|
|
}
|