Do something like this:
Then in your item equip method:Code:int totalQuestPoints = 6; calculateQuestPoints() { q1 += q2 = q1q2; q3 += q4 = q3q4; q5 += q6 = q5q6; q1q2 += q3q4 = q1q2q3q4; q1q2q3q4 += q5q6 = questPoints; }
Code:case ####: calculateQuestPoints(); if(questPoints != totalQuestPoints) { sendMessage("Need to have completed all quests."); }