From 676de206723c0838104ed8171964c9685ae750be Mon Sep 17 00:00:00 2001 From: Simon Reinhardt <332193+Shepard@users.noreply.github.com> Date: Sat, 5 Aug 2023 19:52:13 +0200 Subject: [PATCH] fix: restore choice tags on state reloading Choice tags were missing in serialisation and deserialisation of state to/from JSON. Fixes https://github.com/y-lohse/inkjs/issues/1022 --- src/engine/JsonSerialisation.ts | 14 ++++++++++++++ src/tests/inkfiles/compiled/inkjs/tests.ink.json | 2 +- src/tests/inkfiles/original/inkjs/tests.ink | 2 +- src/tests/specs/inkjs/engine/Integration.spec.ts | 16 ++++++++++++++++ 4 files changed, 32 insertions(+), 2 deletions(-) diff --git a/src/engine/JsonSerialisation.ts b/src/engine/JsonSerialisation.ts index 4fdce281..97356b95 100644 --- a/src/engine/JsonSerialisation.ts +++ b/src/engine/JsonSerialisation.ts @@ -580,6 +580,9 @@ export class JsonSerialisation { choice.sourcePath = jObj["originalChoicePath"].toString(); choice.originalThreadIndex = parseInt(jObj["originalThreadIndex"]); choice.pathStringOnChoice = jObj["targetPath"].toString(); + if (jObj["tags"]) { + choice.tags = jObj["tags"]; + } return choice; } @@ -590,6 +593,17 @@ export class JsonSerialisation { writer.WriteProperty("originalChoicePath", choice.sourcePath); writer.WriteIntProperty("originalThreadIndex", choice.originalThreadIndex); writer.WriteProperty("targetPath", choice.pathStringOnChoice); + if (choice.tags) { + writer.WriteProperty("tags", (w) => { + w.WriteArrayStart(); + for (const tag of choice.tags!) { + w.WriteStringStart(); + w.WriteStringInner(tag); + w.WriteStringEnd(); + } + w.WriteArrayEnd(); + }); + } writer.WriteObjectEnd(); } diff --git a/src/tests/inkfiles/compiled/inkjs/tests.ink.json b/src/tests/inkfiles/compiled/inkjs/tests.ink.json index e33cbc9e..4450c798 100644 --- a/src/tests/inkfiles/compiled/inkjs/tests.ink.json +++ b/src/tests/inkfiles/compiled/inkjs/tests.ink.json @@ -1 +1 @@ -{"inkVersion":21,"root":[["#","^global tag","/#",{"->":"glue.diverted_glue"},"^Ouside content","\n","#","^not a global tag","/#",["done",{"#n":"g-0"}],null],"done",{"fn_ext":[{"temp=":"c"},{"temp=":"b"},{"temp=":"a"},"ev",{"VAR?":"a"},"/ev","~ret",null],"gameInc":[{"temp=":"x"},"ev",{"VAR?":"x"},1,"+","/ev","~ret",null],"knot":["^Knot content","\n","done",{"stitch":["^Stitch content","\n","done",null]}],"content":[{"->":".^.simple"},{"simple":["^Simple content inside a knot","\n","done",null],"multiline":["^First line","\n","^Second line","\n","done",null],"variable_text":["ev","str","^variable text","/str","/ev",{"temp=":"VARIABLETEXT"},"ev",{"VAR?":"VARIABLETEXT"},"out","/ev","\n","done",null],"if_text_truthy":["ev",true,"/ev",{"temp=":"met_blofeld"},"^I… ","ev",{"VAR?":"met_blofeld"},"/ev",[{"->":".^.b","c":true},{"b":["^ I saw him. Only for a moment.",{"->":".^.^.^.9"},null]}],"nop","\n","done",null],"if_text_falsy":["ev",false,"/ev",{"temp=":"met_blofeld"},"^I… ","ev",{"VAR?":"met_blofeld"},"/ev",[{"->":".^.b","c":true},{"b":["^ I saw him. Only for a moment.",{"->":".^.^.^.9"},null]}],"nop","\n","done",null],"if_else_text":["ev",true,"/ev",{"temp=":"met_blofeld"},"ev",{"VAR?":"met_blofeld"},"/ev",[{"->":".^.b","c":true},{"b":["^ I saw him. Only for a moment.",{"->":".^.^.^.9"},null]}],[{"->":".^.b"},{"b":["^I missed him. Was he particularly evil?",{"->":".^.^.^.9"},null]}],"nop","\n","ev",false,"/ev",{"temp=":"met_blofeld","re":true},"ev",{"VAR?":"met_blofeld"},"/ev",[{"->":".^.b","c":true},{"b":["^ I saw him. Only for a moment.",{"->":".^.^.^.20"},null]}],[{"->":".^.b"},{"b":["^I missed him. Was he particularly evil?",{"->":".^.^.^.20"},null]}],"nop","\n","done",null]}],"glue":[{"->":".^.simple"},{"simple":["^Simple ","<>","\n","^glue","\n","done",null],"diverted_glue":["^More ","<>",{"->":"glue.diverted_glue_target"},"\n",null],"diverted_glue_target":["^glue","\n","done",null]}],"divert":[{"->":".^.divert_knot"},{"divert_knot":[{"->":"divert_knot_target"},null],"divert_stitch":[{"->":"divert_knot_target.divert_stitch_target"},null],"internal_stitch":[{"->":".^.^.internal_stitch_target"},null],"divert_var":["ev",{"^->":"divert_knot_target.divert_var_target"},"/ev",{"temp=":"destination"},{"->":"destination","var":true},null],"internal_stitch_target":["^Diverted to internal stitch","\n","done",null]}],"divert_knot_target":["^Diverted to a knot","\n","done",{"divert_stitch_target":["^Diverted to a stitch","\n","done",null],"divert_var_target":["^Diverted with a variable","\n","done",{"#f":3}]}],"tags":["#","^knot tag","/#","done",{"line_by_Line":["^A line of content ","#","^a tag","/#","\n","^Another line of content ","#","^tag1 ","/#","#","^tag2","/#","\n","#","^tag above","/#","^Content after a tag ","#","^tag after","/#","\n","#","^tag below","/#","done",null],"choice":[[["ev",{"^->":"tags.choice.0.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-0","flg":18},{"s":["^a choice ","#","^a tag","/#",{"->":"$r","var":true},null]}],{"c-0":["ev",{"^->":"tags.choice.0.c-0.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n","done",{"#f":5}]}],null],"weird":["#","^space around","/#","#","/#","#","/#","#","/#","#","^0","/#","done",null]}],"simple_lists":[{"->":".^.sequence"},{"sequence":[["ev","visit",3,"MIN","/ev","ev","du",0,"==","/ev",{"->":".^.s0","c":true},"ev","du",1,"==","/ev",{"->":".^.s1","c":true},"ev","du",2,"==","/ev",{"->":".^.s2","c":true},"ev","du",3,"==","/ev",{"->":".^.s3","c":true},"nop",{"s0":["pop","^one",{"->":".^.^.29"},null],"s1":["pop","^two",{"->":".^.^.29"},null],"s2":["pop","^three",{"->":".^.^.29"},null],"s3":["pop","^final",{"->":".^.^.29"},null],"#f":5}],"\n","done",null],"cycle":[["ev","visit",3,"%","/ev","ev","du",0,"==","/ev",{"->":".^.s0","c":true},"ev","du",1,"==","/ev",{"->":".^.s1","c":true},"ev","du",2,"==","/ev",{"->":".^.s2","c":true},"nop",{"s0":["pop","^one",{"->":".^.^.23"},null],"s1":["pop","^two",{"->":".^.^.23"},null],"s2":["pop","^three",{"->":".^.^.23"},null],"#f":5}],"\n","done",null],"once":[["ev","visit",3,"MIN","/ev","ev","du",0,"==","/ev",{"->":".^.s0","c":true},"ev","du",1,"==","/ev",{"->":".^.s1","c":true},"ev","du",2,"==","/ev",{"->":".^.s2","c":true},"ev","du",3,"==","/ev",{"->":".^.s3","c":true},"nop",{"s0":["pop","^one",{"->":".^.^.29"},null],"s1":["pop","^two",{"->":".^.^.29"},null],"s2":["pop","^three",{"->":".^.^.29"},null],"s3":["pop",{"->":".^.^.29"},null],"#f":5}],"\n","done",null],"shuffle":[["ev","visit",2,"seq","/ev","ev","du",0,"==","/ev",{"->":".^.s0","c":true},"ev","du",1,"==","/ev",{"->":".^.s1","c":true},"nop",{"s0":["pop","^heads",{"->":".^.^.17"},null],"s1":["pop","^tails",{"->":".^.^.17"},null],"#f":5}],"\n","done",null],"blanks":[["ev","visit",3,"MIN","/ev","ev","du",0,"==","/ev",{"->":".^.s0","c":true},"ev","du",1,"==","/ev",{"->":".^.s1","c":true},"ev","du",2,"==","/ev",{"->":".^.s2","c":true},"ev","du",3,"==","/ev",{"->":".^.s3","c":true},"nop",{"s0":["pop",{"->":".^.^.29"},null],"s1":["pop",{"->":".^.^.29"},null],"s2":["pop",{"->":".^.^.29"},null],"s3":["pop","^end",{"->":".^.^.29"},null],"#f":5}],"\n","done",null]}],"choices":[{"->":".^.basic_choice"},{"basic_choice":[[["ev",{"^->":"choices.basic_choice.0.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-0","flg":18},{"s":["^a choice",{"->":"$r","var":true},null]}],{"c-0":["ev",{"^->":"choices.basic_choice.0.c-0.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n","done",{"#f":5}]}],null],"multiple_choices":[[["ev",{"^->":"choices.multiple_choices.0.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-0","flg":18},{"s":["^choice 1",{"->":"$r","var":true},null]}],["ev",{"^->":"choices.multiple_choices.0.1.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-1","flg":18},{"s":["^choice 2",{"->":"$r","var":true},null]}],["ev",{"^->":"choices.multiple_choices.0.2.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-2","flg":18},{"s":["^choice 3",{"->":"$r","var":true},null]}],{"c-0":["ev",{"^->":"choices.multiple_choices.0.c-0.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"c-1":["ev",{"^->":"choices.multiple_choices.0.c-1.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.1.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"c-2":["ev",{"^->":"choices.multiple_choices.0.c-2.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.2.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"g-0":["done",null]}],null],"choice_text":[[["ev",{"^->":"choices.choice_text.0.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","str","^choice only","/str","/ev",{"*":".^.^.c-0","flg":22},{"s":["^always ",{"->":"$r","var":true},null]}],{"c-0":["ev",{"^->":"choices.choice_text.0.c-0.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"^output only","\n","done",{"#f":5}]}],null],"suppression":[[["ev",{"^->":"choices.suppression.0.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-0","flg":18},{"s":["^choice 1",{"->":"$r","var":true},null]}],["ev",{"^->":"choices.suppression.0.1.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-1","flg":18},{"s":["^choice 2",{"->":"$r","var":true},null]}],{"c-0":["ev",{"^->":"choices.suppression.0.c-0.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"c-1":["ev",{"^->":"choices.suppression.0.c-1.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.1.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"g-0":["done",null]}],null],"fallback":[[["ev",{"^->":"choices.fallback.0.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-0","flg":18},{"s":["^choice 1",{"->":"$r","var":true},null]}],{"*":".^.c-1","flg":24},{"c-0":["ev",{"^->":"choices.fallback.0.c-0.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n","done",{"#f":5}],"c-1":["done","\n",{"#f":5}]}],null],"sticky":[[["ev",{"^->":"choices.sticky.0.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-0","flg":18},{"s":["^disapears",{"->":"$r","var":true},null]}],["ev",{"^->":"choices.sticky.0.1.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-1","flg":2},{"s":["^stays",{"->":"$r","var":true},null]}],{"c-0":["ev",{"^->":"choices.sticky.0.c-0.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n","done",{"#f":5}],"c-1":["ev",{"^->":"choices.sticky.0.c-1.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.1.s"},[{"#n":"$r2"}],"\n","done",null]}],null],"conditional":[["ev",true,"/ev",{"temp=":"truthy"},"ev",true,"/ev",{"temp=":"truthy2"},"ev",false,"/ev",{"temp=":"falsy"},["ev",{"^->":"choices.conditional.0.12.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-0","flg":18},{"s":["^no condition",{"->":"$r","var":true},null]}],["ev",{"^->":"choices.conditional.0.13.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str",{"VAR?":"truthy"},"/ev",{"*":".^.^.c-1","flg":19},{"s":["^available",{"->":"$r","var":true},null]}],["ev",{"^->":"choices.conditional.0.14.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str",{"VAR?":"falsy"},"/ev",{"*":".^.^.c-2","flg":19},{"s":["^not available",{"->":"$r","var":true},null]}],["ev",{"^->":"choices.conditional.0.15.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str",{"VAR?":"truthy"},{"VAR?":"truthy2"},"&&","/ev",{"*":".^.^.c-3","flg":19},{"s":["^multi condition available",{"->":"$r","var":true},null]}],["ev",{"^->":"choices.conditional.0.16.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str",{"VAR?":"truthy"},{"VAR?":"falsy"},"&&","/ev",{"*":".^.^.c-4","flg":19},{"s":["^multi condition not available",{"->":"$r","var":true},null]}],{"c-0":["ev",{"^->":"choices.conditional.0.c-0.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.12.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"c-1":["ev",{"^->":"choices.conditional.0.c-1.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.13.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"c-2":["ev",{"^->":"choices.conditional.0.c-2.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.14.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"c-3":["ev",{"^->":"choices.conditional.0.c-3.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.15.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"c-4":["ev",{"^->":"choices.conditional.0.c-4.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.16.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"g-0":["done",null]}],null]}],"logic":[{"->":".^.vardef"},{"vardef":["^variables defined: ","ev","str","^Emilia","/str","out","/ev","^ ","ev",521,"out","/ev","^ ","ev",52.1,"out","/ev","\n","done",null],"casts":["ev",{"VAR?":"intvar"},0.5,"+","out","/ev","\n","ev",{"VAR?":"intvar"},"str","^hello","/str","+","out","/ev","\n","ev",{"VAR?":"floatvar"},"/ev",[{"->":".^.b","c":true},{"b":["^float var is truthy",{"->":".^.^.^.21"},null]}],[{"->":".^.b"},{"b":["^is falsy and broken",{"->":".^.^.^.21"},null]}],"nop","\n","ev",{"VAR?":"floatvar"},"str","^hello","/str","+","out","/ev","\n","ev",{"VAR?":"stringvar"},"/ev",[{"->":".^.b","c":true},{"b":["^string var is truthy",{"->":".^.^.^.37"},null]}],[{"->":".^.b"},{"b":["^is falsy and broken",{"->":".^.^.^.37"},null]}],"nop","\n","done",null],"logic_divert_dest":["done",{"#f":3}],"math":["ev",5,"/ev",{"temp=":"int"},"ev",1,1,"+","out","/ev","\n","ev",1,1,"-","out","/ev","\n","ev",{"VAR?":"int"},"_","out","/ev","\n","ev",1,2,"*","out","/ev","\n","ev",10,2,"/","out","/ev","\n","ev",11,2,"%","out","/ev","\n","ev",1,1,"==","/ev",[{"->":".^.b","c":true},{"b":["^int truthy equal",{"->":".^.^.^.52"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.52"},null]}],"nop","\n","ev",1,2,"==","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.61"},null]}],[{"->":".^.b"},{"b":["^int falsy equal",{"->":".^.^.^.61"},null]}],"nop","\n","ev",2,1,">","/ev",[{"->":".^.b","c":true},{"b":["^int truthy greater",{"->":".^.^.^.70"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.70"},null]}],"nop","\n","ev",1,2,">","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.79"},null]}],[{"->":".^.b"},{"b":["^int falsy greater",{"->":".^.^.^.79"},null]}],"nop","\n","ev",1,2,"<","/ev",[{"->":".^.b","c":true},{"b":["^int truthy lesser",{"->":".^.^.^.88"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.88"},null]}],"nop","\n","ev",2,1,"<","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.97"},null]}],[{"->":".^.b"},{"b":["^int falsy lesser",{"->":".^.^.^.97"},null]}],"nop","\n","ev",2,1,">=","/ev",[{"->":".^.b","c":true},{"b":["^int truthy greater or equal",{"->":".^.^.^.106"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.106"},null]}],"nop","\n","ev",1,2,">=","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.115"},null]}],[{"->":".^.b"},{"b":["^int falsy greater or equal",{"->":".^.^.^.115"},null]}],"nop","\n","ev",1,2,"<=","/ev",[{"->":".^.b","c":true},{"b":["^int truthy lesser or equal",{"->":".^.^.^.124"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.124"},null]}],"nop","\n","ev",2,1,"<=","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.133"},null]}],[{"->":".^.b"},{"b":["^int falsy lesser or equal",{"->":".^.^.^.133"},null]}],"nop","\n","ev",2,1,"!=","/ev",[{"->":".^.b","c":true},{"b":["^int truthy not equal",{"->":".^.^.^.142"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.142"},null]}],"nop","\n","ev",1,1,"!=","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.151"},null]}],[{"->":".^.b"},{"b":["^int falsy not equal",{"->":".^.^.^.151"},null]}],"nop","\n","ev",1,"/ev",{"temp=":"one"},"ev",0,"/ev",{"temp=":"zero"},["ev",{"VAR?":"zero"},"!","/ev",{"->":".^.b","c":true},{"b":["\n","^int truthy not","\n",{"->":".^.^.^.163"},null]}],[{"->":".^.b"},{"b":["\n","^broken","\n",{"->":".^.^.^.163"},null]}],"nop","\n",["ev",{"VAR?":"one"},"!","/ev",{"->":".^.b","c":true},{"b":["\n","^broken","\n",{"->":".^.^.^.167"},null]}],[{"->":".^.b"},{"b":["\n","^int falsy not","\n",{"->":".^.^.^.167"},null]}],"nop","\n","ev",1,1,"&&","/ev",[{"->":".^.b","c":true},{"b":["^int truthy and",{"->":".^.^.^.176"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.176"},null]}],"nop","\n","ev",1,0,"&&","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.185"},null]}],[{"->":".^.b"},{"b":["^int falsy and",{"->":".^.^.^.185"},null]}],"nop","\n","ev",1,0,"||","/ev",[{"->":".^.b","c":true},{"b":["^int truthy or",{"->":".^.^.^.194"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.194"},null]}],"nop","\n","ev",0,0,"||","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.203"},null]}],[{"->":".^.b"},{"b":["^int falsy or",{"->":".^.^.^.203"},null]}],"nop","\n","ev",5.2,"/ev",{"temp=":"float"},"ev",1.3,1.3,"+","out","/ev","\n","ev",1.3,1.3,"-","out","/ev","\n","ev",{"VAR?":"float"},"_","out","/ev","\n","ev",1.5,2.4,"*","out","/ev","\n","ev",10.5,2.5,"/","out","/ev","\n","ev",11.5,2.5,"%","out","/ev","\n","ev",1.3,1.3,"==","/ev",[{"->":".^.b","c":true},{"b":["^float truthy equal",{"->":".^.^.^.257"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.257"},null]}],"nop","\n","ev",1.3,2.3,"==","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.266"},null]}],[{"->":".^.b"},{"b":["^float falsy equal",{"->":".^.^.^.266"},null]}],"nop","\n","ev",2.3,1.3,">","/ev",[{"->":".^.b","c":true},{"b":["^float truthy greater",{"->":".^.^.^.275"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.275"},null]}],"nop","\n","ev",1.3,2.3,">","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.284"},null]}],[{"->":".^.b"},{"b":["^float falsy greater",{"->":".^.^.^.284"},null]}],"nop","\n","ev",1.3,2.3,"<","/ev",[{"->":".^.b","c":true},{"b":["^float truthy lesser",{"->":".^.^.^.293"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.293"},null]}],"nop","\n","ev",2.3,1.3,"<","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.302"},null]}],[{"->":".^.b"},{"b":["^float falsy lesser",{"->":".^.^.^.302"},null]}],"nop","\n","ev",2.3,1.3,">=","/ev",[{"->":".^.b","c":true},{"b":["^float truthy greater or equal",{"->":".^.^.^.311"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.311"},null]}],"nop","\n","ev",1.3,2.3,">=","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.320"},null]}],[{"->":".^.b"},{"b":["^float falsy greater or equal",{"->":".^.^.^.320"},null]}],"nop","\n","ev",1.3,2.3,"<=","/ev",[{"->":".^.b","c":true},{"b":["^float truthy lesser or equal",{"->":".^.^.^.329"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.329"},null]}],"nop","\n","ev",2.3,1.3,"<=","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.338"},null]}],[{"->":".^.b"},{"b":["^float falsy lesser or equal",{"->":".^.^.^.338"},null]}],"nop","\n","ev",2.3,1.3,"!=","/ev",[{"->":".^.b","c":true},{"b":["^float truthy not equal",{"->":".^.^.^.347"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.347"},null]}],"nop","\n","ev",1.3,1.3,"!=","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.356"},null]}],[{"->":".^.b"},{"b":["^float falsy not equal",{"->":".^.^.^.356"},null]}],"nop","\n","ev",1.2,"/ev",{"temp=":"onepointtwo"},["ev",{"VAR?":"onepointtwo"},"!","/ev",{"->":".^.b","c":true},{"b":["\n","^broken","\n",{"->":".^.^.^.364"},null]}],[{"->":".^.b"},{"b":["\n","^float falsy not","\n",{"->":".^.^.^.364"},null]}],"nop","\n","ev",1.3,1.3,"&&","/ev",[{"->":".^.b","c":true},{"b":["^float truthy and",{"->":".^.^.^.373"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.373"},null]}],"nop","\n","ev",1.3,0,"&&","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.382"},null]}],[{"->":".^.b"},{"b":["^float falsy and",{"->":".^.^.^.382"},null]}],"nop","\n","ev",1.3,0,"||","/ev",[{"->":".^.b","c":true},{"b":["^float truthy or",{"->":".^.^.^.391"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.391"},null]}],"nop","\n","ev",0,0,"||","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.400"},null]}],[{"->":".^.b"},{"b":["^float falsy or",{"->":".^.^.^.400"},null]}],"nop","\n","ev","str","^hello","/str","str","^hello","/str","==","/ev",[{"->":".^.b","c":true},{"b":["^truthy string equal",{"->":".^.^.^.413"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.413"},null]}],"nop","\n","ev","str","^hello","/str","str","^world","/str","==","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.426"},null]}],[{"->":".^.b"},{"b":["^falsy string equal",{"->":".^.^.^.426"},null]}],"nop","\n","ev","str","^hello","/str","str","^world","/str","!=","/ev",[{"->":".^.b","c":true},{"b":["^truthy string not equal",{"->":".^.^.^.439"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.439"},null]}],"nop","\n","ev","str","^hello","/str","str","^hello","/str","!=","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.452"},null]}],[{"->":".^.b"},{"b":["^falsy string not equal",{"->":".^.^.^.452"},null]}],"nop","\n","ev",{"^->":"logic.ifelse"},{"^->":"logic.ifelse"},"==","/ev",[{"->":".^.b","c":true},{"b":["^truthy divert equal",{"->":".^.^.^.461"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.461"},null]}],"nop","\n","ev",{"^->":"logic.ifelse"},{"^->":"logic.stitch_param"},"==","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.470"},null]}],[{"->":".^.b"},{"b":["^falsy divert equal",{"->":".^.^.^.470"},null]}],"nop","\n","done",null],"ifelse":[["ev",{"VAR?":"intvar"},521,"==","/ev",{"->":".^.b","c":true},{"b":["\n","^if text","\n",{"->":".^.^.^.2"},null]}],[{"->":".^.b"},{"b":["\n","^else text","\n",{"->":".^.^.^.2"},null]}],"nop","\n",["ev",{"VAR?":"intvar"},521,"<","/ev",{"->":".^.b","c":true},{"b":["\n","^if text","\n",{"->":".^.^.^.6"},null]}],[{"->":".^.b"},{"b":["\n","^else text","\n",{"->":".^.^.^.6"},null]}],"nop","\n",["ev",{"VAR?":"intvar"},521,"<","/ev",{"->":".^.b","c":true},{"b":["\n","^if text","\n",{"->":".^.^.^.11"},null]}],["ev",{"VAR?":"intvar"},1,">","/ev",{"->":".^.b","c":true},{"b":["\n","^elseif text","\n",{"->":".^.^.^.11"},null]}],[{"->":".^.b"},{"b":["\n","^else text","\n",{"->":".^.^.^.11"},null]}],"nop","\n","done",{"#f":3}],"stitch_param":["ev","str","^param","/str","/ev",{"->":".^.^.stitch_with_param"},"done",{"#f":3}],"stitch_with_param":[{"temp=":"what"},"^Called with ","ev",{"VAR?":"what"},"out","/ev","\n","done",null],"constants":["^constants defined: ","ev","str","^Emilia","/str","out","/ev","^ ","ev",521,"out","/ev","^ ","ev",52.1,"out","/ev","\n","done",null],"simple_functions":["ev",{"f()":"fn_with_return"},"out","/ev","\n","ev",{"f()":"fn_print"},"out","/ev","\n","ev",{"f()":"fn_calls_other"},"out","/ev","\n","^Function called inline and ","ev",{"f()":"fn_with_return"},"out","/ev","^ something","\n","done",null],"param_functions":["ev",{"VAR?":"fnParamA"},{"VAR?":"fnParamB"},{"f()":"fn_params"},"out","/ev","\n","ev",{"^var":"fnParamA","ci":-1},{"^var":"fnParamB","ci":-1},{"f()":"fn_params_ref"},"out","/ev","\n","done",null],"void_function":["ev",{"f()":"fn_without_return"},"out","/ev","\n","done",null],"random":["ev",25,"srnd","pop","/ev","\n","ev",0,100,"rnd","out","/ev","\n","ev",-50,50,"rnd","out","/ev","\n","done",null]}],"fn_with_return":["ev","str","^returned","/str","/ev","~ret",null],"fn_without_return":["ev",1,"/ev",{"temp=":"a"},null],"fn_print":["^function called","\n",null],"fn_params":[{"temp=":"b"},{"temp=":"a"},"ev","str","^was a","/str","/ev",{"temp=":"a","re":true},"ev","str","^was b","/str","/ev",{"temp=":"b","re":true},"ev",{"VAR?":"a"},"/ev","~ret",null],"fn_params_ref":[{"temp=":"b"},{"temp=":"a"},"ev","str","^was a","/str","/ev",{"temp=":"a","re":true},"ev","str","^was b","/str","/ev",{"temp=":"b","re":true},"ev",{"VAR?":"a"},"/ev","~ret",null],"fn_calls_other":["ev",{"f()":"fn_called"},"/ev","~ret","\n",null],"fn_called":["ev","str","^nested function called","/str","/ev","~ret",null],"fn_echo":[{"temp=":"a"},"ev",{"VAR?":"a"},"out","/ev","\n","ev",{"VAR?":"a"},"/ev","~ret",null],"integration":[{"->":".^.variable_observer"},{"variable_observer":["^declared","\n","ev",3,"/ev",{"VAR=":"observedVar1","re":true},"^mutated 1","\n","ev",4,"/ev",{"VAR=":"observedVar1","re":true},"ev",5,"/ev",{"VAR=":"observedVar2","re":true},"^mutated 2","\n","done",null],"variable_print":["ev",{"VAR?":"stringvar"},"out","/ev","\n","done",null],"visit_count":["^visited","\n","done",null],"external":["ev",1,2,3,{"x()":"fn_ext","exArgs":3},"out","/ev","\n","ev",1.1,2.2,3.3,{"x()":"fn_ext","exArgs":3},"out","/ev","\n","ev","str","^a","/str","str","^b","/str","str","^c","/str",{"x()":"fn_ext","exArgs":3},"out","/ev","\n","ev","str","^a","/str",1,2.2,{"x()":"fn_ext","exArgs":3},"out","/ev","\n","done",null]}],"topExternal":[{"temp=":"x"},"^In top external","\n","ev",{"VAR?":"x"},{"x()":"gameInc","exArgs":1},"/ev","~ret","\n",null],"inkInc":[{"temp=":"x"},"ev",{"VAR?":"x"},1,"+","/ev","~ret",null],"game_queries":[{"->":".^.choicecount"},{"choicecount":[[["ev",{"^->":"game_queries.choicecount.0.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-0","flg":18},{"s":["^count ","ev","choiceCnt","out","/ev",{"->":"$r","var":true},null]}],{"c-0":["ev",{"^->":"game_queries.choicecount.0.c-0.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"g-0":[["ev",{"^->":"game_queries.choicecount.0.g-0.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-1","flg":18},{"s":["^1 choice",{"->":"$r","var":true},null]}],["ev",{"^->":"game_queries.choicecount.0.g-0.1.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-2","flg":18},{"s":["^count ","ev","choiceCnt","out","/ev",{"->":"$r","var":true},null]}],{"c-1":["ev",{"^->":"game_queries.choicecount.0.g-0.c-1.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.^.g-1"},{"#f":5}],"c-2":["ev",{"^->":"game_queries.choicecount.0.g-0.c-2.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.1.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.^.g-1"},{"#f":5}]}],"g-1":[["ev",{"^->":"game_queries.choicecount.0.g-1.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-3","flg":18},{"s":["^1 choice",{"->":"$r","var":true},null]}],["ev",{"^->":"game_queries.choicecount.0.g-1.1.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-4","flg":18},{"s":["^2 choices",{"->":"$r","var":true},null]}],["ev",{"^->":"game_queries.choicecount.0.g-1.2.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-5","flg":18},{"s":["^count ","ev","choiceCnt","out","/ev",{"->":"$r","var":true},null]}],{"c-3":["ev",{"^->":"game_queries.choicecount.0.g-1.c-3.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.^.g-2"},{"#f":5}],"c-4":["ev",{"^->":"game_queries.choicecount.0.g-1.c-4.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.1.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.^.g-2"},{"#f":5}],"c-5":["ev",{"^->":"game_queries.choicecount.0.g-1.c-5.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.2.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.^.g-2"},{"#f":5}]}],"g-2":[["ev",{"^->":"game_queries.choicecount.0.g-2.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-6","flg":18},{"s":["^1 choice",{"->":"$r","var":true},null]}],["ev",{"^->":"game_queries.choicecount.0.g-2.1.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-7","flg":18},{"s":["^count ","ev","choiceCnt","out","/ev",{"->":"$r","var":true},null]}],["ev",{"^->":"game_queries.choicecount.0.g-2.2.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-8","flg":18},{"s":["^2 choices",{"->":"$r","var":true},null]}],["ev",{"^->":"game_queries.choicecount.0.g-2.3.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-9","flg":18},{"s":["^count ","ev","choiceCnt","out","/ev",{"->":"$r","var":true},null]}],{"c-6":["ev",{"^->":"game_queries.choicecount.0.g-2.c-6.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.^.g-3"},{"#f":5}],"c-7":["ev",{"^->":"game_queries.choicecount.0.g-2.c-7.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.1.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.^.g-3"},{"#f":5}],"c-8":["ev",{"^->":"game_queries.choicecount.0.g-2.c-8.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.2.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.^.g-3"},{"#f":5}],"c-9":["ev",{"^->":"game_queries.choicecount.0.g-2.c-9.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.3.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.^.g-3"},{"#f":5}]}],"g-3":["done",null]}],null],"turnssince_before":["ev",{"^->":"game_queries.turnssince"},"turns","out","/ev","\n",{"->":".^.^.turnssince"},null],"turnssince":[["ev",{"^->":"game_queries.turnssince"},"turns","out","/ev","\n","ev","str","^advance","/str","/ev",{"*":".^.c-0","flg":20},{"c-0":["^ ",{"->":".^.^.^.^.turnssince_1"},"\n",{"#f":5}]}],{"#f":2}],"turnssince_1":[["ev",{"^->":"game_queries.turnssince"},"turns","out","/ev","\n","ev","str","^advance","/str","/ev",{"*":".^.c-0","flg":20},{"c-0":["^ ",{"->":".^.^.^.^.turnssince_2"},"\n",{"#f":5}]}],null],"turnssince_2":["ev",{"^->":"game_queries.turnssince"},"turns","out","/ev","\n","done",null]}],"saveload":["^a bit of content","\n","^the next bit","\n","done",{"choicepoint":[[["ev",{"^->":"saveload.choicepoint.0.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-0","flg":18},{"s":["^choice 1",{"->":"$r","var":true},null]}],["ev",{"^->":"saveload.choicepoint.0.1.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-1","flg":18},{"s":["^choice 2",{"->":"$r","var":true},null]}],{"c-0":["ev",{"^->":"saveload.choicepoint.0.c-0.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"c-1":["ev",{"^->":"saveload.choicepoint.0.c-1.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.1.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"g-0":["done",null]}],null]}],"flow_control":[{"->":".^.tunnel"},{"tunnel":["^tunnel end","\n","ev","void","/ev","->->",null],"tunnel_call":[{"->t->":".^.^.tunnel"},"done",null],"thread":["^thread start","\n","thread",{"->":".^.^.threaded_text"},"thread",{"->":".^.^.threaded_choice_1"},"thread",{"->":".^.^.threaded_choice_2"},"^thread end","\n","done",null],"threaded_text":["^threaded text","\n","done",null],"threaded_choice_1":[[["ev",{"^->":"flow_control.threaded_choice_1.0.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-0","flg":18},{"s":["^first threaded choice",{"->":"$r","var":true},null]}],{"c-0":["ev",{"^->":"flow_control.threaded_choice_1.0.c-0.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n","done",{"#f":5}]}],null],"threaded_choice_2":[[["ev",{"^->":"flow_control.threaded_choice_2.0.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-0","flg":18},{"s":["^second threaded choice",{"->":"$r","var":true},null]}],{"c-0":["ev",{"^->":"flow_control.threaded_choice_2.0.c-0.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n","done",{"#f":5}]}],null]}],"lists":[{"->":".^.basic_list"},{"basic_list":["ev",{"VAR?":"kettleState"},"out","/ev","\n","ev",{"VAR?":"boiling"},"/ev",{"VAR=":"kettleState","re":true},"ev",{"VAR?":"kettleState"},"out","/ev","\n","done",null],"increment":["ev",{"VAR?":"cold"},"/ev",{"VAR=":"kettleState","re":true},"ev",{"VAR?":"kettleState"},"out","/ev","\n","ev",{"VAR?":"kettleState"},1,"+",{"VAR=":"kettleState","re":true},"/ev","ev",{"VAR?":"kettleState"},"out","/ev","\n","ev",{"VAR?":"kettleState"},1,"+",{"VAR=":"kettleState","re":true},"/ev","ev",{"VAR?":"kettleState"},"out","/ev","\n","ev",{"VAR?":"kettleState"},1,"-",{"VAR=":"kettleState","re":true},"/ev","ev",{"VAR?":"kettleState"},"out","/ev","\n","ev",{"VAR?":"kettleState"},1,"-",{"VAR=":"kettleState","re":true},"/ev","ev",{"VAR?":"kettleState"},"out","/ev","\n","done",null],"list_value":["ev",{"VAR?":"cold"},"/ev",{"VAR=":"kettleState","re":true},"ev",{"VAR?":"kettleState"},"LIST_VALUE","out","/ev","\n","ev",{"VAR?":"kettleState"},1,"+",{"VAR=":"kettleState","re":true},"/ev","ev",{"VAR?":"kettleState"},"LIST_VALUE","out","/ev","\n","ev",{"VAR?":"kettleState"},1,"+",{"VAR=":"kettleState","re":true},"/ev","ev",{"VAR?":"kettleState"},"LIST_VALUE","out","/ev","\n","done",null],"value_from_number":["ev","^kettleState",1,"listInt","/ev",{"VAR=":"kettleStateVar","re":true},"\n","ev",{"VAR?":"kettleStateVar"},"out","/ev","\n","ev","^kettleState",2,"listInt","/ev",{"VAR=":"kettleStateVar","re":true},"\n","ev",{"VAR?":"kettleStateVar"},"out","/ev","\n","ev","^kettleState",3,"listInt","/ev",{"VAR=":"kettleStateVar","re":true},"\n","ev",{"VAR?":"kettleStateVar"},"out","/ev","\n","done",null],"defined_value":["ev",{"VAR?":"primeNumbers"},"LIST_VALUE","out","/ev","\n","ev",{"VAR?":"primeNumbers"},1,"+",{"VAR=":"primeNumbers","re":true},"/ev","ev",{"VAR?":"primeNumbers"},"LIST_VALUE","out","/ev","\n","ev",{"VAR?":"primeNumbers"},1,"+",{"VAR=":"primeNumbers","re":true},"/ev","ev",{"VAR?":"primeNumbers"},"LIST_VALUE","out","/ev","\n","done",null],"multivalue":["ev",{"VAR?":"DoctorsInSurgery"},"out","/ev","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Eamonn":5,"DoctorsInSurgery.Denver":4}},"+",{"VAR=":"DoctorsInSurgery","re":true},"/ev","ev",{"VAR?":"DoctorsInSurgery"},"out","/ev","\n","ev",{"VAR?":"DoctorsInSurgery"},{"VAR?":"Eamonn"},"-",{"VAR=":"DoctorsInSurgery","re":true},"/ev","ev",{"VAR?":"DoctorsInSurgery"},"out","/ev","\n","ev",{"list":{}},"/ev",{"VAR=":"DoctorsInSurgery","re":true},"ev",{"VAR?":"DoctorsInSurgery"},"out","/ev","\n","ev",{"VAR?":"DoctorsInSurgery"},{"VAR?":"Eamonn"},"-",{"VAR=":"DoctorsInSurgery","re":true},"/ev","ev",{"VAR?":"DoctorsInSurgery"},{"VAR?":"Eamonn"},"-",{"VAR=":"DoctorsInSurgery","re":true},"/ev","ev",{"VAR?":"DoctorsInSurgery"},"out","/ev","\n","ev",{"VAR?":"DoctorsInSurgery"},{"VAR?":"Eamonn"},"+",{"VAR=":"DoctorsInSurgery","re":true},"/ev","ev",{"VAR?":"DoctorsInSurgery"},{"VAR?":"Eamonn"},"+",{"VAR=":"DoctorsInSurgery","re":true},"/ev","ev",{"VAR?":"DoctorsInSurgery"},"out","/ev","\n","done",null],"listqueries":["ev",{"list":{}},"/ev",{"VAR=":"DoctorsInSurgery","re":true},"ev",{"VAR?":"DoctorsInSurgery"},"/ev",[{"->":".^.b","c":true},{"b":["^list is not empty ",{"->":".^.^.^.9"},null]}],[{"->":".^.b"},{"b":["^list is empty",{"->":".^.^.^.9"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Eamonn":5,"DoctorsInSurgery.Denver":4}},"+",{"VAR=":"DoctorsInSurgery","re":true},"/ev","ev",{"VAR?":"DoctorsInSurgery"},"LIST_COUNT","out","/ev","\n","ev",{"VAR?":"DoctorsInSurgery"},"LIST_MIN","out","/ev","\n","ev",{"VAR?":"DoctorsInSurgery"},"LIST_MAX","out","/ev","\n","ev",{"VAR?":"DoctorsInSurgery"},"/ev",[{"->":".^.b","c":true},{"b":["^list is not empty",{"->":".^.^.^.40"},null]}],[{"->":".^.b"},{"b":["^list is empty",{"->":".^.^.^.40"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Eamonn":5,"DoctorsInSurgery.Denver":4}},"==","/ev",[{"->":".^.b","c":true},{"b":["^exact equality",{"->":".^.^.^.48"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Eamonn":5}},"==","/ev",[{"->":".^.b","c":true},{"b":["^exact equality broken",{"->":".^.^.^.57"},null]}],[{"->":".^.b"},{"b":["^falsy exact equality",{"->":".^.^.^.57"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Eamonn":5}},"!=","/ev",[{"->":".^.b","c":true},{"b":["^exact inequality",{"->":".^.^.^.65"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Eamonn":5,"DoctorsInSurgery.Denver":4}},"!=","/ev",[{"->":".^.b","c":true},{"b":["^exact inequality broken",{"->":".^.^.^.74"},null]}],[{"->":".^.b"},{"b":["^exact inequality works",{"->":".^.^.^.74"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"VAR?":"Eamonn"},"?","/ev",[{"->":".^.b","c":true},{"b":["^has Eamonn",{"->":".^.^.^.82"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"VAR?":"Cartwright"},"?","/ev",[{"->":".^.b","c":true},{"b":["^has is broke ",{"->":".^.^.^.91"},null]}],[{"->":".^.b"},{"b":["^has falsy works",{"->":".^.^.^.91"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Eamonn":5,"DoctorsInSurgery.Cartwright":3}},"!?","/ev",[{"->":".^.b","c":true},{"b":["^has not",{"->":".^.^.^.99"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Eamonn":5,"DoctorsInSurgery.Denver":4}},"!?","/ev",[{"->":".^.b","c":true},{"b":["^has not broken",{"->":".^.^.^.108"},null]}],[{"->":".^.b"},{"b":["^falsy has not",{"->":".^.^.^.108"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},"LIST_ALL","out","/ev","\n","ev",{"list":{}},"/ev",{"VAR=":"DoctorsInSurgery","re":true},"ev",{"VAR?":"DoctorsInSurgery"},"LIST_MAX","out","/ev","\n","ev",{"VAR?":"DoctorsInSurgery"},"LIST_MIN","out","/ev","\n","ev",{"list":{"DoctorsInSurgery.Cartwright":3}},"/ev",{"VAR=":"DoctorsInSurgery","re":true},"ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Adams":1}},">","/ev",[{"->":".^.b","c":true},{"b":["^truthy greater than",{"->":".^.^.^.142"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Eamonn":5}},">","/ev",[{"->":".^.b","c":true},{"b":["^broken greater than",{"->":".^.^.^.151"},null]}],[{"->":".^.b"},{"b":["^falsy greater than",{"->":".^.^.^.151"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{}},">","/ev",[{"->":".^.b","c":true},{"b":["^greater than empty",{"->":".^.^.^.159"},null]}],"nop","\n","ev",{"list":{}},{"VAR?":"DoctorsInSurgery"},">","/ev",[{"->":".^.b","c":true},{"b":["^broken empty greater than",{"->":".^.^.^.168"},null]}],[{"->":".^.b"},{"b":["^empty greater than",{"->":".^.^.^.168"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Eamonn":5}},"<","/ev",[{"->":".^.b","c":true},{"b":["^truthy smaller than",{"->":".^.^.^.176"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Adams":1}},"<","/ev",[{"->":".^.b","c":true},{"b":["^broken smaller than",{"->":".^.^.^.185"},null]}],[{"->":".^.b"},{"b":["^falsy smaller than",{"->":".^.^.^.185"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{}},"<","/ev",[{"->":".^.b","c":true},{"b":["^broken smaller than empty",{"->":".^.^.^.194"},null]}],[{"->":".^.b"},{"b":["^smaller than empty",{"->":".^.^.^.194"},null]}],"nop","\n","ev",{"list":{}},{"VAR?":"DoctorsInSurgery"},"<","/ev",[{"->":".^.b","c":true},{"b":["^empty smaller than",{"->":".^.^.^.203"},null]}],[{"->":".^.b"},{"b":["^broken empty smaller than",{"->":".^.^.^.203"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Adams":1}},">=","/ev",[{"->":".^.b","c":true},{"b":["^truthy greater than or equal",{"->":".^.^.^.211"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Cartwright":3}},">=","/ev",[{"->":".^.b","c":true},{"b":["^truthy greater than or equal",{"->":".^.^.^.219"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Eamonn":5}},">=","/ev",[{"->":".^.b","c":true},{"b":["^broken greater than or equal",{"->":".^.^.^.228"},null]}],[{"->":".^.b"},{"b":["^falsy greater than or equal",{"->":".^.^.^.228"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{}},">=","/ev",[{"->":".^.b","c":true},{"b":["^greater than or equals empty",{"->":".^.^.^.236"},null]}],"nop","\n","ev",{"list":{}},{"VAR?":"DoctorsInSurgery"},">=","/ev",[{"->":".^.b","c":true},{"b":["^broken empty greater than or equals",{"->":".^.^.^.245"},null]}],[{"->":".^.b"},{"b":["^empty greater than or equals",{"->":".^.^.^.245"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Eamonn":5}},"<=","/ev",[{"->":".^.b","c":true},{"b":["^truthy smaller than or equal",{"->":".^.^.^.253"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Cartwright":3}},"<=","/ev",[{"->":".^.b","c":true},{"b":["^truthy smaller than or equal",{"->":".^.^.^.261"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Adams":1}},"<=","/ev",[{"->":".^.b","c":true},{"b":["^broken smaller than or equal",{"->":".^.^.^.270"},null]}],[{"->":".^.b"},{"b":["^falsy smaller than or equal",{"->":".^.^.^.270"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{}},"<=","/ev",[{"->":".^.b","c":true},{"b":["^broken smaller than or equals empty",{"->":".^.^.^.279"},null]}],[{"->":".^.b"},{"b":["^smaller than or equals empty",{"->":".^.^.^.279"},null]}],"nop","\n","ev",{"list":{}},{"VAR?":"DoctorsInSurgery"},"<=","/ev",[{"->":".^.b","c":true},{"b":["^empty smaller than or equals",{"->":".^.^.^.288"},null]}],[{"->":".^.b"},{"b":["^broken empty smaller than or equals",{"->":".^.^.^.288"},null]}],"nop","\n","ev",{"list":{"DoctorsInSurgery.Eamonn":5,"DoctorsInSurgery.Cartwright":3}},{"list":{"DoctorsInSurgery.Eamonn":5,"DoctorsInSurgery.Cartwright":3}},"&&","/ev",[{"->":".^.b","c":true},{"b":["^truthy list AND",{"->":".^.^.^.297"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.297"},null]}],"nop","\n","ev",{"list":{"DoctorsInSurgery.Eamonn":5,"DoctorsInSurgery.Cartwright":3}},{"list":{}},"&&","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.306"},null]}],[{"->":".^.b"},{"b":["^falsy list AND",{"->":".^.^.^.306"},null]}],"nop","\n","ev",{"list":{"DoctorsInSurgery.Eamonn":5,"DoctorsInSurgery.Cartwright":3}},{"list":{"DoctorsInSurgery.Eamonn":5,"DoctorsInSurgery.Cartwright":3}},"||","/ev",[{"->":".^.b","c":true},{"b":["^truthy list OR",{"->":".^.^.^.315"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.315"},null]}],"nop","\n","ev",{"list":{}},{"list":{}},"||","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.324"},null]}],[{"->":".^.b"},{"b":["^falsy list OR",{"->":".^.^.^.324"},null]}],"nop","\n","ev",{"list":{}},"!","/ev",[{"->":".^.b","c":true},{"b":["^truthy list not",{"->":".^.^.^.332"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.332"},null]}],"nop","\n","ev",{"list":{"DoctorsInSurgery.Eamonn":5}},"!","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.340"},null]}],[{"->":".^.b"},{"b":["^falsy list not",{"->":".^.^.^.340"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},"LIST_ALL",{"VAR?":"Bernard"},{"VAR?":"Denver"},"range","out","/ev","\n","ev",{"VAR?":"GuardsOnDuty"},"out","/ev","\n","ev",{"VAR?":"GuardsOnDuty"},"LIST_INVERT","/ev",{"VAR=":"GuardsOnDuty","re":true},"\n","ev",{"VAR?":"GuardsOnDuty"},"out","/ev","\n","ev",{"VAR?":"desiredValues"},{"VAR?":"actualValues"},"L^","out","/ev","\n","done",null]}],"global decl":["ev","str","^Emilia","/str",{"VAR=":"stringvar"},521,{"VAR=":"intvar"},52.1,{"VAR=":"floatvar"},{"^->":"logic.logic_divert_dest"},{"VAR=":"divertvar"},"str","^a","/str",{"VAR=":"fnParamA"},"str","^b","/str",{"VAR=":"fnParamB"},1,{"VAR=":"observedVar1"},2,{"VAR=":"observedVar2"},{"list":{"kettleState.cold":1}},{"VAR=":"kettleState"},{"VAR?":"cold"},{"VAR=":"kettleStateVar"},{"list":{"primeNumbers.two":2}},{"VAR=":"primeNumbers"},{"list":{},"origins":["DoctorsInSurgery"]},{"VAR=":"DoctorsInSurgery"},{"list":{"GuardsOnDuty.Smith":1,"GuardsOnDuty.Jones":2}},{"VAR=":"GuardsOnDuty"},{"list":{},"origins":["CoreValues"]},{"VAR=":"CoreValues"},{"list":{"CoreValues.strength":1,"CoreValues.courage":2,"CoreValues.compassion":3,"CoreValues.self_belief":6}},{"VAR=":"desiredValues"},{"list":{"CoreValues.greed":4,"CoreValues.nepotism":5,"CoreValues.self_belief":6,"CoreValues.delusions_of_godhood":7}},{"VAR=":"actualValues"},"/ev","end",null]}],"listDefs":{"kettleState":{"cold":1,"boiling":2,"evaporated":3},"primeNumbers":{"two":2,"three":3,"five":5},"DoctorsInSurgery":{"Adams":1,"Bernard":2,"Cartwright":3,"Denver":4,"Eamonn":5},"GuardsOnDuty":{"Smith":1,"Jones":2,"Carter":3,"Braithwaite":4},"CoreValues":{"strength":1,"courage":2,"compassion":3,"greed":4,"nepotism":5,"self_belief":6,"delusions_of_godhood":7}}} \ No newline at end of file +{"inkVersion":21,"root":[["#","^global tag","/#",{"->":"glue.diverted_glue"},"^Ouside content","\n","#","^not a global tag","/#",["done",{"#f":5,"#n":"g-0"}],null],"done",{"fn_ext":[{"temp=":"c"},{"temp=":"b"},{"temp=":"a"},"ev",{"VAR?":"a"},"/ev","~ret",{"#f":1}],"gameInc":[{"temp=":"x"},"ev",{"VAR?":"x"},1,"+","/ev","~ret",{"#f":1}],"knot":["^Knot content","\n","done",{"stitch":["^Stitch content","\n","done",{"#f":1}],"#f":1}],"content":[{"->":".^.simple"},{"simple":["^Simple content inside a knot","\n","done",{"#f":1}],"multiline":["^First line","\n","^Second line","\n","done",{"#f":1}],"variable_text":["ev","str","^variable text","/str","/ev",{"temp=":"VARIABLETEXT"},"ev",{"VAR?":"VARIABLETEXT"},"out","/ev","\n","done",{"#f":1}],"if_text_truthy":["ev",true,"/ev",{"temp=":"met_blofeld"},"^I… ","ev",{"VAR?":"met_blofeld"},"/ev",[{"->":".^.b","c":true},{"b":["^ I saw him. Only for a moment.",{"->":".^.^.^.9"},null]}],"nop","\n","done",{"#f":1}],"if_text_falsy":["ev",false,"/ev",{"temp=":"met_blofeld"},"^I… ","ev",{"VAR?":"met_blofeld"},"/ev",[{"->":".^.b","c":true},{"b":["^ I saw him. Only for a moment.",{"->":".^.^.^.9"},null]}],"nop","\n","done",{"#f":1}],"if_else_text":["ev",true,"/ev",{"temp=":"met_blofeld"},"ev",{"VAR?":"met_blofeld"},"/ev",[{"->":".^.b","c":true},{"b":["^ I saw him. Only for a moment.",{"->":".^.^.^.9"},null]}],[{"->":".^.b"},{"b":["^I missed him. Was he particularly evil?",{"->":".^.^.^.9"},null]}],"nop","\n","ev",false,"/ev",{"temp=":"met_blofeld","re":true},"ev",{"VAR?":"met_blofeld"},"/ev",[{"->":".^.b","c":true},{"b":["^ I saw him. Only for a moment.",{"->":".^.^.^.20"},null]}],[{"->":".^.b"},{"b":["^I missed him. Was he particularly evil?",{"->":".^.^.^.20"},null]}],"nop","\n","done",{"#f":1}],"#f":1}],"glue":[{"->":".^.simple"},{"simple":["^Simple ","<>","\n","^glue","\n","done",{"#f":1}],"diverted_glue":["^More ","<>",{"->":"glue.diverted_glue_target"},"\n",{"#f":1}],"diverted_glue_target":["^glue","\n","done",{"#f":1}],"#f":1}],"divert":[{"->":".^.divert_knot"},{"divert_knot":[{"->":"divert_knot_target"},{"#f":1}],"divert_stitch":[{"->":"divert_knot_target.divert_stitch_target"},{"#f":1}],"internal_stitch":[{"->":".^.^.internal_stitch_target"},{"#f":1}],"divert_var":["ev",{"^->":"divert_knot_target.divert_var_target"},"/ev",{"temp=":"destination"},{"->":"destination","var":true},{"#f":1}],"internal_stitch_target":["^Diverted to internal stitch","\n","done",{"#f":1}],"#f":1}],"divert_knot_target":["^Diverted to a knot","\n","done",{"divert_stitch_target":["^Diverted to a stitch","\n","done",{"#f":1}],"divert_var_target":["^Diverted with a variable","\n","done",{"#f":3}],"#f":1}],"tags":["#","^knot tag","/#","done",{"line_by_Line":["^A line of content ","#","^a tag","/#","\n","^Another line of content ","#","^tag1 ","/#","#","^tag2","/#","\n","#","^tag above","/#","^Content after a tag ","#","^tag after","/#","\n","#","^tag below","/#","done",{"#f":1}],"choice":[[["ev",{"^->":"tags.choice.0.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-0","flg":18},{"s":["^a choice ","#","^a tag","/#",{"->":"$r","var":true},null]}],{"c-0":["ev",{"^->":"tags.choice.0.c-0.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n","done",{"#f":5}]}],{"#f":1}],"weird":["#","^space around","/#","#","/#","#","/#","#","/#","#","^0","/#","done",{"#f":1}],"#f":1}],"simple_lists":[{"->":".^.sequence"},{"sequence":[["ev","visit",3,"MIN","/ev","ev","du",0,"==","/ev",{"->":".^.s0","c":true},"ev","du",1,"==","/ev",{"->":".^.s1","c":true},"ev","du",2,"==","/ev",{"->":".^.s2","c":true},"ev","du",3,"==","/ev",{"->":".^.s3","c":true},"nop",{"s0":["pop","^one",{"->":".^.^.29"},null],"s1":["pop","^two",{"->":".^.^.29"},null],"s2":["pop","^three",{"->":".^.^.29"},null],"s3":["pop","^final",{"->":".^.^.29"},null],"#f":5}],"\n","done",{"#f":1}],"cycle":[["ev","visit",3,"%","/ev","ev","du",0,"==","/ev",{"->":".^.s0","c":true},"ev","du",1,"==","/ev",{"->":".^.s1","c":true},"ev","du",2,"==","/ev",{"->":".^.s2","c":true},"nop",{"s0":["pop","^one",{"->":".^.^.23"},null],"s1":["pop","^two",{"->":".^.^.23"},null],"s2":["pop","^three",{"->":".^.^.23"},null],"#f":5}],"\n","done",{"#f":1}],"once":[["ev","visit",3,"MIN","/ev","ev","du",0,"==","/ev",{"->":".^.s0","c":true},"ev","du",1,"==","/ev",{"->":".^.s1","c":true},"ev","du",2,"==","/ev",{"->":".^.s2","c":true},"ev","du",3,"==","/ev",{"->":".^.s3","c":true},"nop",{"s0":["pop","^one",{"->":".^.^.29"},null],"s1":["pop","^two",{"->":".^.^.29"},null],"s2":["pop","^three",{"->":".^.^.29"},null],"s3":["pop",{"->":".^.^.29"},null],"#f":5}],"\n","done",{"#f":1}],"shuffle":[["ev","visit",2,"seq","/ev","ev","du",0,"==","/ev",{"->":".^.s0","c":true},"ev","du",1,"==","/ev",{"->":".^.s1","c":true},"nop",{"s0":["pop","^heads",{"->":".^.^.17"},null],"s1":["pop","^tails",{"->":".^.^.17"},null],"#f":5}],"\n","done",{"#f":1}],"blanks":[["ev","visit",3,"MIN","/ev","ev","du",0,"==","/ev",{"->":".^.s0","c":true},"ev","du",1,"==","/ev",{"->":".^.s1","c":true},"ev","du",2,"==","/ev",{"->":".^.s2","c":true},"ev","du",3,"==","/ev",{"->":".^.s3","c":true},"nop",{"s0":["pop",{"->":".^.^.29"},null],"s1":["pop",{"->":".^.^.29"},null],"s2":["pop",{"->":".^.^.29"},null],"s3":["pop","^end",{"->":".^.^.29"},null],"#f":5}],"\n","done",{"#f":1}],"#f":1}],"choices":[{"->":".^.basic_choice"},{"basic_choice":[[["ev",{"^->":"choices.basic_choice.0.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-0","flg":18},{"s":["^a choice",{"->":"$r","var":true},null]}],{"c-0":["ev",{"^->":"choices.basic_choice.0.c-0.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n","done",{"#f":5}]}],{"#f":1}],"multiple_choices":[[["ev",{"^->":"choices.multiple_choices.0.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-0","flg":18},{"s":["^choice 1",{"->":"$r","var":true},null]}],["ev",{"^->":"choices.multiple_choices.0.1.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-1","flg":18},{"s":["^choice 2",{"->":"$r","var":true},null]}],["ev",{"^->":"choices.multiple_choices.0.2.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-2","flg":18},{"s":["^choice 3",{"->":"$r","var":true},null]}],{"c-0":["ev",{"^->":"choices.multiple_choices.0.c-0.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"c-1":["ev",{"^->":"choices.multiple_choices.0.c-1.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.1.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"c-2":["ev",{"^->":"choices.multiple_choices.0.c-2.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.2.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"g-0":["done",{"#f":5}]}],{"#f":1}],"choice_text":[[["ev",{"^->":"choices.choice_text.0.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","str","^choice only","/str","/ev",{"*":".^.^.c-0","flg":22},{"s":["^always ",{"->":"$r","var":true},null]}],{"c-0":["ev",{"^->":"choices.choice_text.0.c-0.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"^output only","\n","done",{"#f":5}]}],{"#f":1}],"suppression":[[["ev",{"^->":"choices.suppression.0.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-0","flg":18},{"s":["^choice 1",{"->":"$r","var":true},null]}],["ev",{"^->":"choices.suppression.0.1.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-1","flg":18},{"s":["^choice 2",{"->":"$r","var":true},null]}],{"c-0":["ev",{"^->":"choices.suppression.0.c-0.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"c-1":["ev",{"^->":"choices.suppression.0.c-1.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.1.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"g-0":["done",{"#f":5}]}],{"#f":1}],"fallback":[[["ev",{"^->":"choices.fallback.0.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-0","flg":18},{"s":["^choice 1",{"->":"$r","var":true},null]}],{"*":".^.c-1","flg":24},{"c-0":["ev",{"^->":"choices.fallback.0.c-0.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n","done",{"#f":5}],"c-1":["done","\n",{"#f":5}]}],{"#f":1}],"sticky":[[["ev",{"^->":"choices.sticky.0.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-0","flg":18},{"s":["^disapears",{"->":"$r","var":true},null]}],["ev",{"^->":"choices.sticky.0.1.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-1","flg":2},{"s":["^stays",{"->":"$r","var":true},null]}],{"c-0":["ev",{"^->":"choices.sticky.0.c-0.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n","done",{"#f":5}],"c-1":["ev",{"^->":"choices.sticky.0.c-1.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.1.s"},[{"#n":"$r2"}],"\n","done",{"#f":5}]}],{"#f":1}],"conditional":[["ev",true,"/ev",{"temp=":"truthy"},"ev",true,"/ev",{"temp=":"truthy2"},"ev",false,"/ev",{"temp=":"falsy"},["ev",{"^->":"choices.conditional.0.12.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-0","flg":18},{"s":["^no condition",{"->":"$r","var":true},null]}],["ev",{"^->":"choices.conditional.0.13.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str",{"VAR?":"truthy"},"/ev",{"*":".^.^.c-1","flg":19},{"s":["^available",{"->":"$r","var":true},null]}],["ev",{"^->":"choices.conditional.0.14.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str",{"VAR?":"falsy"},"/ev",{"*":".^.^.c-2","flg":19},{"s":["^not available",{"->":"$r","var":true},null]}],["ev",{"^->":"choices.conditional.0.15.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str",{"VAR?":"truthy"},{"VAR?":"truthy2"},"&&","/ev",{"*":".^.^.c-3","flg":19},{"s":["^multi condition available",{"->":"$r","var":true},null]}],["ev",{"^->":"choices.conditional.0.16.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str",{"VAR?":"truthy"},{"VAR?":"falsy"},"&&","/ev",{"*":".^.^.c-4","flg":19},{"s":["^multi condition not available",{"->":"$r","var":true},null]}],{"c-0":["ev",{"^->":"choices.conditional.0.c-0.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.12.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"c-1":["ev",{"^->":"choices.conditional.0.c-1.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.13.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"c-2":["ev",{"^->":"choices.conditional.0.c-2.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.14.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"c-3":["ev",{"^->":"choices.conditional.0.c-3.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.15.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"c-4":["ev",{"^->":"choices.conditional.0.c-4.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.16.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"g-0":["done",{"#f":5}]}],{"#f":1}],"#f":1}],"logic":[{"->":".^.vardef"},{"vardef":["^variables defined: ","ev","str","^Emilia","/str","out","/ev","^ ","ev",521,"out","/ev","^ ","ev",52.1,"out","/ev","\n","done",{"#f":1}],"casts":["ev",{"VAR?":"intvar"},0.5,"+","out","/ev","\n","ev",{"VAR?":"intvar"},"str","^hello","/str","+","out","/ev","\n","ev",{"VAR?":"floatvar"},"/ev",[{"->":".^.b","c":true},{"b":["^float var is truthy",{"->":".^.^.^.21"},null]}],[{"->":".^.b"},{"b":["^is falsy and broken",{"->":".^.^.^.21"},null]}],"nop","\n","ev",{"VAR?":"floatvar"},"str","^hello","/str","+","out","/ev","\n","ev",{"VAR?":"stringvar"},"/ev",[{"->":".^.b","c":true},{"b":["^string var is truthy",{"->":".^.^.^.37"},null]}],[{"->":".^.b"},{"b":["^is falsy and broken",{"->":".^.^.^.37"},null]}],"nop","\n","done",{"#f":1}],"logic_divert_dest":["done",{"#f":3}],"math":["ev",5,"/ev",{"temp=":"int"},"ev",1,1,"+","out","/ev","\n","ev",1,1,"-","out","/ev","\n","ev",{"VAR?":"int"},"_","out","/ev","\n","ev",1,2,"*","out","/ev","\n","ev",10,2,"/","out","/ev","\n","ev",11,2,"%","out","/ev","\n","ev",1,1,"==","/ev",[{"->":".^.b","c":true},{"b":["^int truthy equal",{"->":".^.^.^.52"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.52"},null]}],"nop","\n","ev",1,2,"==","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.61"},null]}],[{"->":".^.b"},{"b":["^int falsy equal",{"->":".^.^.^.61"},null]}],"nop","\n","ev",2,1,">","/ev",[{"->":".^.b","c":true},{"b":["^int truthy greater",{"->":".^.^.^.70"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.70"},null]}],"nop","\n","ev",1,2,">","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.79"},null]}],[{"->":".^.b"},{"b":["^int falsy greater",{"->":".^.^.^.79"},null]}],"nop","\n","ev",1,2,"<","/ev",[{"->":".^.b","c":true},{"b":["^int truthy lesser",{"->":".^.^.^.88"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.88"},null]}],"nop","\n","ev",2,1,"<","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.97"},null]}],[{"->":".^.b"},{"b":["^int falsy lesser",{"->":".^.^.^.97"},null]}],"nop","\n","ev",2,1,">=","/ev",[{"->":".^.b","c":true},{"b":["^int truthy greater or equal",{"->":".^.^.^.106"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.106"},null]}],"nop","\n","ev",1,2,">=","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.115"},null]}],[{"->":".^.b"},{"b":["^int falsy greater or equal",{"->":".^.^.^.115"},null]}],"nop","\n","ev",1,2,"<=","/ev",[{"->":".^.b","c":true},{"b":["^int truthy lesser or equal",{"->":".^.^.^.124"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.124"},null]}],"nop","\n","ev",2,1,"<=","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.133"},null]}],[{"->":".^.b"},{"b":["^int falsy lesser or equal",{"->":".^.^.^.133"},null]}],"nop","\n","ev",2,1,"!=","/ev",[{"->":".^.b","c":true},{"b":["^int truthy not equal",{"->":".^.^.^.142"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.142"},null]}],"nop","\n","ev",1,1,"!=","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.151"},null]}],[{"->":".^.b"},{"b":["^int falsy not equal",{"->":".^.^.^.151"},null]}],"nop","\n","ev",1,"/ev",{"temp=":"one"},"ev",0,"/ev",{"temp=":"zero"},["ev",{"VAR?":"zero"},"!","/ev",{"->":".^.b","c":true},{"b":["\n","^int truthy not","\n",{"->":".^.^.^.163"},null]}],[{"->":".^.b"},{"b":["\n","^broken","\n",{"->":".^.^.^.163"},null]}],"nop","\n",["ev",{"VAR?":"one"},"!","/ev",{"->":".^.b","c":true},{"b":["\n","^broken","\n",{"->":".^.^.^.167"},null]}],[{"->":".^.b"},{"b":["\n","^int falsy not","\n",{"->":".^.^.^.167"},null]}],"nop","\n","ev",1,1,"&&","/ev",[{"->":".^.b","c":true},{"b":["^int truthy and",{"->":".^.^.^.176"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.176"},null]}],"nop","\n","ev",1,0,"&&","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.185"},null]}],[{"->":".^.b"},{"b":["^int falsy and",{"->":".^.^.^.185"},null]}],"nop","\n","ev",1,0,"||","/ev",[{"->":".^.b","c":true},{"b":["^int truthy or",{"->":".^.^.^.194"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.194"},null]}],"nop","\n","ev",0,0,"||","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.203"},null]}],[{"->":".^.b"},{"b":["^int falsy or",{"->":".^.^.^.203"},null]}],"nop","\n","ev",5.2,"/ev",{"temp=":"float"},"ev",1.3,1.3,"+","out","/ev","\n","ev",1.3,1.3,"-","out","/ev","\n","ev",{"VAR?":"float"},"_","out","/ev","\n","ev",1.5,2.4,"*","out","/ev","\n","ev",10.5,2.5,"/","out","/ev","\n","ev",11.5,2.5,"%","out","/ev","\n","ev",1.3,1.3,"==","/ev",[{"->":".^.b","c":true},{"b":["^float truthy equal",{"->":".^.^.^.257"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.257"},null]}],"nop","\n","ev",1.3,2.3,"==","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.266"},null]}],[{"->":".^.b"},{"b":["^float falsy equal",{"->":".^.^.^.266"},null]}],"nop","\n","ev",2.3,1.3,">","/ev",[{"->":".^.b","c":true},{"b":["^float truthy greater",{"->":".^.^.^.275"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.275"},null]}],"nop","\n","ev",1.3,2.3,">","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.284"},null]}],[{"->":".^.b"},{"b":["^float falsy greater",{"->":".^.^.^.284"},null]}],"nop","\n","ev",1.3,2.3,"<","/ev",[{"->":".^.b","c":true},{"b":["^float truthy lesser",{"->":".^.^.^.293"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.293"},null]}],"nop","\n","ev",2.3,1.3,"<","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.302"},null]}],[{"->":".^.b"},{"b":["^float falsy lesser",{"->":".^.^.^.302"},null]}],"nop","\n","ev",2.3,1.3,">=","/ev",[{"->":".^.b","c":true},{"b":["^float truthy greater or equal",{"->":".^.^.^.311"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.311"},null]}],"nop","\n","ev",1.3,2.3,">=","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.320"},null]}],[{"->":".^.b"},{"b":["^float falsy greater or equal",{"->":".^.^.^.320"},null]}],"nop","\n","ev",1.3,2.3,"<=","/ev",[{"->":".^.b","c":true},{"b":["^float truthy lesser or equal",{"->":".^.^.^.329"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.329"},null]}],"nop","\n","ev",2.3,1.3,"<=","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.338"},null]}],[{"->":".^.b"},{"b":["^float falsy lesser or equal",{"->":".^.^.^.338"},null]}],"nop","\n","ev",2.3,1.3,"!=","/ev",[{"->":".^.b","c":true},{"b":["^float truthy not equal",{"->":".^.^.^.347"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.347"},null]}],"nop","\n","ev",1.3,1.3,"!=","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.356"},null]}],[{"->":".^.b"},{"b":["^float falsy not equal",{"->":".^.^.^.356"},null]}],"nop","\n","ev",1.2,"/ev",{"temp=":"onepointtwo"},["ev",{"VAR?":"onepointtwo"},"!","/ev",{"->":".^.b","c":true},{"b":["\n","^broken","\n",{"->":".^.^.^.364"},null]}],[{"->":".^.b"},{"b":["\n","^float falsy not","\n",{"->":".^.^.^.364"},null]}],"nop","\n","ev",1.3,1.3,"&&","/ev",[{"->":".^.b","c":true},{"b":["^float truthy and",{"->":".^.^.^.373"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.373"},null]}],"nop","\n","ev",1.3,0,"&&","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.382"},null]}],[{"->":".^.b"},{"b":["^float falsy and",{"->":".^.^.^.382"},null]}],"nop","\n","ev",1.3,0,"||","/ev",[{"->":".^.b","c":true},{"b":["^float truthy or",{"->":".^.^.^.391"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.391"},null]}],"nop","\n","ev",0,0,"||","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.400"},null]}],[{"->":".^.b"},{"b":["^float falsy or",{"->":".^.^.^.400"},null]}],"nop","\n","ev","str","^hello","/str","str","^hello","/str","==","/ev",[{"->":".^.b","c":true},{"b":["^truthy string equal",{"->":".^.^.^.413"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.413"},null]}],"nop","\n","ev","str","^hello","/str","str","^world","/str","==","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.426"},null]}],[{"->":".^.b"},{"b":["^falsy string equal",{"->":".^.^.^.426"},null]}],"nop","\n","ev","str","^hello","/str","str","^world","/str","!=","/ev",[{"->":".^.b","c":true},{"b":["^truthy string not equal",{"->":".^.^.^.439"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.439"},null]}],"nop","\n","ev","str","^hello","/str","str","^hello","/str","!=","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.452"},null]}],[{"->":".^.b"},{"b":["^falsy string not equal",{"->":".^.^.^.452"},null]}],"nop","\n","ev",{"^->":"logic.ifelse"},{"^->":"logic.ifelse"},"==","/ev",[{"->":".^.b","c":true},{"b":["^truthy divert equal",{"->":".^.^.^.461"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.461"},null]}],"nop","\n","ev",{"^->":"logic.ifelse"},{"^->":"logic.stitch_param"},"==","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.470"},null]}],[{"->":".^.b"},{"b":["^falsy divert equal",{"->":".^.^.^.470"},null]}],"nop","\n","done",{"#f":1}],"ifelse":[["ev",{"VAR?":"intvar"},521,"==","/ev",{"->":".^.b","c":true},{"b":["\n","^if text","\n",{"->":".^.^.^.2"},null]}],[{"->":".^.b"},{"b":["\n","^else text","\n",{"->":".^.^.^.2"},null]}],"nop","\n",["ev",{"VAR?":"intvar"},521,"<","/ev",{"->":".^.b","c":true},{"b":["\n","^if text","\n",{"->":".^.^.^.6"},null]}],[{"->":".^.b"},{"b":["\n","^else text","\n",{"->":".^.^.^.6"},null]}],"nop","\n",["ev",{"VAR?":"intvar"},521,"<","/ev",{"->":".^.b","c":true},{"b":["\n","^if text","\n",{"->":".^.^.^.11"},null]}],["ev",{"VAR?":"intvar"},1,">","/ev",{"->":".^.b","c":true},{"b":["\n","^elseif text","\n",{"->":".^.^.^.11"},null]}],[{"->":".^.b"},{"b":["\n","^else text","\n",{"->":".^.^.^.11"},null]}],"nop","\n","done",{"#f":3}],"stitch_param":["ev","str","^param","/str","/ev",{"->":".^.^.stitch_with_param"},"done",{"#f":3}],"stitch_with_param":[{"temp=":"what"},"^Called with ","ev",{"VAR?":"what"},"out","/ev","\n","done",{"#f":1}],"constants":["^constants defined: ","ev","str","^Emilia","/str","out","/ev","^ ","ev",521,"out","/ev","^ ","ev",52.1,"out","/ev","\n","done",{"#f":1}],"simple_functions":["ev",{"f()":"fn_with_return"},"out","/ev","\n","ev",{"f()":"fn_print"},"out","/ev","\n","ev",{"f()":"fn_calls_other"},"out","/ev","\n","^Function called inline and ","ev",{"f()":"fn_with_return"},"out","/ev","^ something","\n","done",{"#f":1}],"param_functions":["ev",{"VAR?":"fnParamA"},{"VAR?":"fnParamB"},{"f()":"fn_params"},"out","/ev","\n","ev",{"^var":"fnParamA","ci":-1},{"^var":"fnParamB","ci":-1},{"f()":"fn_params_ref"},"out","/ev","\n","done",{"#f":1}],"void_function":["ev",{"f()":"fn_without_return"},"out","/ev","\n","done",{"#f":1}],"random":["ev",25,"srnd","pop","/ev","\n","ev",0,100,"rnd","out","/ev","\n","ev",-50,50,"rnd","out","/ev","\n","done",{"#f":1}],"#f":1}],"fn_with_return":["ev","str","^returned","/str","/ev","~ret",{"#f":1}],"fn_without_return":["ev",1,"/ev",{"temp=":"a"},{"#f":1}],"fn_print":["^function called","\n",{"#f":1}],"fn_params":[{"temp=":"b"},{"temp=":"a"},"ev","str","^was a","/str","/ev",{"temp=":"a","re":true},"ev","str","^was b","/str","/ev",{"temp=":"b","re":true},"ev",{"VAR?":"a"},"/ev","~ret",{"#f":1}],"fn_params_ref":[{"temp=":"b"},{"temp=":"a"},"ev","str","^was a","/str","/ev",{"temp=":"a","re":true},"ev","str","^was b","/str","/ev",{"temp=":"b","re":true},"ev",{"VAR?":"a"},"/ev","~ret",{"#f":1}],"fn_calls_other":["ev",{"f()":"fn_called"},"/ev","~ret","\n",{"#f":1}],"fn_called":["ev","str","^nested function called","/str","/ev","~ret",{"#f":1}],"fn_echo":[{"temp=":"a"},"ev",{"VAR?":"a"},"out","/ev","\n","ev",{"VAR?":"a"},"/ev","~ret",{"#f":1}],"integration":[{"->":".^.variable_observer"},{"variable_observer":["^declared","\n","ev",3,"/ev",{"VAR=":"observedVar1","re":true},"^mutated 1","\n","ev",4,"/ev",{"VAR=":"observedVar1","re":true},"ev",5,"/ev",{"VAR=":"observedVar2","re":true},"^mutated 2","\n","done",{"#f":1}],"variable_print":["ev",{"VAR?":"stringvar"},"out","/ev","\n","done",{"#f":1}],"visit_count":["^visited","\n","done",{"#f":1}],"external":["ev",1,2,3,{"x()":"fn_ext","exArgs":3},"out","/ev","\n","ev",1.1,2.2,3.3,{"x()":"fn_ext","exArgs":3},"out","/ev","\n","ev","str","^a","/str","str","^b","/str","str","^c","/str",{"x()":"fn_ext","exArgs":3},"out","/ev","\n","ev","str","^a","/str",1,2.2,{"x()":"fn_ext","exArgs":3},"out","/ev","\n","done",{"#f":1}],"#f":1}],"topExternal":[{"temp=":"x"},"^In top external","\n","ev",{"VAR?":"x"},{"x()":"gameInc","exArgs":1},"/ev","~ret","\n",{"#f":1}],"inkInc":[{"temp=":"x"},"ev",{"VAR?":"x"},1,"+","/ev","~ret",{"#f":1}],"game_queries":[{"->":".^.choicecount"},{"choicecount":[[["ev",{"^->":"game_queries.choicecount.0.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-0","flg":18},{"s":["^count ","ev","choiceCnt","out","/ev",{"->":"$r","var":true},null]}],{"c-0":["ev",{"^->":"game_queries.choicecount.0.c-0.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"g-0":[["ev",{"^->":"game_queries.choicecount.0.g-0.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-1","flg":18},{"s":["^1 choice",{"->":"$r","var":true},null]}],["ev",{"^->":"game_queries.choicecount.0.g-0.1.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-2","flg":18},{"s":["^count ","ev","choiceCnt","out","/ev",{"->":"$r","var":true},null]}],{"c-1":["ev",{"^->":"game_queries.choicecount.0.g-0.c-1.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.^.g-1"},{"#f":5}],"c-2":["ev",{"^->":"game_queries.choicecount.0.g-0.c-2.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.1.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.^.g-1"},{"#f":5}],"#f":5}],"g-1":[["ev",{"^->":"game_queries.choicecount.0.g-1.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-3","flg":18},{"s":["^1 choice",{"->":"$r","var":true},null]}],["ev",{"^->":"game_queries.choicecount.0.g-1.1.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-4","flg":18},{"s":["^2 choices",{"->":"$r","var":true},null]}],["ev",{"^->":"game_queries.choicecount.0.g-1.2.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-5","flg":18},{"s":["^count ","ev","choiceCnt","out","/ev",{"->":"$r","var":true},null]}],{"c-3":["ev",{"^->":"game_queries.choicecount.0.g-1.c-3.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.^.g-2"},{"#f":5}],"c-4":["ev",{"^->":"game_queries.choicecount.0.g-1.c-4.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.1.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.^.g-2"},{"#f":5}],"c-5":["ev",{"^->":"game_queries.choicecount.0.g-1.c-5.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.2.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.^.g-2"},{"#f":5}],"#f":5}],"g-2":[["ev",{"^->":"game_queries.choicecount.0.g-2.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-6","flg":18},{"s":["^1 choice",{"->":"$r","var":true},null]}],["ev",{"^->":"game_queries.choicecount.0.g-2.1.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-7","flg":18},{"s":["^count ","ev","choiceCnt","out","/ev",{"->":"$r","var":true},null]}],["ev",{"^->":"game_queries.choicecount.0.g-2.2.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-8","flg":18},{"s":["^2 choices",{"->":"$r","var":true},null]}],["ev",{"^->":"game_queries.choicecount.0.g-2.3.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-9","flg":18},{"s":["^count ","ev","choiceCnt","out","/ev",{"->":"$r","var":true},null]}],{"c-6":["ev",{"^->":"game_queries.choicecount.0.g-2.c-6.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.^.g-3"},{"#f":5}],"c-7":["ev",{"^->":"game_queries.choicecount.0.g-2.c-7.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.1.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.^.g-3"},{"#f":5}],"c-8":["ev",{"^->":"game_queries.choicecount.0.g-2.c-8.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.2.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.^.g-3"},{"#f":5}],"c-9":["ev",{"^->":"game_queries.choicecount.0.g-2.c-9.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.3.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.^.g-3"},{"#f":5}],"#f":5}],"g-3":["done",{"#f":5}]}],{"#f":1}],"turnssince_before":["ev",{"^->":"game_queries.turnssince"},"turns","out","/ev","\n",{"->":".^.^.turnssince"},{"#f":1}],"turnssince":[["ev",{"^->":"game_queries.turnssince"},"turns","out","/ev","\n","ev","str","^advance","/str","/ev",{"*":".^.c-0","flg":20},{"c-0":["^ ",{"->":".^.^.^.^.turnssince_1"},"\n",{"#f":5}]}],{"#f":3}],"turnssince_1":[["ev",{"^->":"game_queries.turnssince"},"turns","out","/ev","\n","ev","str","^advance","/str","/ev",{"*":".^.c-0","flg":20},{"c-0":["^ ",{"->":".^.^.^.^.turnssince_2"},"\n",{"#f":5}]}],{"#f":1}],"turnssince_2":["ev",{"^->":"game_queries.turnssince"},"turns","out","/ev","\n","done",{"#f":1}],"#f":1}],"saveload":["^a bit of content","\n","^the next bit","\n","done",{"choicepoint":[[["ev",{"^->":"saveload.choicepoint.0.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-0","flg":18},{"s":["^choice 1 ","#","^a tag","/#",{"->":"$r","var":true},null]}],["ev",{"^->":"saveload.choicepoint.0.1.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-1","flg":18},{"s":["^choice 2",{"->":"$r","var":true},null]}],{"c-0":["ev",{"^->":"saveload.choicepoint.0.c-0.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"c-1":["ev",{"^->":"saveload.choicepoint.0.c-1.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.1.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"g-0":["done",{"#f":5}]}],{"#f":1}],"#f":1}],"flow_control":[{"->":".^.tunnel"},{"tunnel":["^tunnel end","\n","ev","void","/ev","->->",{"#f":1}],"tunnel_call":[{"->t->":".^.^.tunnel"},"done",{"#f":1}],"thread":["^thread start","\n","thread",{"->":".^.^.threaded_text"},"thread",{"->":".^.^.threaded_choice_1"},"thread",{"->":".^.^.threaded_choice_2"},"^thread end","\n","done",{"#f":1}],"threaded_text":["^threaded text","\n","done",{"#f":1}],"threaded_choice_1":[[["ev",{"^->":"flow_control.threaded_choice_1.0.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-0","flg":18},{"s":["^first threaded choice",{"->":"$r","var":true},null]}],{"c-0":["ev",{"^->":"flow_control.threaded_choice_1.0.c-0.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n","done",{"#f":5}]}],{"#f":1}],"threaded_choice_2":[[["ev",{"^->":"flow_control.threaded_choice_2.0.0.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-0","flg":18},{"s":["^second threaded choice",{"->":"$r","var":true},null]}],{"c-0":["ev",{"^->":"flow_control.threaded_choice_2.0.c-0.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.0.s"},[{"#n":"$r2"}],"\n","done",{"#f":5}]}],{"#f":1}],"#f":1}],"lists":[{"->":".^.basic_list"},{"basic_list":["ev",{"VAR?":"kettleState"},"out","/ev","\n","ev",{"VAR?":"boiling"},"/ev",{"VAR=":"kettleState","re":true},"ev",{"VAR?":"kettleState"},"out","/ev","\n","done",{"#f":1}],"increment":["ev",{"VAR?":"cold"},"/ev",{"VAR=":"kettleState","re":true},"ev",{"VAR?":"kettleState"},"out","/ev","\n","ev",{"VAR?":"kettleState"},1,"+",{"VAR=":"kettleState","re":true},"/ev","ev",{"VAR?":"kettleState"},"out","/ev","\n","ev",{"VAR?":"kettleState"},1,"+",{"VAR=":"kettleState","re":true},"/ev","ev",{"VAR?":"kettleState"},"out","/ev","\n","ev",{"VAR?":"kettleState"},1,"-",{"VAR=":"kettleState","re":true},"/ev","ev",{"VAR?":"kettleState"},"out","/ev","\n","ev",{"VAR?":"kettleState"},1,"-",{"VAR=":"kettleState","re":true},"/ev","ev",{"VAR?":"kettleState"},"out","/ev","\n","done",{"#f":1}],"list_value":["ev",{"VAR?":"cold"},"/ev",{"VAR=":"kettleState","re":true},"ev",{"VAR?":"kettleState"},"LIST_VALUE","out","/ev","\n","ev",{"VAR?":"kettleState"},1,"+",{"VAR=":"kettleState","re":true},"/ev","ev",{"VAR?":"kettleState"},"LIST_VALUE","out","/ev","\n","ev",{"VAR?":"kettleState"},1,"+",{"VAR=":"kettleState","re":true},"/ev","ev",{"VAR?":"kettleState"},"LIST_VALUE","out","/ev","\n","done",{"#f":1}],"value_from_number":["ev","^kettleState",1,"listInt","/ev",{"VAR=":"kettleStateVar","re":true},"\n","ev",{"VAR?":"kettleStateVar"},"out","/ev","\n","ev","^kettleState",2,"listInt","/ev",{"VAR=":"kettleStateVar","re":true},"\n","ev",{"VAR?":"kettleStateVar"},"out","/ev","\n","ev","^kettleState",3,"listInt","/ev",{"VAR=":"kettleStateVar","re":true},"\n","ev",{"VAR?":"kettleStateVar"},"out","/ev","\n","done",{"#f":1}],"defined_value":["ev",{"VAR?":"primeNumbers"},"LIST_VALUE","out","/ev","\n","ev",{"VAR?":"primeNumbers"},1,"+",{"VAR=":"primeNumbers","re":true},"/ev","ev",{"VAR?":"primeNumbers"},"LIST_VALUE","out","/ev","\n","ev",{"VAR?":"primeNumbers"},1,"+",{"VAR=":"primeNumbers","re":true},"/ev","ev",{"VAR?":"primeNumbers"},"LIST_VALUE","out","/ev","\n","done",{"#f":1}],"multivalue":["ev",{"VAR?":"DoctorsInSurgery"},"out","/ev","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Eamonn":5,"DoctorsInSurgery.Denver":4}},"+",{"VAR=":"DoctorsInSurgery","re":true},"/ev","ev",{"VAR?":"DoctorsInSurgery"},"out","/ev","\n","ev",{"VAR?":"DoctorsInSurgery"},{"VAR?":"Eamonn"},"-",{"VAR=":"DoctorsInSurgery","re":true},"/ev","ev",{"VAR?":"DoctorsInSurgery"},"out","/ev","\n","ev",{"list":{}},"/ev",{"VAR=":"DoctorsInSurgery","re":true},"ev",{"VAR?":"DoctorsInSurgery"},"out","/ev","\n","ev",{"VAR?":"DoctorsInSurgery"},{"VAR?":"Eamonn"},"-",{"VAR=":"DoctorsInSurgery","re":true},"/ev","ev",{"VAR?":"DoctorsInSurgery"},{"VAR?":"Eamonn"},"-",{"VAR=":"DoctorsInSurgery","re":true},"/ev","ev",{"VAR?":"DoctorsInSurgery"},"out","/ev","\n","ev",{"VAR?":"DoctorsInSurgery"},{"VAR?":"Eamonn"},"+",{"VAR=":"DoctorsInSurgery","re":true},"/ev","ev",{"VAR?":"DoctorsInSurgery"},{"VAR?":"Eamonn"},"+",{"VAR=":"DoctorsInSurgery","re":true},"/ev","ev",{"VAR?":"DoctorsInSurgery"},"out","/ev","\n","done",{"#f":1}],"listqueries":["ev",{"list":{}},"/ev",{"VAR=":"DoctorsInSurgery","re":true},"ev",{"VAR?":"DoctorsInSurgery"},"/ev",[{"->":".^.b","c":true},{"b":["^list is not empty ",{"->":".^.^.^.9"},null]}],[{"->":".^.b"},{"b":["^list is empty",{"->":".^.^.^.9"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Eamonn":5,"DoctorsInSurgery.Denver":4}},"+",{"VAR=":"DoctorsInSurgery","re":true},"/ev","ev",{"VAR?":"DoctorsInSurgery"},"LIST_COUNT","out","/ev","\n","ev",{"VAR?":"DoctorsInSurgery"},"LIST_MIN","out","/ev","\n","ev",{"VAR?":"DoctorsInSurgery"},"LIST_MAX","out","/ev","\n","ev",{"VAR?":"DoctorsInSurgery"},"/ev",[{"->":".^.b","c":true},{"b":["^list is not empty",{"->":".^.^.^.40"},null]}],[{"->":".^.b"},{"b":["^list is empty",{"->":".^.^.^.40"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Eamonn":5,"DoctorsInSurgery.Denver":4}},"==","/ev",[{"->":".^.b","c":true},{"b":["^exact equality",{"->":".^.^.^.48"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Eamonn":5}},"==","/ev",[{"->":".^.b","c":true},{"b":["^exact equality broken",{"->":".^.^.^.57"},null]}],[{"->":".^.b"},{"b":["^falsy exact equality",{"->":".^.^.^.57"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Eamonn":5}},"!=","/ev",[{"->":".^.b","c":true},{"b":["^exact inequality",{"->":".^.^.^.65"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Eamonn":5,"DoctorsInSurgery.Denver":4}},"!=","/ev",[{"->":".^.b","c":true},{"b":["^exact inequality broken",{"->":".^.^.^.74"},null]}],[{"->":".^.b"},{"b":["^exact inequality works",{"->":".^.^.^.74"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"VAR?":"Eamonn"},"?","/ev",[{"->":".^.b","c":true},{"b":["^has Eamonn",{"->":".^.^.^.82"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"VAR?":"Cartwright"},"?","/ev",[{"->":".^.b","c":true},{"b":["^has is broke ",{"->":".^.^.^.91"},null]}],[{"->":".^.b"},{"b":["^has falsy works",{"->":".^.^.^.91"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Eamonn":5,"DoctorsInSurgery.Cartwright":3}},"!?","/ev",[{"->":".^.b","c":true},{"b":["^has not",{"->":".^.^.^.99"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Eamonn":5,"DoctorsInSurgery.Denver":4}},"!?","/ev",[{"->":".^.b","c":true},{"b":["^has not broken",{"->":".^.^.^.108"},null]}],[{"->":".^.b"},{"b":["^falsy has not",{"->":".^.^.^.108"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},"LIST_ALL","out","/ev","\n","ev",{"list":{}},"/ev",{"VAR=":"DoctorsInSurgery","re":true},"ev",{"VAR?":"DoctorsInSurgery"},"LIST_MAX","out","/ev","\n","ev",{"VAR?":"DoctorsInSurgery"},"LIST_MIN","out","/ev","\n","ev",{"list":{"DoctorsInSurgery.Cartwright":3}},"/ev",{"VAR=":"DoctorsInSurgery","re":true},"ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Adams":1}},">","/ev",[{"->":".^.b","c":true},{"b":["^truthy greater than",{"->":".^.^.^.142"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Eamonn":5}},">","/ev",[{"->":".^.b","c":true},{"b":["^broken greater than",{"->":".^.^.^.151"},null]}],[{"->":".^.b"},{"b":["^falsy greater than",{"->":".^.^.^.151"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{}},">","/ev",[{"->":".^.b","c":true},{"b":["^greater than empty",{"->":".^.^.^.159"},null]}],"nop","\n","ev",{"list":{}},{"VAR?":"DoctorsInSurgery"},">","/ev",[{"->":".^.b","c":true},{"b":["^broken empty greater than",{"->":".^.^.^.168"},null]}],[{"->":".^.b"},{"b":["^empty greater than",{"->":".^.^.^.168"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Eamonn":5}},"<","/ev",[{"->":".^.b","c":true},{"b":["^truthy smaller than",{"->":".^.^.^.176"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Adams":1}},"<","/ev",[{"->":".^.b","c":true},{"b":["^broken smaller than",{"->":".^.^.^.185"},null]}],[{"->":".^.b"},{"b":["^falsy smaller than",{"->":".^.^.^.185"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{}},"<","/ev",[{"->":".^.b","c":true},{"b":["^broken smaller than empty",{"->":".^.^.^.194"},null]}],[{"->":".^.b"},{"b":["^smaller than empty",{"->":".^.^.^.194"},null]}],"nop","\n","ev",{"list":{}},{"VAR?":"DoctorsInSurgery"},"<","/ev",[{"->":".^.b","c":true},{"b":["^empty smaller than",{"->":".^.^.^.203"},null]}],[{"->":".^.b"},{"b":["^broken empty smaller than",{"->":".^.^.^.203"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Adams":1}},">=","/ev",[{"->":".^.b","c":true},{"b":["^truthy greater than or equal",{"->":".^.^.^.211"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Cartwright":3}},">=","/ev",[{"->":".^.b","c":true},{"b":["^truthy greater than or equal",{"->":".^.^.^.219"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Eamonn":5}},">=","/ev",[{"->":".^.b","c":true},{"b":["^broken greater than or equal",{"->":".^.^.^.228"},null]}],[{"->":".^.b"},{"b":["^falsy greater than or equal",{"->":".^.^.^.228"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{}},">=","/ev",[{"->":".^.b","c":true},{"b":["^greater than or equals empty",{"->":".^.^.^.236"},null]}],"nop","\n","ev",{"list":{}},{"VAR?":"DoctorsInSurgery"},">=","/ev",[{"->":".^.b","c":true},{"b":["^broken empty greater than or equals",{"->":".^.^.^.245"},null]}],[{"->":".^.b"},{"b":["^empty greater than or equals",{"->":".^.^.^.245"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Eamonn":5}},"<=","/ev",[{"->":".^.b","c":true},{"b":["^truthy smaller than or equal",{"->":".^.^.^.253"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Cartwright":3}},"<=","/ev",[{"->":".^.b","c":true},{"b":["^truthy smaller than or equal",{"->":".^.^.^.261"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{"DoctorsInSurgery.Adams":1}},"<=","/ev",[{"->":".^.b","c":true},{"b":["^broken smaller than or equal",{"->":".^.^.^.270"},null]}],[{"->":".^.b"},{"b":["^falsy smaller than or equal",{"->":".^.^.^.270"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},{"list":{}},"<=","/ev",[{"->":".^.b","c":true},{"b":["^broken smaller than or equals empty",{"->":".^.^.^.279"},null]}],[{"->":".^.b"},{"b":["^smaller than or equals empty",{"->":".^.^.^.279"},null]}],"nop","\n","ev",{"list":{}},{"VAR?":"DoctorsInSurgery"},"<=","/ev",[{"->":".^.b","c":true},{"b":["^empty smaller than or equals",{"->":".^.^.^.288"},null]}],[{"->":".^.b"},{"b":["^broken empty smaller than or equals",{"->":".^.^.^.288"},null]}],"nop","\n","ev",{"list":{"DoctorsInSurgery.Eamonn":5,"DoctorsInSurgery.Cartwright":3}},{"list":{"DoctorsInSurgery.Eamonn":5,"DoctorsInSurgery.Cartwright":3}},"&&","/ev",[{"->":".^.b","c":true},{"b":["^truthy list AND",{"->":".^.^.^.297"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.297"},null]}],"nop","\n","ev",{"list":{"DoctorsInSurgery.Eamonn":5,"DoctorsInSurgery.Cartwright":3}},{"list":{}},"&&","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.306"},null]}],[{"->":".^.b"},{"b":["^falsy list AND",{"->":".^.^.^.306"},null]}],"nop","\n","ev",{"list":{"DoctorsInSurgery.Eamonn":5,"DoctorsInSurgery.Cartwright":3}},{"list":{"DoctorsInSurgery.Eamonn":5,"DoctorsInSurgery.Cartwright":3}},"||","/ev",[{"->":".^.b","c":true},{"b":["^truthy list OR",{"->":".^.^.^.315"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.315"},null]}],"nop","\n","ev",{"list":{}},{"list":{}},"||","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.324"},null]}],[{"->":".^.b"},{"b":["^falsy list OR",{"->":".^.^.^.324"},null]}],"nop","\n","ev",{"list":{}},"!","/ev",[{"->":".^.b","c":true},{"b":["^truthy list not",{"->":".^.^.^.332"},null]}],[{"->":".^.b"},{"b":["^broken",{"->":".^.^.^.332"},null]}],"nop","\n","ev",{"list":{"DoctorsInSurgery.Eamonn":5}},"!","/ev",[{"->":".^.b","c":true},{"b":["^broken",{"->":".^.^.^.340"},null]}],[{"->":".^.b"},{"b":["^falsy list not",{"->":".^.^.^.340"},null]}],"nop","\n","ev",{"VAR?":"DoctorsInSurgery"},"LIST_ALL",{"VAR?":"Bernard"},{"VAR?":"Denver"},"range","out","/ev","\n","ev",{"VAR?":"GuardsOnDuty"},"out","/ev","\n","ev",{"VAR?":"GuardsOnDuty"},"LIST_INVERT","/ev",{"VAR=":"GuardsOnDuty","re":true},"\n","ev",{"VAR?":"GuardsOnDuty"},"out","/ev","\n","ev",{"VAR?":"desiredValues"},{"VAR?":"actualValues"},"L^","out","/ev","\n","done",{"#f":1}],"#f":1}],"global decl":["ev","str","^Emilia","/str",{"VAR=":"stringvar"},521,{"VAR=":"intvar"},52.1,{"VAR=":"floatvar"},{"^->":"logic.logic_divert_dest"},{"VAR=":"divertvar"},"str","^a","/str",{"VAR=":"fnParamA"},"str","^b","/str",{"VAR=":"fnParamB"},1,{"VAR=":"observedVar1"},2,{"VAR=":"observedVar2"},{"list":{"kettleState.cold":1}},{"VAR=":"kettleState"},{"VAR?":"cold"},{"VAR=":"kettleStateVar"},{"list":{"primeNumbers.two":2}},{"VAR=":"primeNumbers"},{"list":{},"origins":["DoctorsInSurgery"]},{"VAR=":"DoctorsInSurgery"},{"list":{"GuardsOnDuty.Smith":1,"GuardsOnDuty.Jones":2}},{"VAR=":"GuardsOnDuty"},{"list":{},"origins":["CoreValues"]},{"VAR=":"CoreValues"},{"list":{"CoreValues.strength":1,"CoreValues.courage":2,"CoreValues.compassion":3,"CoreValues.self_belief":6}},{"VAR=":"desiredValues"},{"list":{"CoreValues.greed":4,"CoreValues.nepotism":5,"CoreValues.self_belief":6,"CoreValues.delusions_of_godhood":7}},{"VAR=":"actualValues"},"/ev","end",null],"#f":1}],"listDefs":{"kettleState":{"cold":1,"boiling":2,"evaporated":3},"primeNumbers":{"two":2,"three":3,"five":5},"DoctorsInSurgery":{"Adams":1,"Bernard":2,"Cartwright":3,"Denver":4,"Eamonn":5},"GuardsOnDuty":{"Smith":1,"Jones":2,"Carter":3,"Braithwaite":4},"CoreValues":{"strength":1,"courage":2,"compassion":3,"greed":4,"nepotism":5,"self_belief":6,"delusions_of_godhood":7}}} \ No newline at end of file diff --git a/src/tests/inkfiles/original/inkjs/tests.ink b/src/tests/inkfiles/original/inkjs/tests.ink index 3e33d732..f4ac75db 100644 --- a/src/tests/inkfiles/original/inkjs/tests.ink +++ b/src/tests/inkfiles/original/inkjs/tests.ink @@ -489,7 +489,7 @@ a bit of content the next bit -> DONE = choicepoint -* choice 1 +* choice 1 # a tag * choice 2 - -> DONE diff --git a/src/tests/specs/inkjs/engine/Integration.spec.ts b/src/tests/specs/inkjs/engine/Integration.spec.ts index 89ba029d..2436d034 100644 --- a/src/tests/specs/inkjs/engine/Integration.spec.ts +++ b/src/tests/specs/inkjs/engine/Integration.spec.ts @@ -275,6 +275,22 @@ describe("Integration", () => { expect(context.story.currentChoices[0].text).toEqual("choice 1"); expect(context.story.currentChoices[1].text).toEqual("choice 2"); }); + + it("should restore choice tags", () => { + context.story.ChoosePathString("saveload.choicepoint"); + context.story.Continue(); + expect(context.story.currentChoices.length).toEqual(2); + expect(context.story.currentChoices[0].tags.length).toEqual(1); + expect(context.story.currentChoices[0].tags[0]).toEqual("a tag"); + console.log(context.story.currentChoices[0].tags); + + const save = context.story.state.ToJson(); + context.story.state.LoadJson(save); + + expect(context.story.currentChoices.length).toEqual(2); + expect(context.story.currentChoices[0].tags.length).toEqual(1); + expect(context.story.currentChoices[0].tags[0]).toEqual("a tag"); + }); }); describe("debug tools", () => {