void main() { object item, PC = GetPCSpeaker(); string msg = ""; string done = ""; int qdone = GetCampaignInt(GetModuleName(), "qdone", PC); int q = 0; while(GetObjectByTag("q"+IntToString(q+1)) != OBJECT_INVALID) { if ((qdone & (1<"; if (done != "") { msg += "\nCompleted quests: " + done + ""; } SpeakString(msg); } else { if (GetItemPossessedBy(PC, "qreward") == OBJECT_INVALID) { SpeakString("Congratulations you have completed all the quests, here is your reward!"); CreateItemOnObject("qreward", PC); } else { SpeakString("You have completed all the quests & already have your reward."); } } }