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
| Parameter | Description |
|---|---|
| BaseObject | The character to check (Self or Target). |
| CompareType | Supported compare types: Equal, NotEqual. |
| S1 | Site ID to match. Use "Home" to compare against the character's own home site. |
| F1 | Start of the time range in total minutes from midnight (e.g., 480 = 08:00). |
| F2 | End of the time range in total minutes from midnight (e.g., 1200 = 20:00). |
Examples
| Description | BaseObject | Command | CompareType | S1 | F1 | F2 |
|---|---|---|---|---|---|---|
| Check if Self is at home between 08:00 and 22:00 | Self | IsInSiteWithInTime | Equal | Home | 480 | 1320 |
| Check if Self is at TownHall_Site between 09:00 and 17:00 | Self | IsInSiteWithInTime | Equal | TownHall_Site | 540 | 1020 |
| Check if Target is not at School_Site during class hours | Target | IsInSiteWithInTime | NotEqual | School_Site | 480 | 900 |
Back to Command FinderSearch and filter all 491 Script Condition documents