G1R AngelScript
Scripting reference for the Gothic 1 Remake
Loading...
Searching...
No Matches
UConversationTopicSet Class Reference

Container for all topics that a character can be about with in a specific situation. These will usually contain all root-level topics of a character. More...

Public Member Functions

Functions
TArray< UConversationTopic > GetAvailableSubdialogTopics (const AGothicCharacter Other) const
void AddTopics (TArray< TSubclassOf< UConversationTopic > > Topics, FName ReplaceCharacterName=NAME_None)
 Adds all topics given in the array.
void AddTopicsOf (FName CharacterName, FName InstigatorName, FName ReplaceNameWith=NAME_None)
 Adds all topics the given character has to offer.
void AddTopicsOfIncludedCharacter (FName IncludedCharacterName, FName InstigatorName, FName ThisCharacterName)
 Adds all topics the given character has to offer (from an included generic character).
UConversationTopic FindTopicInstanceOfClass (TSubclassOf< UConversationTopic > TopicClass) const
 Finds a topic instance in this set that has the given class and returns it. Nullptr if no such topic exists.
TArray< UConversationTopic > GetAvailableFallbackTopics (const AGothicCharacter Other) const
TArray< UConversationTopic > GetAvailableFollowupTopics (const AGothicCharacter Other, FKnowledgeSet KnowledgesToConsider) const
TArray< UConversationTopic > GetAvailableRootTopics (const AGothicCharacter Other) const
 From the perspective of Self, returns a sorted list of all topics that the outer conversation group can talk about now. If given a non-empty KnowledgeToConsider, only these are being considered when checking the topic rules. Otherwise, the characters knowledge is used.
UConversationTopic AddTopic (TSubclassOf< UConversationTopic > TopicClass, FName ReplaceCharacterName=NAME_None)
 Adds a topics to the set.
TArray< UConversationTopic > GetAvailableUIRelevantRootTopics (const AGothicCharacter Other) const
void RemoveTopicsOf (FName CharacterName, FName InstigatorName)
 Removes all topics that belong to the given character.
Public Member Functions inherited from UObject
bool MarkPackageDirty () const
void RemoveFromRoot ()
bool GetIsRooted () const
bool IsTransient () const
bool Modify (bool bAlwaysMarkDirty=true)
void SetTransactional (bool bTransactional)
bool IsSupportedForNetworking () const
UClass GetClass () const
UObject GetOuter () const
UObject GetTypedOuter (TSubclassOf< UObject > Target) const
 Traverses the outer chain searching for the next object of a certain type.
UPackage GetOutermost () const
UPackage GetPackage () const
void AddToRoot ()
UWorld GetWorld () const
FName GetName () const
FString GetFullName (const UObject StopOuter=nullptr) const
FString GetPathName (const UObject StopOuter=nullptr) const
bool IsA (const UClass Class) const
 Returns true if this object is of the specified type, or a child of that type.
void SaveConfig ()
void LoadConfig ()
void ReloadConfig ()
void CopyScriptPropertiesFrom (const UObject OtherObject)
void opCast (?&Address) const
FString ToString () const

Static Public Member Functions

Static Functions
static TArray< TSubclassOf< UConversationTopic > > FindAllFollowupTopicsOf (FName CharacterName)
 Returns all followup topics for the given character (without checking any conditions).
static TArray< TSubclassOf< UConversationTopic > > FindAllForcedRootTopicsOf (FName CharacterName)
 Returns all forced root-level topics for the given character (without checking any conditions).
static TArray< TSubclassOf< UConversationTopic > > FindAllRootTopicsOf (FName CharacterName)
 Returns all root-level topics for the given character (without checking any conditions).
static UConversationTopicSet NewTopicSet (UObject Owner)
 Creates a new empty topic set.
static UClass StaticClass ()
static TArray< TSubclassOf< UConversationTopic > > FindAllFallbackTopicsOf (FName CharacterName)
 Returns all fallback topics (to be used when there are no other topics to talk about).
Static Public Member Functions inherited from UObject
static UClass StaticClass ()

Additional Inherited Members

Public Attributes inherited from UObject
const UClass Class
const UObject Outer
const UPackage Outermost
const UPackage Package
const UWorld World
const FName Name
const bool IsRooted

Detailed Description

Container for all topics that a character can be about with in a specific situation. These will usually contain all root-level topics of a character.

However, they may also be specifically crafted for subdialog choices.

Member Function Documentation

◆ AddTopic()

UConversationTopic AddTopic ( TSubclassOf< UConversationTopic > TopicClass,
FName ReplaceCharacterName = NAME_None )

Adds a topics to the set.

◆ AddTopics()

void AddTopics ( TArray< TSubclassOf< UConversationTopic > > Topics,
FName ReplaceCharacterName = NAME_None )

Adds all topics given in the array.

◆ AddTopicsOf()

void AddTopicsOf ( FName CharacterName,
FName InstigatorName,
FName ReplaceNameWith = NAME_None )

Adds all topics the given character has to offer.

◆ AddTopicsOfIncludedCharacter()

void AddTopicsOfIncludedCharacter ( FName IncludedCharacterName,
FName InstigatorName,
FName ThisCharacterName )

Adds all topics the given character has to offer (from an included generic character).

◆ FindAllFallbackTopicsOf()

TArray< TSubclassOf< UConversationTopic > > FindAllFallbackTopicsOf ( FName CharacterName)
static

Returns all fallback topics (to be used when there are no other topics to talk about).

◆ FindAllFollowupTopicsOf()

TArray< TSubclassOf< UConversationTopic > > FindAllFollowupTopicsOf ( FName CharacterName)
static

Returns all followup topics for the given character (without checking any conditions).

◆ FindAllForcedRootTopicsOf()

TArray< TSubclassOf< UConversationTopic > > FindAllForcedRootTopicsOf ( FName CharacterName)
static

Returns all forced root-level topics for the given character (without checking any conditions).

◆ FindAllRootTopicsOf()

TArray< TSubclassOf< UConversationTopic > > FindAllRootTopicsOf ( FName CharacterName)
static

Returns all root-level topics for the given character (without checking any conditions).

◆ FindTopicInstanceOfClass()

UConversationTopic FindTopicInstanceOfClass ( TSubclassOf< UConversationTopic > TopicClass) const

Finds a topic instance in this set that has the given class and returns it. Nullptr if no such topic exists.

◆ GetAvailableFallbackTopics()

TArray< UConversationTopic > GetAvailableFallbackTopics ( const AGothicCharacter Other) const

◆ GetAvailableFollowupTopics()

TArray< UConversationTopic > GetAvailableFollowupTopics ( const AGothicCharacter Other,
FKnowledgeSet KnowledgesToConsider ) const

◆ GetAvailableRootTopics()

TArray< UConversationTopic > GetAvailableRootTopics ( const AGothicCharacter Other) const

From the perspective of Self, returns a sorted list of all topics that the outer conversation group can talk about now. If given a non-empty KnowledgeToConsider, only these are being considered when checking the topic rules. Otherwise, the characters knowledge is used.

◆ GetAvailableSubdialogTopics()

TArray< UConversationTopic > GetAvailableSubdialogTopics ( const AGothicCharacter Other) const

◆ GetAvailableUIRelevantRootTopics()

TArray< UConversationTopic > GetAvailableUIRelevantRootTopics ( const AGothicCharacter Other) const

◆ NewTopicSet()

UConversationTopicSet NewTopicSet ( UObject Owner)
static

Creates a new empty topic set.

◆ RemoveTopicsOf()

void RemoveTopicsOf ( FName CharacterName,
FName InstigatorName )

Removes all topics that belong to the given character.

◆ StaticClass()

UClass StaticClass ( )
static