Help with minigame coding!

Hey! If anyone has read the infected in it there was a scene where you had to pick certain items but you can only choose a limted amount of items that will help you later for example if there were 6 items and you can only pick 3 you would have to pick the most important ones lets say you picked a radio in like episode 3 that radio later helped you in episode 16 i already have my overlays and the if/else coding ready i just dont know how to code it to let the reader choose only a certain amount.

Something like this

@ITEMS =0

label chooseitems
if (ITEMS < 3) {

NARR
You can choose up to 3 items.

choice
“object 1” {
@ITEMS +1
gain object1
goto chooseitems
} “object 2” {
@ITEMS +1
gain object2
goto chooseitems
} “object 3” {
@ITEMS +1
gain object3
goto chooseitems
} “object 4” {
@ITEMS +1
gain object4
goto chooseitems
} “object 5” {
@ITEMS +1
gain object5
goto chooseitems
} “object 6” {
@ITEMS +1
gain object6
goto chooseitems
}
} else {

NARR
You picked the max amount of objects!
}

Yes, but then you’d also want to add in a condition for having points equal to 3 because < 3 indicates any number less than 3 but not equal to 3, causing the player to only be able to pick up 2 items. You could also change the 3 to a 4 in the condition.