Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

Passage won't display in debug view

$
0
0
Hello! I'm completely new to Twine/Harlowe and am generally an idiot, so I think I might be looking at multiple syntax errors or plain dumb mistakes that I haven't been able to discern.

Basically, there are various individual "states" a player can be at, and the story branches out depending on which is chosen. I wanted to write it that only the link corresponding to your current "state" would display, but when I open the passage up in debug view, it just gives me the "Double-click this passage to edit it" message.
Four years pass faster than you knew years could even go.

(unless: (either: $scholar is true, $artlar is true, $success is true, $artcess is true, $depressed is true, $machi is true, $athlete is true, $artlete is true))[(link: "Next")(goto: "defaultschool")]

(if: (either: $scholar is true, $artlar is true, $success is true, $artcess is true, $depressed is true, $machi is true))[(link: "Next")(goto: "special preschool")]

(if: (either: $athlete is true, $artlete is true))[(link: "Next")(goto: "toddlersports")]

My issue could be entirely predicated on clumsiness with code in general, so apologies if this is a stupid question.

EDIT: Formatting it like so seemed to solve my issue!
(if: (either: $scholar is true, $artlar is true, $success is true, $artcess is true, $depressed is true, $machi is true))[|specialpreschool>[(link: "Next")[(goto: "specialpreschool")]]]
(elseif: (either: $athlete is true, $artlete is true))[|toddlersports>[(link: "Next")[(goto: "toddlersports")]]]
(else:)[|defaultschool>[(link: "Next")[(goto: "defaultschool")]]]

Viewing all articles
Browse latest Browse all 1844

Trending Articles