Hii, I’m wanting to make a mini game where you look around a store for supplies.
I don’t want them to be able to collect everything though, how would I make it so that they can only pick up 3/6 items instead of being able to pick them all up? Thankyou.
I’ve added the gain points but it’s not ending the game, it just carries on letting the player search even though they have the 3/6 items that they can pick up.
NARRATOR
You have selected a flash light!
Would you like to take this item?
choice
“Yes.”{
NARRATOR
You have a gained a flash light. @ALEC +1
gain FLASHLIGHT @overlay FLASH.LIGHT clear @pause for 0.1
if (ALEC=3){
goto end_minigame
}else{
goto mini_game1
}}“No.”{
NARRATOR
Keep searching! @pause for 0.1
goto mini_game1
}
}
“MATCHES”{
NARRATOR
You have selected a box of matches!
Would you like to take this item?
choice
“Yes.”{ @ALEC +1
gain MATCHES
NARRATOR
You have gained a box of matches. @pause for 0.1 @overlay MATCHES clear
if (ALEC=3){
goto end_minigame
}else{
goto mini_game1
}
}“No.”{
NARRATOR
Keep searching! @pause for 0.1
goto mini_game1
}}
“RED.FOLDEDBLANKET” {
NARRATOR
You have selected a blanket.
Would you like to take this item?
choice
“Yes.”{
NARRATOR
You have gained a blanket. @ALEC +1
gain BLANKET @overlay RED.FOLDEDBLANKET clear @pause for 0.1
if (ALEC=3){
goto end_minigame
}else{
goto mini_game1
}}“No.”{
NARRATOR
Keep searching! @pause for 0.1
goto mini_game1
}
}
label end_minigame
LILY
Think we have enough now
I didn’t try this in my script, so you need to run it by yourself, by try this?
label mini_game1
if (ALEC=3) {
goto end_minigame
}
else {
tappable [pan:1:3]
"FLASH.LIGHT" {
NARRATOR
You have selected a flash light!
Would you like to take this item? choice
"Yes."{
NARRATOR
You have a gained a flash light.
@ALEC +1
gain FLASHLIGHT
@overlay FLASH.LIGHT clear
@pause for 0.1
}"No."{
NARRATOR
Keep searching!
@pause for 0.1
goto mini_game1
}
}
"MATCHES"{
NARRATOR
You have selected a box of matches!
Would you like to take this item?
choice
"Yes."{
@ALEC +1
gain MATCHES
NARRATOR
You have gained a box of matches.
@pause for 0.1
@overlay MATCHES clear
}
"No."{
NARRATOR
Keep searching!
@pause for 0.1
goto mini_game1
}
}
"RED.FOLDEDBLANKET"{
NARRATOR
You have selected a blanket.
Would you like to take this item?
choice
"Yes."{
NARRATOR
You have gained a blanket.
@ALEC +1
gain BLANKET
@overlay RED.FOLDEDBLANKET clear
@pause for 0.1
}
"No."{
NARRATOR
Keep searching!
@pause for 0.1
goto mini_game1
}
}
}
label end_minigame
LILY
Think we have enough now