M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
StoryMode.StoryModeQuestBase Class Reference

Inherits TaleWorlds.CampaignSystem.QuestBase.

Inherited by StoryMode.Quests.FirstPhase.ArzagosBannerPieceQuest, StoryMode.Quests.FirstPhase.AssembleTheBannerQuest, StoryMode.Quests.FirstPhase.BannerInvestigationQuest, StoryMode.Quests.FirstPhase.CreateKingdomQuest, StoryMode.Quests.FirstPhase.IstianasBannerPieceQuest, StoryMode.Quests.FirstPhase.MeetWithArzagosQuest, StoryMode.Quests.FirstPhase.MeetWithIstianaQuest, StoryMode.Quests.FirstPhase.SupportKingdomQuest, StoryMode.Quests.PlayerClanQuests.RebuildPlayerClanQuest, StoryMode.Quests.PlayerClanQuests.RescueFamilyQuestBehavior.RescueFamilyQuest, StoryMode.Quests.SecondPhase.AssembleEmpireQuestBehavior.AssembleEmpireQuest, StoryMode.Quests.SecondPhase.ConspiracyProgressQuest, StoryMode.Quests.SecondPhase.WeakenEmpireQuestBehavior.WeakenEmpireQuest, StoryMode.Quests.ThirdPhase.DefeatTheConspiracyQuestBehavior.DefeatTheConspiracyQuest, StoryMode.Quests.TutorialPhase.FindHideoutTutorialQuest, StoryMode.Quests.TutorialPhase.LocateAndRescueTravellerTutorialQuest, StoryMode.Quests.TutorialPhase.PurchaseGrainTutorialQuest, StoryMode.Quests.TutorialPhase.RecruitTroopsTutorialQuest, StoryMode.Quests.TutorialPhase.TalkToTheHeadmanTutorialQuest, and StoryMode.Quests.TutorialPhase.TravelToVillageTutorialQuest.

Protected Member Functions

 StoryModeQuestBase (string questId, Hero questGiver, CampaignTime duration)
 
override void OnTimedOut ()
 
- Protected Member Functions inherited from TaleWorlds.CampaignSystem.QuestBase
abstract void SetDialogs ()
 
 QuestBase (string questId, Hero questGiver, CampaignTime duration, int rewardGold)
 
void InitializeQuestOnCreation ()
 
void AddTask (QuestTaskBase task)
 
void RemoveLog (JournalLog logToRemove)
 
void UpdateQuestTaskStage (JournalLog questLog, int currentProgress)
 
abstract void InitializeQuestOnGameLoad ()
 
virtual void RegisterEvents ()
 
virtual void OnStartQuest ()
 
virtual void OnCompleteWithSuccess ()
 
virtual void OnFinalize ()
 
virtual void OnTimedOut ()
 
virtual void OnBeforeTimedOut (ref bool completeWithSuccess, ref bool doNotResolveTheQuest)
 
virtual void OnBetrayal ()
 
- Protected Member Functions inherited from TaleWorlds.ObjectSystem.MBObjectBase
virtual void OnBeforeLoad ()
 
virtual void PreAfterLoad ()
 
virtual void AfterLoad ()
 

Properties

override bool IsSpecialQuest [get]
 
override bool IsRemainingTimeHidden [get]
 
- Properties inherited from TaleWorlds.CampaignSystem.QuestBase
CampaignTime QuestDueTime [get, protected set]
 
MBReadOnlyList< QuestTaskBaseTaskList [get]
 
MBReadOnlyList< JournalLogJournalEntries [get]
 
bool IsTrackEnabled [get]
 
bool IsOngoing [get]
 
bool IsFinalized [get]
 
bool IsThereDiscussDialogFlow [get]
 
Hero QuestGiver [get]
 
abstract TextObject Title [get]
 
abstract bool IsRemainingTimeHidden [get]
 
virtual int RelationshipChangeWithQuestGiver = 0 [get, protected set]
 
virtual bool IsSpecialQuest [get]
 
virtual TextObject TargetHeroDisappearedLogText [get]
 
virtual TextObject TargetHeroDiedLogText [get]
 
- Properties inherited from TaleWorlds.ObjectSystem.MBObjectBase
string StringId [get, set]
 
MBGUID Id [get, set]
 
bool IsInitialized [get]
 
bool IsReady [get, set]
 

Additional Inherited Members

- Public Types inherited from TaleWorlds.CampaignSystem.QuestBase
enum  QuestCompleteDetails {
  Invalid ,
  Success ,
  Cancel ,
  Fail ,
  Timeout ,
  FailWithBetrayal
}
 
- Public Member Functions inherited from TaleWorlds.CampaignSystem.QuestBase
void StartQuest ()
 
void CompleteQuestWithSuccess ()
 
void CompleteQuestWithTimeOut (TextObject timeOutLog=null)
 
void CompleteQuestWithFail (TextObject cancelLog=null)
 
void CompleteQuestWithBetrayal (TextObject betrayLog=null)
 
void CompleteQuestWithCancel (TextObject cancelLog=null)
 
void InitializeQuestOnLoadWithQuestManager ()
 
JournalLog AddLog (TextObject text, bool hideInformation=false)
 
JournalLog AddDiscreteLog (TextObject text, TextObject taskName, int currentProgress, int targetProgress, TextObject shortText=null, bool hideInformation=false)
 
JournalLog AddTwoWayContinuousLog (TextObject text, TextObject taskName, int currentProgress, int range, bool hideInformation=false)
 
virtual GameMenus.GameMenuOption.IssueQuestFlags IsLocationTrackedByQuest (Location location)
 
virtual int GetCurrentProgress ()
 
virtual int GetMaxProgress ()
 
override string ToString ()
 
virtual string GetPrefabName ()
 
void AddTrackedObject (ITrackableCampaignObject trackedObject)
 
void RemoveTrackedObject (ITrackableCampaignObject trackedObject)
 
bool IsTracked (ITrackableCampaignObject o)
 
void ToggleTrackedObjects ()
 
void AddGameMenu (string menuId, TextObject menuText, OnInitDelegate initDelegate, GameOverlays.MenuOverlayType overlay=GameOverlays.MenuOverlayType.None, GameMenu.MenuFlags menuFlags=GameMenu.MenuFlags.None)
 
void AddGameMenuOption (string menuId, string optionId, TextObject optionText, GameMenuOption.OnConditionDelegate condition, GameMenuOption.OnConsequenceDelegate consequence, bool Isleave=false, int index=-1, object relatedObject=null)
 
void ChangeQuestDueTime (CampaignTime questDueTime)
 
virtual void OnFailed ()
 
virtual void OnCanceled ()
 
virtual bool QuestPreconditions ()
 
virtual void OnHeroCanHaveQuestOrIssueInfoIsRequested (Hero hero, ref bool result)
 
virtual void OnHeroCanMarryInfoIsRequested (Hero hero, ref bool result)
 
virtual void OnHeroCanLeadPartyInfoIsRequested (Hero hero, ref bool result)
 
virtual void OnHeroCanHavePartyRoleOrBeGovernorInfoIsRequested (Hero hero, ref bool result)
 
virtual void OnHeroCanDieInfoIsRequested (Hero hero, KillCharacterAction.KillCharacterActionDetail causeOfDeath, ref bool result)
 
virtual void OnHeroCanBecomePrisonerInfoIsRequested (Hero hero, ref bool result)
 
virtual void OnHeroCanBeSelectedInInventoryInfoIsRequested (Hero hero, ref bool result)
 
virtual void OnHeroCanMoveToSettlementInfoIsRequested (Hero hero, ref bool result)
 
- Public Member Functions inherited from TaleWorlds.ObjectSystem.MBObjectBase
 MBObjectBase ()
 
 MBObjectBase (MBObjectBase other)
 
 MBObjectBase (string stringId)
 
void AfterInitialized ()
 
virtual void AfterRegister ()
 
virtual void Initialize ()
 
virtual void Deserialize (MBObjectManager objectManager, XmlNode node)
 
override int GetHashCode ()
 
virtual TextObject GetName ()
 
void PreAfterLoadInternal ()
 
void AfterLoadInternal ()
 
void OnRegistered ()
 
void OnUnregistered ()
 
- Public Attributes inherited from TaleWorlds.CampaignSystem.QuestBase
readonly int RewardGold
 
- Protected Attributes inherited from TaleWorlds.CampaignSystem.QuestBase
DialogFlow OfferDialogFlow
 
DialogFlow DiscussDialogFlow
 
DialogFlow QuestCharacterDialogFlow
 

Constructor & Destructor Documentation

◆ StoryModeQuestBase()

StoryMode.StoryModeQuestBase.StoryModeQuestBase ( string  questId,
Hero  questGiver,
CampaignTime  duration 
)
protected

Member Function Documentation

◆ OnTimedOut()

override void StoryMode.StoryModeQuestBase.OnTimedOut ( )
protectedvirtual

Property Documentation

◆ IsSpecialQuest

override bool StoryMode.StoryModeQuestBase.IsSpecialQuest
get

◆ IsRemainingTimeHidden

override bool StoryMode.StoryModeQuestBase.IsRemainingTimeHidden
get