From 16232e3ece80dcd02e3196d45e6a5e8eb6003715 Mon Sep 17 00:00:00 2001 From: pyrosenic33 Date: Sun, 16 Feb 2025 14:47:33 -0500 Subject: [PATCH 1/2] Added coding questions to w0_d2 in the coding trivia scene (questions displayed in dialogue boxes) --- BytesOfLove/game/scripts/orientation/w0_d2.rpy | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/BytesOfLove/game/scripts/orientation/w0_d2.rpy b/BytesOfLove/game/scripts/orientation/w0_d2.rpy index 4fa110c..9b756e0 100644 --- a/BytesOfLove/game/scripts/orientation/w0_d2.rpy +++ b/BytesOfLove/game/scripts/orientation/w0_d2.rpy @@ -338,7 +338,11 @@ label w0_d2_AfterLunch: js "\"I’m sure we won’t need luck, we all seem pretty smart!\"" hide js_talk show js_smirk - bsl "\"Okay here is the first question\"" + bsl "\"Okay here is the first question.\"" + #each question displays twice: once when bsl reads it, then again after + #character discussion (while player chooses an answer) + bsl "\"What will the following Python code print?\"" + bsl "num1 = 3\nnum2 = '5'\nprint(num1 * num2) hide js_smirk #display on screen #what will the following python code print? ... @@ -376,6 +380,7 @@ label w0_d2_AfterLunch: menu w0_d2_q1answer: # + "num1 = 3\nnum2 = '5'\nprint(num1 * num2)" "15": #techscore - mc "\"I think it’s 15 because 3 times 5 is 15.\"" @@ -519,12 +524,9 @@ label w0_d2_AfterLunch: bsl "\"Wow! It looks like every team got that first question right!\"" bsl "\"This next one will be a little bit harder, get ready.\"" bsl "\"What does the following Python code print?\"" - - #DISPLAY: - #x = 4 - #for i in range(x): - #x += 1 - #print(x, end=‘’) + bsl "x = 4\nfor i in range(x):\n x += 1\n print(x, end='')" + #indented lines of code in this question have a space instead + #since \t doesn't work on VSCode p "\"Well I think I have some idea about this one.\"" p "\"The first thing I see is that this might be an infinite loop.\"" @@ -566,6 +568,7 @@ label w0_d2_AfterLunch: js "\"You make a decision, [mc].\"" menu w0_d2_mcdecision: + "x = 4\nfor i in range(x):\n x += 1\n print(x, end='')" "ERROR": #techScore -= 1 mc "\"Okay I think that this will result in an error.\"" From a08ef8f81bcd65c04a368a308b49d88d2dc41416 Mon Sep 17 00:00:00 2001 From: pyrosenic33 Date: Mon, 17 Feb 2025 22:11:00 -0500 Subject: [PATCH 2/2] Added coding questions to w0_d2 in the coding trivia scene (questions displayed in dialogue boxes) --- BytesOfLove/game/scripts/orientation/w0_d2.rpy | 2 -- 1 file changed, 2 deletions(-) diff --git a/BytesOfLove/game/scripts/orientation/w0_d2.rpy b/BytesOfLove/game/scripts/orientation/w0_d2.rpy index 9b756e0..9578a29 100644 --- a/BytesOfLove/game/scripts/orientation/w0_d2.rpy +++ b/BytesOfLove/game/scripts/orientation/w0_d2.rpy @@ -344,8 +344,6 @@ label w0_d2_AfterLunch: bsl "\"What will the following Python code print?\"" bsl "num1 = 3\nnum2 = '5'\nprint(num1 * num2) hide js_smirk - #display on screen - #what will the following python code print? ... c "\"Okay guys this one is really easy.\"" c "\"We have to get this one right, it's obviously-\""