Quantcast
Channel: Twine Forum
Viewing all articles
Browse latest Browse all 3830

More (if) headaches (sugarcube 2.11.0)

$
0
0
I'm going to apologise beforehand because I know my lack of understanding in the area of <<ifs>> must be very frustrating, but they are the BANE of my life!!

And yes, I'm repeating myself yet AGAIN - for which I also apologise.

I'm trying to get a response in this passage where if a certain documentation has already been read the player is sent to a passage which says "You've already read this." and then sends them back to where they were. But, I also need a <<if visited() is 1>> in there too.

But when I test this by revisiting the passage WITHOUT have read the documentation, I still get sent to the 'You've already read this" message.

Here's my code:
<<if visited() is 1>>You open the drawers until you find one stacked with documentation. There's a pamphlet titled [[Deep Sleep and Its Affects on the Human Mind|deepsleep]], another called <<if visited ("luckdrug")>>[[Partialiterfortuna|luckdrug2]]<<else>> [[Partialiterfortuna|luckdrug]]<</if>>, and one on [[Handling Isolation in Deep Space.|deepspace]]

Return to [[room.|lab]]
<<else>>There's a pamphlet titled [[Deep Sleep and Its Affects on the Human Mind|deepsleep]], another called [[Partialiterfortuna|luckdrug2]], and one on [[Handling Isolation in Deep Space.|deepspace]]

Return to [[room.|lab]]<</if>>

Viewing all articles
Browse latest Browse all 3830

Trending Articles