I'm using Ren'py for a uni project. The game is a detective game! I have a character select screen, where if you pick a character it displays their "background check", before the player goes to interview them. I have four characters on this screen.
I'm very new to Ren'py + Python in general, and was hoping for some help figuring out how to do the following:
I want the game to remember if a player has looked at a background check. Then, once they have looked at all 4 background checks, I would like a new option available that let's the player begin interviews.
Upon click of that button, a screen will pop up that is reminiscent of the character select screen, but it’s now night time and the character buttons have disappeared. The narrator/PC will talk to themselves saying something like, “I think I’ve done enough research. It’s time to see them face to face.” On the last click, the scene will then fade out and a ‘thanks for playing!’ will come up (it IS a uni project xD!)
This is the current working script, by which I mean it has no errors
Code: Select all
# You can place the script of your game in this file.
# Declare images below this line, using the image statement.
# eg. image eileen happy = "eileen_happy.png"
#General game images
image Intro = "Intro Wide camera.png"
image hijabi = "modernmuslim.png"
image father = "christiandadman.jpg"
image chineseteen = "chineselateteens.png"
image veteran = "Veteran.png"
image filesscreen = "headshots.jpg"
image filesnighttime = "PC_Desk_Night.jpg"
#Daieba related images
image Daiebasfile = "Daieba file.jpg"
image Daieba_SM = "Daieba Facebook.png"
image Daieba_work = "Daieba workplace.jpg"
image Daieba_child = "Daieba child.jpg"
image Daieba_car = "Daieba car.jpg"
#Niu related images
image Niusfile = "Niu file.jpg"
image Niu_Relationships = "Niu relationships.jpg"
image Niu_Uni = "Niu university.jpg"
image Niu_SM = "Niu Instagram.jpg"
image Niu_Travel = "Niu travel.jpg"
#Fred related images
image Fredsfile = "Fred file.jpg"
image Fred_Relationships = "Fred family.jpg"
image Fred_work = "Fred workplace.jpg"
image Fred_Travel = "Fred travel.jpg"
image Fred_SM = "Fred Grindr.jpg"
#Evan related images
image Evansfile = "Evan file.jpg"
image Evan_Relationships = "Evan family.jpg"
image Evan_work = "Evan work.jpg"
image Evan_Travel = "Evan travel.jpg"
image Evan_SM = "Evan social media.jpg"
#General screen
screen files: #Preparing the imagemap
imagemap:
ground "headshots.jpg"
hover "headshots_hover.jpg"
hotspot (476, 247, 191, 242) clicked Jump("hijabi") #top left of picture x + y position, then image dimensions
hotspot (1006, 247, 196, 242) clicked Jump("chinese")
hotspot (737, 247, 196, 242) clicked Jump("blackguy")
hotspot (1277, 247, 193, 242) clicked Jump("oldguy")
#Daieba screen
screen Daiebasbackgroundcheck:
imagemap:
ground "D_Background_Daieba.jpg"
hover "D_Background_Daieba_Hover.jpg"
hotspot (1020, 71, 108, 107) clicked Jump("zoomFacebook")
hotspot (1021, 209, 107, 108) clicked Jump("zoomWork")
hotspot (1021, 347, 106, 105) clicked Jump("zoomWithKid")
hotspot (1021, 485, 109, 107) clicked Jump("zoomCar")
hotspot (16, 18, 152, 80) clicked Jump("Back_To_Character_Select")
#Niu screen
screen Niusbackgroundcheck:
imagemap:
ground "D_Background_Niu.jpg"
hover "D_Background_Niu_Hover.jpg"
hotspot (1020, 71, 108, 107) clicked Jump("zoomInstagram")
hotspot (1021, 209, 107, 108) clicked Jump("zoomUni")
hotspot (1021, 347, 106, 105) clicked Jump("zoomFamily")
hotspot (1021, 485, 109, 107) clicked Jump ("zoomTravel")
hotspot (16, 18, 152, 80) clicked Jump("Back_To_Character_Select")
#Fred screen
screen Fredsbackgroundcheck:
imagemap:
ground "D_Background_Fred.jpg"
hover "D_Background_Fred_Hover.jpg"
hotspot (1020, 71, 108, 107) clicked Jump("zoomGrindr")
hotspot (1021, 209, 107, 108) clicked Jump("zoomFreelance")
hotspot (1021, 347, 106, 105) clicked Jump("zoomFamilyFredly")
hotspot (1021, 485, 109, 107) clicked Jump ("zoomTravelFred")
hotspot (16, 18, 152, 80) clicked Jump("Back_To_Character_Select")
#Evan screen
screen Evansbackgroundcheck:
imagemap:
ground "D_Background_Evan.jpg"
hover "D_Background_Evan_Hover.jpg"
hotspot (1020, 71, 108, 107) clicked Jump("zoomEvanFB")
hotspot (1021, 209, 107, 108) clicked Jump("zoomEWork")
hotspot (1021, 347, 106, 105) clicked Jump("zoomEFamily")
hotspot (1021, 485, 109, 107) clicked Jump ("zoomETravel")
hotspot (16, 18, 152, 80) clicked Jump("Back_To_Character_Select")
#Daiebasbackgroundcheck is a to-be-declared screen of her files, where a bunch of files related to her display including photos and background information.
#They all have one of these. It includes a back button to get to the character select screen
# The game starts here.
label start:
scene Intro
#$ HIJAB = "Muslim woman"
#$ CDM = "The father"
#$ CTG = "The teen"
#$ VET = "Veteran"
#Dynamic character 'HIJAB', etc have been set.
"Public place. Middle of the day."
"You'd think this would be an easy case to solve."
"Who should I look into first?"
jump filesscreen
label filesscreen:
call screen files #Displaying the imagemap
#Daieba related shenanigans
label hijabi:
scene Daiebasfile
"This is Daieba Aasima. 31 years old. One child."
call screen Daiebasbackgroundcheck
label zoomFacebook:
scene Daieba_SM
"This is her social media account. She has several hundered friends and posts many pictures of her baby. It shows her family relationships, her love of cats, and a lot of posts complaining about the day nursery."
"She leaves her toddler there when she goes to work."
call screen Daiebasbackgroundcheck
label zoomWork:
scene Daieba_work
"This is Daieba's workplace. She returned to work recently after having finally secured a nursery place for her child. The jewellery store was one street away from where we found the body in the shopping centre."
call screen Daiebasbackgroundcheck
label zoomWithKid:
scene Daieba_child
"This is Daieba's child. Just under two years old. Attends Rainbow Babies nursery about half an hours drive from the centre."
"Daeiba informed us she takes on more hours where she can at work to provide for her child."
call screen Daiebasbackgroundcheck
label zoomCar:
scene Daieba_car
"This is her license plate. Car is second or third hand, and 'big enough for a booster seat, not big enough for the weekly shop'."
call screen Daiebasbackgroundcheck
label Back_To_Character_Select:
scene filesscreen
jump filesscreen
#Niu related shenanigans
label chinese:
scene Niusfile
"This is Niu Willard. 19. Student."
call screen Niusbackgroundcheck
label zoomInstagram:
scene Niu_SM
"We found Niu's Instagram account, where she keeps a mix of a food and fashion blog."
call screen Niusbackgroundcheck
label zoomUni:
scene Niu_Uni
"Niu studies politics full time. She tells us she has only ever held seasonal work."
call screen Niusbackgroundcheck
label zoomFamily:
scene Niu_Relationships
"Apparently quite close with her grandmother, who simply adores her girlfriend also."
call screen Niusbackgroundcheck
label zoomTravel:
scene Niu_Travel
"'F***ing overpriced train tickets', on Niu's good word. She lives in this city for university so travels home by train."
call screen Niusbackgroundcheck
label Back_To_Character_Select:
scene filesscreen
jump filesscreen
#Fred related shenanigans
label blackguy:
scene Fredsfile
"This is fred. 40, divorced, freelancer."
call screen Fredsbackgroundcheck
label zoomGrindr:
scene Fred_SM
"Fred's only *social media* presence is a dating app."
"Apparently the work of daughter Adanna, who had a 'field day' setting up the profile for him."
call screen Fredsbackgroundcheck
label zoomFreelance:
scene Fred_work
"'It's all a midlife crisis really.'"
"'Me and my wife got divorced, I quit my job and went freelance.'"
"'I write from home for numerous websites so I can look after my daughter too.'"
call screen Fredsbackgroundcheck
label zoomFamilyFredly:
scene Fred_Relationships
"As mentioned, Fred and his wife, a woman named Melanie a couple of years younger than him are now separated."
"He informs us the divorce was totally amicable and she was very understanding when he came out."
"They have joint custody of their daughter Adanna, but Adanna lives with Fred most of the time in the old family home, which is closer to school."
call screen Fredsbackgroundcheck
label zoomTravelFred:
scene Fred_Travel
"'As part and parcel of the midlife crisis, I'm building a bike in the garage.'"
"Fred doesn't currently drive a vehicle and gets around using public transport or walking."
call screen Fredsbackgroundcheck
label Back_To_Character_Select:
scene filesscreen
jump filesscreen
#Evan related shenanigans
label oldguy:
scene Evansfile
"This is Evan Rhydderch, 58."
call screen Evansbackgroundcheck
label zoomEvanFB:
scene Evan_SM
"Evan doesn't have a personal social media, but does have a small Facebook business page for his work."
call screen Evansbackgroundcheck
label zoomEWork:
scene Evan_work
"He is self employed as a gardener. He says he fell into it by accident."
"It was an easy way to keep his legs moving after his discharge from the army."
call screen Evansbackgroundcheck
label zoomEFamily:
scene Evan_Relationships
"Evan's parents are in their mid eighties, and are in a residential care home."
"He has one child, a daughter. She teaches English abroad."
call screen Evansbackgroundcheck
label zoomETravel:
scene Evan_Travel
"'I use it for hauling the work equipment mostly.'"
"He owns a minivan, mostly full of lawnmowers, spades and rakes."
call screen Evansbackgroundcheck
label Back_To_Character_Select:
scene filesscreen
jump filesscreen
return
