Condition_ActionTimeTag
Description
Checks whether actions with a specific ActionTag have been performed continuously for a certain amount of time by the specified BaseObject. The accumulated execution time of all actions sharing the given ActionTag is compared against the specified value. Accumulated time is preserved across different interactions as long as the gap 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 ActionTag name 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-tagged actions for 10s or more | Self | ActionTimeTag | Greater | Piano | 10 | |
| Check if Self has performed Computer-tagged actions for 300s or more | Self | ActionTimeTag | Greater | Computer | 300 | |
| Check if Self has performed Computer-tagged actions for 60 to 120s | Self | ActionTimeTag | InRange | Computer | 60 | 120 |
| Check if Target has performed Piano-tagged actions for 10s or more | Target | ActionTimeTag | Greater | Piano | 10 |
Back to Command FinderSearch and filter all 491 Script Condition documents