/// <summary> /// Gets the localized quest description for a specific state. /// </summary> /// <returns> /// The quest description. /// </returns> /// <param name='title'> /// Title of the quest. /// </param> /// <param name='state'> /// State to check. /// </param> public static string GetQuestDescription(string title, QuestState state) { string descriptionFieldName = GetDefaultDescriptionFieldForState(state); string result = DialogueLua.GetLocalizedQuestField(title, descriptionFieldName).AsString; return((string.Equals(result, "nil") || string.IsNullOrEmpty(result)) ? null : result); }
/// <summary> /// Gets the localized quest entry description. /// </summary> /// <returns>The quest entry description.</returns> /// <param name="questTitle">Title of the quest.</param> /// <param name="entryNumber">Entry number.</param> public static string GetQuestEntry(string questTitle, int entryNumber) { string entryFieldName = GetEntryFieldName(entryNumber); return(DialogueLua.GetLocalizedQuestField(questTitle, entryFieldName).AsString); }
/// <summary> /// Gets the quest abandon sequence. The QuestLogWindow plays this sequence when the player /// abandons a quest. /// </summary> /// <returns>The quest abandon sequence.</returns> /// <param name="title">Quest title.</param> public static string GetQuestAbandonSequence(string title) { return(DialogueLua.GetLocalizedQuestField(title, "Abandon Sequence").AsString); }
/// <summary> /// Gets the localized quest title. /// </summary> /// <returns> /// The quest title in the current language. /// </returns> /// <param name='title'> /// Title of the quest. /// </param> public static string GetQuestTitle(string title) { return(DialogueLua.GetLocalizedQuestField(title, "Name").AsString); }