Is there a table?

Field of Glory II is a turn-based tactical game set during the Rise of Rome from 280 BC to 25 BC.
Post Reply
MarkShot
Sergeant First Class - Elite Panzer IIIL
Sergeant First Class - Elite Panzer IIIL
Posts: 432
Joined: Tue Dec 28, 2010 7:15 pm

Is there a table?

Post by MarkShot »

Is there a table converting adjectives into POAs or percentages or ranking them?

Like which is better: Enthusiastic or Superior?

Thanks.
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28411
Joined: Sun Dec 04, 2005 6:25 pm

Re: Is there a table?

Post by rbodleyscott »

MarkShot wrote: Mon Oct 12, 2020 9:21 am Is there a table converting adjectives into POAs or percentages or ranking them?
Only the actual code:

Code: Select all

// Prints quality string
FUNCTION PrintQualityString(me)
{
	int quality;

	quality =  GetQuality(me);

	if (quality <= 40)
		{
			if (GetAttrib(me, "Elan") < GetAttrib(me, "Experience"))
				{
					PrintString("IDS_TT_DEMORALISED");
				}
			else
				{
					PrintString("IDS_TT_UNTRAINED");
				}
		}

	if ((quality >= 41) & (quality <= 60))
		{
			if (GetAttrib(me, "Elan") < GetAttrib(me, "Experience"))
				{
					PrintString("IDS_TT_DISHEARTENED");
				}
			else
				{
					PrintString("IDS_TT_RAW");
				}
		}

	if ((quality >= 61) & (quality <= 90))
		{
			if (GetAttrib(me, "Elan") < GetAttrib(me, "Experience"))
				{
					PrintString("IDS_TT_MILDLY_DISHEARTENED");
				}
			else
				{
					PrintString("IDS_TT_BELOW_AVERAGE");
				}
		}

	if ((quality >= 91) & (quality <= 110))
		{
			PrintString("IDS_TT_AVERAGE");
		}

	if ((quality >= 111) & (quality <= 159))
		{
			if (GetAttrib(me, "Elan") > GetAttrib(me, "Experience"))
			  {
			    PrintString("IDS_TT_ENTHUSIASTIC");
			  }
			else
			  {
					PrintString("IDS_TT_ABOVE_AVERAGE");
			  }
		}

	if ((quality >= 160) & (quality <= 210)) // Note: This section should start at cut off point for Impact Pistol not being cancelled by Impact Mounted.
		{
			PrintString("IDS_TT_SUPERIOR");
		}

	if ((quality >= 211) & (quality <= 250))
		{
			PrintString("IDS_TT_HIGHLY_SUPERIOR");
		}

	if (quality > 250)
		{
			PrintString("IDS_TT_ELITE");
		}
}
Note that Quality is the average of Elan and Experience. If Elan != Experience, then sometimes an alternative Adjective is used (e.g. Disheartened, Mildly Disheartened, Enthusiastic) instead of the equivalent Quality string.
Richard Bodley Scott

Image
Post Reply

Return to “Field of Glory II”