public override string Apply() { MichaelCasey npc = GetComponent <MichaelCasey>(); FatherOwens owens = GameObject.Find("Father Owens _ 1").GetComponent <FatherOwens> (); if (queryName == "checkIsBusy") { if (npc.getBusy()) { return("true"); } else { return("false"); } } else if (queryName == "checkFirst") { if (owens.getFirstSermon()) { return("true"); } else { return("false"); } } else if (queryName == "checkSecond") { if (owens.getSecondSermon()) { return("true"); } else if (!owens.getSecondSermon() && (PlayerPrefs.GetInt("TimePassed") > 1500)) { return("listen"); } else { return("false"); } } else if (queryName == "checkBusyReset") { if (!owens.getSecondSermon() && (PlayerPrefs.GetInt("TimePassed") > 1500)) { return("true"); } else { return("false"); } } return("true"); }
public override string Apply() { FatherOwens npc = GameObject.Find("Father Owens").GetComponent <FatherOwens>(); if (toCheck == "first sermon") { if (npc.getFirstSermon()) { return("true"); } return("false"); } else if (toCheck == "second sermon") { if (npc.getSecondSermon()) { return("true"); } return("false"); } return("false"); }
public override string Apply() { FatherOwens npc = GetComponent <FatherOwens>(); if (query == "checkIsBusy") { if (npc.getBusy()) { return("true"); } else { return("false"); } } else if (query == "checkFirst") { if (npc.getFirstSermon()) { return("true"); } else { return("false"); } } else if (query == "checkSecond") { if (!npc.getSecondSermon() && (PlayerPrefs.GetInt("TimePassed") > 1029)) { return("false"); } else { return("true"); } } else if (query == "checkBusyReset1") { if (!npc.getSecondSermon() && (PlayerPrefs.GetInt("TimePassed") > 1029)) { return("true"); } else { return("false"); } } else if (query == "checkKnowledge") { if (PlayerPrefs.HasKey("Robby")) { print("has key"); if (PlayerPrefs.GetString("Robby") == "true") { return("true"); } else { return("false"); } } else { return("false"); } } else if (query == "checkOutcome") { return(PlayerPrefs.GetString("outcome")); } else if (query == "checkStanding") { if (PlayerPrefs.GetInt("Owens_Rep") > 0) { return("good"); } else { return("bad"); } } return("true"); }