Show / Hide Table of Contents

Class TalkManager

This class manages talk topics and resulting actions/answers

Inheritance
Object
Object
Component
Behaviour
MonoBehaviour
TalkManager
Implements
IMacroContextProvider
Namespace: DaggerfallWorkshop.Game
Assembly: Assembly-CSharp.dll
Syntax
public class TalkManager : MonoBehaviour, IMacroContextProvider

Fields

| Improve this Doc View Source

LocationOfRegionalBuilding

Declaration
public string LocationOfRegionalBuilding
Field Value
Type Description
String

Properties

| Improve this Doc View Source

CurrentKeySubject

Declaration
public string CurrentKeySubject { get; }
Property Value
Type Description
String
| Improve this Doc View Source

CurrentKeySubjectType

Declaration
public TalkManager.KeySubjectType CurrentKeySubjectType { get; }
Property Value
Type Description
TalkManager.KeySubjectType
| 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
Type Description
TalkManager.NPCType
| Improve this Doc View Source

CurrentQuestionListItem

Declaration
public TalkManager.ListItem CurrentQuestionListItem { get; }
Property Value
Type Description
TalkManager.ListItem
| Improve this Doc View Source

GreetingNameNPC

Declaration
public string GreetingNameNPC { get; }
Property Value
Type Description
String
| Improve this Doc View Source

HasInstance

Declaration
public static bool HasInstance { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

HasNPCsWithWork

Declaration
public bool HasNPCsWithWork { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

Instance

Declaration
public static TalkManager Instance { get; }
Property Value
Type Description
TalkManager
| Improve this Doc View Source

ListTopicLocation

Declaration
public List<TalkManager.ListItem> ListTopicLocation { get; }
Property Value
Type Description
List<TalkManager.ListItem>
| Improve this Doc View Source

ListTopicPerson

Declaration
public List<TalkManager.ListItem> ListTopicPerson { get; }
Property Value
Type Description
List<TalkManager.ListItem>
| Improve this Doc View Source

ListTopicTellMeAbout

Declaration
public List<TalkManager.ListItem> ListTopicTellMeAbout { get; }
Property Value
Type Description
List<TalkManager.ListItem>
| Improve this Doc View Source

ListTopicThings

Declaration
public List<TalkManager.ListItem> ListTopicThings { get; }
Property Value
Type Description
List<TalkManager.ListItem>
| Improve this Doc View Source

MarkLocationOnMap

Declaration
public bool MarkLocationOnMap { get; }
Property Value
Type Description
Boolean
| 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
Type Description
MobilePersonNPC
| Improve this Doc View Source

NameNPC

Declaration
public string NameNPC { get; }
Property Value
Type Description
String
| Improve this Doc View Source

NPCGreetingText

Declaration
public string NPCGreetingText { get; }
Property Value
Type Description
String
| 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
Type Description
StaticNPC
| Improve this Doc View Source

WorkAvailable

Declaration
public bool WorkAvailable { get; }
Property Value
Type Description
Boolean

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
Type Name Description
UInt64 questID
String resourceName
TalkManager.QuestInfoResourceType resourceType
Boolean instantRebuildTopicLists
| 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
Type Name Description
Int32 faction1
Int32 faction2
Int32 regionID
Int32 type
Int32 textId
| Improve this Doc View Source

AddOrReplaceQuestProgressRumor(UInt64, Message)

Declaration
public void AddOrReplaceQuestProgressRumor(ulong questID, Message message)
Parameters
Type Name Description
UInt64 questID
Message message
| Improve this Doc View Source

AddQuestorPostQuestMessage(UInt64, Message)

Declaration
public void AddQuestorPostQuestMessage(ulong questID, Message message)
Parameters
Type Name Description
UInt64 questID
Message message
| Improve this Doc View Source

AddQuestRumorToRumorMill(UInt64, Message)

Declaration
public void AddQuestRumorToRumorMill(ulong questID, Message message)
Parameters
Type Name Description
UInt64 questID
Message message
| Improve this Doc View Source

AddQuestRumorToRumorMill(UInt64, List<TextFile.Token[]>)

Declaration
public void AddQuestRumorToRumorMill(ulong questID, List<TextFile.Token[]> listTokens)
Parameters
Type Name Description
UInt64 questID
List<TextFile.Token[]> listTokens
| 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
Type Name Description
UInt64 questID
QuestResource questResource
String resourceName
TalkManager.QuestInfoResourceType resourceType
List<TextFile.Token[]> anyInfoAnswers
List<TextFile.Token[]> rumorsAnswers
| Improve this Doc View Source

CheckLocationKeyForRegionalBuilding(UInt32, Byte, Int16)

Declaration
public int CheckLocationKeyForRegionalBuilding(uint key, byte index, short faction)
Parameters
Type Name Description
UInt32 key
Byte index
Int16 faction
Returns
Type Description
Int32
| 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
Type Name Description
UInt64 questID
String resourceName
TalkManager.QuestInfoResourceType resourceType
String linkedResourceName
TalkManager.QuestInfoResourceType linkedResourceType
| Improve this Doc View Source

DirectionVector2DirectionHintString(Vector2)

Declaration
public string DirectionVector2DirectionHintString(Vector2 vecDirectionToTarget)
Parameters
Type Name Description
Vector2 vecDirectionToTarget
Returns
Type Description
String
| Improve this Doc View Source

FindTalkManager(out TalkManager)

Declaration
public static bool FindTalkManager(out TalkManager talkManagerOut)
Parameters
Type Name Description
TalkManager talkManagerOut
Returns
Type Description
Boolean
| 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
Type Name Description
TalkManager.ListItem listItem
Returns
Type Description
String
| Improve this Doc View Source

GetAnswerText(TalkManager.ListItem)

Declaration
public string GetAnswerText(TalkManager.ListItem listItem)
Parameters
Type Name Description
TalkManager.ListItem listItem
Returns
Type Description
String
| Improve this Doc View Source

GetAnswerWhereAmI()

Declaration
public string GetAnswerWhereAmI()
Returns
Type Description
String
| Improve this Doc View Source

GetAnswerWhereIs(TalkManager.ListItem)

Declaration
public string GetAnswerWhereIs(TalkManager.ListItem listItem)
Parameters
Type Name Description
TalkManager.ListItem listItem
Returns
Type Description
String
| Improve this Doc View Source

GetAnswerWhereIsRegionalBuilding(TalkManager.ListItem)

Declaration
public string GetAnswerWhereIsRegionalBuilding(TalkManager.ListItem listItem)
Parameters
Type Name Description
TalkManager.ListItem listItem
Returns
Type Description
String
| Improve this Doc View Source

GetBuildingCompassDirection(Int32)

Declaration
public string GetBuildingCompassDirection(int buildingKey)
Parameters
Type Name Description
Int32 buildingKey
Returns
Type Description
String
| Improve this Doc View Source

GetBuildingNameForBuildingKey(Int32)

Declaration
public string GetBuildingNameForBuildingKey(int buildingKey)
Parameters
Type Name Description
Int32 buildingKey
Returns
Type Description
String
| Improve this Doc View Source

GetBuildingTypeForBuildingKey(Int32)

Declaration
public DFLocation.BuildingTypes GetBuildingTypeForBuildingKey(int buildingKey)
Parameters
Type Name Description
Int32 buildingKey
Returns
Type Description
DFLocation.BuildingTypes
| Improve this Doc View Source

GetConversationSaveData()

Gets the conversation dictionary for save.

Declaration
public TalkManager.SaveDataConversation GetConversationSaveData()
Returns
Type Description
TalkManager.SaveDataConversation
| Improve this Doc View Source

GetDialogHint(TalkManager.ListItem)

Declaration
public string GetDialogHint(TalkManager.ListItem listItem)
Parameters
Type Name Description
TalkManager.ListItem listItem
Returns
Type Description
String
| Improve this Doc View Source

GetDialogHint2(TalkManager.ListItem)

Declaration
public string GetDialogHint2(TalkManager.ListItem listItem)
Parameters
Type Name Description
TalkManager.ListItem listItem
Returns
Type Description
String
| Improve this Doc View Source

GetFactionName()

Declaration
public string GetFactionName()
Returns
Type Description
String
| Improve this Doc View Source

GetFactionNPC()

Declaration
public string GetFactionNPC()
Returns
Type Description
String
| Improve this Doc View Source

GetFactionNPCAlly()

Declaration
public string GetFactionNPCAlly()
Returns
Type Description
String
| Improve this Doc View Source

GetFactionNPCEnemy()

Declaration
public string GetFactionNPCEnemy()
Returns
Type Description
String
| Improve this Doc View Source

GetFactionPC()

Declaration
public string GetFactionPC()
Returns
Type Description
String
| Improve this Doc View Source

GetHonoric()

Declaration
public string GetHonoric()
Returns
Type Description
String
| Improve this Doc View Source

GetKeySubjectBuildingDirection()

Declaration
public string GetKeySubjectBuildingDirection()
Returns
Type Description
String
| Improve this Doc View Source

GetKeySubjectBuildingHint()

Declaration
public string GetKeySubjectBuildingHint()
Returns
Type Description
String
| Improve this Doc View Source

GetKeySubjectBuildingOnMap()

Declaration
public string GetKeySubjectBuildingOnMap()
Returns
Type Description
String
| Improve this Doc View Source

GetKeySubjectLocationCompassDirection()

Declaration
public string GetKeySubjectLocationCompassDirection()
Returns
Type Description
String
| Improve this Doc View Source

GetKeySubjectPersonHint()

Declaration
public string GetKeySubjectPersonHint()
Returns
Type Description
String
| Improve this Doc View Source

GetLocationCompassDirection(Place)

Declaration
public string GetLocationCompassDirection(Place questPlace)
Parameters
Type Name Description
Place questPlace
Returns
Type Description
String
| Improve this Doc View Source

GetLocationWithRegionalBuilding(Byte, Int16, ref DFLocation)

Declaration
public bool GetLocationWithRegionalBuilding(byte index, short faction, ref DFLocation location)
Parameters
Type Name Description
Byte index
Int16 faction
DFLocation location
Returns
Type Description
Boolean
| Improve this Doc View Source

GetMacroDataSource()

Declaration
public MacroDataSource GetMacroDataSource()
Returns
Type Description
MacroDataSource
| Improve this Doc View Source

GetNewsOrRumors()

Declaration
public string GetNewsOrRumors()
Returns
Type Description
String
| Improve this Doc View Source

GetNewsOrRumorsForBulletinBoard()

Declaration
public TextFile.Token[] GetNewsOrRumorsForBulletinBoard()
Returns
Type Description
TextFile.Token[]
| Improve this Doc View Source

GetOldLeaderFateString(Int32)

Declaration
public string GetOldLeaderFateString(int index)
Parameters
Type Name Description
Int32 index
Returns
Type Description
String
| Improve this Doc View Source

GetOrganizationInfo(TalkManager.ListItem)

Declaration
public string GetOrganizationInfo(TalkManager.ListItem listItem)
Parameters
Type Name Description
TalkManager.ListItem listItem
Returns
Type Description
String
| Improve this Doc View Source

GetPCFollowUpText(DaggerfallTalkWindow.TalkTone)

Declaration
public string GetPCFollowUpText(DaggerfallTalkWindow.TalkTone talkTone)
Parameters
Type Name Description
DaggerfallTalkWindow.TalkTone talkTone
Returns
Type Description
String
| Improve this Doc View Source

GetPCGreetingOrFollowUpText()

Declaration
public string GetPCGreetingOrFollowUpText()
Returns
Type Description
String
| Improve this Doc View Source

GetPCGreetingText(DaggerfallTalkWindow.TalkTone)

Declaration
public string GetPCGreetingText(DaggerfallTalkWindow.TalkTone talkTone)
Parameters
Type Name Description
DaggerfallTalkWindow.TalkTone talkTone
Returns
Type Description
String
| Improve this Doc View Source

GetPersonBuildingKey(ref Person)

Declaration
public int GetPersonBuildingKey(ref Person person)
Parameters
Type Name Description
Person person
Returns
Type Description
Int32
| Improve this Doc View Source

GetPersonResource(UInt64, String, out Person)

Declaration
public void GetPersonResource(ulong questID, string resourceName, out Person person)
Parameters
Type Name Description
UInt64 questID
String resourceName
Person person
| Improve this Doc View Source

GetPersonSiteDetails(ref Person)

Declaration
public SiteDetails GetPersonSiteDetails(ref Person person)
Parameters
Type Name Description
Person person
Returns
Type Description
SiteDetails
| Improve this Doc View Source

GetQuestionText(TalkManager.ListItem, DaggerfallTalkWindow.TalkTone)

Declaration
public string GetQuestionText(TalkManager.ListItem listItem, DaggerfallTalkWindow.TalkTone talkTone)
Parameters
Type Name Description
TalkManager.ListItem listItem
DaggerfallTalkWindow.TalkTone talkTone
Returns
Type Description
String
| Improve this Doc View Source

GetQuestorGender()

Declaration
public Genders GetQuestorGender()
Returns
Type Description
Genders
| Improve this Doc View Source

GetQuestorLocation()

Declaration
public string GetQuestorLocation()
Returns
Type Description
String
| Improve this Doc View Source

GetQuestorName()

Declaration
public string GetQuestorName()
Returns
Type Description
String
| Improve this Doc View Source

GetReactionToPlayer(FactionFile.FactionData)

Declaration
public int GetReactionToPlayer(FactionFile.FactionData factionData)
Parameters
Type Name Description
FactionFile.FactionData factionData
Returns
Type Description
Int32
| Improve this Doc View Source

GetRegionalLocationCityName(TalkManager.ListItem)

Declaration
public bool GetRegionalLocationCityName(TalkManager.ListItem listItem)
Parameters
Type Name Description
TalkManager.ListItem listItem
Returns
Type Description
Boolean
| Improve this Doc View Source

GetWorkString()

Declaration
public string GetWorkString()
Returns
Type Description
String
| Improve this Doc View Source

ImportClassicRumor(RumorFile.DaggerfallRumor)

Declaration
public void ImportClassicRumor(RumorFile.DaggerfallRumor rumor)
Parameters
Type Name Description
RumorFile.DaggerfallRumor rumor
| 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
Type Name Description
Int32 mapID
Int32 buildingKey
String overrideBuildingName
Boolean pcLearnedAboutExistence
Boolean receivedDirectionalHints
Boolean locationWasMarkedOnMapByNPC
Returns
Type Description
Boolean
| Improve this Doc View Source

IsCastleNpcOfferingQuest(Int32)

Declaration
public bool IsCastleNpcOfferingQuest(int nameSeed)
Parameters
Type Name Description
Int32 nameSeed
Returns
Type Description
Boolean
| Improve this Doc View Source

IsNpcOfferingQuest(Int32)

Declaration
public bool IsNpcOfferingQuest(int nameSeed)
Parameters
Type Name Description
Int32 nameSeed
Returns
Type Description
Boolean
| Improve this Doc View Source

MarkKeySubjectLocationOnMap()

Declaration
public void MarkKeySubjectLocationOnMap()
| Improve this Doc View Source

NPCsAlwaysFriendly()

Declaration
public bool NPCsAlwaysFriendly()
Returns
Type Description
Boolean
| Improve this Doc View Source

NPCsKnowEverything()

Declaration
public bool NPCsKnowEverything()
Returns
Type Description
Boolean
| 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
Type Name Description
TalkManager.SaveDataConversation data
| 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
Type Name Description
MobilePersonNPC targetMobileNPC
FactionFile.FactionData factionData
Boolean sameTalkTargetAsBefore
| Improve this Doc View Source

SetTargetNPC(StaticNPC, FactionFile.FactionData, ref Boolean)

Declaration
public void SetTargetNPC(StaticNPC targetNPC, FactionFile.FactionData factionData, ref bool sameTalkTargetAsBefore)
Parameters
Type Name Description
StaticNPC targetNPC
FactionFile.FactionData factionData
Boolean sameTalkTargetAsBefore
| Improve this Doc View Source

StartNewConversation()

Declaration
public void StartNewConversation()
| Improve this Doc View Source

TalkToMobileNPC(MobilePersonNPC)

Declaration
public void TalkToMobileNPC(MobilePersonNPC targetNPC)
Parameters
Type Name Description
MobilePersonNPC targetNPC
| Improve this Doc View Source

TalkToStaticNPC(StaticNPC, Boolean, Boolean)

Declaration
public void TalkToStaticNPC(StaticNPC targetNPC, bool menu = true, bool isSpyMaster = false)
Parameters
Type Name Description
StaticNPC targetNPC
Boolean menu
Boolean isSpyMaster
| 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
Type Name Description
List<TalkManager.RumorMillEntry> validRumors

List populated with valid rumours.

Returns
Type Description
TalkManager.RumorMillEntry

Selected RumorMillEntry based on weighted random choice.

Implements

IMacroContextProvider

Extension Methods

MBExtensions.Invoke(MonoBehaviour, Action, Single)
MBExtensions.Invoke<T>(MonoBehaviour, Action<T>, T, Single)
MBExtensions.Invoke<T1, T2>(MonoBehaviour, Action<T1, T2>, T1, T2, Single)
MBExtensions.Invoke<T1, T2, T3>(MonoBehaviour, Action<T1, T2, T3>, T1, T2, T3, Single)
MBExtensions.Invoke<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX