Skip to content

GameTimeTrigger ​

Inherits: EventTrigger < Resource

Triggers when a specific game time is reached

Properties ​

floattarget_time12.0
floattime_precision1.0
TimeEventTypetrigger_typeTimeEventType.MINUTE_PASSED

Methods ​

Stringget_display_name()
Stringget_function_description()
voidsetup()
voidcleanup()
boolmeets_time_condition( current_time: float )
boolis_triggered( event_data: Dictionary )
Stringgenerate_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