PixelCrushers.DialogueSystem.QuestTrigger Class Reference

The quest trigger component sets a quest status when the game object receives a specified trigger event. More...

Inheritance diagram for PixelCrushers.DialogueSystem.QuestTrigger:
Collaboration diagram for PixelCrushers.DialogueSystem.QuestTrigger:

Classes

class  SendMessageAction
 

Public Member Functions

void OnBarkEnd (Transform actor)
 
void OnConversationEnd (Transform actor)
 
void OnSequenceEnd (Transform actor)
 
void OnUse (Transform actor)
 
void OnUse (string message)
 
void OnUse ()
 
void OnTriggerEnter (Collider other)
 
void OnTriggerEnter2D (Collider2D other)
 
void OnTriggerExit (Collider other)
 
void OnTriggerExit2D (Collider2D other)
 
void OnCollisionEnter (Collision collision)
 
void OnCollisionEnter2D (Collision2D collision)
 
void OnCollisionExit (Collision collision)
 
void OnCollisionExit2D (Collision2D collision)
 
void Start ()
 
void OnEnable ()
 
void OnDisable ()
 
void OnLevelWillBeUnloaded ()
 
void OnApplicationQuit ()
 
void OnDestroy ()
 
void TryStart (Transform actor)
 Sets the quest status if the condition is true. More...
 
void Fire ()
 

Public Attributes

DialogueTriggerEvent trigger = DialogueTriggerEvent.OnUse
 The trigger that starts the conversation. More...
 
Condition condition
 The conditions under which the trigger will fire. More...
 
string questName
 The name of the quest. More...
 
bool setQuestState = true
 If true, set the quest state. More...
 
QuestState questState
 The new state of the quest when triggered. More...
 
bool setQuestEntryState = false
 If true, set the quest entry state. More...
 
int questEntryNumber = 1
 The quest entry number whose state to change. More...
 
QuestState questEntryState
 The new state of the quest entry when triggered. More...
 
string luaCode = string.Empty
 The lua code to run. More...
 
string alertMessage
 An optional gameplay alert message. More...
 
LocalizedTextTable localizedTextTable
 An optional localized text table to use for the alert message. More...
 
SendMessageAction[] sendMessages = new SendMessageAction[0]
 Targets and messages to send when the trigger fires. More...
 
bool useQuestNamePicker = true
 
DialogueDatabase selectedDatabase = null
 
- Public Attributes inherited from PixelCrushers.DialogueSystem.DialogueEventStarter
bool once = false
 Set true if this event should only happen once. More...
 

Additional Inherited Members

- Protected Member Functions inherited from PixelCrushers.DialogueSystem.DialogueEventStarter
void DestroyIfOnce ()
 

Detailed Description

The quest trigger component sets a quest status when the game object receives a specified trigger event.

For example, you can add a quest trigger and a static trigger collider to an area. When the player enters the trigger area, this component could set a quest status to success.

Member Function Documentation

◆ Fire()

void PixelCrushers.DialogueSystem.QuestTrigger.Fire ( )

◆ OnApplicationQuit()

void PixelCrushers.DialogueSystem.QuestTrigger.OnApplicationQuit ( )

◆ OnBarkEnd()

void PixelCrushers.DialogueSystem.QuestTrigger.OnBarkEnd ( Transform  actor)

◆ OnCollisionEnter()

void PixelCrushers.DialogueSystem.QuestTrigger.OnCollisionEnter ( Collision  collision)

◆ OnCollisionEnter2D()

void PixelCrushers.DialogueSystem.QuestTrigger.OnCollisionEnter2D ( Collision2D  collision)

◆ OnCollisionExit()

void PixelCrushers.DialogueSystem.QuestTrigger.OnCollisionExit ( Collision  collision)

◆ OnCollisionExit2D()

void PixelCrushers.DialogueSystem.QuestTrigger.OnCollisionExit2D ( Collision2D  collision)

◆ OnConversationEnd()

void PixelCrushers.DialogueSystem.QuestTrigger.OnConversationEnd ( Transform  actor)

◆ OnDestroy()

void PixelCrushers.DialogueSystem.QuestTrigger.OnDestroy ( )

◆ OnDisable()

void PixelCrushers.DialogueSystem.QuestTrigger.OnDisable ( )

◆ OnEnable()

void PixelCrushers.DialogueSystem.QuestTrigger.OnEnable ( )

◆ OnLevelWillBeUnloaded()

void PixelCrushers.DialogueSystem.QuestTrigger.OnLevelWillBeUnloaded ( )

◆ OnSequenceEnd()

void PixelCrushers.DialogueSystem.QuestTrigger.OnSequenceEnd ( Transform  actor)

◆ OnTriggerEnter()

void PixelCrushers.DialogueSystem.QuestTrigger.OnTriggerEnter ( Collider  other)

◆ OnTriggerEnter2D()

void PixelCrushers.DialogueSystem.QuestTrigger.OnTriggerEnter2D ( Collider2D  other)

◆ OnTriggerExit()

void PixelCrushers.DialogueSystem.QuestTrigger.OnTriggerExit ( Collider  other)

◆ OnTriggerExit2D()

void PixelCrushers.DialogueSystem.QuestTrigger.OnTriggerExit2D ( Collider2D  other)

◆ OnUse() [1/3]

void PixelCrushers.DialogueSystem.QuestTrigger.OnUse ( )

◆ OnUse() [2/3]

void PixelCrushers.DialogueSystem.QuestTrigger.OnUse ( string  message)

◆ OnUse() [3/3]

void PixelCrushers.DialogueSystem.QuestTrigger.OnUse ( Transform  actor)

◆ Start()

void PixelCrushers.DialogueSystem.QuestTrigger.Start ( )

◆ TryStart()

void PixelCrushers.DialogueSystem.QuestTrigger.TryStart ( Transform  actor)

Sets the quest status if the condition is true.

Member Data Documentation

◆ alertMessage

string PixelCrushers.DialogueSystem.QuestTrigger.alertMessage

An optional gameplay alert message.

Leave blank for no message.

◆ condition

Condition PixelCrushers.DialogueSystem.QuestTrigger.condition

The conditions under which the trigger will fire.

◆ localizedTextTable

LocalizedTextTable PixelCrushers.DialogueSystem.QuestTrigger.localizedTextTable

An optional localized text table to use for the alert message.

◆ luaCode

string PixelCrushers.DialogueSystem.QuestTrigger.luaCode = string.Empty

The lua code to run.

◆ questEntryNumber

int PixelCrushers.DialogueSystem.QuestTrigger.questEntryNumber = 1

The quest entry number whose state to change.

◆ questEntryState

QuestState PixelCrushers.DialogueSystem.QuestTrigger.questEntryState

The new state of the quest entry when triggered.

◆ questName

string PixelCrushers.DialogueSystem.QuestTrigger.questName

The name of the quest.

◆ questState

QuestState PixelCrushers.DialogueSystem.QuestTrigger.questState

The new state of the quest when triggered.

◆ selectedDatabase

DialogueDatabase PixelCrushers.DialogueSystem.QuestTrigger.selectedDatabase = null

◆ sendMessages

SendMessageAction [] PixelCrushers.DialogueSystem.QuestTrigger.sendMessages = new SendMessageAction[0]

Targets and messages to send when the trigger fires.

◆ setQuestEntryState

bool PixelCrushers.DialogueSystem.QuestTrigger.setQuestEntryState = false

If true, set the quest entry state.

◆ setQuestState

bool PixelCrushers.DialogueSystem.QuestTrigger.setQuestState = true

If true, set the quest state.

◆ trigger

DialogueTriggerEvent PixelCrushers.DialogueSystem.QuestTrigger.trigger = DialogueTriggerEvent.OnUse

The trigger that starts the conversation.

◆ useQuestNamePicker

bool PixelCrushers.DialogueSystem.QuestTrigger.useQuestNamePicker = true

The documentation for this class was generated from the following file: