Initial Upload

Initial Upload
This commit is contained in:
Jaysyn904
2023-09-21 21:20:34 -04:00
parent d3f23f8b3c
commit 94990edc60
5734 changed files with 6324648 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
/////////////////////////////////////////////////////////
//
// Craftable Natural Resources (CNR) by Festyx
//
// Name: cnr_ta_cowchic
//
// Desc: Alters the greeting text to denote whether
// the animal has consumed enough food to
// produce its resource.
//
// Author: David Bobeck 24Dec02
//
/////////////////////////////////////////////////////////
int StartingConditional()
{
SetCustomToken(500, "\n");
int nFoodPoints = GetLocalInt(OBJECT_SELF, "nCnrFoodPoints");
if (GetTag(OBJECT_SELF) == "cnrChicken")
{
if (nFoodPoints >= 6)
{
SetCustomToken(22020, "This chicken has been fed well. It appears ready to yield an egg!");
}
else
{
SetCustomToken(22020, "This chicken is hungry and must be fed. It is not capable of yielding eggs at this time.");
}
}
if (GetTag(OBJECT_SELF) == "cnrCow")
{
if (nFoodPoints >= 6)
{
SetCustomToken(22020, "This cow has been fed well. It appears ready to yield milk!");
}
else
{
SetCustomToken(22020, "This cow is hungry and must be fed. It is not capable of yielding milk at this time.");
}
}
// Always show something
return TRUE;
}