So Fiogan and I stumbled into a coding problem recently and we are trying to figure it out; I was wondering if anybody had any suggestions?
Here is the situation:
The MC is in a pet shop and can visit four different kinds of animals. After each visit, we want to be able to list the animals that have not been visited yet.
The choice looks like this:
*choice #Watch the dragon breath fire. #Make fish faces with the decapus. #Pet the jackalope. #Let one of the phantom kitties chase the dot from your laser pen. #Actually, I'll come back a little later.
When it loops to the choice to visit to a pet, we want to have a sentence that displays the pets still remaining to visit. We want the list of animals remaining to be in one sentence with the correct use of ‘and’ and (Oxford) commas:
'You only have X left to visit.' 'You still have X and Y left to see.' 'You haven't seen X, Y, or Z.' 'You haven't visited any of the pets yet! Would you like to see X, Y, Z, or W?'
For instance, if the player has only visited the dragon, once the loop returns to the *choice shown above, this would be displayed:
You haven't seen the aquatic decapus, the little jackalope, or the phantom kitties.
The player can visit the pets in any order and can leave at any time and come back later. When the player returns later, we would want to display the list of pets still left to visit again.