This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%YAML 1.2 | |
--- | |
name: Ink | |
file_extensions: | |
- ink | |
- ink2 | |
scope: source.ink | |
contexts: | |
main: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function clickNode (id, node) { | |
document.getElementById(id).onclick() = function () { | |
story.choosePathString(node + '.storylets'); | |
start () { | |
progressGame(); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CONST LIVINGROOM = 11 | |
VAR lev_location = 11 | |
VAR anzu_location = 11 | |
-> livingroom | |
// ROOM 1: LIVINGROOM | |
=== livingroom === | |
= afternoon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"inkVersion":11,"root":[[{"->":"livingroom"},null],"done",{"livingroom":[{"->":".^.afternoon"},{"afternoon":[[[[["ev",11,"/ev",null],{"temp=":"lev_location","re":true},null],["^Livingroom description. ",["G>",[["ev",{"VAR?":"anzu_location"},11,"==","/ev",null],["du",{"t?":{"->":"livingroom.afternoon.0.g-0.desc.1.1.1.b"}},{"b":["pop","^Anzu is in the livingroom.",{"->":".^.^.^.3"},null]}],"pop","nop",null],"G<",null],"\n",[["ev","str","^Talk to someone.","/str","/ev",{"*":".^.c","flg":4},{"c":[[[["thread",{"->":"characters_present"},null],["ev","str","^Move on.","/str","/ev",{"*":".^.c","flg":4},{"c":[{"->":".^.^.^.^.^.^.^.^"},null]}],{"#n":"talk"}],null],null]}],{"#n":"choices"}],{"#n":"desc"}],{"#n":"g-0"}],null],null]}],"anzu_conversation":[{"->":".^.choose"},{"choose":[[["ev","str","^Talk to Anzu.","/str","/ev",{"*":".^.c","flg":4},{"c":[["thread",{"->":".^.^.^.^.^.^.generic"},null],["G>",[["ev",{"VAR?":"anzu_location"},11,"==","/ev",{"t?":{"->":"anzu_conversation.choose.0.0.c.1.1.0.b"}},{"b":["thread",{" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"inkVersion":11,"root":[[{"->":"livingroom"},null],"done",{"livingroom":[{"->":".^.afternoon"},{"afternoon":[[[[["ev",11,"/ev",null],{"temp=":"lev_location","re":true},null],["^Livingroom description. ",["G>",[["ev",{"VAR?":"anzu_location"},11,"==","/ev",null],["du",{"t?":{"->":"livingroom.afternoon.0.g-0.desc.1.1.1.b"}},{"b":["pop","^Anzu is in the livingroom.",{"->":".^.^.^.3"},null]}],"pop","nop",null],"G<",null],"\n",[["ev","str","^Talk to Anzu.","/str","/ev",{"*":".^.c","flg":4},{"c":[[[["thread",{"->":"characters_present"},null],["ev","str","^Move on.","/str","/ev",{"*":".^.c","flg":4},{"c":[{"->":"move_on"},null]}],{"#n":"talk"}],null],null]}],["ev","str","^Explore.","/str","/ev",{"*":".^.c","flg":4},{"c":["^Lev explores the room.","\n",[[["ev","str","^Examine the table.","/str","/ev",{"*":".^.c","flg":4},{"c":["^Lev examines the table.","\n",{"->":".^.^.^"},{"#f":5}]}],["ev","str","^Examine the tea set.","/str",{"CNT?":".^.^.0.c"},"/ev",{"*":".^.c","flg":5},{"c":["^Lev examines the tea set. There's a |