Your new story
; Comments start with a ;
; The rest of the line will be ignored after a ;
; commands like text, prompt, image, wait, the-end must be lower case
; commands always come first after a parenthesis
; Any open parenthesis must be closed
; The first scene always is named: start
(defscene start
; Send a textual message to the player
(text "Demo man introduces his new demo!")
; give options to the player
(prompt flop "Belly flop")
(prompt yodel "Yodel"))
(defscene flop
(text "Demo man does a belly flop!")
; To send an image, specify a DIRECT URL to the image.
; It must not be a page that happens to have a picture in it.
(image "http://i.imgur.com/vWcAS5f.jpg")
; You can end a story immediately with the-end
(the-end))
(defscene yodel
(text "Yodelehiii")
; To pause for awhile, specify how many seconds to wait
(wait 2)
(text "Yodelehihoooo")
; To immediately move to another scene, use next
(include gym))
(defscene gym
(text "Demo man goes to the gym")
(prompt legs "Legs")
(prompt arms "Arms"))
(defscene legs
(text "It's leg day today!")
; You can set variables like so, use simple values like true, "text", or 123
(save legs true)
(include exercised))
(defscene arms
(text "It's arm day today!")
(include exercised))
(defscene exercised
(text "Demo man did his things today.")
; You can conditionally perform certain actions
(if (load legs)
; The first block after the condition is what happens if the condition is true
; in some circumstances you need to perform multiple actions
; You do that with do
(do
(text "Demo man admires his legs")
(text "They sure are beefy"))
; The second block after the condition is what happens if the condition is false
; It may also be omitted
(text "Demo man has noodle arms"))
(the-end))