I’m new to flags and gains. I’m making a test story to make sure it works. I’m doing a mystery story and want the player to collect clues, and then be able to look at the clues at the end. I’m using this tutorial. I’m making one character collect 4 clues (clue1, clue2, clue3, and clue4). How do I code the rest of the game and how to remember the clues the player found? Here’s the code:
If that doesn’t work there is another way to do it without gains
so you would Name the choice below, and remove the gains
choice (DIRECTIONS)
“Go left” {
Hi, I believe I understand now what you want…But seems to me you have their unnecessary gains and if/elif/else
I guess you do not need somewhere later in the story to remember she went up or dow…if so you will better go with levels and not gains.
I guess you need for future reference only gain clue 1 -4 right?
If so this might be what you are looking for - its not 100% copying your script I just have played with the possibility to look left and right and on each side to look up and down:
EXT. CAIRO STREET - DAY @cut to zone 2 @DAMIEN stands screen center @DAMIEN is think_rubchin
DAMIEN (talk_pointup_happy)
Let’s start!
choice
“Go left”
{ @follow DAMIEN to screen center in zone 1 in 3 AND DAMIEN walks to screen center in zone 1 in 3
goto clue1_and_2
}
“Go right”
{ @follow DAMIEN to screen center in zone 3 in 3 AND DAMIEN walks to screen center in zone 3 in 3
goto clue3_and_4
}
label clue1_and_2
DAMIEN (think_rubchin)
(What do we have here?)
choice
“look up”
{
NARR
Here goes scene looking up
Oh I found Clue No. 1!
gain clue1
goto clue1_and_2
}
“lookd down”
{
NARR
Here goes scene looking up
Oh I found Clue No. 2!
gain clue2
goto clue1_and_2
}
“I am done looking here for clues”
{
DAMIEN (talk_think_neutral)
Have I really found everything here?
choice
“No let me look again”
{
goto clue1_and_2
}
“Yes”
{ @follow DAMIEN to screen center in zone 2 in 3 AND DAMIEN walks to screen center in zone 2 in 3
goto merge_clue
}
}
label clue3_and_4
DAMIEN (think_rubchin)
(What do we have here?)
choice
“look up”
{
NARR
Here goes scene looking up
Oh I found Clue No. 3!
gain clue3
goto clue3_and_4
}
“lookd down”
{
NARR
Here goes scene looking up
Oh I found Clue No. 4!
gain clue4
goto clue3_and_4
}
“I am done looking here for clues”
{
DAMIEN (talk_think_neutral)
Have I really found everything here?
choice
“No let me look again”
{
goto clue3_and_4
}
“Yes”
{ @follow DAMIEN to screen center in zone 2 in 3 AND DAMIEN walks to screen center in zone 2 in 3
goto merge_clue
}
}
label merge_clue
NARR
What do you want to do now?
choice
“Go left”
{ @follow DAMIEN to screen center in zone 1 in 3 AND DAMIEN walks to screen center in zone 1 in 3
goto clue1_and_2
}
“Go right”
{ @follow DAMIEN to screen center in zone 3 in 3 AND DAMIEN walks to screen center in zone 3 in 3
goto clue3_and_4
}
“I have searched all”
{
DAMIEN (talk_think_neutral)
Have I really found everything here?
choice
“No let me look again”
{
goto merge_clue
}
“Yes”
{
goto end_clue
}
}