Condition_IsPreferenceLike
Description
Checks whether the BaseObject character's preference state for the specified preference ID matches the target preference state.
Parameters
| Parameter | Description |
|---|
| BaseObject | The character whose preference state will be checked (Self or Target). |
| CompareType | Supported compare types: Equal (state matches), NotEqual (state does not match). |
| S1 | The preference ID to check. |
| S2 | The target preference state to compare against (Common, Like, or Dislike). |
Examples
| Description | BaseObject | Command | CompareType |
|---|
| Check if Self likes the Coffee preference | Self | IsPreferenceLike | Equal |
| Check if Self does not like the Coffee preference | Self | IsPreferenceLike | NotEqual |
| Check if Target dislikes the Sports preference | Target | IsPreferenceLike | Equal |
| Check if Target does not have a common state for Music | Target | IsPreferenceLike | NotEqual |