Table of Contents

Class HasFactionCondition

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Condition that checks if a character belongs to a specific faction. Evaluates true if the character has the specified FactionTemplate in their faction controller.

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

Fields

FactionTemplate

The faction template the character must belong to.

public FactionTemplate FactionTemplate

Field Value

FactionTemplate

Methods

Evaluate(ICharacter, EventData)

Evaluates whether the character has the specified faction.

public override bool Evaluate(ICharacter initiator, EventData eventData = null)

Parameters

initiator ICharacter

The character initiating the check.

eventData EventData

Optional event data for target redirection.

Returns

bool

True if the character has the faction; 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.