Files
GDevelop/newIDE/app/resources/examples/dialogue-tree-with-yarn/dialogueData/npcs.json
Todor Imreorov 394eb9488c Fix various DialogueTree ("Yarn") bugs (#1671)
* Fix command at the start of a node merges its text with the node that linked to it
* Fix Yarn skipping text results when commands are used in some cases
* Fix setting/getting variables
* Fix text failing to load when first node is of type text
* Add internal debug mode logging to Yarn
* Fix isdialoguelinetype command never true
* Fix new lines in text not properly detected
* Increase strictness on scrolling so it never overflows
* Fix command call detection for non scrolling text
* Fix: add back autoscroll commands, but make it safer and move it to the scroll function
* Use explicit variable types when setting bondagejs state
* Fix command not getting called sometimes 
* Fix text not terminating sometimes
2020-05-08 12:14:14 +02:00

222 lines
4.9 KiB
JSON

[
{
"title": "ant",
"tags": "",
"body": "<<avatar ant>>[b]Please don't bug me now[/b]... <<wait 1000>> I am [i]quite[/i] busy at the moment.\nHave you seen my crumb?\n[[ yes |antcrumbyes ]] [[ no |antcrumbno ]] ",
"position": {
"x": 7566,
"y": 10185
},
"colorID": 0
},
{
"title": "antcrumbno",
"tags": "",
"body": "Then [b]scram[/b]!\nI don't have time for you...",
"position": {
"x": 7370,
"y": 10460
},
"colorID": 0
},
{
"title": "antcrumbyes",
"tags": "",
"body": "<<if $seenCrumb == true>>\nOh yeah? You saw it on a branch?\nDid you taste it?...\n<<else>>\nOh ha-ha! I can see that you are lying.\n<<endif>>",
"position": {
"x": 7671,
"y": 10487
},
"colorID": 3
},
{
"title": "crumb",
"tags": "",
"body": "<<avatar crumb>> <<set $seenCrumb to true >> You stumbled on a giant crumb.\nWhat would you like to do with it?\n[[ taste it | eatCrumb]] [[ take it| takeCrumb]] [[ nothing |null ]] ",
"position": {
"x": 7400,
"y": 10721
},
"colorID": 6
},
{
"title": "debug",
"tags": "",
"body": "0I am another weird node problem to test||<\n<<df>>\n [[Answer:debug|debug0]]",
"position": {
"x": 8208,
"y": 10166
},
"colorID": 0
},
{
"title": "debug0",
"tags": "",
"body": "]<<avatar sign>> >1[color=#e90b0b]Press Z[/color] to interact with the tree critters 🐜🐛🐞 [color=#07a9b0]Spacebar[/color] to jump.wait test .<<wait 1000>>.<<wait 1000>>.<<wait 1000>>||<<wait 2000>> \n2And welcome to yarn's example GD project!>||\n [[Answer:debug|debug1]]",
"position": {
"x": 8473,
"y": 10165
},
"colorID": 0
},
{
"title": "debug1",
"tags": "",
"body": "<<avatar ant>>\n>3Now scram!||<\n<<test>>\n\n[[ answer: |debug2 ]] ",
"position": {
"x": 8713,
"y": 10169
},
"colorID": 0
},
{
"title": "debug2",
"tags": "",
"body": "<<err>> >4 text with < <<avatar crumb>> >command in the middle ||\n5This is my tree|| <\n\n6||< <<avatar ant>>\n\n>7and my crumb||\n[[ answer: |debug3 ]] ",
"position": {
"x": 8967,
"y": 10172
},
"colorID": 0
},
{
"title": "debug3",
"tags": "",
"body": "<<only command>>\n[[ answer: |debug4 ]] ",
"position": {
"x": 9224,
"y": 10176
},
"colorID": 0
},
{
"title": "debug4",
"tags": "",
"body": "one last text",
"position": {
"x": 9466,
"y": 10180
},
"colorID": 0
},
{
"title": "eatCrumb",
"tags": "",
"body": "Let see <<wait 1000>>.<<wait 200>>.<<wait 200>> .<<wait 200>>these 🥨 are making you thirsty...",
"position": {
"x": 7337,
"y": 11180
},
"colorID": 0
},
{
"title": "Node1",
"tags": "",
"body": "node1= Once upon a time you<<command>> pressed SPACE to progress to the next node. [[Answer:Node2|Node2]]",
"position": {
"x": 8210,
"y": 10419
},
"colorID": 0
},
{
"title": "Node2",
"tags": "",
"body": "node2= <<big_boi>>2 But suddenly the small boi black box started to move! [[Answer:Node3|Node3]]",
"position": {
"x": 8459,
"y": 10411
},
"colorID": 0
},
{
"title": "Node3",
"tags": "",
"body": "<<not_a_registered_command>> node3= But something horrible happened! All the text merged to the single text box, this is Node3. Press Space... [[Answer:Node4|Node4]]",
"position": {
"x": 8693,
"y": 10407
},
"colorID": 0
},
{
"title": "Node4",
"tags": "",
"body": "node4 I am Node4 and I didn't get merged as I don't have a command!",
"position": {
"x": 8917,
"y": 10402
},
"colorID": 0
},
{
"title": "null",
"tags": "",
"body": "<<wait 100>> ",
"position": {
"x": 7149,
"y": 10728
},
"colorID": 0
},
{
"title": "Start",
"tags": "",
"body": "<<if $debug == true>>\n\n<<if $debugLinks == true>> \n[[ answer: |Node1 ]] \n<<else>> \n[[ debug|debug ]] \n<<endif>>\n\n<<else>>\n[[ start|Start1 ]] \n<<endif>>",
"position": {
"x": 7937,
"y": 10183
},
"colorID": 0
},
{
"title": "Start1",
"tags": "",
"body": "<<avatar sign>>[color=#e90b0b]Press Z[/color] to interact with the tree critters 🐜🐛🐞 [color=#07a9b0]Spacebar[/color] to jump.\nAnd welcome to yarn's example GD project!\n",
"position": {
"x": 7928,
"y": 10489
},
"colorID": 0
},
{
"title": "takeCrumb",
"tags": "",
"body": "The thing is way too heavy 😬 ....",
"position": {
"x": 7662,
"y": 10962
},
"colorID": 0
},
{
"title": "cricket",
"tags": "",
"body": "<<avatar cricket>> \nI am a cricket.\nWould you like to me to load/save the state\n\n[[ save it |saveState ]] \n[[ load it |loadState ]] \n[[ cancel |null ]] ",
"position": {
"x": 7017,
"y": 10159
},
"colorID": 0
},
{
"title": "saveState",
"tags": "",
"body": "<<saveGame>>\nGame stored to a GD variable",
"position": {
"x": 6678,
"y": 10466
},
"colorID": 0
},
{
"title": "loadState",
"tags": "",
"body": "<<loadGame>> \ngame loaded from GD variable",
"position": {
"x": 6930,
"y": 10468
},
"colorID": 0
}
]