Here's a snippet of the code that I need it for:
Code: Select all
let armor = cplayer.mo.FindInventory("BasicArmor");
if(armor != null)
{
...
string fontcolor =
!armor.amount ? BigFontWhite :
armor.amount <= 150 ? BigFontGreen : // These 2 lines would find maxabsorb instead and use different values than these
armor.amount <= 200 ? BigFontBlue :
BigFontRed;
...
}