Skip to content

Instantly share code, notes, and snippets.

This is the roog code:

who lives here?
- '@' is for you
- '*' is for [lightning bug]

what are the floors?
- '.' is for [swamp floor]
- 'o' is for [cloudy water]
@jakevsrobots
jakevsrobots / inksyntax.vim
Created February 3, 2019 11:59
Vim syntax highlighting for Ink scripts
" ink syntax file
if exists('b:current_syntax') | finish| endif
syntax match Bullet "[\*\+]"
syntax match OutputBracket "[\[\]]"
syntax match Option "\s?[\*\+].*" contains=Bullet,OutputBracket
syntax match Knot "^===.*"
syntax match Divert "-> [^ ]*"
:: intro
''MAYA'': I'm not late, am I?
[[This must be our guest.->guest]]
[[Maybe she's delivering a video.->video-delivery]]
[[Who is this person.->who-is-this]]
:: guest
''EMILY'': Oh, hi! You must be, um ...
:: intro
''JUNEBUG'': How's everybody doing? Anybody had a real bad night?
''JUNEBUG'': //(To CONWAY)// How about you, old man?
<<choice "not-bad" "CONWAY: Not too bad.">>
<<choice "real-bad" "CONWAY: Yeah, real bad.">>
:: not-bad
@jakevsrobots
jakevsrobots / equus_oils_joseph_first_draft.txt
Created January 27, 2019 15:58
Super early first draft of the first conversation in Kentucky Route Zero
[intro]
JOSEPH: It ain't dark yet, but it ain't light, my friend! I heard a truck full of cans - I dunno - soup cans? Beer? I dunno, but I heard that truck bounce off a possum or something and spill juice and metal all over the sixty-five just a hundred-fifty yards out, maybe thirty, thirty-five minutes ago! Did you hit that on the way along?
*CONWAY: I thought it was oil.(intro-oil)
*CONWAY: I thought it was rain.(intro-rain)
[intro-oil]
JOSEPH: Sure, sure. You're a driver! Oil on your mind. Well, mine too, as you can imagine.[intro-camefrom]
[intro-rain]
[intro]
JOSEPH: It ain't dark yet, but it ain't light, my friend! I heard a truck full of
cans - I dunno - soup cans? Beer? I dunno, but I heard that truck bounce off a
possum or something and spill juice and metal all over the sixty-five just a
hundred-fifty yards out, maybe thirty, thirty-five minutes ago! Did you hit that
on the way along?
*CONWAY: I thought it was oil.(intro-oil)
*CONWAY: I thought it was rain.(intro-rain)
<scene name="root">
<line>
$[player_name], it seems you have something on your mind.
<option goto="doYouHaveAnyCloth">Do you have any spare bits of cloth?</option>
<option goto="howDidYouGetHere">How did you get here?</option>
<option goto="aboutSilas">Let's talk about Silas.</option>
<option goto="howToGetBack">I think I'd like to leave the moon now.</option>
</line>
</scene>
<scene name="init">
<goto sceneName="intro" condition="!met_b" />
<goto sceneName="root" />
</scene>
<scene name="intro" goto="root">
<setGameVar name="met_b" value="true" />
<line>Hello. Did you land in that balloon? Nice looking thing.</line>
<line>Wish I had a balloon. Oh, I'd probably just ruin it. I suppose they know how to do things properly $[player_came_from].</line>
<scene title="A Hummingbird Hovering at the Desk" name="office-bird-appears" background="office_dark" soundscape="officeSound">
<sprite name="hummingbird_at_desk" />
<dialog>
<body>
"Good afternoon." A small hummingbird was hovering over my desk. "I say, have you seen my hat?"
</body>
<option goto="office-bird-hat-response">I was so stunned that I responded immediately.</option>
<option goto="office-bird-hat-unfamiliar">I was so stunned that I couldn't speak.</option>
<option conditionFlag="hatRetrievedFromKitten" goto="office-bird-return-hat">"Actually, I have it right here," I said.</option>
<sprite name="smallFlowerPots2"
verboseName="flowers">
<look>Hydrangeas and poinsettias.</look>
<verb name="Forget">
<behavior type="dialog">Hard to say who planted these flowers, maybe this is the home of a gardener.</behavior>
</verb>
<verb name="Remember">
<behavior type="dialog">These wild flowers were planted here by the wind.</behavior>
</verb>