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.
16 lines
411 B
Plaintext
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);
|
|
}
|
|
} |