Initial commit
Initial commit.
This commit is contained in:
17
_module/nss/food.nss
Normal file
17
_module/nss/food.nss
Normal file
@@ -0,0 +1,17 @@
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user