Class QuestStatusCondition
Condition that checks whether the character has a quest at a specific status. Commonly used to check if a quest is completed/turned-in before unlocking dialogue choices.
[Serializable]
public class QuestStatusCondition : BaseCondition, ICondition
- Inheritance
-
QuestStatusCondition
- Implements
- Inherited Members
Fields
QuestTemplate
The quest template to check.
[Tooltip("The quest template to check.")]
public QuestTemplate QuestTemplate
Field Value
RequiredStatus
The required status for the condition to pass.
[Tooltip("The required quest status.")]
public QuestStatus RequiredStatus
Field Value
Methods
Evaluate(ICharacter, EventData)
Evaluates the condition's raw pass/fail logic. Must be implemented by derived classes. Derived classes should NOT apply Invert themselves — the framework calls Check(ICharacter, EventData), which wraps this method and applies Invert uniformly.
public override bool Evaluate(ICharacter initiator, EventData eventData = null)
Parameters
initiatorICharacterThe character initiating the check.
eventDataEventDataOptional event data for the condition.
Returns
- bool
True if the underlying check passes; otherwise, false.