Skip to main content

Condition_ActionTimeId

Description

Checks whether a specific ActionId has been performed continuously for a certain amount of time by the specified BaseObject. Accumulated time is preserved across different interactions as long as the gap between actions does not exceed DA_GameConfig::ActionTimeResetDelay.

Parameters

ParameterDescription
BaseObjectThe object whose action execution time will be checked (Self or Target).
CompareTypeThe comparison operator (Greater, Less, Equal, GreaterOrEqual, LessOrEqual, InRange, OutRange).
S1The ActionId to check.
F1The time value in seconds to compare against. Used as the minimum value for InRange/OutRange.
F2The maximum time value in seconds for InRange/OutRange comparisons.

Examples

DescriptionBaseObjectCommandCompareTypeS1F1F2
Check if Self has performed Piano_Play continuously for 10s or moreSelfActionTimeIdGreaterPiano_Play10
Check if Self has performed Computer_Use continuously for 300s or moreSelfActionTimeIdGreaterComputer_Use300
Check if Self has performed Computer_Use for between 30 and 60 secondsSelfActionTimeIdInRangeComputer_Use3060
Check if Target has performed Piano_Play for 10s or moreTargetActionTimeIdGreaterPiano_Play10