Spaces:
Sleeping
Sleeping
Update pathways/Solara2/Stage1_functions_definition.py
Browse files
pathways/Solara2/Stage1_functions_definition.py
CHANGED
|
@@ -6,19 +6,20 @@ def process_structured_output(stage_key_values, output_json):
|
|
| 6 |
|
| 7 |
stage_key_values["current_stage"] = output_json["stage_number"]
|
| 8 |
|
| 9 |
-
# Solara Part 2 (
|
| 10 |
image = "pathways/Solara2/assets/backstage_hall.png"
|
| 11 |
|
|
|
|
| 12 |
if stage_key_values["current_stage"] == 1:
|
| 13 |
-
image = "pathways/Solara2/assets/Halvik.png"
|
| 14 |
elif stage_key_values["current_stage"] == 2:
|
| 15 |
-
image = "pathways/Solara2/assets/Halvik.png"
|
| 16 |
elif stage_key_values["current_stage"] == 3:
|
| 17 |
-
image = "pathways/Solara2/assets/Halvik.png"
|
| 18 |
elif stage_key_values["current_stage"] == 4:
|
| 19 |
-
image = "pathways/Solara2/assets/Halvik.png"
|
| 20 |
elif stage_key_values["current_stage"] == 5:
|
| 21 |
-
image = "pathways/Solara2/assets/Halvik.png"
|
| 22 |
stage_key_values["stage_complete"] = True
|
| 23 |
|
| 24 |
return {
|
|
@@ -33,36 +34,36 @@ def forced_stage_exit(stage_key_values):
|
|
| 33 |
stage_key_values["stage_complete"] = True
|
| 34 |
|
| 35 |
return {
|
| 36 |
-
"text": ["You’ve lingered too long backstage. The performers disperse, and your chance to
|
| 37 |
}
|
| 38 |
|
| 39 |
def checker_function(stage_key_values):
|
| 40 |
# Reset per your existing pattern
|
| 41 |
stage_key_values["interaction_count_for_hint"] = 0
|
| 42 |
|
| 43 |
-
# Stage-specific nudges for Solara2 (
|
| 44 |
if stage_key_values.get("current_stage") == 1:
|
| 45 |
return {
|
| 46 |
-
"text": ["Find
|
| 47 |
}
|
| 48 |
-
elif stage_key_values
|
| 49 |
return {
|
| 50 |
-
"text": ["
|
| 51 |
}
|
| 52 |
-
elif stage_key_values
|
| 53 |
return {
|
| 54 |
-
"text": ["Ask
|
| 55 |
}
|
| 56 |
-
elif stage_key_values
|
| 57 |
return {
|
| 58 |
-
"text": ["
|
| 59 |
}
|
| 60 |
-
elif stage_key_values
|
| 61 |
return {
|
| 62 |
-
"text": ["
|
| 63 |
}
|
| 64 |
|
| 65 |
# Fallback
|
| 66 |
return {
|
| 67 |
-
"text": ["
|
| 68 |
}
|
|
|
|
| 6 |
|
| 7 |
stage_key_values["current_stage"] = output_json["stage_number"]
|
| 8 |
|
| 9 |
+
# Solara Part 2 (Havlik backstage) images — adjust filenames if needed.
|
| 10 |
image = "pathways/Solara2/assets/backstage_hall.png"
|
| 11 |
|
| 12 |
+
# Keep asset filenames as-is; update comments to reflect Fortune Telling arc.
|
| 13 |
if stage_key_values["current_stage"] == 1:
|
| 14 |
+
image = "pathways/Solara2/assets/Halvik.png" # Player spots Havlik backstage post-performance
|
| 15 |
elif stage_key_values["current_stage"] == 2:
|
| 16 |
+
image = "pathways/Solara2/assets/Halvik.png" # Elicit Havlik’s specific future prediction (worst-case)
|
| 17 |
elif stage_key_values["current_stage"] == 3:
|
| 18 |
+
image = "pathways/Solara2/assets/Halvik.png" # Examine evidence & certainty (0–100%) behind the prediction
|
| 19 |
elif stage_key_values["current_stage"] == 4:
|
| 20 |
+
image = "pathways/Solara2/assets/Halvik.png" # Plan/attempt a low-stakes test of the prediction
|
| 21 |
elif stage_key_values["current_stage"] == 5:
|
| 22 |
+
image = "pathways/Solara2/assets/Halvik.png" # Reflect on the result; update belief about fortune telling
|
| 23 |
stage_key_values["stage_complete"] = True
|
| 24 |
|
| 25 |
return {
|
|
|
|
| 34 |
stage_key_values["stage_complete"] = True
|
| 35 |
|
| 36 |
return {
|
| 37 |
+
"text": ["You’ve lingered too long backstage. The performers disperse, and your chance to test Havlik’s prediction slips away."]
|
| 38 |
}
|
| 39 |
|
| 40 |
def checker_function(stage_key_values):
|
| 41 |
# Reset per your existing pattern
|
| 42 |
stage_key_values["interaction_count_for_hint"] = 0
|
| 43 |
|
| 44 |
+
# Stage-specific nudges for Solara2 (Havlik — Fortune Telling)
|
| 45 |
if stage_key_values.get("current_stage") == 1:
|
| 46 |
return {
|
| 47 |
+
"text": ["Find Havlik backstage and greet him after the performance."]
|
| 48 |
}
|
| 49 |
+
elif stage_key_values.get("current_stage") == 2:
|
| 50 |
return {
|
| 51 |
+
"text": ["Ask Havlik what he predicts will happen if he plays again. Get his exact worst-case prediction."]
|
| 52 |
}
|
| 53 |
+
elif stage_key_values.get("current_stage") == 3:
|
| 54 |
return {
|
| 55 |
+
"text": ["Probe his certainty (0–100%). Ask for evidence for and against his prediction. Has it always gone that way?"]
|
| 56 |
}
|
| 57 |
+
elif stage_key_values.get("current_stage") == 4:
|
| 58 |
return {
|
| 59 |
+
"text": ["Propose a low-stakes test (a short passage for a small audience). Encourage him to try, then compare outcome to prediction."]
|
| 60 |
}
|
| 61 |
+
elif stage_key_values.get("current_stage") == 5:
|
| 62 |
return {
|
| 63 |
+
"text": ["Reflect with Havlik: Did the worst-case happen? Update his prediction and name the fortune telling pattern. Then wrap up."]
|
| 64 |
}
|
| 65 |
|
| 66 |
# Fallback
|
| 67 |
return {
|
| 68 |
+
"text": ["Help Havlik examine his future predictions and test them against evidence."]
|
| 69 |
}
|