Skip to main content

Condition_IsInSiteWithInTime

Description

Checks whether the specified character is located at the given site and the current in-game time falls within the specified time range. S1 identifies the target site (use "Home" to refer to the character's home site). F1 and F2 define the start and end of the time range in total minutes from midnight.

Parameters

ParameterDescription
BaseObjectThe character to check (Self or Target).
CompareTypeSupported compare types: Equal, NotEqual.
S1Site ID to match. Use "Home" to compare against the character's own home site.
F1Start of the time range in total minutes from midnight (e.g., 480 = 08:00).
F2End of the time range in total minutes from midnight (e.g., 1200 = 20:00).

Examples

DescriptionBaseObjectCommandCompareTypeS1F1F2
Check if Self is at home between 08:00 and 22:00SelfIsInSiteWithInTimeEqualHome4801320
Check if Self is at TownHall_Site between 09:00 and 17:00SelfIsInSiteWithInTimeEqualTownHall_Site5401020
Check if Target is not at School_Site during class hoursTargetIsInSiteWithInTimeNotEqualSchool_Site480900