Table of Contents

Class KnowsAbilityCondition

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

ECA condition: the character knows an ability — the base template itself (learned from a scroll or a trainer), or a crafted ability built on it.

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

Remarks

Written for portal activation (a portal any mage who knows Blink can open), and general enough for dialogue and quests. Answers on every peer that holds the knowledge record: the server, and the owner client.

Fields

Ability

[Tooltip("The ability the character must know.")]
public BaseAbilityTemplate Ability

Field Value

BaseAbilityTemplate

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.

GetTooltipContribution()

Returns a short, designer-facing tooltip line describing this condition's effect, or null when the condition has nothing to contribute. Override on concrete conditions that should appear in ability/quest/dialogue tooltips (e.g. attribute requirements, faction membership). Returning null or whitespace omits the line entirely.

public override string GetTooltipContribution()

Returns

string

Remarks

The base implementation returns null. Aggregators (BaseAbilityTemplate) skip null/whitespace contributions, so most conditions need not override.