Page 1 of 1
Is there a table?
Posted: Mon Oct 12, 2020 9:21 am
by MarkShot
Is there a table converting adjectives into POAs or percentages or ranking them?
Like which is better: Enthusiastic or Superior?
Thanks.
Re: Is there a table?
Posted: Mon Oct 12, 2020 10:32 am
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.