Class TalkManager
This class manages talk topics and resulting actions/answers
Assembly: Assembly-CSharp.dll
Syntax
public class TalkManager : MonoBehaviour, IMacroContextProvider
Fields
|
Improve this Doc
View Source
LocationOfRegionalBuilding
Declaration
public string LocationOfRegionalBuilding
Field Value
Properties
|
Improve this Doc
View Source
CurrentKeySubject
Declaration
public string CurrentKeySubject { get; }
Property Value
|
Improve this Doc
View Source
CurrentKeySubjectType
Declaration
public TalkManager.KeySubjectType CurrentKeySubjectType { get; }
Property Value
|
Improve this Doc
View Source
CurrentNPCType
Returns which NPC type we're currently talking to: static, or mobile
Declaration
public TalkManager.NPCType CurrentNPCType { get; }
Property Value
|
Improve this Doc
View Source
CurrentQuestionListItem
Declaration
public TalkManager.ListItem CurrentQuestionListItem { get; }
Property Value
|
Improve this Doc
View Source
GreetingNameNPC
Declaration
public string GreetingNameNPC { get; }
Property Value
|
Improve this Doc
View Source
HasInstance
Declaration
public static bool HasInstance { get; }
Property Value
|
Improve this Doc
View Source
HasNPCsWithWork
Declaration
public bool HasNPCsWithWork { get; }
Property Value
|
Improve this Doc
View Source
Instance
Declaration
public static TalkManager Instance { get; }
Property Value
|
Improve this Doc
View Source
ListTopicLocation
Declaration
public List<TalkManager.ListItem> ListTopicLocation { get; }
Property Value
|
Improve this Doc
View Source
ListTopicPerson
Declaration
public List<TalkManager.ListItem> ListTopicPerson { get; }
Property Value
|
Improve this Doc
View Source
ListTopicTellMeAbout
Declaration
public List<TalkManager.ListItem> ListTopicTellMeAbout { get; }
Property Value
|
Improve this Doc
View Source
ListTopicThings
Declaration
public List<TalkManager.ListItem> ListTopicThings { get; }
Property Value
|
Improve this Doc
View Source
MarkLocationOnMap
Declaration
public bool MarkLocationOnMap { get; }
Property Value
|
Improve this Doc
View Source
MobileNPC
Reference to the current "mobile" NPC. Only valid if CurrentNPCType is equal to NPCType.Mobile
Declaration
public MobilePersonNPC MobileNPC { get; }
Property Value
|
Improve this Doc
View Source
NameNPC
Declaration
public string NameNPC { get; }
Property Value
|
Improve this Doc
View Source
NPCGreetingText
Declaration
public string NPCGreetingText { get; }
Property Value
|
Improve this Doc
View Source
StaticNPC
Reference to the current "static" NPC. Only valid if CurrentNPCType is equal to NPCType.Static
Declaration
public StaticNPC StaticNPC { get; }
Property Value
|
Improve this Doc
View Source
WorkAvailable
Declaration
public bool WorkAvailable { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddDialogForQuestInfoResource(UInt64, String, TalkManager.QuestInfoResourceType, Boolean)
Declaration
public void AddDialogForQuestInfoResource(ulong questID, string resourceName, TalkManager.QuestInfoResourceType resourceType, bool instantRebuildTopicLists = true)
Parameters
|
Improve this Doc
View Source
AddNonQuestRumor(Int32, Int32, Int32, Int32, Int32)
Declaration
public void AddNonQuestRumor(int faction1, int faction2, int regionID, int type, int textId)
Parameters
|
Improve this Doc
View Source
AddOrReplaceQuestProgressRumor(UInt64, Message)
Declaration
public void AddOrReplaceQuestProgressRumor(ulong questID, Message message)
Parameters
|
Improve this Doc
View Source
AddQuestorPostQuestMessage(UInt64, Message)
Declaration
public void AddQuestorPostQuestMessage(ulong questID, Message message)
Parameters
|
Improve this Doc
View Source
AddQuestRumorToRumorMill(UInt64, Message)
Declaration
public void AddQuestRumorToRumorMill(ulong questID, Message message)
Parameters
|
Improve this Doc
View Source
AddQuestRumorToRumorMill(UInt64, List<TextFile.Token[]>)
Declaration
public void AddQuestRumorToRumorMill(ulong questID, List<TextFile.Token[]> listTokens)
Parameters
|
Improve this Doc
View Source
AddQuestTopicWithInfoAndRumors(Quest)
Declaration
public void AddQuestTopicWithInfoAndRumors(Quest quest)
Parameters
Type |
Name |
Description |
Quest |
quest |
|
|
Improve this Doc
View Source
AddQuestTopicWithInfoAndRumors(UInt64, QuestResource, String, TalkManager.QuestInfoResourceType, List<TextFile.Token[]>, List<TextFile.Token[]>)
Declaration
public void AddQuestTopicWithInfoAndRumors(ulong questID, QuestResource questResource, string resourceName, TalkManager.QuestInfoResourceType resourceType, List<TextFile.Token[]> anyInfoAnswers, List<TextFile.Token[]> rumorsAnswers)
Parameters
|
Improve this Doc
View Source
CheckLocationKeyForRegionalBuilding(UInt32, Byte, Int16)
Declaration
public int CheckLocationKeyForRegionalBuilding(uint key, byte index, short faction)
Parameters
Returns
|
Improve this Doc
View Source
DialogLinkForQuestInfoResource(UInt64, String, TalkManager.QuestInfoResourceType, String, TalkManager.QuestInfoResourceType)
Declaration
public void DialogLinkForQuestInfoResource(ulong questID, string resourceName, TalkManager.QuestInfoResourceType resourceType, string linkedResourceName = null, TalkManager.QuestInfoResourceType linkedResourceType = TalkManager.QuestInfoResourceType.NotSet)
Parameters
|
Improve this Doc
View Source
DirectionVector2DirectionHintString(Vector2)
Declaration
public string DirectionVector2DirectionHintString(Vector2 vecDirectionToTarget)
Parameters
Type |
Name |
Description |
Vector2 |
vecDirectionToTarget |
|
Returns
|
Improve this Doc
View Source
FindTalkManager(out TalkManager)
Declaration
public static bool FindTalkManager(out TalkManager talkManagerOut)
Parameters
Returns
|
Improve this Doc
View Source
ForceTopicListsUpdate()
Declaration
public void ForceTopicListsUpdate()
|
Improve this Doc
View Source
GetAnswerTellMeAboutTopic(TalkManager.ListItem)
Declaration
public string GetAnswerTellMeAboutTopic(TalkManager.ListItem listItem)
Parameters
Returns
|
Improve this Doc
View Source
GetAnswerText(TalkManager.ListItem)
Declaration
public string GetAnswerText(TalkManager.ListItem listItem)
Parameters
Returns
|
Improve this Doc
View Source
GetAnswerWhereAmI()
Declaration
public string GetAnswerWhereAmI()
Returns
|
Improve this Doc
View Source
GetAnswerWhereIs(TalkManager.ListItem)
Declaration
public string GetAnswerWhereIs(TalkManager.ListItem listItem)
Parameters
Returns
|
Improve this Doc
View Source
GetAnswerWhereIsRegionalBuilding(TalkManager.ListItem)
Declaration
public string GetAnswerWhereIsRegionalBuilding(TalkManager.ListItem listItem)
Parameters
Returns
|
Improve this Doc
View Source
GetBuildingCompassDirection(Int32)
Declaration
public string GetBuildingCompassDirection(int buildingKey)
Parameters
Type |
Name |
Description |
Int32 |
buildingKey |
|
Returns
|
Improve this Doc
View Source
GetBuildingNameForBuildingKey(Int32)
Declaration
public string GetBuildingNameForBuildingKey(int buildingKey)
Parameters
Type |
Name |
Description |
Int32 |
buildingKey |
|
Returns
|
Improve this Doc
View Source
GetBuildingTypeForBuildingKey(Int32)
Declaration
public DFLocation.BuildingTypes GetBuildingTypeForBuildingKey(int buildingKey)
Parameters
Type |
Name |
Description |
Int32 |
buildingKey |
|
Returns
|
Improve this Doc
View Source
GetConversationSaveData()
Gets the conversation dictionary for save.
Declaration
public TalkManager.SaveDataConversation GetConversationSaveData()
Returns
|
Improve this Doc
View Source
GetDialogHint(TalkManager.ListItem)
Declaration
public string GetDialogHint(TalkManager.ListItem listItem)
Parameters
Returns
|
Improve this Doc
View Source
GetDialogHint2(TalkManager.ListItem)
Declaration
public string GetDialogHint2(TalkManager.ListItem listItem)
Parameters
Returns
|
Improve this Doc
View Source
GetFactionName()
Declaration
public string GetFactionName()
Returns
|
Improve this Doc
View Source
GetFactionNPC()
Declaration
public string GetFactionNPC()
Returns
|
Improve this Doc
View Source
GetFactionNPCAlly()
Declaration
public string GetFactionNPCAlly()
Returns
|
Improve this Doc
View Source
GetFactionNPCEnemy()
Declaration
public string GetFactionNPCEnemy()
Returns
|
Improve this Doc
View Source
GetFactionPC()
Declaration
public string GetFactionPC()
Returns
|
Improve this Doc
View Source
GetHonoric()
Declaration
public string GetHonoric()
Returns
|
Improve this Doc
View Source
GetKeySubjectBuildingDirection()
Declaration
public string GetKeySubjectBuildingDirection()
Returns
|
Improve this Doc
View Source
GetKeySubjectBuildingHint()
Declaration
public string GetKeySubjectBuildingHint()
Returns
|
Improve this Doc
View Source
GetKeySubjectBuildingOnMap()
Declaration
public string GetKeySubjectBuildingOnMap()
Returns
|
Improve this Doc
View Source
GetKeySubjectLocationCompassDirection()
Declaration
public string GetKeySubjectLocationCompassDirection()
Returns
|
Improve this Doc
View Source
GetKeySubjectPersonHint()
Declaration
public string GetKeySubjectPersonHint()
Returns
|
Improve this Doc
View Source
GetLocationCompassDirection(Place)
Declaration
public string GetLocationCompassDirection(Place questPlace)
Parameters
Type |
Name |
Description |
Place |
questPlace |
|
Returns
|
Improve this Doc
View Source
GetLocationWithRegionalBuilding(Byte, Int16, ref DFLocation)
Declaration
public bool GetLocationWithRegionalBuilding(byte index, short faction, ref DFLocation location)
Parameters
Returns
|
Improve this Doc
View Source
GetMacroDataSource()
Declaration
public MacroDataSource GetMacroDataSource()
Returns
|
Improve this Doc
View Source
GetNewsOrRumors()
Declaration
public string GetNewsOrRumors()
Returns
|
Improve this Doc
View Source
GetNewsOrRumorsForBulletinBoard()
Declaration
public TextFile.Token[] GetNewsOrRumorsForBulletinBoard()
Returns
|
Improve this Doc
View Source
GetOldLeaderFateString(Int32)
Declaration
public string GetOldLeaderFateString(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
|
Improve this Doc
View Source
GetOrganizationInfo(TalkManager.ListItem)
Declaration
public string GetOrganizationInfo(TalkManager.ListItem listItem)
Parameters
Returns
|
Improve this Doc
View Source
GetPCFollowUpText(DaggerfallTalkWindow.TalkTone)
Declaration
public string GetPCFollowUpText(DaggerfallTalkWindow.TalkTone talkTone)
Parameters
Returns
|
Improve this Doc
View Source
GetPCGreetingOrFollowUpText()
Declaration
public string GetPCGreetingOrFollowUpText()
Returns
|
Improve this Doc
View Source
GetPCGreetingText(DaggerfallTalkWindow.TalkTone)
Declaration
public string GetPCGreetingText(DaggerfallTalkWindow.TalkTone talkTone)
Parameters
Returns
|
Improve this Doc
View Source
GetPersonBuildingKey(ref Person)
Declaration
public int GetPersonBuildingKey(ref Person person)
Parameters
Type |
Name |
Description |
Person |
person |
|
Returns
|
Improve this Doc
View Source
GetPersonResource(UInt64, String, out Person)
Declaration
public void GetPersonResource(ulong questID, string resourceName, out Person person)
Parameters
|
Improve this Doc
View Source
GetPersonSiteDetails(ref Person)
Declaration
public SiteDetails GetPersonSiteDetails(ref Person person)
Parameters
Type |
Name |
Description |
Person |
person |
|
Returns
|
Improve this Doc
View Source
GetQuestionText(TalkManager.ListItem, DaggerfallTalkWindow.TalkTone)
Declaration
public string GetQuestionText(TalkManager.ListItem listItem, DaggerfallTalkWindow.TalkTone talkTone)
Parameters
Returns
|
Improve this Doc
View Source
GetQuestorGender()
Declaration
public Genders GetQuestorGender()
Returns
|
Improve this Doc
View Source
GetQuestorLocation()
Declaration
public string GetQuestorLocation()
Returns
|
Improve this Doc
View Source
GetQuestorName()
Declaration
public string GetQuestorName()
Returns
|
Improve this Doc
View Source
GetReactionToPlayer(FactionFile.FactionData)
Declaration
public int GetReactionToPlayer(FactionFile.FactionData factionData)
Parameters
Returns
|
Improve this Doc
View Source
GetRegionalLocationCityName(TalkManager.ListItem)
Declaration
public bool GetRegionalLocationCityName(TalkManager.ListItem listItem)
Parameters
Returns
|
Improve this Doc
View Source
GetWorkString()
Declaration
public string GetWorkString()
Returns
|
Improve this Doc
View Source
ImportClassicRumor(RumorFile.DaggerfallRumor)
Declaration
public void ImportClassicRumor(RumorFile.DaggerfallRumor rumor)
Parameters
|
Improve this Doc
View Source
IsBuildingQuestResource(Int32, Int32, ref String, ref Boolean, ref Boolean, ref Boolean)
Declaration
public bool IsBuildingQuestResource(int mapID, int buildingKey, ref string overrideBuildingName, ref bool pcLearnedAboutExistence, ref bool receivedDirectionalHints, ref bool locationWasMarkedOnMapByNPC)
Parameters
Returns
|
Improve this Doc
View Source
IsCastleNpcOfferingQuest(Int32)
Declaration
public bool IsCastleNpcOfferingQuest(int nameSeed)
Parameters
Type |
Name |
Description |
Int32 |
nameSeed |
|
Returns
|
Improve this Doc
View Source
IsNpcOfferingQuest(Int32)
Declaration
public bool IsNpcOfferingQuest(int nameSeed)
Parameters
Type |
Name |
Description |
Int32 |
nameSeed |
|
Returns
|
Improve this Doc
View Source
MarkKeySubjectLocationOnMap()
Declaration
public void MarkKeySubjectLocationOnMap()
|
Improve this Doc
View Source
NPCsAlwaysFriendly()
Declaration
public bool NPCsAlwaysFriendly()
Returns
|
Improve this Doc
View Source
NPCsKnowEverything()
Declaration
public bool NPCsKnowEverything()
Returns
|
Improve this Doc
View Source
RefreshRumorMill()
Declaration
public void RefreshRumorMill()
|
Improve this Doc
View Source
RemoveNpcQuestor(Int32)
Declaration
public void RemoveNpcQuestor(int nameSeed)
Parameters
Type |
Name |
Description |
Int32 |
nameSeed |
|
|
Improve this Doc
View Source
RemoveQuestInfoTopicsForSpecificQuest(UInt64)
Declaration
public void RemoveQuestInfoTopicsForSpecificQuest(ulong questID)
Parameters
Type |
Name |
Description |
UInt64 |
questID |
|
|
Improve this Doc
View Source
RemoveQuestorPostQuestMessage(UInt64)
Declaration
public void RemoveQuestorPostQuestMessage(ulong questID)
Parameters
Type |
Name |
Description |
UInt64 |
questID |
|
|
Improve this Doc
View Source
RemoveQuestProgressRumorsFromRumorMill(UInt64)
Declaration
public void RemoveQuestProgressRumorsFromRumorMill(ulong questID)
Parameters
Type |
Name |
Description |
UInt64 |
questID |
|
|
Improve this Doc
View Source
RemoveQuestRumorsFromRumorMill(UInt64)
Declaration
public void RemoveQuestRumorsFromRumorMill(ulong questID)
Parameters
Type |
Name |
Description |
UInt64 |
questID |
|
|
Improve this Doc
View Source
ResetNPCKnowledge()
Declaration
public void ResetNPCKnowledge()
|
Improve this Doc
View Source
RestoreConversationData(TalkManager.SaveDataConversation)
Restores the conversation dictionary for load.
Declaration
public void RestoreConversationData(TalkManager.SaveDataConversation data)
Parameters
|
Improve this Doc
View Source
SetRandomQuestor()
Declaration
public void SetRandomQuestor()
|
Improve this Doc
View Source
SetTargetNPC(MobilePersonNPC, FactionFile.FactionData, ref Boolean)
Declaration
public void SetTargetNPC(MobilePersonNPC targetMobileNPC, FactionFile.FactionData factionData, ref bool sameTalkTargetAsBefore)
Parameters
|
Improve this Doc
View Source
SetTargetNPC(StaticNPC, FactionFile.FactionData, ref Boolean)
Declaration
public void SetTargetNPC(StaticNPC targetNPC, FactionFile.FactionData factionData, ref bool sameTalkTargetAsBefore)
Parameters
|
Improve this Doc
View Source
StartNewConversation()
Declaration
public void StartNewConversation()
|
Improve this Doc
View Source
TalkToMobileNPC(MobilePersonNPC)
Declaration
public void TalkToMobileNPC(MobilePersonNPC targetNPC)
Parameters
|
Improve this Doc
View Source
TalkToStaticNPC(StaticNPC, Boolean, Boolean)
Declaration
public void TalkToStaticNPC(StaticNPC targetNPC, bool menu = true, bool isSpyMaster = false)
Parameters
|
Improve this Doc
View Source
WeightedRandomRumor(List<TalkManager.RumorMillEntry>)
Gets a random rumour weighted to quest rumours based on QuestRumorWeight in settings.ini.
Weight can range from 1 (quest rumours have same weight as ambient rumours) to 100 (max weight for quest rumours).
The default setting of 50 will select from quest rumour pool more often while still displaying a good mix of ambient rumours.
Even with a max setting of 100 ambient rumours will be fairly mixed in with quest rumours.
Declaration
protected virtual TalkManager.RumorMillEntry WeightedRandomRumor(List<TalkManager.RumorMillEntry> validRumors)
Parameters
Returns
Implements
Extension Methods
MBExtensions.Invoke<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)