Skip to content

Commit

Permalink
refactor(game): add wait tag to dialogue
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Jun 19, 2024
1 parent 53b6dd6 commit d6b1c64
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 54 deletions.
4 changes: 2 additions & 2 deletions game/bad_ending.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ label bad_ending:
with dissolve

"In the final scene, you stand alone at a grave, holding a bouquet of flowers."
player "I brought you flowers. I’m sorry I wasn’t there for you. I promise, I won’t let it happen to anyone else."
"You place the flowers on the grave, tears streaming down your face, vowing to take the lessons learned to heart and support others in need."
player "I brought you flowers.{w=0.3} I’m sorry I wasn’t there for you.{w=0.3} I promise I won’t let it happen to anyone else."
"You place the flowers on the grave,{w=0.1} tears streaming down your face,{w=0.1} vowing to take the lessons learned to heart and support others in need."

scene black
with dissolve
Expand Down
18 changes: 9 additions & 9 deletions game/good_ending.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@ label good_ending:

show classmate smile at scale(0.6), left, flip

classmate "I’m sorry I’m late. I had an appointment with the counselor this morning."
classmate "I’m sorry I’m late.{w=0.2} I had an appointment with the counselor this morning."

player "{alpha=0.7}{i}(thinking){/i}{/alpha} Thank goodness she’s okay."
player "{alpha=0.7}{i}(thinking){/i}{/alpha}{w=0.1} Thank God she’s okay."

# put counselor/therapist's office background below
scene bg uni

queue music ["tropical_house1_intro.ogg", "tropical_house1_verse.ogg"]

"You and Alex visit the counselor together, talking openly about Alex’s struggles. The counselor provides resources and support."
"You and Alex visit the counselor together,{w=0.1} talking openly about Alex’s struggles.{w=0.2} The counselor provides resources and support."

show teacher happy at scale(0.6), right

teacher "It’s great to see friends supporting each other. Alex, we’re here for you. Let’s work together to help you through this."
teacher "It’s great to see friends supporting each other.{w=0.2} Alex, we’re here for you.{w=0.2} Let’s work together to help you through this."

show classmate smile at scale(0.8), left, flip

classmate "Thank you. I feel like I have a bit more hope now."
classmate "Thank you.{w=0.2} I feel like I have more hope now."

scene bg lecturehall
with dissolve
Expand All @@ -30,8 +30,8 @@ label good_ending:

show classmate smile

classmate "{i}(smiling){/i} Thanks for everything. I really appreciate you being there for me."
player "Anytime, Alex. We’re in this together."
classmate "{alpha=0.7}{i}(smiling){/i}{/alpha}{w=0.1} Thanks for everything.{w=0.2} I really appreciate you being there for me."
player "Anytime,{w=0.1} Alex.{w=0.2} We’re in this together."

scene bg uni
with dissolve
Expand All @@ -40,9 +40,9 @@ label good_ending:

show classmate smile

player "It’s important to reach out and support each other. We can all make a difference."
player "It’s important to reach out and support each other.{w=0.2} We can all make a difference."

classmate "I’m living proof that talking to someone and getting help can change everything. Never again will I be afraid to speak up."
classmate "I’m living proof that talking to someone and getting help can change everything.{w=0.2} Never again will I be afraid to speak up."

scene black
with dissolve
Expand Down
42 changes: 21 additions & 21 deletions game/personality_test.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@ default agreeable = 0
label personality_test_extraversion:
queue music "lofi_verse.ogg"

teacher "I’m going to ask you a few questions. This will help me understand you better."
teacher "I’m going to ask you a few questions so that I can understand you better."

menu:
"Go for it!":
pass
"Uh... sure?":
pass

teacher "It’s Friday night and raining. What are you thinking?"
teacher "It’s Friday night and raining.{w=0.2} What are you thinking?"
menu:
"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!":
$ extrovert -= 1

teacher "Interesting. Next question."
teacher "Interesting.{w=0.2} Next question."

teacher "You’re at a coffee shop. The only available seat is in front of a stranger."
teacher "You’re at a coffee shop.{w=0.2} The only available seat is in front of a stranger."
menu:
"That’s okay, I can make some chit-chat.":
$ extrovert += 1
Expand All @@ -32,20 +32,20 @@ label personality_test_extraversion:
teacher "Thanks for answering my questions."

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."
teacher "Based on my analysis,{w=0.2} you’re an {b}extrovert{/b}."
teacher "Conversation is your finest skill.{w=0.2} You don’t know what awkward situations are,{w=0.1} or how they happen to people."

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."
teacher "Based on my analysis,{w=0.2} you’re an {b}introvert{/b}."
teacher "Solitude and silence are what you long for.{w=0.2} Books, films, and music may be your best friends,{w=0.1} along with your neighbor’s cat."

else:
teacher "Based on my analysis, you’re an {b}ambivert{/b}."
teacher "A social chameleon. Your mood changes with the seasons. Your indecisiveness makes you alluring."
teacher "Based on my analysis,{w=0.2} you’re an {b}ambivert{/b}."
teacher "A social chameleon.{w=0.2} Your mood changes with the seasons.{w=0.2} Your indecisiveness makes you alluring."

show teacher smile at scale(0.6), center

teacher "Thanks for your honesty."
teacher "I appreciate your honesty."
teacher "Remember that knowing yourself is half the battle."

show teacher happy at scale(0.6), center
Expand All @@ -67,24 +67,24 @@ label personality_test_agreeableness:
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."
teacher "I’m going to ask you a few questions so that I can 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?"
teacher "If a new person joined your group of friends for dinner,{w=0.2} 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 "Interesting.{w=0.2} Next question."

teacher "If a colleague wanted to discuss life problems with you, what would you do?"
teacher "If a colleague wanted to discuss life problems with you,{w=0.2} what would you do?"
menu:
"Take the time to sympathize with your friend.":
$ agreeable += 1
Expand All @@ -95,18 +95,18 @@ label personality_test_agreeableness:
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."
teacher "You scored high on {b}agreeableness{/b}."
teacher "You adjust your behavior to suit others.{w=0.2} 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."
teacher "You scored low on {b}agreeableness{/b}."
teacher "You tend to put yourself first and “tell it like it is.”{w=0.2} 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 "You change your actions depending on the situation.{w=0.2} You have a realistic balance between selfish and selfless behavior."

teacher "Thanks for your honesty."
teacher "I appreciate your honesty."
teacher "Learning how to interact with others is key to subsisting in society."
show teacher happy at scale(0.6), center

Expand Down
40 changes: 20 additions & 20 deletions game/script.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ label class_1:
play music "chill_intro.ogg"
queue music "chill_verse.ogg"

player "Hey Alex, you okay? You seem a bit off today."
classmate "{alpha=0.7}{i}(sigh){/i}{/alpha} Just dealing with some stuff. It’s been a tough week."
player "Hey Alex,{w=0.3} you okay?{w=0.4} You seem a bit off today."
classmate "{alpha=0.7}{i}(sigh){/i}{/alpha}{w=0.5} Just dealing with some stuff.{w=0.3} It’s been a tough week."

menu:
"If you need to talk, I’m here for you.":
$ affection += 1
classmate "Thanks. I appreciate it."
classmate "Thanks.{w=0.1} I appreciate it."

"We all have tough weeks, you’ll get through it.":
$ affection -= 1
classmate "Yeah, I guess..."

show teacher normal at scale(0.6), right

"Class begins, but you can’t help but notice Alex’s distracted state. The teacher discusses the importance of mental health awareness, which deeply resonates with you."
"Class begins, but you can’t help but notice Alex’s distracted state.{w=0.2} The teacher discusses the importance of mental health awareness, which deeply resonates with you."

stop music fadeout 4

Expand All @@ -38,30 +38,30 @@ label after_class_1:
scene bg club
with dissolve

"Later, in the hallway, you overhear Alex talking to another student."
"Later in the hallway, you overhear Alex talking to another student."

show classmate upset at scale(0.7), right
pause 0.8
show classmate upset at right, flip

classmate "{alpha=0.7}{i}(frustrated){/i}{/alpha} I don’t know what to do anymore. It just feels like everything is falling apart."
classmate "{alpha=0.7}{i}(frustrated){/i}{/alpha}{w=0.2} I don’t know what to do anymore.{w=0.3} It just feels like everything is falling apart."

menu:
"Alex, I overheard what you were saying. Do you want to talk about it?":
$ affection += 1
show classmate upset at right, unflip
classmate "It’s just... everything feels so heavy. My family is going through a lot, and I’ve been feeling really low."
classmate "It’s just...{w=0.3} everything feels so heavy...{w=0.3} My family is going through a lot, and I’ve been feeling really low."

"Maybe you should try to relax and take it easy.":
$ affection -= 1
show classmate upset at right, unflip
classmate "I wish it were that simple..."

player "I’m really sorry to hear that. Have you considered talking to the school counselor? They might be able to help."
player "I’m really sorry to hear that.{w=0.3} Have you considered talking to the school counselor?{w=0.2} They might be able to help."

classmate "Maybe... I just don’t know if it will change anything."
player "It’s worth a try. Sometimes just talking to someone can make a big difference."
classmate "Thanks. I appreciate your concern."
classmate "Maybe...{w=0.4} I just don’t know if it will change anything."
player "It’s worth a try.{w=0.2} Sometimes just talking to someone can make a big difference."
classmate "Thanks.{w=0.2} I appreciate your concern."

stop music fadeout 4

Expand All @@ -74,17 +74,17 @@ label after_class_2:
with dissolve

"Later that evening, you check social media and see a post from Alex."
classmate "“Sometimes I wonder if it’s all worth it. Life just feels like one big mess.”"
classmate "“Sometimes I wonder if it’s all worth it.{w=0.4} Life just feels like one big mess.”"

queue music ["sad2_verse.ogg", "sad2_bridge.ogg"]

menu:
"Hey, I saw your post. I’m really concerned about you. Please, let’s talk.":
$ affection += 1
classmate "..."
classmate "Thanks for reaching out. I’m just really struggling right now."
player "Remember what we talked about today? Maybe talking to the counselor could help. I can go with you if you want."
classmate "Okay. Maybe tomorrow."
classmate ".{w=0.2}.{w=0.2}.{w=0.2}"
classmate "Thanks for reaching out.{w=0.2} I’m just really struggling right now."
player "Remember what we talked about today?{w=0.2} Maybe talking to the counselor could help.{w=0.1} I can go with you if you want."
classmate "Okay.{w=0.1} Maybe tomorrow."

"Ignore the post.":
$ affection -= 1
Expand All @@ -101,13 +101,13 @@ label class_3:
queue music "tense_verse.ogg"

"You get to class the next day and notice that Alex is absent. The room feels tense."
player "{alpha=0.7}{i}(thinking){/i}{/alpha} Where’s Alex? She said she’d be here today."
player "{alpha=0.7}{i}(thinking){/i}{/alpha}{w=0.1} Where’s Alex?{w=0.2} She said she’d be here today."

show teacher sadder at scale(0.6), center

teacher "I don’t know how to say this, but unfortunately, one of our classmates took her own life last night."
player "{alpha=0.7}{i}(thinking){/i}{/alpha} No, it can’t be her."
teacher "For the privacy of the individual, we’re currently not able to share any news. But please be respectful for the time being."
teacher "I don’t know how to say this,{w=0.3} but one of our classmates took her own life last night."
player "{alpha=0.7}{i}(thinking){/i}{/alpha}{w=0.1} No,{w=0.2} it can’t be her."
teacher "For the privacy of the individual,{w=0.1} we’re unable to share any news.{w=0.1} But please be respectful for the time being."

stop music fadeout 1

Expand Down
7 changes: 5 additions & 2 deletions game/start.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ label start:

queue music "lofi_verse.ogg"

teacher "Hi there!{w=0.2} What’s your name?"

# Ask for the player's name.
python:
player_name = renpy.input("Hi there! What’s your name?", length=32)
player_name = renpy.input("My name is...", length=32)
player_name = player_name.strip()

if not player_name:
Expand All @@ -26,7 +28,8 @@ label start:
teacher "Nice to meet you, [player_name]!"

# Ask for the player's age.
$ player_age = int(renpy.input("How old are you?", length=3, allow="0123456789"))
teacher "How old are you?"
$ player_age = int(renpy.input("My age is...", length=3, allow="0123456789"))

if player_age < 18:
show teacher annoyed at scale(0.6), center
Expand Down

0 comments on commit d6b1c64

Please sign in to comment.