Add cross timeline interaction gym

This commit is contained in:
2026-06-16 23:51:31 +02:00
parent a621366717
commit 99a7068e12
33 changed files with 2324 additions and 80 deletions

View File

@@ -8,9 +8,9 @@
# ============================================================
# ---- SETUP: Variables --------------------------------------
set {coins} = 0
set {player_has_key} = false
set {met_merchant} = false
set {Museum.coins} = 0
set {Museum.player_has_key} = false
set {Museum.met_merchant} = false
# ---- LABEL: opening ----------------------------------------
label opening
@@ -31,7 +31,7 @@ Advisor (pl5): Remember, [color=red]colored text[/color] works as well.
Advisor (pl5): [pause=1.0] ...and so do timed pauses.
# ---- CONDITION: Variable-based branching ------------------
if {coins} == 0:
if {Museum.coins} == 0:
Miko (doubt): I don't have any coins yet. Let's find some!
Advisor (doubt): We should look around carefully.
else:
@@ -39,7 +39,7 @@ else:
Advisor (pl5): Good. That will come in handy.
# ---- VARIABLE: Set a variable -----------------------------
set {coins} = 10
set {Museum.coins} = 10
Miko (joy): [shake]Look![/shake] I just found 10 coins.
@@ -55,11 +55,11 @@ Merchant (happy): Welcome, traveler! Would you like to see my wares?
# ---- CHOICE: Branching dialog -----------------------------
- Yes, show me what you've got!
set {met_merchant} = true
set {Museum.met_merchant} = true
Miko (joy): Absolutely, show me your best items!
Merchant (happy): Excellent choice! I have potions, scrolls, and enchanted blades.
Merchant (blink): That will be {10/15/20} gold coins, please!
set {coins} = -10
set {Museum.coins} = -10
Miko (shock): Here you go! That was expensive...
Advisor (blink): Did you really have to spend all our coins?
@@ -68,10 +68,10 @@ Merchant (happy): Welcome, traveler! Would you like to see my wares?
Merchant (happy): Suit yourself. The door is always open.
Advisor (pl5): A wise decision.
- Use the ancient key to barter. | [if {player_has_key}]
- Use the ancient key to barter. | [if {Museum.player_has_key}]
Miko (smile): I have this ancient key. Will you trade for it?
Merchant (surprise): [shake]A key from the old kingdom?![/shake] Take anything you want!
set {player_has_key} = false
set {Museum.player_has_key} = false
Miko (joy): That was a great deal!
Advisor (surprise): You traded the key?! That was reckless...
@@ -106,7 +106,7 @@ Miko (neutral): You're right, but we have to check it out.
Advisor (pl5): Very well. I'll follow your lead.
# ---- CONDITION with ELSE ----------------------------------
if {player_has_key}:
if {Museum.player_has_key}:
Miko (joy): Good thing we still have the ancient key. Let's open it!
Advisor (surprise): The key glows faintly as you approach.
Miko (smile): Here goes nothing...