GameTimeCondition ​
Inherits: Condition < Resource
Checks if the current game time meets specified criteria. Works with ChronoManager's 24-hour game time system.
Properties ​
TimeComparison | comparison_type | TimeComparison.AFTER |
int | target_hour | 12 |
int | target_minute | 0 |
int | end_hour | 18 |
int | end_minute | 0 |
Methods ​
String | get_function_description() |
bool | evaluate( argument: Variant = null ) |
String | get_description() |
Enumerations ​
enum TimeComparison ​
The options of time comparison: before, after, between, exact hour, exact minute.
- BEFORE =
0- Check if current time is before specified time - AFTER =
1- Check if current time is after specified time - BETWEEN =
2- Check if current time is between two times - EXACT_HOUR =
3- Check if current hour matches exactly - EXACT_MINUTE =
4- Check if current time matches exactly (hour and minute)
Property descriptions ​
TimeComparison comparison_type = TimeComparison.AFTER ​
How to compare the time
int target_hour = 12 ​
Target hour (0-23)
int target_minute = 0 ​
Target minute (0-59)
Between Time Range (only for BETWEEN comparison)
int end_hour = 18 ​
End hour for BETWEEN comparison (0-23)
int end_minute = 0 ​
End minute for BETWEEN comparison (0-59)
Method descriptions ​
String get_function_description() ​
The sentence the editor shows for the condition, with {placeholders} for its values.
bool evaluate( argument: Variant = null ) ​
Is the condition met?
String get_description() ​
A short text about what the condition checks.