HELP: Tappable choice + Remember choice. ❗UGRENT❗

Hello! I really need help and fast please! :sob:
So basically, I’m trying to do a ‘‘tappable weapon choice’’
I know how to do basic tappable choices but I’m trying to code it with if, Elif and else to remember your tappable choice! Idk if you know what I mean :laughing:

This is my script:

Script

INT. ARMMENU
@speechbubble reset
@zoom reset
&overlay ARCHERY create from ARCHERY AND overlay ARCHERY shifts to 24 360
&overlay BAT create from BAT AND overlay BAT shifts to 44 6
&overlay BIM create from BIM AND overlay BIM shifts to 37 179

    NARRATOR

Click on the weapon you want!
choice
tappable
if “ARCHERY” {
NARRATOR
You will now have a Bow as weapon!

} elif “BIM” {
NARRATOR
You will now have a kn-fe as weapon!

} else {
NARRATOR
You will now have a Baseball Bat as weapon!

}

But it obviously doesn’t work :sob: PLEASE HELPPP

1 Like

You’re combining a tappable choice with the if/elif/else. The if/elif/else is a separate code used later on in your story when you need the choice remembered. It doesn’t get combined with the actual choice. You need to add “gains” to your tappable choice for the choice to get remembered.

2 Likes

So here it is:

Script

INT. ARMMENU
@speechbubble reset
@zoom reset
&overlay ARCHERY create from ARCHERY AND overlay ARCHERY shifts to 24 360
&overlay BAT create from BAT AND overlay BAT shifts to 44 6
&overlay BIM create from BIM AND overlay BIM shifts to 37 179
NARRATOR
Click on the weapon you want!

Tappable
“ARCHERY” {
gain archery
NARRATOR
You will now have a Bow as weapon!
}
“BIM” {
gain bim
NARRATOR
You will now have a kn-fe as weapon!
}
“BAT”{
gain bat
NARRATOR
You will now have a Baseball Bat as weapon!
}

if (archery) {

} elif (bim) {

} else {

}

I got an error saying: unexpected string: Bim

The word “tappable” needs to be all lower cased.

Okay it worked but another problem now :sob:
The tappable overlays aren’t tappable :upside_down_face:

The command for adding an overlay to the scene is just overlay OLNAME create. The “create from OL” is only used if you want to create a duplicate of an overlay.

Check that your overlays aren’t overlapping each other. Remember, the entire overlay/png image is tappable, which includes the blank empty space around the overlay.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.