Multi-Location Quest Injection

This commit is contained in:
Reinier Vens 2021-05-16 05:24:51 +01:00
commit b0673c82fc
23 changed files with 279 additions and 105 deletions

View file

@ -0,0 +1,31 @@
#constraint: DistanceFrom start = 0 // Place this location in the starting zone
#type: Station // Determines the type of entity for this location (Station/Asteroid/Planet)
#security: Open // Security level (Open/Secure/Critical)
#faction: Miss Terri // Locations should be tagged with the faction they belong to
#name: Test Location 1 // Will set the name of the entity as it appears in game
#nameZone: Start Zone // Will name the zone that this location is placed within - locations with named zones are excluded from being placed together
#turrets: 1 // Will place defensive turrets around the station
-> start
==start==
This is the start of the location story.
+ [Go to location A1] -> A1
* This will end the story.
- They lived happily ever after.
-> END
==A1==
This content is in location A1.
This is the second line of content in A1.
+ [Return to start] -> start
+ [Go to location A2] -> A2
==A2==
This content is in location A2.
+ [Return to start] -> start
* End the story ->END

View file

@ -0,0 +1 @@
{"inkVersion":20,"root":[[{"#":"constraint: DistanceFrom start = 0"},{"#":"type: Station"},{"#":"security: Open"},{"#":"faction: Miss Terri"},{"#":"name: Test Location 1"},{"#":"nameZone: Start Zone"},{"->":"start"},["done",{"#f":5,"#n":"g-0"}],null],"done",{"start":[["^This is the start of the location story.","\n","ev","str","^Go to location A1","/str","/ev",{"*":".^.c-0","flg":4},["ev",{"^->":"start.0.8.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":".^.^.c-1","flg":18},{"s":["^This will end the story.",{"->":"$r","var":true},null]}],{"c-0":["^ ",{"->":"A1"},"\n",{"->":".^.^.g-0"},{"#f":5}],"c-1":["ev",{"^->":"start.0.c-1.$r2"},"/ev",{"temp=":"$r"},{"->":".^.^.8.s"},[{"#n":"$r2"}],"\n",{"->":".^.^.g-0"},{"#f":5}],"g-0":["^They lived happily ever after.","\n","end",{"#f":5}]}],{"#f":1}],"A1":[["^This content is in location A1","\n","ev","str","^Return to start","/str","/ev",{"*":".^.c-0","flg":4},["ev",{"^->":"A1.0.8.$r1"},{"temp=":"$r"},"str",{"->":".^.s"},[{"#n":"$r1"}],"/str","/ev",{"*":"A1.0.c-1","flg":2},{"s":["^Choice in location A1 ",{"->":"$r","var":true},null]}],{"c-0":["^ ",{"->":"start"},"\n",{"#f":5}],"c-1":["ev",{"^->":"A1.0.c-1.$r2"},"/ev",{"temp=":"$r"},{"->":"A1.0.8.s"},[{"#n":"$r2"}],"end","\n",{"#f":5}]}],{"#f":1}],"#f":1}],"listDefs":{}}

View file

@ -0,0 +1,12 @@
==A1==
#location: TestA // Inject this knot into matching knot in location story
#required // This quest is only playable when the target location exists
+ [This choice is being injected from TestQuest] -> A1A
==A1A==
This is a thread being injected by TestQuest
* [Proceed] -> A1B
==A1B==
This is a child knot in an injected thread
* [Exit the injected thread] -> END

View file

@ -0,0 +1 @@
{"inkVersion":20,"root":[[["done",{"#f":5,"#n":"g-0"}],null],"done",{"A1":[[{"#":"location: TestA"},{"#":"required"},"ev","str","^This choice is being injected from TestQuest","/str","/ev",{"*":".^.c-0","flg":4},{"c-0":["^ ",{"->":"A1A"},"\n",{"#f":5}]}],{"#f":1}],"A1A":[["^This is a branch thread being injected by TestQuest","\n","ev","str","^Exit the injected thread","/str","/ev",{"*":".^.c-0","flg":20},{"c-0":["^ ","end","\n",{"#f":5}]}],{"#f":1}],"#f":1}],"listDefs":{}}