From b1e1a6202ee70c1bbc03fb7629153cc4e36106cd Mon Sep 17 00:00:00 2001 From: Page Asgardius Date: Wed, 25 Sep 2024 04:35:43 -0700 Subject: [PATCH] quest --- levels/Ceres/L20.gd | 4 ++++ levels/Ceres/honkerrailway.gd | 2 ++ levels/Ceres/map.gd | 4 ++++ levels/Ceres/troublemakers.gd | 1 + 4 files changed, 11 insertions(+) diff --git a/levels/Ceres/L20.gd b/levels/Ceres/L20.gd index a835c2c..04bfbf2 100644 --- a/levels/Ceres/L20.gd +++ b/levels/Ceres/L20.gd @@ -10,6 +10,8 @@ func _ready(): Global.cdialog = [[tr("DIALOG_CERES_L20_0"), true, 0, 0], [tr("DIALOG_CERES_L20_1"), false, 3], [tr("DIALOG_CERES_L20_2"), true, 0, 0]] Global.live = 0 get_tree().root.add_child.call(talk) + if !Global.debug: + Global.quest[0] = 1 # Called every frame. 'delta' is the elapsed time since the previous frame. @@ -30,6 +32,8 @@ func _input(event): Global.cdialog = [] func _winner(): + Global.quest[0] = 3 + Global.quest[1] = 1 Global.cdialog = [[tr("DIALOG_CERES_L20_3"), true, 0, 0], [tr("DIALOG_CERES_L20_4"), false, 3], [tr("DIALOG_CERES_L20_5"), true, 0, 0]] Global.live = 3 Global.ccutscene = 6 diff --git a/levels/Ceres/honkerrailway.gd b/levels/Ceres/honkerrailway.gd index 727d30b..62f4d60 100644 --- a/levels/Ceres/honkerrailway.gd +++ b/levels/Ceres/honkerrailway.gd @@ -6,6 +6,8 @@ func _ready(): if !Global.debug: _statrebase() Global.live = 1 + Global.quest[1] = 3 + Global.quest[2] = 1 #pass # Replace with function body. diff --git a/levels/Ceres/map.gd b/levels/Ceres/map.gd index 52c29cb..4efa9da 100644 --- a/levels/Ceres/map.gd +++ b/levels/Ceres/map.gd @@ -11,6 +11,10 @@ func _ready(): if !Global.debug: _statrebase() Global.live = 1 + if Global.quest[1] == 0: + hkr.queue_free() + if Global.quest[2] == 0: + troublemaker.queue_free() #pass # Replace with function body. diff --git a/levels/Ceres/troublemakers.gd b/levels/Ceres/troublemakers.gd index 0bde268..d0128a2 100644 --- a/levels/Ceres/troublemakers.gd +++ b/levels/Ceres/troublemakers.gd @@ -27,6 +27,7 @@ func _input(event): Global.cdialog = [] func _winner(): + Global.quest[2] = 3 Global.cdialog = [[tr("DIALOG_TROUBLEMAKER_3"), true, 0, 0], [tr("DIALOG_TROUBLEMAKER_4"), true, 7, 0], [tr("DIALOG_TROUBLEMAKER_5"), true, 0, 0]] Global.live = 3 #Global.ccutscene = 6