34 lines
748 B
CoffeeScript
34 lines
748 B
CoffeeScript
room "start",
|
|
before: (from) ->
|
|
if (!from)
|
|
return "intro".l()
|
|
dsc: () -> "dsc".l(Improv)
|
|
writers:
|
|
window: () ->
|
|
# re-enter the room, reroll the description
|
|
salet.view.clearContent()
|
|
salet.here().entering("start")
|
|
return "<em>"+Improv.gen("window")+"</em>"
|
|
|
|
room "phone",
|
|
choices: "#call",
|
|
dsc: "phone_dsc".l()
|
|
|
|
room "director",
|
|
tags: ["call"],
|
|
choices: "#director"
|
|
optionText: "director_prompt".l()
|
|
dsc: "director_dsc".l()
|
|
|
|
dialogue "bye".l(), "director", "call", "cyalater".l()
|
|
|
|
# Virtual room to go around limitations
|
|
room "vstart",
|
|
tags: ["call"]
|
|
optionText: (from) ->
|
|
switch from
|
|
when "phone" then "end_phone".l()
|
|
else "end".l()
|
|
enter: () ->
|
|
salet.goTo("start")
|