Advanced directing: Help me, please!

Hey guys!
So, I’m writing a story and I have this kind of advanced directing that is bugging me off.

Scene

Someone is in an elevator. I have tappable choices for the reader to chose the floor. I’m going to use gains to say “You already visited this floor” and to end it when they have visited all floors

Problem

When they are in a floor (for example 1) and they select that same floor (in this case the first one) I wanted to create a message saying “you are curently in this floor”. I can’t use gains because there’s no way to remove flags/gains but I haven’t found a way to use points either.

Do any of you know how I can possibly do it?
Please help me if you can. I’m desperate!!!
Thanks for the help.
Kisses,
Maria P. Whiberlli

Hey I coded the same scene in my story a couple of weeks ago :slight_smile:
I used the point system for that.
Example:
@POINT1 =0
@POINT2 =0
@POINT3 =0

tappable
“1” {

if (POINT1=1) {

NARR
You are currently on this floor.

goto elevator

}
@POINT +1

}
.
.
.
And so on. The idea if this is, when the reader taps an option for the first time the script is going to add a point to a character in order to remember this option being already tapped. But when the reader taps it again (tha’s why the if is at the beginning of the choice), it’s gonna say that they’ve already been to this floor. It’s way less effort that when using gain, in my opinion. Hope it work for your scene :slight_smile:

1 Like

I’m not 100% sure if I understood that (sorry, I’m a little bit slow). When you wrote @POINT1 @POINT2 and @POINT3 those “points” are character names?

1 Like

Yes, that’s the characters you’ll use the point system on. You can changes their names of course though.

1 Like

In that case it’s a “character” for every button, right?

1 Like

Yes :blush:

1 Like

That just gave me an idea in how to do it.
thank you so much!

1 Like

If you have a suggestion /way that’s different from Martini_98’s please leave it here. I’m trying to find the best way possible and getting a headache from coding

Hi @Maria_P_Whiberlli :wave:

Make sure to mark only the solution to your problem as solved so the team knows when to close the thread. Thanks a bunch! :smiley:

Ups. Sorry. Thought that there could be more than one solution

1 Like

If you want to use gains, here’s an alternative way:

label BUTTONS

tappable
”FLOOR 1” {
if (FLOOR1) {
NARRATOR
You’ve already visited this floor!
goto BUTTONS
}
else {
continue
}
NARRATOR
Floor 1 selected.
gain FLOOR1
goto FLOOR1
}

label FLOOR1

Floor 1 story goes here

goto BUTTONS

1 Like

Thanks. This is really helpful. I was actually trying to merge both. Use gains for the “already been here” (like you said) and points for the “you are currently on this floor”. I the thing is, I can’t find the right place for the cleans, see as I can’t clear all in the beginning or else I’ll lose the place

1 Like

Yeah usually I’d use gains if it’s a one-time thing so that if I wanted to reference it in my story, I could.

Then with points I’ll use them if the reader needs to reach a certain number before the mini-game ends (like a fight scene, 3 points to win).

1 Like

Cool tip. Will definitely remember it in the future

1 Like

Hey @Martini_98 and @LyraKeiken thanks to your help I managed to do what I meant to. I merged both of your solutions

2 Likes

Here’s the coding for anyone that wants to use it.

IMPORTANT: FBG (1-10) stands for Female Background, the code I use to name background character. Choose what works best for you

@FBG10 =1
gain FLOOR_0

label elevator

    NARRATOR
Tap the floor you want to go to.

tappable
“1”{
@overlay KEY1 opacity 1
@pause for 0.2
@overlay KEY1 opacity 0
sound airplanePA_ding
if (FBG1 =1) {
NARRATOR
You are currently on this floor.
} elif (FLOOR_1) {
NARRATOR
You’ve already been on this floor.
} else {
@FBG1 +1
gain FLOOR_1

@FBG2 =0
@FBG3 =0
@FBG4 =0
@FBG5 =0
@FBG6 =0
@FBG7 =0
@FBG8 =0
@FBG9 =0
@FBG10 =0

#scene goes here

}

goto elevator

}
“2”{
@overlay KEY2 opacity 1
@pause for 0.2
@overlay KEY2 opacity 0
sound airplanePA_ding
if (FBG2 =1) {
NARRATOR
You are currently on this floor.
} elif (FLOOR_2) {
NARRATOR
You’ve already been on this floor.
} else {
@FBG2 +1
gain FLOOR_2

@FBG1 =0
@FBG3 =0
@FBG4 =0
@FBG5 =0
@FBG6 =0
@FBG7 =0
@FBG8 =0
@FBG9 =0
@FBG10 =0

#scene here

}

goto elevator

}
“3”{
@overlay KEY3 opacity 1
@pause for 0.2
@overlay KEY3 opacity 0
sound airplanePA_ding
if (FBG3 =1) {
NARRATOR
You are currently on this floor.
} elif (FLOOR_3) {
NARRATOR
You’ve already been on this floor.
} else {
@FBG3 +1
gain FLOOR_3

@FBG1 =0
@FBG2 =0
@FBG4 =0
@FBG5 =0
@FBG6 =0
@FBG7 =0
@FBG8 =0
@FBG9 =0
@FBG10 =0

#scene here

}

goto elevator

}
“4”{
@overlay KEY4 opacity 1
@pause for 0.2
@overlay KEY4 opacity 0
sound airplanePA_ding
if (FBG4 =1) {
NARRATOR
You are currently on this floor.
} elif (FLOOR_4) {
NARRATOR
You’ve already been on this floor.
} else {
@FBG4 +1
gain FLOOR_4

@FBG1 =0
@FBG2 =0
@FBG3 =0
@FBG5 =0
@FBG6 =0
@FBG7 =0
@FBG8 =0
@FBG9 =0
@FBG10 =0

#scene here

}

goto elevator

}
“5”{
@overlay KEY5 opacity 1
@pause for 0.2
@overlay KEY5 opacity 0
sound airplanePA_ding
if (FBG5 =1) {
NARRATOR
You are currently on this floor.
} elif (FLOOR_5) {
NARRATOR
You’ve already been on this floor.
} else {
@FBG5 +1
gain FLOOR_5

@FBG1 =0
@FBG2 =0
@FBG3 =0
@FBG4 =0
@FBG6 =0
@FBG7 =0
@FBG8 =0
@FBG9 =0
@FBG10 =0

#scene here

}

goto elevator

}
“6”{
@overlay KEY6 opacity 1
@pause for 0.2
@overlay KEY6 opacity 0
sound airplanePA_ding
if (FBG6 =1) {
NARRATOR
You are currently on this floor.
} elif (FLOOR_6) {
NARRATOR
You’ve already been on this floor.
} else {
@FBG6 +1
gain FLOOR_6

@FBG1 =0
@FBG2 =0
@FBG3 =0
@FBG4 =0
@FBG5 =0
@FBG7 =0
@FBG8 =0
@FBG9 =0
@FBG10 =0

#scene here

}

goto elevator

}
“7”{
@overlay KEY7 opacity 1
@pause for 0.2
@overlay KEY7 opacity 0
sound airplanePA_ding
if (FBG7 =1) {
NARRATOR
You are currently on this floor.
} elif (FLOOR_7) {
NARRATOR
You’ve already been on this floor.
} else {
@FBG7 +1
gain FLOOR_7

@FBG1 =0
@FBG2 =0
@FBG3 =0
@FBG4 =0
@FBG5 =0
@FBG6 =0
@FBG8 =0
@FBG9 =0
@FBG10 =0

#scene here

}

goto elevator

}
“8”{
@overlay KEY8 opacity 1
@pause for 0.2
@overlay KEY8 opacity 0
sound airplanePA_ding
if (FBG8 =1) {
NARRATOR
You are currently on this floor.
} elif (FLOOR_8) {
NARRATOR
You’ve already been on this floor.
} else {
@FBG8 +1
gain FLOOR_8

@FBG1 =0
@FBG2 =0
@FBG3 =0
@FBG4 =0
@FBG5 =0
@FBG6 =0
@FBG7 =0
@FBG9 =0
@FBG10 =0

#scene here

}

goto elevator

#construction
}
“9”{
@overlay KEY9 opacity 1
@pause for 0.2
@overlay KEY9 opacity 0
sound airplanePA_ding
if (FBG9 =1) {
NARRATOR
You are currently on this floor.
} elif (FLOOR_9) {
NARRATOR
You’ve already been on this floor.
} else {
@FBG9 +1
gain FLOOR_9

@FBG1 =0
@FBG2 =0
@FBG3 =0
@FBG4 =0
@FBG5 =0
@FBG6 =0
@FBG7 =0
@FBG8 =0
@FBG10 =0

#scene here

}

goto elevator

}
“0”{
@overlay KEY0 opacity 1
@pause for 0.2
@overlay KEY0 opacity 0
sound airplanePA_ding

if (FBG10 =1) {
NARRATOR
You are currently on this floor.
} elif (FLOOR_0) {
NARRATOR
You’ve already been on this floor.
} else {

@FBG1 =0
@FBG2 =0
@FBG3 =0
@FBG4 =0
@FBG5 =0
@FBG6 =0
@FBG7 =0
@FBG8 =0
@FBG9 =0

#scene here

}

goto elevator

}

This took me a lot of time and brain (I feel so drained) so please please credit me if you use this-

2 Likes