Once I get that upgrade to 36-hour days, I will tackle that. – Mychaeel

UE2:DialogController (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2XMP Object >> Actor >> Dialog >> DialogController
Package: 
U2Dialog
Direct subclasses:
DialogControllerDefault, DialogControllerPlayer

DialogController.uc Created By: Mike Baldwin Created On: 4/16/2001 $Author: Mbaldwin $ $Date: 10/22/02 5:17p $ $Revision: 24 $

Properties

AbortMapCurrent

Type: array<Dialog.AbortMapT>

how to handling when a speaker aborts the conversation (conversation-specific)

AbortMapDefault

Type: array<Dialog.AbortMapT>

how to handling when a speaker aborts the conversation (defaults)

Actor

Type: Actor

Reference to actual Actor-based object

Attitude

Type: byte

Attitude toward player (can't do arithmetic ops on enums)

Default value: 2

DCSpeaker

Type: string

used to initialize the dialog controller from a file

Mood

Type: float

-1 (hostile) ----- 0 (neutral) ----- +1 (friendly)

Nodes

Type: array<DialogNode>

List of nodes that can be said by this speaker

OtherParticipant

Type: Actor


ReadyTime

Type: float

is this actor ready to do dialog?

ResumeMapCurrent

Type: array<Dialog.ResumeMapT>

how to resume from the previous dialog with certain speakers (conversation-specific)

ResumeMapDefault

Type: array<Dialog.ResumeMapT>

how to resume from the previous dialog with certain speakers (defaults)

Selection

Type: DialogNode

Which node in the list that I want to say

StatusMap

Type: array<Dialog.StatusMapT>

how the previous conversations ended with various speakers

Functions

Native functions

SetAbortTopic

native function SetAbortTopic (Dialog.AbortMapT AbortMapEntry)


SetResumeTopic

native function SetResumeTopic (Dialog.ResumeMapT ResumeMapEntry)


Events

DialogBegin

event DialogBegin (Actor Other)

Overrides: Actor.DialogBegin


DialogEnd

event DialogEnd ()

Overrides: Actor.DialogEnd


NotifyNPCReady

event NotifyNPCReady ()


Other instance functions

ChangeMood

function ChangeMood (float Amount)


DisableHeadTracking

function DisableHeadTracking ()


DisplayDebugInfo

function string DisplayDebugInfo ()


EnableHeadTracking

function EnableHeadTracking (Actor TargetActor)


FindAbortMatch

function bool FindAbortMatch (array<Dialog.AbortMapTMap, string OtherSpeaker, Dialog.EDialogEnding Ending, out name Result)


FindResumeMatch

function bool FindResumeMatch (array<Dialog.ResumeMapTMap, string OtherSpeaker, Dialog.EDialogEnding Ending, out name Result)


GetAbortTopic

function name GetAbortTopic (string OtherSpeaker)


GetDialogEnding

function bool GetDialogEnding (string OtherSpeaker, out Dialog.EDialogEnding Ending)


GetInterruptRequestTopic

function name GetInterruptRequestTopic (string OtherSpeaker)


GetInterruptResponseTopic

function name GetInterruptResponseTopic (string OtherSpeaker)


GetInterruptWalkAwayTopic

function name GetInterruptWalkAwayTopic (string OtherSpeaker)


GetResumeTopic

function name GetResumeTopic (string OtherSpeaker)


SetDialogEnding

function SetDialogEnding (Actor OtherActor, Dialog.EDialogEnding Ending)


SetTalking

function SetTalking (Dialog.EDialogBoolean bTalking)


TurnToFace

function TurnToFace (Actor TargetActor)