(if: $x >= 6)[
The lock failed to open, you step back and think for a minute.
(set: $dial to (a: 0,0,0,0,0))
(set: $x to 1)]
You are standing in front of a large shipping container. A Sea-Con if you will, with orange rusted sides and a very very large combination lock on the door. If only you could get it [[open]].
Scratched onto the name plate is a crude 5 digit number: //13378//
Fiddle with the [[lock]](if: $locked is 1)[ You try to open the container, but its securely fastened.]
(else:)[ You pry open the door, the metal groans in protest as you heave the door open. The container is filled with rubber chickens.](print: $filler_text)
{(live: 0.5) [
(if: $x is <= 5)[The lock is set to: (print: $dial.join("-"))
](else:)[
(if: $dial's 1st is 1 and $dial's 2nd is 3 and $dial's 3rd is 3 and $dial's 4th is 7 and $dial's 5th is 8)[
(set: $locked to 0)
(goto: "open")](else:)[
(goto: "Introduction")]
]
]}
(display: "Dials")
<!--A Twine 2 Demo Story by DDall for Marlboro College Graduate Work
You may reuse this code as long as you include this comment-->
(set: $filler_text to "You hold the combination lock in your hand. It is a series of 5 wheels, numbered 0 to 9")
(set: $locked to 1)
(set: $x to 1)
(set: $dial to (a:0,0,0,0,0))<pre>
(link-repeat: "Zero")[ (set: $dial's $x to 0) (set: $x to it +1)]
(link-repeat: "One")[ (set: $dial's $x to 1) (set: $x to it +1)]
(link-repeat: "Two")[ (set: $dial's $x to 2) (set: $x to it +1)]
(link-repeat: "Three")[ (set: $dial's $x to 3) (set: $x to it +1)]
(link-repeat: "Four")[ (set: $dial's $x to 4) (set: $x to it +1)]
(link-repeat: "Five")[ (set: $dial's $x to 5) (set: $x to it +1)]
(link-repeat: "Six")[ (set: $dial's $x to 6) (set: $x to it +1)]
(link-repeat: "Seven")[ (set: $dial's $x to 7) (set: $x to it +1)]
(link-repeat: "Eight")[ (set: $dial's $x to 8) (set: $x to it +1)]
(link-repeat: "Nine")[ (set: $dial's $x to 9) (set: $x to it +1)]</pre>