Skip to main content

Condition_IsPlayReason

Description

Checks whether the interaction being evaluated was queued for the S1 play reason (exact match). The play reason is known on can-add/enqueue/enable checks, interaction and action scripts and target filters. Passes without one, such as plain menu filtering, see Invalid (Equal is false, NotEqual is true).

Parameters

ParameterDescription
BaseObjectSelf (not used for the check).
CompareTypeType of comparison operation (Equal or NotEqual).
S1EB1InteractionPlayReason name. None/Invalid are rejected.

Common play reasons

S1Queued when
UserThe user clicks an object/Zoi and picks it from the menu (also desire button)
UserActiveInteractionThe user's active control (throw, attack, kick, auto pick up, dive)
UserCoopThe host side of a coop the user started by cutting the current action
UserSelectedZoiGroupCoopThe user picks a group interaction from a Zoi group menu
UserRequestMoveToSiteThe user orders a walk to another site (UsingVehicle: by car)
UserRequestMoveScheduleThe user orders a move to the schedule place
AutonomyThe Zoi picks it by itself (autonomy)
AutonomyEmergency_SleepLimitAutonomy while sleep is critical (not Autonomy)
AutonomyEmergency_CriticalNeedAutonomy while hunger/bladder is critical (not Autonomy)
ScheduleTimeline schedule move/arrive/order
CareerScheduleWalking to the work room by the career schedule
SocialEventActionSocial event mission panel action button, scenario or site event action
SiteActionA site action (SiteAction_Interaction), SiteActionEmergency_Fire for fire
CoopCoop scheduler hand-out (UserCoop/SmartZoiCoop are separate)
TalkA talk started by a talk request (SmartZoiTalk is separate)
PlayNextInteractionThe follow-up interaction after a coop/talk interaction
HowlingA howling effect (HowlingEmergency_Fire when the data overrides it)
ReactionSocial reaction output, appliance breakdown reaction
SmartZoiSmartZoi (AI) autonomy pick
CheatCheat command, CLI play_reason=Cheat
Use IsAutonomySourcedInteraction for the whole autonomy family (+Schedule), IsCoopSourcedInteraction for Coop.

Examples

DescriptionBaseObjectCommandCompareTypeS1
Interaction was started from a social event mission panelSelfIsPlayReasonEqualSocialEventAction
Interaction was not picked by the user from a menuSelfIsPlayReasonNotEqualUser