4 ms·
Ink – inkle's narrative scripting language
- ktpsns 9y agotl,dr; A domain specific language for a Dungeon text-like game, see an overview of the language at https://github.com/inkle/ink/blob/master/Documentation/WritingWithInk.md https://github.com/inkle/ink/blob/master/Documentation/Writi...
- empath75 9y agoIf you’ve played any inkle games they’re very far from dungeon.
- dkersten 9y agoI’m trying to understand exactly what this is. Is it like Twine?
- straybasilisk 9y agoIt's like Twine. AFAIK Twine is mostly for publishing directly to the web. Ink is more suited for embedding in a game which adds additional presentation or gameplay stuff on top of the text, using some other language/engine (like Unity). It will handle the text stuff, and provide hooks/bindings for the rest of the game to use.
- jccalhoun 9y agoIt is similar to twine. The Inkle games so far have either been adaptations of Choose Your Own Adventure-style books or very much like that. You read some text and then you have a few choices. They also have some very basic combat in the Sorcery! adaptations.
- fellellor 9y agoI think the presentation is different. In Twine you have multiple pages of text, linking and branching using hyperlinks. You can publish your game as a html file. Whereas, in Ink, IIRC the flow is like scrolling text. New passages appear below the older ones, depending on choices made. I don't know a lot about Ink to be honest.
- crooked-v 9y agoNow I have this weird urge to build a JS DSL with equivalent functionality using objects, lambdas, and template strings.
- stevejohnson 9y agoI got the same itch and ran with it for a game jam a while back. It's fun! http://steveasleep.com/jumbogrove/ http://steveasleep.com/jumbogrove/
- nielsbot 9y agoYou should check out OMetaJS http://www.tinlizzie.org/ometa/ http://www.tinlizzie.org/ometa/ It's an object oriented parser-compiler for building languages (DSLs?) inside a host language. JS is a supported host language.
- _mhr_ 9y agoI recommend Ohm instead (made by the same people who made OMeta), which I see as OMeta's successor: github.com/harc/ohm
- nielsbot 9y agoAh! I didn't know it existed... I will read about it. Thanks.
- crooked-v 9y agoAh, but I'm thinking real Javascript, J-expression[1] style. Something like this: [ `I stared at Monsieur Fogg.`, { if: `know_about_wager`, then: [`<> "But surely you are not serious?" I demanded.`], else: [`<> "But there must be a reason for this trip," I observed.`] }, `He said nothing in reply, merely considering his newspaper with as much thoroughness as entomologist considering his latest pinned addition.` ] Or, more complicated: [ `I looked at Monsieur Fogg `, {choose: [ `... and I could contain myself no longer.`, `What is the purpose of our journey, Monsieur?`, `'A wager,' he replied.`, {choose: [ `'A wager!'[] I returned.`, `He nodded.`, {choose: `'But surely that is foolishness!'`}, {choose: [`'A most serious matter then!'`, `He nodded again.`]}, {choose: [ `'But can we win?'`, `'That is what we will endeavour to find out,' he answered.` ]}, {choose: [ `'A modest wager, I trust?'`, `'Twenty thousand pounds,' he replied, quite flatly.` ]}, {choose: `I asked nothing further of him then[.], and after a final, polite cough, he offered nothing more to me. <>`} ]}, {choose: `'Ah[.'],' I replied, uncertain what I thought.`}, `After that, <>` ]}, {choose: `... but I said nothing[] and <>`}, `we passed the day in silence.`, {goto: 'END'} ] [1]: http://sriku.org/blog/2012/04/15/j-expressions/ http://sriku.org/blog/2012/04/15/j-expressions/
- segphault 9y agoAlso worth checking out Kni, an authoring language inspired by Ink but written in JavaScript, ideal for bringing this kind of content to the web: https://github.com/kriskowal/kni https://github.com/kriskowal/kni
- Rabidgremlin 9y agoAlso great for scripting chat bots! Used to as part of Air New Zealand's chatbot Oscar. 390 topics, multiple regions, 60K words of content so it helps keep us sane :)
- cetra3 9y agoI'd be interested to hear more about this. Is there a writeup somewhere?
- Rabidgremlin 9y agoNo technical write up but you can see how it all hangs together because we have open-sourced the core of what makes Oscar tick: https://github.com/rabidgremlin/Mutters https://github.com/rabidgremlin/Mutters
- arjan_sch 9y agoBotsquad's Bubblescript language does something similar, although more imperative: http://www.botsquad.com/2018/04/14/beyond-the-dsl/ http://www.botsquad.com/2018/04/14/beyond-the-dsl/
- deleted 9y ago[deleted]
- ai_ia 9y agoHow does this compare to Superscriptjs? https://github.com/superscriptjs/superscript https://github.com/superscriptjs/superscript
- Promarged 9y agoI wish they published Ink scripts for their games (especially Sorcery series), I've beaten them numerous times but the games are so complex that it's basically impossible to go through all branches. Even if I tried I couldn't replicate some of dialogue and that's in a game that always allows you to undo everything!
- jessaustin 9y agoThis is fascinating. If you had such a script, would you simply read it, or would you use it as a guide to play the game so as to produce results you previously hadn't seen?
- wohlergehen 9y agoIt looks really cool, much more usable (IMO) than Inform7, which probably is the grandfather of all CYOA languages.