MMD_PRC8/_module/nss/food.nss
Jaysyn904 d77404f157 2025/07/15 Update
Added PEPS AI.
Updated module name.
Set all henchmen to have a random race &/or class based name using a custom version of Markshire's Nomeclature scripts, as well as appearance.
Set Constructs, Undead, Outsiders & Elementals to not require food or drink.
Full compile.
2025-07-15 22:19:46 -04:00

16 lines
411 B
Plaintext

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);
}
}