Skip to content

Commit

Permalink
feat(game): add personality test on agreeableness
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Jun 19, 2024
1 parent 3afe2d1 commit 53b6dd6
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 13 deletions.
76 changes: 69 additions & 7 deletions game/personality_test.rpy
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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."

Expand All @@ -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."

Expand All @@ -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
14 changes: 10 additions & 4 deletions game/script.rpy
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
default affection = 0

label start:
jump intro

label act_1:
label class_1:
scene bg lecturehall
with dissolve

Expand Down Expand Up @@ -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"

Expand Down Expand Up @@ -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
Expand All @@ -88,6 +91,9 @@ label act_1:

stop music fadeout 4

jump class_3

label class_3:
scene bg lecturehall
with dissolve

Expand Down
4 changes: 2 additions & 2 deletions game/intro.rpy → game/start.rpy
Original file line number Diff line number Diff line change
@@ -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..."
Expand Down Expand Up @@ -37,4 +37,4 @@ label intro:

teacher "Welcome to Pysch 101!"

jump personality_test
jump personality_test_extraversion

0 comments on commit 53b6dd6

Please sign in to comment.