Class AchievementCompletedCondition
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
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
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
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
initiatorICharacterThe character to check, or the fallback if no event target is present.
eventDataEventDataOptional 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.