Quest Machine-specific messages used with the MessageSystem. More...
Static Public Member Functions | |
static void | QuestStateChanged (object sender, StringField questID, QuestState state) |
static void | QuestNodeStateChanged (object sender, StringField questID, StringField questNodeID, QuestNodeState state) |
static void | QuestTrackToggleChanged (object sender, StringField questID, bool state) |
static void | QuestAbandoned (object sender, StringField questID) |
static void | QuestCounterChanged (object sender, StringField questID, StringField counterName, int counterValue) |
static void | SetQuestCounter (object sender, StringField questID, StringField counterName, int counterValue) |
static void | IncrementQuestCounter (object sender, StringField questID, StringField counterName, int amount) |
static void | SetIndicatorState (object sender, StringField entityID, StringField questID, QuestIndicatorState state) |
static void | RefreshIndicator (object sender, StringField entityID) |
static void | RefreshIndicators (object sender) |
static void | RefreshUIs (object sender) |
static void | QuestAlert (object sender, StringField questID, List< QuestContent > contents) |
static void | Greet (object sender, object target, StringField targetID) |
static void | Greeted (object sender, object target, StringField targetID) |
static void | DiscussQuest (object sender, object target, StringField targetID, StringField questID) |
static void | DiscussedQuest (object sender, object target, StringField targetID, StringField questID) |
static void | StartSpawner (StringField spawnerName) |
static void | StopSpawner (StringField spawnerName) |
static void | DespawnSpawner (StringField spawnerName) |
static void | SendCompositeMessage (object sender, string message) |
static string | ArgToString (object arg) |
Gets the string value of a message argument. | |
static int | ArgToInt (object arg) |
Gets the int value of a message argument. | |
static bool | IsRequiredID (object obj, string id) |
static StringField | GetID (object obj, StringField defaultID=null) |
Gets the ID of an object. | |
static StringField | GetDisplayName (object obj, StringField defaultDisplayName=null) |
Gets the display name of an object. | |
static GameObject | FindGameObjectWithID (StringField id) |
Returns the GameObject with the specified ID, giving preference to quest list containers, then quest entities, and finally by GameObject name. | |
static GameObject | FindGameObjectWithID (string id) |
Returns the GameObject with the specified ID, giving preference to quest list containers, then quest entities, and finally by GameObject name. | |
Static Public Attributes | |
const string | QuestStateChangedMessage = "Quest State Changed" |
Sent when a quest state or quest node state changes. | |
const string | QuestTrackToggleChangedMessage = "Quest Track Toggle Changed" |
Sent when a quest's track toggle changes (i.e., turn progress tracking on or off). | |
const string | QuestAbandonedMessage = "Quest Abandoned" |
Sent when a quest state is abandoned. | |
const string | CheckOfferConditionsMessage = "Check Offer Conditions" |
Sent to tell a quest to re-check its offer conditions in case the quest is no longer offerable. | |
const string | QuestCounterChangedMessage = "Quest Counter Changed" |
Sent when a quest's counter changes value. | |
const string | SetQuestCounterMessage = "Set Quest Counter" |
Sent to tell a counter to set its value. | |
const string | TimerTickMessage = "Timer Tick" |
Sent every second if a timer condition is active. | |
const string | IncrementQuestCounterMessage = "Increment Quest Counter" |
Sent to tell a counter to increment its value. | |
const string | SetIndicatorStateMessage = "Set Indicator State" |
Sent to set an entity's quest indicator state. | |
const string | RefreshIndicatorMessage = "Refresh Indicator" |
Sent to tell an entity to refresh its indicator by checking all quests. | |
const string | RefreshUIsMessage = "Refresh UIs" |
Send to tell all UIs to refresh, typically after loading a saved game. | |
const string | QuestAlertMessage = "Quest Alert" |
Sent when an alert message is raised. | |
const string | GreetMessage = "Greet" |
Sent just prior to starting dialogue with a QuestGiver. | |
const string | GreetedMessage = "Greeted" |
Sent just after starting dialogue with a QuestGiver. | |
const string | DiscussQuestMessage = "Discuss Quest" |
Sent just prior to starting a dialogue about a specific quest. | |
const string | DiscussedQuestMessage = "Discussed Quest" |
Sent just after starting a dialogue about a specific quest. | |
const string | StartSpawnerMessage = "Start Spawner" |
Send to start a spawner. | |
const string | StopSpawnerMessage = "Stop Spawner" |
Send to stop a spawner. | |
const string | DespawnSpawnerMessage = "Despawn Spawner" |
Send to stop a spawner and tell it to despawn all spawned objects. | |
const string | GroupButtonClickedMessage = "Group Button Clicked" |
Argument 0: [int] Group number. | |
Quest Machine-specific messages used with the MessageSystem.
|
inlinestatic |
Gets the int value of a message argument.
|
inlinestatic |
Gets the string value of a message argument.
Some arguments such as quest node IDs can be passed as StringField or string. This utility method simplifies retrieval of the value.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Returns the GameObject with the specified ID, giving preference to quest list containers, then quest entities, and finally by GameObject name.
id | ID to search for. |
|
inlinestatic |
Returns the GameObject with the specified ID, giving preference to quest list containers, then quest entities, and finally by GameObject name.
id | ID to search for. |
|
inlinestatic |
Gets the display name of an object.
This is either a QuestEntity ID, a string, or the default value.
|
inlinestatic |
Gets the ID of an object.
This is either a QuestGiver ID, QuestEntity ID, a string, or the default value.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
static |
Sent to tell a quest to re-check its offer conditions in case the quest is no longer offerable.
|
static |
Send to stop a spawner and tell it to despawn all spawned objects.
|
static |
Sent just after starting a dialogue about a specific quest.
|
static |
Sent just prior to starting a dialogue about a specific quest.
|
static |
Sent just after starting dialogue with a QuestGiver.
|
static |
Sent just prior to starting dialogue with a QuestGiver.
|
static |
Argument 0: [int] Group number.
|
static |
Sent to tell a counter to increment its value.
|
static |
Sent when a quest state is abandoned.
|
static |
Sent when an alert message is raised.
|
static |
Sent when a quest's counter changes value.
|
static |
Sent when a quest state or quest node state changes.
|
static |
Sent when a quest's track toggle changes (i.e., turn progress tracking on or off).
|
static |
Sent to tell an entity to refresh its indicator by checking all quests.
|
static |
Send to tell all UIs to refresh, typically after loading a saved game.
|
static |
Sent to set an entity's quest indicator state.
|
static |
Sent to tell a counter to set its value.
|
static |
Send to start a spawner.
|
static |
Send to stop a spawner.
|
static |
Sent every second if a timer condition is active.