PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem Class Reference

This script runs Dialogue System actions when the game object receives a "PickUpItem" message. More...

Inheritance diagram for PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem:
Collaboration diagram for PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem:

Classes

class  SendMessageAction
 

Public Member Functions

void Start ()
 
void Fire ()
 Call this method to manually run the action. More...
 
void PickUpItem ()
 
void Start ()
 
void Fire ()
 Call this method to manually run the action. More...
 
void PickUpItem ()
 

Public Attributes

Condition condition = new Condition()
 The conditions under which the trigger will fire. More...
 
Transform actor = null
 Use this object as the actor when evaluating the condition. More...
 
bool once
 If true, destroy this component after firing. More...
 
bool destroy
 If true, destroy the GameObject after firing. More...
 
string questName = string.Empty
 The name of the quest to update when the condition is true. More...
 
QuestState questState
 The new state of the quest. More...
 
string luaCode = string.Empty
 The lua code to run. More...
 
string alertMessage = string.Empty
 An optional gameplay alert message. More...
 
LocalizedTextTable localizedTextTable = null
 An optional localized text table to use for the alert message. More...
 
string sequence = string.Empty
 The sequence to play. More...
 
SendMessageAction[] sendMessages = new SendMessageAction[0]
 

Detailed Description

This script runs Dialogue System actions when the game object receives a "PickUpItem" message.

For example, you can attach it to a weapon pickup. When the player picks up the weapon, this script can run a Lua statement and update a quest.

Member Function Documentation

◆ Fire() [1/2]

void PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.Fire ( )

Call this method to manually run the action.

◆ Fire() [2/2]

void PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.Fire ( )

Call this method to manually run the action.

◆ PickUpItem() [1/2]

void PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.PickUpItem ( )

◆ PickUpItem() [2/2]

void PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.PickUpItem ( )

◆ Start() [1/2]

void PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.Start ( )

◆ Start() [2/2]

void PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.Start ( )

Member Data Documentation

◆ actor

Transform PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.actor = null

Use this object as the actor when evaluating the condition.

◆ alertMessage

string PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.alertMessage = string.Empty

An optional gameplay alert message.

Leave blank for no message.

◆ condition

Condition PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.condition = new Condition()

The conditions under which the trigger will fire.

◆ destroy

bool PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.destroy

If true, destroy the GameObject after firing.

◆ localizedTextTable

LocalizedTextTable PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.localizedTextTable = null

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

◆ luaCode

string PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.luaCode = string.Empty

The lua code to run.

◆ once

bool PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.once

If true, destroy this component after firing.

◆ questName

string PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.questName = string.Empty

The name of the quest to update when the condition is true.

Blank for none.

◆ questState

QuestState PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.questState

The new state of the quest.

◆ sendMessages

SendMessageAction [] PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.sendMessages = new SendMessageAction[0]

◆ sequence

string PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.sequence = string.Empty

The sequence to play.


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