GameTimeTrigger ​
Inherits: EventTrigger < Resource
Triggers when a specific game time is reached
Properties ​
float | target_time | 12.0 |
float | time_precision | 1.0 |
TimeEventType | trigger_type | TimeEventType.MINUTE_PASSED |
Methods ​
String | get_display_name() |
String | get_function_description() |
void | setup() |
void | cleanup() |
bool | meets_time_condition( current_time: float ) |
bool | is_triggered( event_data: Dictionary ) |
String | generate_objective_description() |
Enumerations ​
enum TimeEventType ​
The options of time event type: minute passed, hour passed.
- MINUTE_PASSED =
0 - HOUR_PASSED =
1
Property descriptions ​
float target_time = 12.0 ​
Time to trigger (in hours, 0.0 to 24.0)
float time_precision = 1.0 ​
Precision for time comparison (in minutes)
TimeEventType trigger_type = TimeEventType.MINUTE_PASSED ​
Whether to trigger on minute or hour passed
Method descriptions ​
String get_display_name() ​
Return the display name for this trigger
String get_function_description() ​
Return the function description with parameter placeholders
void setup() ​
Set up any listeners or connections needed by this trigger
void cleanup() ​
Clean up any listeners or connections
bool meets_time_condition( current_time: float ) ​
Check if the current time matches the target time
bool is_triggered( event_data: Dictionary ) ​
Check if this trigger is currently active
String generate_objective_description() ​
Generate quest objective description