Initial commit
Initial commit.
This commit is contained in:
21
_module/nss/food_disease.nss
Normal file
21
_module/nss/food_disease.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
void main()
|
||||
{
|
||||
object oPC = GetItemActivator();
|
||||
string sName = GetName(GetItemActivated());
|
||||
int iHungry = GetLocalInt(oPC,"ate");
|
||||
|
||||
if (iHungry <= 1)
|
||||
{
|
||||
effect eEffect = EffectDisease(DISEASE_CACKLE_FEVER);
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT,eEffect,oPC);
|
||||
SetLocalInt(oPC,"ate",1);
|
||||
FloatingTextStringOnCreature("You eat the "+ sName +" and feel very sick.",oPC,TRUE);
|
||||
}
|
||||
else if (iHungry == 1)
|
||||
{
|
||||
effect eEffect = EffectDisease(DISEASE_CACKLE_FEVER);
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT,eEffect,oPC);
|
||||
FloatingTextStringOnCreature("You aren't hungry, but you eat the "+ sName +" and feel very ill.",oPC,TRUE);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user