It looks like you're new here. If you want to get involved, click one of these buttons!
item1
item2
item3
item 4
(if: (history:) contains (a: "item1", "item2", "item3", "item4")(link: "do item 5")][(goto: "item5")
(else:)[...]
(if: (history:) contains "item5")(link: "do item 6")][(goto: "item6")
(else:) [...]
Comments
There's still a couple of other problems. You've got extra spaces in your links. Which means that when you click on "do item 1" it'll go to a passage ' item1 ' rather than 'item1'
Checks to see if the history contains an element that is an array containing "item1"..."item4", so it'll never be true. The quickest way to check if the history contains all four items is to subtract the history from the array containing those items and then see if the resulting array is empty.
I've got this now, but when I play through it, after I complete items 1 - 4, and then the item 5 link activates, when i click it I get this error: I can't (go-to:) the passage 'item5' because it doesn't exist.►
I've created this passage and have text in it, but in the editor it won't link the two for some reason.
Thanks so much for the help.
BTW I forgot to mention before that on the line checking if the history contains "item5" there's a space between the else part and the hook, which will stop it from working.