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

Basic Syntax Problems

$
0
0
Twine Version: 2.1.1
Story Style: Harlow 2.0

So I'm just learning and picking up Twine, and I've been following VegetarianZombie's videos on Youtube. I'm on the If section, which I understand just fine but there seems to be a syntax error when using an if statement with passage links.

Code Below:
Passage 1
You dream of being weightless.

[[Open your eyes | Wake Up]]
[[Sleep]]

(set: $hourSleep to 8)

Passage 2
You roll over and refuse to awaken.

(if $hourSleep < 12) [[[Sleep]]]
[[Open your eyes | Wake Up]]

(set: $hourSleep to $hourSleep + 1)

Passage 3
(if: $hourSleep is 8) [Your eyes open suddenly.]

(if: $hourSleep > 8) [You startle awake after a solid $hourSleep hours of sleep.]

This gives me the following error:
68bd17de51e0301810ecee5ec9f2290d.png

Viewing all articles
Browse latest Browse all 1844

Trending Articles