Table of Contents

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

evaluation EvaluationType

The condition to use

questData Quest

The Quest instance to use for this condition

questAction QuestAction?

(Optional) The state of the quest

questEntryState Tuple<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

evaluation EvaluationType

The condition to use

variableName string

The variable to use

newValue string

The 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

Action

OnEvaluateTrue

An action called when the ScheduleOne.Quests.SystemTrigger.Conditions is true

public event Action OnEvaluateTrue

Event Type

Action