Class SystemTriggerEntry
- Namespace
- S1API.Conditions
- Assembly
- S1API.dll
Wraps an in-game system trigger that evaluates configured conditions and applies variable or quest state setters. Exposes events for evaluation pass/fail.
public class SystemTriggerEntry
- Inheritance
-
SystemTriggerEntry
- Inherited Members
- Extension Methods
Methods
AddQuestSetter(EvaluationType, Quest, QuestAction?, Tuple<int, QuestState>?)
Creates a ScheduleOne.Quests.QuestStateSetter instance
public void AddQuestSetter(EvaluationType evaluation, Quest questData, QuestAction? questAction = null, Tuple<int, QuestState>? questEntryState = null)
Parameters
evaluationEvaluationTypeThe condition to use
questDataQuestThe Quest instance to use for this condition
questActionQuestAction?(Optional) The state of the quest
questEntryStateTuple<int, QuestState>(Optional) The state of the quest entry
AddVariableSetter(EvaluationType, string, string)
Creates a ScheduleOne.Variables.VariableSetter instance
public void AddVariableSetter(EvaluationType evaluation, string variableName, string newValue)
Parameters
evaluationEvaluationTypeThe condition to use
variableNamestringThe variable to use
newValuestringThe new value for this variable
Trigger()
Trigger the conditions for evaluation
public void Trigger()
Events
OnEvaluateFalse
An action called when the ScheduleOne.Quests.SystemTrigger.Conditions is false
public event Action OnEvaluateFalse
Event Type
OnEvaluateTrue
An action called when the ScheduleOne.Quests.SystemTrigger.Conditions is true
public event Action OnEvaluateTrue