Class HasFactionCondition
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
Methods
Evaluate(ICharacter, EventData)
Evaluates whether the character has the specified faction.
public override bool Evaluate(ICharacter initiator, EventData eventData = null)
Parameters
initiatorICharacterThe character initiating the check.
eventDataEventDataOptional 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
Remarks
The base implementation returns null. Aggregators
(BaseAbilityTemplate) skip null/whitespace contributions, so most
conditions need not override.