From 53b6dd6e8e9e37fbeeb8aae172f312508b2463db Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 18 Jun 2024 21:12:28 -0400 Subject: [PATCH] feat(game): add personality test on agreeableness --- game/personality_test.rpy | 76 +++++++++++++++++++++++++++++++---- game/script.rpy | 14 +++++-- game/{intro.rpy => start.rpy} | 4 +- 3 files changed, 81 insertions(+), 13 deletions(-) rename game/{intro.rpy => start.rpy} (94%) diff --git a/game/personality_test.rpy b/game/personality_test.rpy index 5c981dc..c12d4ad 100644 --- a/game/personality_test.rpy +++ b/game/personality_test.rpy @@ -1,7 +1,9 @@ default extrovert = 0 -default introvert = 0 +default agreeable = 0 + +label personality_test_extraversion: + queue music "lofi_verse.ogg" -label personality_test: teacher "I’m going to ask you a few questions. This will help me understand you better." menu: @@ -15,7 +17,7 @@ label personality_test: "Let’s go out, spending the night inside would be a waste!": $ extrovert += 1 "What a perfect excuse to cancel plans and stay at home!": - $ introvert += 1 + $ extrovert -= 1 teacher "Interesting. Next question." @@ -24,16 +26,16 @@ label personality_test: "That’s okay, I can make some chit-chat.": $ extrovert += 1 "I’ll down my drink and then head out.": - $ introvert += 1 + $ extrovert -= 1 show teacher happy at scale(0.6), center teacher "Thanks for answering my questions." - if extrovert > introvert: + if extrovert > 0: teacher "Based on my analysis, you’re an {b}extrovert{/b}." teacher "Conversation is your finest skill. You don’t know what awkward situations are, or how they happen to people." - elif extrovert < introvert: + elif extrovert < 0: teacher "Based on my analysis, you’re an {b}introvert{/b}." teacher "Solitude and silence are what you long for. Books, films, and music may be your best friends, along with your neighbor’s cat." @@ -52,4 +54,64 @@ label personality_test: stop music fadeout 4 - jump act_1 + jump class_1 + +label personality_test_agreeableness: + queue music "lofi_verse.ogg" + + scene bg uni + with fade + + "I see my psychology teacher walking up to me..." + + show teacher neutral at scale(0.6), center + with dissolve + + teacher "I’m going to ask you a few questions. This will help me understand you better." + + show teacher smile at scale(0.6), center + + menu: + "Sounds good!": + pass + + teacher "If a new person joined your group of friends for dinner, what would you do?" + menu: + "Make the new person feel at ease.": + $ agreeable += 1 + "Leave the new person alone.": + $ agreeable -= 1 + + teacher "Interesting. Next question." + + teacher "If a colleague wanted to discuss life problems with you, what would you do?" + menu: + "Take the time to sympathize with your friend.": + $ agreeable += 1 + "Change the topic since you’re not interested.": + $ agreeable -= 1 + + show teacher happy at scale(0.6), center + teacher "Thanks for answering my questions." + + if agreeable > 0: + teacher "You scored highly on {b}agreeableness{/b}." + teacher "You adjust your behavior to suit others.{w=0.8} Agreeable people are generally friendly, polite, and cooperative." + + elif agreeable < 0: + teacher "You scored lowly on {b}agreeableness{/b}." + teacher "You tend to put yourself first and “tell it like it is.”{w=0.8} You also have a more competitive nature." + + else: + teacher "You scored so-so on {b}agreeableness{/b}." + teacher "You change your actions depending on the situation.{w=0.8} You have a realistic balance between selfish and selfless behavior." + + teacher "Thanks for your honesty." + teacher "Learning how to interact with others is key to subsisting in society." + show teacher happy at scale(0.6), center + + teacher "See you later in class." + + stop music fadeout 4 + + jump after_class_2 diff --git a/game/script.rpy b/game/script.rpy index e5da05b..bfaea7b 100644 --- a/game/script.rpy +++ b/game/script.rpy @@ -1,9 +1,6 @@ default affection = 0 -label start: - jump intro - -label act_1: +label class_1: scene bg lecturehall with dissolve @@ -32,6 +29,9 @@ label act_1: stop music fadeout 4 + jump after_class_1 + +label after_class_1: queue music "sad1_intro.ogg" queue music "sad1_verse.ogg" @@ -65,6 +65,9 @@ label act_1: stop music fadeout 4 + jump personality_test_agreeableness + +label after_class_2: queue music "sad2_intro.ogg" scene bg meadow @@ -88,6 +91,9 @@ label act_1: stop music fadeout 4 + jump class_3 + +label class_3: scene bg lecturehall with dissolve diff --git a/game/intro.rpy b/game/start.rpy similarity index 94% rename from game/intro.rpy rename to game/start.rpy index e293d3a..0b583db 100644 --- a/game/intro.rpy +++ b/game/start.rpy @@ -1,6 +1,6 @@ default player_age = 0 -label intro: +label start: play music "lofi_intro.ogg" fadein 1.2 "I see my psychology teacher walking up to me..." @@ -37,4 +37,4 @@ label intro: teacher "Welcome to Pysch 101!" - jump personality_test + jump personality_test_extraversion