Skip to main content

Condition_EmotionLevel

Description

Checks the level of the character's currently active emotion. First verifies that the character's current emotion type matches the value specified in S1. If it matches, the emotion's level is compared against the provided value(s) using CompareType. If the current emotion does not match S1, returns true only when CompareType is NotEqual.

Parameters

ParameterDescription
BaseObjectThe character whose current emotion level will be checked
CompareTypeComparison operator for emotion level (Equal, NotEqual, Greater, Less, InRange, OutRange, etc.)
S1EmotionType to match against the current emotion (e.g., Excited, Sad)
F1Primary comparison value (emotion level threshold)
F2Upper bound for range comparisons (InRange, OutRange)

Examples

DescriptionBaseObjectCommandCompareTypeS1F1F2
Check if Self's current Excited level is 2 or higherSelfEmotionLevelGreaterOrEqualExcited2
Check if Target is not currently Sad at any levelTargetEmotionLevelNotEqualSad1
Check if Self's current Calm level is between 1 and 3SelfEmotionLevelInRangeCalm13