Skip to main content

Condition_IsPreferenceLike

Description

Checks whether the BaseObject character's preference state for the specified preference ID matches the target preference state.

Parameters

ParameterDescription
BaseObjectThe character whose preference state will be checked (Self or Target).
CompareTypeSupported compare types: Equal (state matches), NotEqual (state does not match).
S1The preference ID to check.
S2The target preference state to compare against (Common, Like, or Dislike).

Examples

DescriptionBaseObjectCommandCompareType
Check if Self likes the Coffee preferenceSelfIsPreferenceLikeEqual
Check if Self does not like the Coffee preferenceSelfIsPreferenceLikeNotEqual
Check if Target dislikes the Sports preferenceTargetIsPreferenceLikeEqual
Check if Target does not have a common state for MusicTargetIsPreferenceLikeNotEqual