String symbName = temp.getName(); String newName = symbName; String tempTatStat = "<"; //symbol_w3m3_c int CON = temp.getStatCON(); int DEX = temp.getStatDEX(); int STR = temp.getStatSTR(); int WIT = temp.getStatWIT(); int MEN = temp.getStatMEM(); int INT = temp.getStatINT(); String symbGrade = symbName.substring(12); if ( symbGrade == "c" ) newName = "Dye of a High Degree of "; else newName = "Dye of "; if ( CON > 0 ) { newName = newName + "Constitution"; tempTatStat = tempTatStat + "Con +" + CON + " "; } else if ( STR > 0 ) { newName = newName + "Strength"; tempTatStat = tempTatStat + "Str +" + STR + " "; } else if ( DEX > 0 ) { newName = newName + "Dexterity"; tempTatStat = tempTatStat + "Dex +" + DEX + " "; } else if ( MEN > 0 ) { newName = newName + "Mentality"; tempTatStat = tempTatStat + "Men +" + MEN + " "; } else if ( WIT > 0 ) { newName = newName + "Wit"; tempTatStat = tempTatStat + "Wit +" + WIT + " "; } else if ( INT > 0 ) { newName = newName + "Intelligence"; tempTatStat = tempTatStat + "Int +" + INT + " "; } if ( CON < 0 ) tempTatStat = tempTatStat + "Con -" + CON + ">"; else if ( STR < 0 ) tempTatStat = tempTatStat + "Str -" + STR + ">"; else if ( DEX < 0 ) tempTatStat = tempTatStat + "Dex -" + DEX + ">"; else if ( MEN < 0 ) tempTatStat = tempTatStat + "Men -" + MEN + ">"; else if ( WIT < 0 ) tempTatStat = tempTatStat + "Wit -" + WIT + ">"; else if ( INT < 0 ) tempTatStat = tempTatStat + "Int -" + INT + ">"; newName = newName + " " + tempTatStat;