prakashnayak commited on
Commit
d5cefaa
·
verified ·
1 Parent(s): 120e954

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 (Halvik backstage) images — adjust filenames if needed.
10
  image = "pathways/Solara2/assets/backstage_hall.png"
11
 
 
12
  if stage_key_values["current_stage"] == 1:
13
- image = "pathways/Solara2/assets/Halvik.png" # Post-performance corridor/wing
14
  elif stage_key_values["current_stage"] == 2:
15
- image = "pathways/Solara2/assets/Halvik.png" # First chat with Halvik
16
  elif stage_key_values["current_stage"] == 3:
17
- image = "pathways/Solara2/assets/Halvik.png" # Subtle blame surfaces
18
  elif stage_key_values["current_stage"] == 4:
19
- image = "pathways/Solara2/assets/Halvik.png" # Player distinguishes control vs. not
20
  elif stage_key_values["current_stage"] == 5:
21
- image = "pathways/Solara2/assets/Halvik.png" # Halvik’s mindset shift
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 speak with Halvik passes."]
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 (Halvik)
44
  if stage_key_values.get("current_stage") == 1:
45
  return {
46
- "text": ["Find Halvik the lute player backstage and greet him after the performance."]
47
  }
48
- elif stage_key_values["current_stage"] == 2:
49
  return {
50
- "text": ["Listen to Halvik. Take note of issues he mentions that were outside his control."]
51
  }
52
- elif stage_key_values["current_stage"] == 3:
53
  return {
54
- "text": ["Ask follow-up questions to surface more examples. What else affected his performance tonight?"]
55
  }
56
- elif stage_key_values["current_stage"] == 4:
57
  return {
58
- "text": ["Separate what Halvik can’t control (lighting, audience, others) from what he can (tempo, focus, technique) and explain it to him."]
59
  }
60
- elif stage_key_values["current_stage"] == 5:
61
  return {
62
- "text": ["Wrap up and follow Cassian to your next introduction."]
63
  }
64
 
65
  # Fallback
66
  return {
67
- "text": ["Speak with Halvik about what’s within his control versus what isn’t."]
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
  }