Skip to main content

Condition_TimeRange

Description

Checks whether the current in-game time is within the given time range expressed as HHMM integers (0000 ~ 2359). If F1 <= F2, the range is treated as a normal same-day range (e.g., 0800 ~ 1700). If F1 > F2, the range is treated as an overnight range that wraps across midnight (e.g., 2300 ~ 0400).

Parameters

ParameterDescription
BaseObjectNot used.
CompareTypeSupported compare types: Equal, NotEqual
F1Begin time expressed as HHMM integer (0000 ~ 2359)
F2End time expressed as HHMM integer (0000 ~ 2359)

Examples

DescriptionBaseObjectCommandCompareTypeF1F2
Checks whether the current time is between 08:00 and 17:00.TimeRangeEqual8001700
Checks whether the current time is outside the range 09:00 ~ 18:00.TimeRangeNotEqual9001800
Checks whether the current time is between 23:00 and 04:00.TimeRangeEqual2300400