Table of Contents

Class AchievementCompletedCondition

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Condition that checks if a character has completed a specified achievement, optionally at a required tier and value.

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

Fields

AchievementTemplate

The achievement template to check for completion.

[Tooltip("The achievement template to check.")]
public AchievementTemplate AchievementTemplate

Field Value

AchievementTemplate

RequiredTier

The required tier to consider the achievement completed. Leave 0 to require the last tier.

[Tooltip("The required tier to consider the achievement completed. Leave 0 to require the last tier.")]
public byte RequiredTier

Field Value

byte

RequiredValue

The required value to consider the achievement completed. Leave 0 to require the next tier value or any value if RequiredTier is 0.

[Tooltip("The required value to consider the achievement completed. Leave 0 to require the next tier value or any value if RequiredTier is 0.")]
public uint RequiredValue

Field Value

uint

Methods

Evaluate(ICharacter, EventData)

Evaluates whether the specified character (or event target) has completed the achievement at the required tier and value.

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

Parameters

initiator ICharacter

The character to check, or the fallback if no event target is present.

eventData EventData

Optional event data that may provide a different character to check.

Returns

bool

True if the achievement is completed at the required tier and value; otherwise, false.