コード例 #1
0
ファイル: NPC.cs プロジェクト: dunyakilavuz/Perileos
 void CheckQuestState()
 {
     if(currentQuestContinues == false && clickedOnNPC == false && questWeAreOn.isQuestAccepted == false && questWeAreOn.isNeedsSatisfied == false && questWeAreOn.isFinished == false && allQuestsFinished == false) // Quest not taken yet.
     {
         currentState = QuestStates.questNotTaken;
     }
     else if(currentQuestContinues == false && clickedOnNPC == true && questWeAreOn.isQuestAccepted == false && questWeAreOn.isNeedsSatisfied == false && questWeAreOn.isFinished == false && allQuestsFinished == false) // Quest not taken, yet clicked.
     {
         currentState = QuestStates.questOffering;
     }
     else if (currentQuestContinues == true && questWeAreOn.isQuestAccepted == true && questWeAreOn.isNeedsSatisfied == false && questWeAreOn.isFinished == false && allQuestsFinished == false) // Quest is taken but needs are not satisfied, and not ready to turn in.
     {
         currentState = QuestStates.questTakenButNotSatisfied;
     }
     else if (currentQuestContinues == true && questWeAreOn.isQuestAccepted == true && questWeAreOn.isNeedsSatisfied == true && questWeAreOn.isFinished == false && allQuestsFinished == false) // Quests needs are satisfied, but not turned in yet.
     {
         currentState = QuestStates.questTakenAndSatisfied;
     }
     else if(currentQuestContinues == false && questWeAreOn.isQuestAccepted == true && questWeAreOn.isNeedsSatisfied == true && questWeAreOn.isFinished == true && allQuestsFinished == false) // Quests needs are satisfied, and turned in.
     {
         currentState = QuestStates.questTurnedIn;
     }
     else if(allQuestsFinished == true) // All quests given are finished.
     {
         currentState = QuestStates.questsAreFinished;
     }
 }
コード例 #2
0
ファイル: QuestHelper.cs プロジェクト: gaknoia/babbot
 public QuestReq(int npc_id, string action_name, string npc_dest_text, 
         string quest_status, string proc_name, int choice, QuestStates final_state)
 {
     NpcId = npc_id;
     ActionName = action_name;
     NpcDestText = npc_dest_text;
     QuestStatus = quest_status;
     ProcName = proc_name;
     Choice = choice;
     FinalState = final_state;
 }
コード例 #3
0
ファイル: QuestHelper.cs プロジェクト: gaknoia/babbot
 public QuestReq(int npc_id, string action_name, string npc_dest_text, 
             string quest_status, string proc_name, QuestStates final_state)
     : this(npc_id, action_name, npc_dest_text, quest_status, proc_name, 0, final_state)
 {
 }