1- [gd_scene load_steps =8 format =1 ]
1+ [gd_scene load_steps =9 format =1 ]
22
33[ext_resource path ="res://icon.png" type ="Texture" id =1 ]
44[ext_resource path ="res://addons/tree-tools/TreeNode/TreeNode.gd" type ="Script" id =2 ]
55[ext_resource path ="res://addons/tree-tools/TreeNode/icons/gear.png" type ="Texture" id =3 ]
6- [ext_resource path ="res://dialogtrees_resources/ TreeNode.tres " type ="Resource " id =4 ]
6+ [ext_resource path ="res://addons/tree-tools/ TreeNode/TreeNodeResource.gd " type ="Script " id =4 ]
77[ext_resource path ="res://run_dialog.gd" type ="Script" id =5 ]
88[ext_resource path ="res://dialog_manager.gd" type ="Script" id =6 ]
99[ext_resource path ="res://option_chooser.tscn" type ="PackedScene" id =7 ]
1010
11+ [sub_resource type ="Resource" id =1 ]
12+
13+ script/script = ExtResource ( 4 )
14+ dict = {
15+ "connections" : [ {
16+ "from" : "node3" ,
17+ "from_port" : 0 ,
18+ "to" : "node4" ,
19+ "to_port" : 0
20+ }, {
21+ "from" : "node4" ,
22+ "from_port" : 0 ,
23+ "to" : "node5" ,
24+ "to_port" : 0
25+ }, {
26+ "from" : "node5" ,
27+ "from_port" : 0 ,
28+ "to" : "node6" ,
29+ "to_port" : 0
30+ }, {
31+ "from" : "node5" ,
32+ "from_port" : 1 ,
33+ "to" : "node7" ,
34+ "to_port" : 0
35+ } ],
36+ "nodes" : [ {
37+ "id" : "node3" ,
38+ "name" : "start" ,
39+ "type" : "startnode" ,
40+ "x" : -837.0 ,
41+ "y" : -77.5
42+ }, {
43+ "data0" : {
44+ "action_id" : 0 ,
45+ "actor" : "Red" ,
46+ "animation" : "" ,
47+ "collapsed" : false ,
48+ "dialog" : "Hey!%%What's your name?" ,
49+ "id" : 0
50+ },
51+ "id" : "node4" ,
52+ "nb_blocks" : 1 ,
53+ "type" : "dialog_line" ,
54+ "x" : -641.0 ,
55+ "y" : -138.0
56+ }, {
57+ "data0" : {
58+ "collapsed" : false ,
59+ "condition" : "" ,
60+ "id" : 0 ,
61+ "not_said" : false ,
62+ "option" : "My name is Player." ,
63+ "repeat" : false
64+ },
65+ "data1" : {
66+ "collapsed" : false ,
67+ "condition" : "" ,
68+ "id" : 1 ,
69+ "not_said" : false ,
70+ "option" : "Why do you bother?" ,
71+ "repeat" : false
72+ },
73+ "id" : "node5" ,
74+ "nb_blocks" : 2 ,
75+ "type" : "dialog_option" ,
76+ "x" : -274.0 ,
77+ "y" : -136.0
78+ }, {
79+ "data0" : {
80+ "action_id" : 0 ,
81+ "actor" : "Red" ,
82+ "animation" : "" ,
83+ "collapsed" : false ,
84+ "dialog" : "Nice to meet you Player." ,
85+ "id" : 0
86+ },
87+ "id" : "node6" ,
88+ "nb_blocks" : 1 ,
89+ "type" : "dialog_line" ,
90+ "x" : 90.0 ,
91+ "y" : -205.0
92+ }, {
93+ "data0" : {
94+ "action_id" : 0 ,
95+ "actor" : "Red" ,
96+ "animation" : "" ,
97+ "collapsed" : false ,
98+ "dialog" : "Not so nice!" ,
99+ "id" : 0
100+ },
101+ "id" : "node7" ,
102+ "nb_blocks" : 1 ,
103+ "type" : "dialog_line" ,
104+ "x" : 97.0 ,
105+ "y" : 33.0
106+ } ]
107+ }
108+
11109[node name ="Node2D" type ="Node2D" ]
12110
13111[node name ="Sprite" type ="Sprite" parent ="." ]
@@ -22,7 +120,7 @@ script/script = ExtResource( 2 )
22120__meta__ = {
23121"_editor_icon" : ExtResource ( 3 )
24122}
25- resource = ExtResource ( 4 )
123+ resource = SubResource ( 1 )
26124
27125[node name ="dialog" type ="Label" parent ="Sprite" ]
28126
0 commit comments