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
| Parameter | Description |
|---|---|
| BaseObject | The object whose action execution time will be checked (Self or Target). |
| CompareType | The comparison operator (Greater, Less, Equal, GreaterOrEqual, LessOrEqual, InRange, OutRange). |
| S1 | The ActionId to check. |
| F1 | The time value in seconds to compare against. Used as the minimum value for InRange/OutRange. |
| F2 | The maximum time value in seconds for InRange/OutRange comparisons. |
Examples
| Description | BaseObject | Command | CompareType | S1 | F1 | F2 |
|---|---|---|---|---|---|---|
| Check if Self has performed Piano_Play continuously for 10s or more | Self | ActionTimeId | Greater | Piano_Play | 10 | |
| Check if Self has performed Computer_Use continuously for 300s or more | Self | ActionTimeId | Greater | Computer_Use | 300 | |
| Check if Self has performed Computer_Use for between 30 and 60 seconds | Self | ActionTimeId | InRange | Computer_Use | 30 | 60 |
| Check if Target has performed Piano_Play for 10s or more | Target | ActionTimeId | Greater | Piano_Play | 10 |
Back to Command FinderSearch and filter all 491 Script Condition documents