diff --git a/proto2/autoloads/world.gd b/proto2/autoloads/world.gd index 42074d8..143d5f0 100644 --- a/proto2/autoloads/world.gd +++ b/proto2/autoloads/world.gd @@ -13,6 +13,7 @@ var room_events = {} var line = {} var training = false var nav: Navigation +var quests : = [] func room_event(ev: String): if current_room: @@ -28,6 +29,23 @@ func register_room_event(roomobj, evname, fname): func _ready(): connect("room_event", self, "room_event") +var master_stats:Dictionary = { + "type": 0, + "gender": 0, + "name": "John", + "lastname": "Smith", + "speed": 0.5, + "strength": 0.5, + "agression": 0.5, + "charisma": 0.5, + "obedience": 0.0, + "cost": 0, + "xp": 0, + "mext_xp": 100, + "points": 5, + "level": 1 +} + func new_candidate() -> Dictionary: var gender = randi() % 2 var type = 0 @@ -42,6 +60,7 @@ func new_candidate() -> Dictionary: else: ret.name = "Jane" ret.lastname = "Doe" + ret.gender = gender ret.type = type ret.speed = 0.3 + randf() * 0.7 ret.strength = 0.1 + randf() * 0.9 @@ -108,6 +127,7 @@ func init_data(): team = {} cheer_team = {} print(line) + func dialogue(npc): pass diff --git a/proto2/main.gd b/proto2/main.gd index 37b3721..ae9b727 100644 --- a/proto2/main.gd +++ b/proto2/main.gd @@ -10,9 +10,21 @@ var frame_tf: Transform = Transform() func master_control(pos): $master.walkto(pos) +func update_quests(): + for q in world.quests: + if q.is_active(): + $info/task/task.text = q.get_cur_task_text() + break + for q in world.quests: + if q.is_active(): + q.update() +func start_quest(quest: Quest): + $start_quest_notification.start_notification(quest.get_title(), quest.get_description()) + func _ready(): $master.add_to_group("master") controls.master_node = $master + world.master_node = $master world.init_data() world.nav = $nav controls.camera = $Camera @@ -26,6 +38,7 @@ func _ready(): var nav: Navigation2D = get_node("nav") var p = nav.get_closest_point(get_node("line_spawn").global_transform.origin + Vector3(randf() * 20.0 - 10.0, 0.0, randf() * 20 - 10.0)) char_sc.translation = p + char_sc.set_meta("data", cd) # world.team[newkey] = cd # world.line.erase(k) else: @@ -35,9 +48,21 @@ func _ready(): var nav: Navigation2D = get_node("nav") var p = nav.get_closest_point(get_node("line_spawn").global_transform.origin + Vector3(randf() * 20.0 - 10.0, 0.0, randf() * 20 - 10.0)) char_sc.translation = p + char_sc.set_meta("data", cd) # world.team[newkey] = cd # cd.scene.set_meta("data", cd) - + var tut_quest = Quest.new("Tutorial", "This quest shortly introduces to a game") + tut_quest.connect("started", self, "start_quest") + world.quests.push_back(tut_quest) + tut_quest.start() + update_quests() + var quest_timer : = Timer.new() + quest_timer.wait_time = 2.0 + add_child(quest_timer) + quest_timer.connect("timeout", self, "update_quests") + quest_timer.start() + + # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta): diff --git a/proto2/main.tscn b/proto2/main.tscn index 233fcb9..7983b6a 100644 --- a/proto2/main.tscn +++ b/proto2/main.tscn @@ -1,8 +1,9 @@ -[gd_scene load_steps=7 format=2] +[gd_scene load_steps=8 format=2] -[ext_resource path="res://walls/walls.tscn" type="PackedScene" id=1] -[ext_resource path="res://characters/male_2018.tscn" type="PackedScene" id=2] +[ext_resource path="res://ui/start_quest_notification.tscn" type="PackedScene" id=1] +[ext_resource path="res://walls/walls.tscn" type="PackedScene" id=2] [ext_resource path="res://main.gd" type="Script" id=3] +[ext_resource path="res://characters/male_2018.tscn" type="PackedScene" id=4] [sub_resource type="NavigationMesh" id=1] vertices = PoolVector3Array( 0.450001, 3.6, 14.3543, 9.65, 3.6, 14.1543, 0.450001, 3.6, 14.1543, 18.85, 3.6, 14.1543, 11.25, 3.6, 14.3543, 18.85, 3.6, 14.3543, -29.35, 3.6, 21.5543, -29.75, 3.6, 18.9543, -29.75, 3.6, 21.9543, -29.95, 3.6, 8.1543, -29.55, 3.6, 10.5543, -29.35, 3.6, 8.1543, -15.35, 3.6, 14.1543, -15.95, 3.6, 13.7543, -16.15, 3.6, 14.1543, -16.15, 3.6, 14.3543, -15.35, 3.6, 14.3543, 20.65, 3.6, 21.9543, 20.65, 3.6, 21.5543, 19.45, 3.6, 21.3543, 19.05, 3.6, 21.3543, 14.45, 3.6, 21.5543, 14.45, 3.6, 21.9543, 23.45, 3.6, 21.3543, 22.25, 3.6, 21.5543, 22.25, 3.6, 21.9543, 23.85, 3.6, 21.9543, -0.349998, 3.6, 21.5543, -7.95, 3.6, 21.5543, -8.55, 3.6, 21.9543, 2.05, 3.6, 21.9543, -29.95, 3.6, 4.9543, -29.55, 3.6, 4.9543, -29.35, 3.6, 3.5543, -29.35, 3.6, 3.1543, -29.55, 3.6, -6.4457, -29.95, 3.6, -6.0457, -16.15, 3.6, 14.3543, -15.95, 3.6, 16.3543, -15.55, 3.6, 16.3543, -15.35, 3.6, 14.3543, -8.15, 3.6, -38.8457, -8.55, 3.6, -38.6457, -0.349998, 3.6, -38.6457, 0.0499992, 3.6, -38.8457, -32.15, 3.6, 7.9543, -32.35, 3.6, 8.3543, -29.95, 3.6, 8.1543, -29.75, 3.6, 12.1543, -29.75, 3.6, 17.3543, -29.35, 3.6, 14.3543, -29.35, 3.6, 14.1543, -7.95, 3.6, 40.9543, -8.15, 3.6, 41.1543, 0.0499992, 3.6, 41.1543, 0.25, 3.6, 40.9543, -32.15, 3.6, 7.9543, -29.95, 3.6, 8.1543, -29.35, 3.6, 8.1543, -15.35, 3.6, 21.5543, -15.55, 3.6, 18.1543, -15.95, 3.6, 18.1543, -16.15, 3.6, 21.5543, -32.35, 3.6, 32.9543, -32.55, 3.6, 31.1543, -32.55, 3.6, 41.1543, -32.15, 3.6, 40.9543, -11.35, 3.6, -16.8457, -11.35, 3.6, -16.4457, -7.55, 3.6, -16.2457, -7.15, 3.6, -16.2457, -1.95, 3.6, -16.4457, -1.95, 3.6, -16.8457, -17.15, 3.6, -35.8457, -13.15, 3.6, -36.0457, -13.15, 3.6, -36.4457, -22.55, 3.6, -36.4457, -22.55, 3.6, -36.0457, -17.75, 3.6, -35.8457, -11.55, 3.6, -36.4457, -11.55, 3.6, -36.0457, -7.35, 3.6, -35.8457, -6.95, 3.6, -35.8457, -2.15, 3.6, -36.0457, -2.15, 3.6, -36.4457, -17.35, 3.6, -16.2457, -13.15, 3.6, -16.4457, -13.15, 3.6, -16.8457, -22.35, 3.6, -16.8457, -22.35, 3.6, -16.4457, -17.75, 3.6, -16.2457, -16.15, 3.6, 8.1543, -15.95, 3.6, 12.3543, -15.55, 3.6, 12.3543, -15.35, 3.6, 8.1543, -16.15, 3.6, 7.9543, 32.65, 3.6, -28.8457, 32.65, 3.6, -38.8457, 32.45, 3.6, -38.4457, 32.45, 3.6, -27.0457, -15.95, 3.6, 40.9543, -16.35, 3.6, 41.1543, -8.15, 3.6, 41.1543, -7.95, 3.6, 40.9543, 16.45, 3.6, 40.9543, 16.25, 3.6, 41.1543, 24.45, 3.6, 41.1543, 24.45, 3.6, 40.9543, 8.05, 3.6, 7.9543, 0.25, 3.6, 7.7543, 0.25, 3.6, 8.3543, 9.45, 3.6, 8.1543, -29.15, 3.6, -19.8457, -29.95, 3.6, -20.0457, -32.15, 3.6, -19.8457, 8.25, 3.6, 40.9543, 8.05, 3.6, 41.1543, 16.25, 3.6, 41.1543, 16.45, 3.6, 40.9543, -0.349998, 3.6, 3.1543, -0.349998, 3.6, 3.5543, 0.25, 3.6, 7.7543, 0.25, 3.6, -3.8457, -0.149998, 3.6, -8.2457, 32.45, 3.6, 32.5543, 32.45, 3.6, 40.7543, 32.65, 3.6, 41.1543, 32.65, 3.6, 31.1543, -7.15, 3.6, 2.9543, -7.75, 3.6, 3.5543, -0.349998, 3.6, 3.5543, -0.349998, 3.6, 3.1543, -32.55, 3.6, -18.8457, -32.35, 3.6, -19.2457, -32.15, 3.6, -19.8457, -32.35, 3.6, -29.0457, -32.55, 3.6, -28.8457, -7.35, 3.6, -20.0457, -16.95, 3.6, -19.8457, -16.55, 3.6, -19.4457, -8.55, 3.6, -19.4457, -6.95, 3.6, -20.0457, 32.45, 3.6, 40.7543, 24.45, 3.6, 40.9543, 24.45, 3.6, 41.1543, 32.65, 3.6, 41.1543, 0.25, 3.6, 40.9543, 0.0499992, 3.6, 41.1543, 8.05, 3.6, 41.1543, 8.25, 3.6, 40.9543, -24.15, 3.6, 7.9543, -32.15, 3.6, 7.9543, -29.35, 3.6, 8.1543, -22.75, 3.6, 8.1543, 24.45, 3.6, -38.8457, 16.25, 3.6, -38.8457, 16.25, 3.6, -38.6457, 24.45, 3.6, -38.6457, -29.35, 3.6, -35.8457, -24.15, 3.6, -36.0457, -24.15, 3.6, -36.4457, -29.95, 3.6, -36.4457, 24.45, 3.6, -38.8457, 24.45, 3.6, -38.6457, 32.45, 3.6, -38.4457, 32.65, 3.6, -38.8457, -24.55, 3.6, -38.8457, -24.55, 3.6, -38.6457, -16.55, 3.6, -38.6457, -16.35, 3.6, -38.8457, -29.55, 3.6, -16.2457, -29.95, 3.6, -16.8457, -29.95, 3.6, -6.0457, -29.55, 3.6, -6.4457, -24.15, 3.6, 40.9543, -24.55, 3.6, 41.1543, -16.35, 3.6, 41.1543, -15.95, 3.6, 40.9543, -29.55, 3.6, -16.2457, -24.15, 3.6, -16.4457, -24.15, 3.6, -16.8457, -29.95, 3.6, -16.8457, 32.65, 3.6, -18.8457, 32.65, 3.6, -28.8457, 32.45, 3.6, -27.0457, 32.45, 3.6, -15.4457, -0.349998, 3.6, 14.3543, 0.450001, 3.6, 14.3543, 0.450001, 3.6, 14.1543, 0.25, 3.6, 8.3543, -0.149998, 3.6, 8.3543, -0.349998, 3.6, 14.1543, 23.45, 3.6, 21.3543, 23.85, 3.6, 21.9543, 23.85, 3.6, 15.1543, 23.45, 3.6, 14.5543, -0.149998, 3.6, 8.3543, 0.25, 3.6, 8.3543, -0.149998, 3.6, 7.7543, -8.15, 3.6, 7.9543, -7.75, 3.6, 8.1543, 23.45, 3.6, 14.5543, 23.85, 3.6, 15.1543, 23.85, 3.6, 8.3543, 23.25, 3.6, 8.1543, -0.349998, 3.6, 14.3543, -0.349998, 3.6, 21.5543, 0.25, 3.6, 21.3543, 0.450001, 3.6, 14.3543, -32.35, 3.6, -12.4457, -32.35, 3.6, -19.2457, -32.55, 3.6, -18.8457, -32.55, 3.6, -8.8457, -0.349998, 3.6, 3.5543, -0.149998, 3.6, 7.7543, 0.25, 3.6, 8.3543, 0.25, 3.6, 7.7543, -32.35, 3.6, -5.6457, -32.35, 3.6, -12.4457, -32.55, 3.6, -8.8457, 12.85, 3.6, 21.9543, 12.85, 3.6, 21.5543, 6.45, 3.6, 21.5543, 2.05, 3.6, 21.9543, 32.45, 3.6, 24.1543, 32.25, 3.6, 24.7543, 32.45, 3.6, 32.5543, 32.65, 3.6, 31.1543, 2.05, 3.6, 21.9543, 6.45, 3.6, 21.5543, 0.25, 3.6, 21.3543, -0.349998, 3.6, 21.5543, -16.15, 3.6, 7.9543, -24.15, 3.6, 7.9543, -22.75, 3.6, 8.1543, -16.15, 3.6, 8.1543, 32.45, 3.6, 15.9543, 32.45, 3.6, 24.1543, 32.65, 3.6, 21.1543, 32.65, 3.6, 11.1543, 32.45, 3.6, -15.4457, 32.45, 3.6, -3.8457, 32.65, 3.6, -8.8457, 32.65, 3.6, -18.8457, -22.75, 3.6, 14.1543, -29.35, 3.6, 14.1543, -29.35, 3.6, 14.3543, -22.75, 3.6, 14.3543, 32.45, 3.6, 24.1543, 32.65, 3.6, 31.1543, 32.65, 3.6, 21.1543, -16.15, 3.6, 14.1543, -22.75, 3.6, 14.1543, -22.75, 3.6, 14.3543, -16.15, 3.6, 14.3543, -16.55, 3.6, -19.4457, -16.95, 3.6, -19.8457, -17.75, 3.6, -20.0457, -29.15, 3.6, -19.8457, -24.55, 3.6, -19.4457, -17.15, 3.6, -35.8457, -17.75, 3.6, -35.8457, -17.75, 3.6, -28.0457, -17.15, 3.6, -27.8457, 16.25, 3.6, 7.9543, 8.05, 3.6, 7.9543, 9.45, 3.6, 8.1543, 18.85, 3.6, 8.1543, 18.85, 3.6, 14.3543, 19.05, 3.6, 21.3543, 19.45, 3.6, 21.3543, 19.45, 3.6, 14.7543, 18.85, 3.6, 14.1543, -7.15, 3.6, 2.9543, -7.15, 3.6, -6.6457, -7.55, 3.6, -6.6457, -7.55, 3.6, 2.9543, 8.05, 3.6, -38.8457, 0.0499992, 3.6, -38.8457, 0.25, 3.6, -38.4457, 8.05, 3.6, -38.6457, 18.85, 3.6, 14.1543, 19.45, 3.6, 14.7543, 19.45, 3.6, 8.3543, 18.85, 3.6, 8.1543, 18.85, 3.6, 8.1543, 23.25, 3.6, 8.1543, 24.45, 3.6, 7.9543, 16.25, 3.6, 7.9543, 18.85, 3.6, 8.1543, 19.45, 3.6, 8.3543, 23.25, 3.6, 8.1543, -32.35, 3.6, -5.6457, -32.55, 3.6, -8.8457, -32.55, 3.6, 1.1543, -32.35, 3.6, 1.1543, -0.349998, 3.6, -38.6457, -0.149998, 3.6, -29.4457, 0.25, 3.6, -27.0457, 0.25, 3.6, -38.4457, 0.0499992, 3.6, -38.8457, -32.15, 3.6, 7.9543, -32.35, 3.6, 1.1543, -32.55, 3.6, 1.1543, -32.35, 3.6, 8.3543, -22.75, 3.6, 21.5543, -29.35, 3.6, 21.5543, -29.75, 3.6, 21.9543, -19.15, 3.6, 21.9543, -17.15, 3.6, -27.8457, -17.75, 3.6, -28.0457, -17.75, 3.6, -20.0457, -16.95, 3.6, -19.8457, -16.15, 3.6, 21.5543, -22.75, 3.6, 21.5543, -19.15, 3.6, 21.9543, -15.35, 3.6, 21.5543, -16.15, 3.6, 21.5543, -19.15, 3.6, 21.9543, -15.35, 3.6, 21.5543, -19.15, 3.6, 21.9543, -8.55, 3.6, 21.9543, -7.95, 3.6, 21.5543, -32.35, 3.6, -19.2457, -24.55, 3.6, -19.4457, -29.15, 3.6, -19.8457, -32.15, 3.6, -19.8457, -8.15, 3.6, 7.9543, -16.15, 3.6, 7.9543, -15.35, 3.6, 8.1543, -7.75, 3.6, 8.1543, -14.95, 3.6, 3.5543, -7.75, 3.6, 3.5543, -7.15, 3.6, 2.9543, -7.55, 3.6, 2.9543, -17.15, 3.6, 3.1543, 0.25, 3.6, -27.0457, -0.149998, 3.6, -29.4457, -0.149998, 3.6, -20.0457, 0.25, 3.6, -15.4457, -32.35, 3.6, 8.3543, -32.55, 3.6, 1.1543, -32.55, 3.6, 11.1543, -32.35, 3.6, 16.3543, -32.35, 3.6, 8.3543, -32.55, 3.6, 11.1543, -32.55, 3.6, 21.1543, 16.25, 3.6, -38.8457, 8.05, 3.6, -38.8457, 8.05, 3.6, -38.6457, 16.25, 3.6, -38.6457, -32.15, 3.6, 24.3543, -32.35, 3.6, 16.3543, -32.55, 3.6, 21.1543, -32.35, 3.6, 24.9543, -6.95, 3.6, -20.0457, -6.95, 3.6, -28.0457, -7.35, 3.6, -28.0457, -7.35, 3.6, -20.0457, -32.35, 3.6, 24.9543, -32.55, 3.6, 21.1543, -32.55, 3.6, 31.1543, -32.35, 3.6, 32.9543, -17.35, 3.6, -6.4457, -17.75, 3.6, -6.6457, -17.75, 3.6, 2.9543, -17.15, 3.6, 3.1543, -7.95, 3.6, 14.1543, -15.35, 3.6, 14.1543, -15.35, 3.6, 14.3543, -7.95, 3.6, 14.3543, -7.15, 3.6, -6.6457, -7.15, 3.6, -16.2457, -7.55, 3.6, -16.2457, -7.55, 3.6, -6.6457, -0.349998, 3.6, 14.1543, -7.95, 3.6, 14.1543, -7.95, 3.6, 14.3543, -0.349998, 3.6, 14.3543, -22.15, 3.6, 3.5543, -14.95, 3.6, 3.5543, -17.15, 3.6, 3.1543, -16.35, 3.6, -38.8457, -16.55, 3.6, -38.6457, -8.55, 3.6, -38.6457, -8.15, 3.6, -38.8457, 24.45, 3.6, 24.3543, 24.05, 3.6, 24.7543, 32.25, 3.6, 24.7543, 32.45, 3.6, 24.1543, -0.349998, 3.6, -19.4457, -0.149998, 3.6, -8.2457, 0.25, 3.6, -3.8457, 0.25, 3.6, -15.4457, -0.149998, 3.6, -20.0457, -32.15, 3.6, 24.3543, -32.35, 3.6, 24.9543, -24.55, 3.6, 24.7543, -24.15, 3.6, 24.3543, -32.15, 3.6, 40.9543, -32.55, 3.6, 41.1543, -24.55, 3.6, 41.1543, -24.15, 3.6, 40.9543, -29.35, 3.6, -35.8457, -29.95, 3.6, -36.4457, -29.95, 3.6, -28.2457, -29.35, 3.6, -27.8457, -32.35, 3.6, -38.4457, -32.55, 3.6, -38.8457, -32.55, 3.6, -28.8457, -32.35, 3.6, -29.0457, -24.55, 3.6, -38.8457, -32.55, 3.6, -38.8457, -32.35, 3.6, -38.4457, -24.55, 3.6, -38.6457, -22.15, 3.6, 3.5543, -17.15, 3.6, 3.1543, -17.75, 3.6, 2.9543, -29.35, 3.6, 3.1543, -29.35, 3.6, 3.5543, -6.95, 3.6, -28.0457, -6.95, 3.6, -35.8457, -7.35, 3.6, -35.8457, -7.35, 3.6, -28.0457, 32.25, 3.6, 8.1543, 32.45, 3.6, 7.7543, 24.45, 3.6, 7.9543, 23.25, 3.6, 8.1543, 23.85, 3.6, 8.3543, -24.15, 3.6, 24.3543, -24.55, 3.6, 24.7543, -16.35, 3.6, 24.7543, -15.95, 3.6, 24.3543, 32.65, 3.6, 11.1543, 32.45, 3.6, 7.7543, 32.25, 3.6, 8.1543, 32.45, 3.6, 15.9543, -15.95, 3.6, 24.3543, -16.35, 3.6, 24.7543, -8.35, 3.6, 24.7543, -7.95, 3.6, 24.3543, -0.349998, 3.6, -19.4457, -0.149998, 3.6, -20.0457, -6.95, 3.6, -20.0457, -8.55, 3.6, -19.4457, -7.95, 3.6, 24.3543, -8.35, 3.6, 24.7543, -0.149998, 3.6, 24.7543, 0.25, 3.6, 24.3543, 32.45, 3.6, 7.7543, 32.65, 3.6, 11.1543, 32.65, 3.6, 1.1543, 32.45, 3.6, -3.8457, 0.25, 3.6, 24.3543, -0.149998, 3.6, 24.7543, 7.85, 3.6, 24.7543, 8.25, 3.6, 24.3543, 32.65, 3.6, 1.1543, 32.65, 3.6, -8.8457, 32.45, 3.6, -3.8457, 8.25, 3.6, 24.3543, 7.85, 3.6, 24.7543, 16.05, 3.6, 24.7543, 16.45, 3.6, 24.3543, -17.35, 3.6, -16.2457, -17.75, 3.6, -16.2457, -17.75, 3.6, -6.6457, -17.35, 3.6, -6.4457, 16.45, 3.6, 24.3543, 16.05, 3.6, 24.7543, 24.05, 3.6, 24.7543, 24.45, 3.6, 24.3543, -29.35, 3.6, -27.8457, -29.95, 3.6, -28.2457, -29.95, 3.6, -20.0457, -29.15, 3.6, -19.8457, -23.75, 0.8, -36.2457, -22.95, 0.8, -36.2457, -22.75, 0.8, -36.8457, -24.15, 0.8, -38.2457, -23.95, 0.8, -36.8457, -12.95, 0.8, -36.8457, -12.75, 0.8, -36.2457, -11.95, 0.8, -36.2457, -11.75, 0.8, -36.8457, -30.35, 0.8, -36.6457, -23.95, 0.8, -36.8457, -24.15, 0.8, -38.2457, -31.95, 0.8, -38.2457, -22.75, 0.8, -36.8457, -12.95, 0.8, -36.8457, -16.35, 0.8, -38.2457, -24.15, 0.8, -38.2457, -1.95, 0.8, -36.8457, -1.75, 0.8, -36.2457, -0.549999, 0.8, -36.2457, -0.549999, 0.8, -38.2457, -30.35, 0.8, -36.6457, -31.95, 0.8, -38.2457, -31.95, 0.8, -29.2457, -30.35, 0.8, -28.4457, -1.95, 0.8, -36.8457, -0.549999, 0.8, -38.2457, -8.55, 0.8, -38.2457, -11.75, 0.8, -36.8457, -31.95, 0.8, -20.2457, -30.35, 0.8, -20.2457, -30.35, 0.8, -28.4457, -31.95, 0.8, -29.2457, -12.95, 0.8, -36.8457, -11.75, 0.8, -36.8457, -8.55, 0.8, -38.2457, -16.35, 0.8, -38.2457, 14.65, 0.8, 7.5543, 14.85, 0.8, 7.9543, 15.45, 0.8, 7.9543, 0.650002, 0.8, -2.8457, 0.0499992, 0.8, -2.6457, 0.0499992, 0.8, -2.0457, 0.650002, 0.8, -1.8457, 16.25, 0.8, -38.2457, 8.45, 0.8, -38.2457, 0.650002, 0.8, -26.8457, 0.650002, 0.8, -18.8457, 14.65, 0.8, 7.5543, 15.45, 0.8, 7.9543, 15.65, 0.8, 7.5543, 0.650002, 0.8, -10.8457, 0.650002, 0.8, -2.8457, 0.0499992, 0.8, -35.6457, 0.0499992, 0.8, -34.8457, 0.650002, 0.8, -34.6457, 8.45, 0.8, -38.2457, 0.650002, 0.8, -35.8457, 32.05, 0.8, -26.8457, 24.05, 0.8, -38.2457, 16.25, 0.8, -38.2457, 32.05, 0.8, -15.4457, 8.45, 0.8, -38.2457, 0.650002, 0.8, -38.2457, 0.650002, 0.8, -35.8457, 15.65, 0.8, 7.5543, 23.85, 0.8, 7.5543, 32.05, 0.8, -4.0457, 0.650002, 0.8, -1.8457, 0.650002, 0.8, 7.5543, 7.65, 0.8, 7.5543, 0.650002, 0.8, -2.8457, 0.650002, 0.8, -1.8457, 7.65, 0.8, 7.5543, 14.65, 0.8, 7.5543, 8.45, 0.8, -38.2457, 0.650002, 0.8, -34.6457, 0.650002, 0.8, -26.8457, 32.05, 0.8, -26.8457, 32.05, 0.8, -38.2457, 24.05, 0.8, -38.2457, 23.85, 0.8, 7.5543, 32.05, 0.8, 7.5543, 32.05, 0.8, -4.0457, 15.65, 0.8, 7.5543, 32.05, 0.8, -4.0457, 32.05, 0.8, -15.4457, 16.25, 0.8, -38.2457, 0.650002, 0.8, -18.8457, 0.650002, 0.8, -10.8457, -29.55, 0.8, -28.0457, -29.35, 0.8, -36.2457, -29.75, 0.8, -36.2457, -29.75, 0.8, -27.8457, -29.95, 0.8, -19.8457, -29.35, 0.8, -19.6457, -29.55, 0.8, -28.0457, -29.75, 0.8, -27.8457, -22.95, 0.8, -36.2457, -23.75, 0.8, -36.2457, -23.95, 0.8, -35.6457, -22.75, 0.8, -35.6457, -18.15, 0.8, -28.0457, -22.75, 0.8, -35.6457, -23.95, 0.8, -35.6457, -28.95, 0.8, -28.0457, -28.95, 0.8, -20.2457, -18.15, 0.8, -20.2457, -18.15, 0.8, -28.0457, -18.15, 0.8, -35.6457, -22.75, 0.8, -35.6457, -23.95, 0.8, -35.6457, -28.95, 0.8, -35.6457, -28.95, 0.8, -28.0457, -17.35, 0.8, -28.0457, -17.15, 0.8, -36.2457, -17.75, 0.8, -36.2457, -17.55, 0.8, -28.0457, -17.55, 0.8, -28.0457, -17.75, 0.8, -19.6457, -17.15, 0.8, -19.6457, -17.35, 0.8, -28.0457, -11.95, 0.8, -36.2457, -12.75, 0.8, -36.2457, -12.95, 0.8, -35.6457, -11.75, 0.8, -35.6457, -7.75, 0.8, -28.0457, -11.75, 0.8, -35.6457, -12.95, 0.8, -35.6457, -16.75, 0.8, -28.0457, -16.75, 0.8, -20.2457, -7.75, 0.8, -20.2457, -12.95, 0.8, -35.6457, -16.75, 0.8, -35.6457, -16.75, 0.8, -28.0457, -7.75, 0.8, -28.0457, -7.75, 0.8, -35.6457, -11.75, 0.8, -35.6457, 0.0499992, 0.8, -34.8457, 0.0499992, 0.8, -35.6457, -0.549999, 0.8, -35.8457, -0.549999, 0.8, -34.6457, 0.0499992, 0.8, -34.8457, -0.549999, 0.8, -35.8457, -1.75, 0.8, -36.2457, -1.95, 0.8, -35.6457, -0.549999, 0.8, -35.8457, -0.549999, 0.8, -36.2457, -1.75, 0.8, -36.2457, -0.549999, 0.8, -34.6457, -1.95, 0.8, -35.6457, -6.55, 0.8, -35.6457, -6.55, 0.8, -28.0457, -0.549999, 0.8, -27.4457, -6.55, 0.8, -20.2457, -0.549999, 0.8, -20.2457, -0.549999, 0.8, -27.4457, -6.55, 0.8, -28.0457, -23.95, 0.8, -17.2457, -23.75, 0.8, -16.6457, -22.75, 0.8, -16.6457, -22.55, 0.8, -17.2457, -24.15, 0.8, -19.0457, -12.95, 0.8, -17.2457, -12.75, 0.8, -16.6457, -11.75, 0.8, -16.6457, -11.55, 0.8, -17.2457, -1.75, 0.8, -17.2457, -1.55, 0.8, -16.6457, -0.549999, 0.8, -16.6457, -0.549999, 0.8, -19.0457, -16.35, 0.8, -19.0457, -24.15, 0.8, -19.0457, -22.55, 0.8, -17.2457, -12.95, 0.8, -17.2457, -12.95, 0.8, -17.2457, -11.55, 0.8, -17.2457, -8.55, 0.8, -19.0457, -16.35, 0.8, -19.0457, -24.15, 0.8, -19.0457, -31.95, 0.8, -19.0457, -30.15, 0.8, -17.2457, -23.95, 0.8, -17.2457, -31.95, 0.8, -15.4457, -30.35, 0.8, -15.4457, -30.15, 0.8, -17.2457, -31.95, 0.8, -19.0457, -1.75, 0.8, -17.2457, -0.549999, 0.8, -19.0457, -8.55, 0.8, -19.0457, -11.55, 0.8, -17.2457, -22.75, 0.8, -16.6457, -23.75, 0.8, -16.6457, -23.95, 0.8, -16.0457, -22.55, 0.8, -16.0457, -18.15, 0.8, -6.6457, -22.55, 0.8, -16.0457, -23.95, 0.8, -16.0457, -29.15, 0.8, -6.6457, -29.15, 0.8, 2.7543, -18.15, 0.8, 2.7543, -18.15, 0.8, -6.6457, -18.15, 0.8, -16.0457, -22.55, 0.8, -16.0457, -23.95, 0.8, -16.0457, -29.15, 0.8, -16.0457, -29.15, 0.8, -6.6457, -11.75, 0.8, -16.6457, -12.75, 0.8, -16.6457, -12.95, 0.8, -16.0457, -11.55, 0.8, -16.0457, -7.95, 0.8, -6.6457, -11.55, 0.8, -16.0457, -12.95, 0.8, -16.0457, -16.95, 0.8, -6.6457, -16.95, 0.8, 2.7543, -7.95, 0.8, 2.7543, -7.95, 0.8, -6.6457, -7.95, 0.8, -16.0457, -11.55, 0.8, -16.0457, -12.95, 0.8, -16.0457, -16.95, 0.8, -16.0457, -16.95, 0.8, -6.6457, 0.0499992, 0.8, -2.0457, 0.0499992, 0.8, -2.6457, -0.549999, 0.8, -2.8457, -0.549999, 0.8, -1.8457, -6.75, 0.8, -6.6457, -6.75, 0.8, 2.7543, -0.549999, 0.8, -1.8457, -0.549999, 0.8, -2.8457, -0.549999, 0.8, -16.6457, -1.55, 0.8, -16.6457, -1.75, 0.8, -16.0457, -0.549999, 0.8, -9.8457, -0.549999, 0.8, -9.8457, -1.75, 0.8, -16.0457, -6.75, 0.8, -16.0457, -6.75, 0.8, -6.6457, -0.549999, 0.8, -2.8457, -6.75, 0.8, 2.7543, -0.549999, 0.8, 2.7543, -0.549999, 0.8, -1.8457, -28.95, 0.8, 7.5543, -29.15, 0.8, 4.9543, -29.35, 0.8, 5.3543, -28.95, 0.8, 7.5543, -29.35, 0.8, 5.3543, -30.35, 0.8, 5.1543, -31.95, 0.8, 7.5543, -30.35, 0.8, -5.2457, -30.35, 0.8, -15.4457, -31.95, 0.8, -15.4457, -31.95, 0.8, -4.0457, -31.95, 0.8, -4.0457, -31.95, 0.8, 7.5543, -30.35, 0.8, 5.1543, -30.35, 0.8, -5.2457, -29.15, 0.8, 3.9543, -29.15, 0.8, 4.9543, -28.95, 0.8, 7.5543, -21.95, 0.8, 7.5543, -22.15, 0.8, 3.9543, -7.75, 0.8, 7.5543, -0.549999, 0.8, 7.5543, -0.549999, 0.8, 3.9543, -7.75, 0.8, 3.9543, -7.75, 0.8, 3.9543, -14.95, 0.8, 3.9543, -14.75, 0.8, 7.5543, -7.75, 0.8, 7.5543, -14.95, 0.8, 3.9543, -22.15, 0.8, 3.9543, -21.95, 0.8, 7.5543, -14.75, 0.8, 7.5543, 15.65, 0.8, 8.5543, 15.45, 0.8, 7.9543, 14.85, 0.8, 7.9543, 14.65, 0.8, 8.5543, 7.65, 0.8, 8.5543, 0.650002, 0.8, 8.5543, 0.650002, 0.8, 13.7543, 9.85, 0.8, 13.7543, 10.05, 0.8, 14.3543, 10.85, 0.8, 14.3543, 11.05, 0.8, 13.7543, 9.85, 0.8, 13.7543, 11.05, 0.8, 13.7543, 14.65, 0.8, 8.5543, 7.65, 0.8, 8.5543, 9.85, 0.8, 13.7543, 18.65, 0.8, 13.7543, 18.65, 0.8, 8.5543, 15.65, 0.8, 8.5543, 18.65, 0.8, 13.7543, 15.65, 0.8, 8.5543, 14.65, 0.8, 8.5543, 11.05, 0.8, 13.7543, -30.15, 0.8, 18.7543, -29.55, 0.8, 18.5543, -29.55, 0.8, 17.7543, -30.15, 0.8, 17.5543, -30.15, 0.8, 11.9543, -29.55, 0.8, 11.7543, -29.55, 0.8, 10.9543, -30.15, 0.8, 10.7543, -30.15, 0.8, 18.7543, -31.95, 0.8, 16.1543, -31.95, 0.8, 23.9543, -30.15, 0.8, 22.1543, -30.15, 0.8, 11.9543, -31.95, 0.8, 8.5543, -31.95, 0.8, 16.1543, -30.15, 0.8, 17.5543, -29.75, 0.8, 23.9543, -29.75, 0.8, 22.3543, -30.15, 0.8, 22.1543, -31.95, 0.8, 23.9543, -30.15, 0.8, 18.7543, -30.15, 0.8, 17.5543, -31.95, 0.8, 16.1543, -30.15, 0.8, 10.7543, -30.15, 0.8, 8.5543, -31.95, 0.8, 8.5543, -30.15, 0.8, 11.9543, -30.15, 0.8, 10.7543, -31.95, 0.8, 8.5543, -15.75, 0.8, 13.3543, -15.75, 0.8, 12.7543, -16.35, 0.8, 12.5543, -22.75, 0.8, 13.7543, -16.35, 0.8, 13.7543, -29.55, 0.8, 10.9543, -29.55, 0.8, 11.7543, -29.15, 0.8, 11.9543, -29.15, 0.8, 10.7543, -29.15, 0.8, 11.9543, -29.15, 0.8, 13.7543, -22.75, 0.8, 13.7543, -22.75, 0.8, 8.5543, -29.15, 0.8, 8.5543, -29.15, 0.8, 10.7543, -22.75, 0.8, 8.5543, -29.15, 0.8, 10.7543, -29.15, 0.8, 11.9543, -22.75, 0.8, 13.7543, -16.35, 0.8, 12.5543, -16.35, 0.8, 8.5543, -15.15, 0.8, 12.5543, -15.75, 0.8, 12.7543, -15.75, 0.8, 13.3543, -15.15, 0.8, 13.7543, -7.95, 0.8, 13.7543, -7.95, 0.8, 8.5543, -15.15, 0.8, 8.5543, -15.15, 0.8, 12.5543, -7.95, 0.8, 13.7543, -7.95, 0.8, 13.7543, -0.549999, 0.8, 13.7543, -0.549999, 0.8, 8.5543, -7.95, 0.8, 8.5543, 21.05, 0.8, 21.7543, 21.85, 0.8, 21.7543, 22.05, 0.8, 21.1543, 20.85, 0.8, 21.1543, 19.85, 0.8, 14.7543, 20.85, 0.8, 21.1543, 22.05, 0.8, 21.1543, 23.05, 0.8, 14.7543, 23.05, 0.8, 8.5543, 19.85, 0.8, 8.5543, 22.05, 0.8, 21.1543, 23.05, 0.8, 21.1543, 23.05, 0.8, 14.7543, 19.85, 0.8, 14.7543, 19.85, 0.8, 21.1543, 20.85, 0.8, 21.1543, 32.05, 0.8, 16.9543, 32.65, 0.8, 16.7543, 32.65, 0.8, 16.1543, 32.05, 0.8, 15.9543, 24.25, 0.8, 15.3543, 32.05, 0.8, 8.5543, 24.25, 0.8, 8.5543, 24.25, 0.8, 15.3543, 32.05, 0.8, 15.9543, 24.25, 0.8, 22.1543, 23.85, 0.8, 22.3543, 23.85, 0.8, 23.9543, 32.05, 0.8, 23.9543, 24.25, 0.8, 22.1543, 32.05, 0.8, 23.9543, 32.05, 0.8, 16.9543, 24.25, 0.8, 15.3543, 11.05, 0.8, 14.7543, 10.85, 0.8, 14.3543, 10.05, 0.8, 14.3543, 9.85, 0.8, 14.7543, 6.85, 0.8, 21.1543, 13.05, 0.8, 21.1543, 13.25, 0.8, 21.7543, 14.05, 0.8, 21.7543, 14.25, 0.8, 21.1543, 11.05, 0.8, 14.7543, 13.05, 0.8, 21.1543, 14.25, 0.8, 21.1543, 18.65, 0.8, 21.1543, 18.65, 0.8, 14.7543, 11.05, 0.8, 14.7543, 0.650002, 0.8, 14.7543, 0.650002, 0.8, 21.1543, 6.85, 0.8, 21.1543, 9.85, 0.8, 14.7543, -29.55, 0.8, 17.7543, -29.55, 0.8, 18.5543, -29.15, 0.8, 18.7543, -29.15, 0.8, 17.5543, -22.75, 0.8, 14.7543, -29.15, 0.8, 14.7543, -29.15, 0.8, 17.5543, -16.35, 0.8, 17.9543, -15.75, 0.8, 17.7543, -15.75, 0.8, 16.7543, -16.35, 0.8, 16.5543, -22.75, 0.8, 14.7543, -22.75, 0.8, 21.1543, -16.35, 0.8, 21.1543, -16.35, 0.8, 17.9543, -22.75, 0.8, 14.7543, -29.15, 0.8, 17.5543, -29.15, 0.8, 18.7543, -16.35, 0.8, 16.5543, -16.35, 0.8, 14.7543, -22.75, 0.8, 14.7543, -29.15, 0.8, 18.7543, -29.15, 0.8, 21.1543, -22.75, 0.8, 21.1543, -15.75, 0.8, 16.7543, -15.75, 0.8, 17.7543, -15.15, 0.8, 17.9543, -7.95, 0.8, 14.7543, -15.15, 0.8, 16.5543, -7.95, 0.8, 21.1543, -0.549999, 0.8, 21.1543, -0.549999, 0.8, 14.7543, -7.95, 0.8, 14.7543, -7.95, 0.8, 14.7543, -15.15, 0.8, 14.7543, -15.15, 0.8, 16.5543, -15.15, 0.8, 17.9543, -15.15, 0.8, 21.1543, -7.95, 0.8, 21.1543, -7.95, 0.8, 14.7543, -15.55, 0.8, 23.9543, -15.35, 0.8, 24.5543, -14.55, 0.8, 24.5543, -14.35, 0.8, 23.9543, 22.05, 0.8, 22.3543, 21.85, 0.8, 21.7543, 21.05, 0.8, 21.7543, 14.25, 0.8, 22.3543, 14.05, 0.8, 21.7543, 13.25, 0.8, 21.7543, 13.05, 0.8, 22.3543, 14.25, 0.8, 23.9543, -19.15, 0.8, 22.3543, -22.75, 0.8, 23.9543, -15.55, 0.8, 23.9543, 22.05, 0.8, 22.3543, 21.05, 0.8, 21.7543, 20.85, 0.8, 22.3543, 23.85, 0.8, 23.9543, 4.65, 0.8, 23.9543, 14.25, 0.8, 23.9543, 13.05, 0.8, 22.3543, 2.25, 0.8, 22.3543, 23.85, 0.8, 23.9543, 23.85, 0.8, 22.3543, 22.05, 0.8, 22.3543, -8.35, 0.8, 22.3543, -19.15, 0.8, 22.3543, -14.35, 0.8, 23.9543, -4.95, 0.8, 23.9543, 14.25, 0.8, 23.9543, 23.85, 0.8, 23.9543, 20.85, 0.8, 22.3543, 14.25, 0.8, 22.3543, 2.25, 0.8, 22.3543, -8.35, 0.8, 22.3543, -4.95, 0.8, 23.9543, 4.65, 0.8, 23.9543, -19.15, 0.8, 22.3543, -15.55, 0.8, 23.9543, -14.35, 0.8, 23.9543, -29.75, 0.8, 22.3543, -29.75, 0.8, 23.9543, -22.75, 0.8, 23.9543, -19.15, 0.8, 22.3543, -14.55, 0.8, 24.5543, -15.35, 0.8, 24.5543, -15.55, 0.8, 25.1543, -15.95, 0.8, 40.5543, -14.35, 0.8, 25.1543, -2.75, 0.8, 25.1543, -7.95, 0.8, 40.5543, 0.0499992, 0.8, 40.5543, -31.95, 0.8, 32.7543, -31.95, 0.8, 40.5543, -23.95, 0.8, 40.5543, 24.05, 0.8, 40.5543, 32.05, 0.8, 40.5543, 32.05, 0.8, 32.7543, -23.75, 0.8, 25.1543, -31.95, 0.8, 25.1543, -31.95, 0.8, 32.7543, 32.05, 0.8, 32.7543, 32.05, 0.8, 25.1543, 20.45, 0.8, 25.1543, 16.05, 0.8, 40.5543, 24.05, 0.8, 40.5543, -23.75, 0.8, 25.1543, -31.95, 0.8, 32.7543, -23.95, 0.8, 40.5543, -15.95, 0.8, 40.5543, -15.55, 0.8, 25.1543, 0.0499992, 0.8, 40.5543, 8.05, 0.8, 40.5543, 8.85, 0.8, 25.1543, -2.75, 0.8, 25.1543, -14.35, 0.8, 25.1543, -15.95, 0.8, 40.5543, -7.95, 0.8, 40.5543, -2.75, 0.8, 25.1543, 16.05, 0.8, 40.5543, 20.45, 0.8, 25.1543, 8.85, 0.8, 25.1543, 8.05, 0.8, 40.5543 ) @@ -27,14 +28,43 @@ script = ExtResource( 3 ) [node name="navmesh" type="NavigationMeshInstance" parent="nav"] navmesh = SubResource( 1 ) -[node name="building" parent="nav/navmesh" instance=ExtResource( 1 )] +[node name="building" parent="nav/navmesh" instance=ExtResource( 2 )] [node name="Camera" type="Camera" parent="."] transform = Transform( 1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 22.648, 6, 17.621 ) environment = SubResource( 3 ) -[node name="master" parent="." instance=ExtResource( 2 )] +[node name="master" parent="." instance=ExtResource( 4 )] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 22.208, 0, 18.6387 ) [node name="line_spawn" type="Spatial" parent="."] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.851023, 35.1052 ) + +[node name="info" type="VBoxContainer" parent="."] +anchor_right = 1.0 +margin_bottom = 32.0 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="stat" type="HBoxContainer" parent="info"] +margin_right = 1024.0 +margin_bottom = 14.0 + +[node name="money" type="Label" parent="info/stat"] +margin_right = 83.0 +margin_bottom = 14.0 +text = "Money: 2000" + +[node name="task" type="HBoxContainer" parent="info"] +margin_top = 18.0 +margin_right = 1024.0 +margin_bottom = 32.0 + +[node name="task" type="Label" parent="info/task"] +margin_right = 81.0 +margin_bottom = 14.0 +text = "Current task:" + +[node name="start_quest_notification" parent="." instance=ExtResource( 1 )] +visible = false diff --git a/proto2/project.godot b/proto2/project.godot index 968acca..3a62ff6 100644 --- a/proto2/project.godot +++ b/proto2/project.godot @@ -13,9 +13,21 @@ _global_script_classes=[ { "class": "BallGameAI", "language": "GDScript", "path": "res://ai/ball_game_ai.gd" +}, { +"base": "Reference", +"class": "Quest", +"language": "GDScript", +"path": "res://system/quest.gd" +}, { +"base": "Reference", +"class": "QuestObjective", +"language": "GDScript", +"path": "res://system/quest_objective.gd" } ] _global_script_class_icons={ -"BallGameAI": "" +"BallGameAI": "", +"Quest": "", +"QuestObjective": "" } [application] diff --git a/proto2/system/quest.gd b/proto2/system/quest.gd new file mode 100644 index 0000000..13c3400 --- /dev/null +++ b/proto2/system/quest.gd @@ -0,0 +1,66 @@ +extends Reference +class_name Quest +signal complete +signal failed +signal started +var _objectives = [] +var _children = [] +var _title: String +var _description: String +var _active: bool = false +var _complete: bool = false +func _init(title: String, description: String): + _title = title + _description = description +func add_child(quest: Quest): + _children.push_back(quest) +func is_complete(): + return _complete +func is_active(): + return _active +func update(): + if !_active: + return + var m = get_meta("quest") + if m != null: + for k in _objectives: + k.set_meta("quest", m) + for k in _objectives: + k.update() + for k in _children: + k.update() + _complete = true + for k in _objectives: + if !k.is_complete(): + _complete = false + break + if !_complete: + return + for k in _children: + if !k.is_complete(): + _complete = false + break + if _complete: + emit_signal("complete", self) + _active = false +func start(): + _active = true + for k in _children: + k.start() + emit_signal("started", self) +func get_cur_task_text(): + var ret: String = "No current task" + if _active: + for p in _children: + if p.is_active(): + ret = p.get_cur_task_text() + return ret + for p in _objectives: + if !p.is_complete(): + return p.get_title() + return _title + return ret +func get_title(): + return _title +func get_description(): + return _description diff --git a/proto2/system/quest_objective.gd b/proto2/system/quest_objective.gd new file mode 100644 index 0000000..bebdf54 --- /dev/null +++ b/proto2/system/quest_objective.gd @@ -0,0 +1,14 @@ +extends Reference +class_name QuestObjective + +var _complete: bool = false +var _title: String + +func _init(title: String): + _title = title +func is_complete(): + return _complete +func update(): + pass +func get_title(): + return _title diff --git a/proto2/ui/start_quest_notification.gd b/proto2/ui/start_quest_notification.gd new file mode 100644 index 0000000..0fc77a1 --- /dev/null +++ b/proto2/ui/start_quest_notification.gd @@ -0,0 +1,35 @@ +extends Control + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" + +# Called when the node enters the scene tree for the first time. +var expose_time:float = 0.0 +var cooldown_time: float = 0.0 +var queue = [] +func _ready(): + pass # Replace with function body. + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + if queue.size() > 0: + if cooldown_time <= 0.0: + var item = queue[0] + queue.pop_front() + if visible: + hide() + $v/quest_title.text = item.title + $v/quest_desc.text = item.desc + expose_time = 0.0 + cooldown_time = 2.0 + show() + if expose_time > 10.0: + if visible: + hide() + cooldown_time -= delta + else: + expose_time += delta +func start_notification(title, desc): + queue.push_back({"title": title, "desc": desc}) + print("start notification", title) diff --git a/proto2/ui/start_quest_notification.tscn b/proto2/ui/start_quest_notification.tscn new file mode 100644 index 0000000..06502a5 --- /dev/null +++ b/proto2/ui/start_quest_notification.tscn @@ -0,0 +1,58 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://ui/start_quest_notification.gd" type="Script" id=1] + +[node name="start_quest_notification" type="Control"] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -90.0 +margin_top = -40.0 +margin_right = 90.0 +margin_bottom = 40.0 +rect_min_size = Vector2( 180, 80 ) +script = ExtResource( 1 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="v" type="VBoxContainer" parent="."] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -93.0 +margin_top = -34.0 +margin_right = 93.0 +margin_bottom = 34.0 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="msg" type="Label" parent="v"] +margin_right = 186.0 +margin_bottom = 14.0 +text = "Starting quest:" +align = 1 + +[node name="quest_title" type="Label" parent="v"] +margin_top = 18.0 +margin_right = 186.0 +margin_bottom = 32.0 +text = "quest title" +align = 1 + +[node name="quest_desc" type="Label" parent="v"] +margin_top = 36.0 +margin_right = 186.0 +margin_bottom = 50.0 +text = "quest description" +align = 3 + +[node name="msg2" type="Label" parent="v"] +margin_top = 54.0 +margin_right = 186.0 +margin_bottom = 68.0 +text = "Quest added to your journal" +align = 1