Hi I had a similar code I used points and gains - I deleted the “inside of the code” - so hopefully it will be more clear the principle
This way it will autmaticly go to the next part of the story after the reader has tapped all 3 items:
@SEARCH =0
label boxes_tap2
if (SEARCH =3) {
goto after_box
} else {
NARR
Search the place.
tappable [pan:3:3]
“BIG BOX” {
if (gray_box) {
NARR
You have already searched this place
goto boxes_tap2
} else {
gain gray_box
@SEARCH +1
#here add what should happen after the tapp
goto boxes_tap2
}
} “BARELY” {
if (barrels) {
NARR
You have already searched this place
goto boxes_tap2
} else {
gain barrels
@SEARCH +1
#here add what should happen after the tapp
goto boxes_tap2
}
} “BLUE_BOX” {
if (blue_box) {
NARR
You have already searched this place
goto boxes_tap2
} else {
gain blue_box
@SEARCH +1
#here add what should happen after the tapp
goto boxes_tap2
}
}
}
label after_box
#here you go on with the story
NARR
…