Table of Contents

Class QuestObjectiveCompleteCondition

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Condition that checks whether a specific quest objective has been completed.

[Serializable]
public class QuestObjectiveCompleteCondition : BaseCondition, ICondition
Inheritance
QuestObjectiveCompleteCondition
Implements
Inherited Members

Fields

ObjectiveIndex

The zero-based index of the objective within the quest template.

[Tooltip("Zero-based index of the objective to check.")]
public int ObjectiveIndex

Field Value

int

QuestTemplate

The quest template containing the objective.

[Tooltip("The quest template containing the objective to check.")]
public QuestTemplate QuestTemplate

Field Value

QuestTemplate

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

initiator ICharacter

The character initiating the check.

eventData EventData

Optional event data for the condition.

Returns

bool

True if the underlying check passes; otherwise, false.