From 9ea706c48e7117ca019442810ce943d2284ee88d Mon Sep 17 00:00:00 2001 From: yuni Date: Sat, 26 Oct 2024 22:44:59 +0200 Subject: [PATCH] implement fast travel via phone call to FASTravel --- CHANGELOG.md | 2 ++ src/chats/fastravel.yaml | 3 +++ src/chats/phone.yaml | 52 +++++++++++++++++++++++++++++++++++----- src/chats/serenity.yaml | 1 - 4 files changed, 51 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fab362a..928895d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # v0.14.0-dev +- Implement fast travel (must be unlocked by getting phone number of FASTravel) +- Implement phone calls - Chats don't automatically advance now, the player has to press "Continue" - Add sparkles to Jupiter's ring ✨😍✨ best visible from Farview Station - Add setting to change pointer diff --git a/src/chats/fastravel.yaml b/src/chats/fastravel.yaml index 9ad988f..5453ceb 100644 --- a/src/chats/fastravel.yaml +++ b/src/chats/fastravel.yaml @@ -19,6 +19,7 @@ - chat: ClippyTransSerenity - set: $busstop serenity - Welcome at FASTravel! You have reached Serenity Station. +- script: registercontact travel - "Ready for a trip? Available bus stops: Farview Station, Metis Prime Station" - label: fastravel - include: BusStops @@ -33,6 +34,7 @@ - chat: ClippyTransMetis - set: $busstop metis - Welcome at FASTravel! You have reached Metis Prime Station. +- script: registercontact travel - "Ready for a trip? Available bus stops: Farview Station, Serenity Station" - label: fastravel - include: BusStops @@ -48,6 +50,7 @@ - chat: ClippyTransFarview - set: $busstop farview - Welcome at FASTravel Services! You have reached Farview Station. +- script: registercontact travel - "Ready for a trip? Available bus stops: Serenity Station, Metis Prime Station" - label: fastravel - include: BusStops diff --git a/src/chats/phone.yaml b/src/chats/phone.yaml index 079a761..5b695d0 100644 --- a/src/chats/phone.yaml +++ b/src/chats/phone.yaml @@ -5,11 +5,51 @@ - Select contact to call. - if: phone$travel FASTravel: - - script: changename FASTravel™ Chatbot - - This is FASTravel, how can I help you? -- if: phone$icarus - Icarus: - - script: changename Icarus - - Well hi there! + - goto: travel - "[Cancel]": - goto: EXIT + +- label: travel +- script: changename FASTravel +- Welcome to FASTravel™, how can I help you today? +- label: travel_mainnode +- Can you pick me up please?: + - Yes! Where should we drop you off? + - Serenity Station: + - Ok! Activate cryofreeze and we'll be right there. + - "[Activate Cryofreeze]": + - script: cryofadeout + - sleep: 5 + - script: cryotrip serenity + - goto: EXIT + - I changed my mind.: + - Alright. Anything else I can help you with? + - goto: travel_mainnode + - Metis Prime Station: + - Ok! Activate cryofreeze and we'll be right there. + - "[Activate Cryofreeze]": + - script: cryofadeout + - sleep: 5 + - script: cryotrip metisprime + - goto: EXIT + - I changed my mind.: + - Alright. Anything else I can help you with? + - goto: travel_mainnode + - Farview Station: + - Ok! Activate cryofreeze and we'll be right there. + - "[Activate Cryofreeze]": + - script: cryofadeout + - sleep: 5 + - script: cryotrip farview + - goto: EXIT + - I changed my mind.: + - Alright. Anything else I can help you with? + - goto: travel_mainnode +- I just wanted to say that you're awesome!: + - Thank you so much! + - Hearing this makes my day! + - Satisfying our customers is what I'm programmed to live for. + - Good bye!: + - goto: EXIT +- "[Hang up]": + - goto: EXIT diff --git a/src/chats/serenity.yaml b/src/chats/serenity.yaml index 545bd5e..ef61284 100644 --- a/src/chats/serenity.yaml +++ b/src/chats/serenity.yaml @@ -14,7 +14,6 @@ - How are you doing? - goto: howru - Oh hey, you're awake! -- script: registercontact icarus - set: $met - I found you drifting out cold, and thought, I better watch over you. - Took us here behind that moonlet, to shield you from the micrometeorites.