diff --git a/game/lang/lang.json b/game/lang/lang.json index 6d0bdc8..670e4f0 100644 --- a/game/lang/lang.json +++ b/game/lang/lang.json @@ -1,204 +1 @@ -{ - "tb": { - "1": { - "eng": "It hurts...", - "de": "" - }, - "2": { - "eng": "AKO\nWhat...", - "de": "" - }, - "3": { - "eng": "AKO\nBlood...?!", - "de": "" - }, - "4": { - "eng": "AKO\nWhere the fuck am I here?", - "de": "" - }, - "5": { - "eng": "There are two bats on the wall.", - "de": "" - }, - "6": { - "eng": "On one of them is blood...", - "de": "" - }, - "7": { - "eng": "AKO\nDid i get knocked out with that?", - "de": "" - }, - "8": { - "eng": "AKO\nNo wait, that'd be weird...", - "de": "" - }, - "9": { - "eng": "If I really barricated myself inside this room...", - "de": "" - }, - "10": { - "eng": "Them who could have possibly knocked me out?", - "de": "" - }, - "11": { - "eng": "I'm alone here... right...?", - "de": "" - }, - "12": { - "eng": "The door is blocked as it seems.", - "de": "" - }, - "13": { - "eng": "AKO\nWas that me?", - "de": "" - }, - "14": { - "eng": "AKO\nAah, what in the world happened here?! I cannot remember a thing...", - "de": "" - }, - "15": { - "eng": "AKO\nNo, wait just a moment", - "de": "" - }, - "16": { - "eng": "Then where is the blood on those bats from?", - "de": "" - }, - "17": { - "eng": "I didn't knock out myself after all. And...", - "de": "" - }, - "18": { - "eng": "I'm alone here... Am i not...?", - "de": "" - }, - "19": { - "eng": "A pool table.", - "de": "" - }, - "20": { - "eng": "AKO\nAll in all this seems to be a hobby room.", - "de": "" - }, - "21": { - "eng": "AKO\nBut everything is kind of corrupted. Is this modern art or something? It's a bit creepy...", - "de": "" - }, - "22": { - "eng": "What is this place anyway?", - "de": "" - }, - "23": { - "eng": "Why does everything look so weird?", - "de": "" - }, - "24": { - "eng": "WHO ARE YOU?!?!", - "de": "WER BIST DU?!?!" - }, - "25": { - "eng": "Hey hey, calm down first!", - "de": "Hey hey, beruhige dich erstmal!" - }, - "26": { - "eng": "Okay, you are right.", - "de": "Okay, hast recht" - }, - "27": { - "eng": "You see, now we can talk.", - "de": "Na siehst du, jetzt können wir uns ruhig unterhalten" - }, - "28": { - "eng": "A shelf.", - "de": "" - }, - "29": { - "eng": "AKO\nIt's kind of positioned in a suspicious way...", - "de": "" - }, - "30": { - "eng": "A vase.", - "de": "" - }, - "31": { - "eng": "", - "de": "" - }, - "32": { - "eng": "", - "de": "" - }, - "33": { - "eng": "", - "de": "" - }, - "34": { - "eng": "", - "de": "" - }, - "35": { - "eng": "", - "de": "" - }, - "36": { - "eng": "", - "de": "" - }, - "37": { - "eng": "", - "de": "" - }, - "38": { - "eng": "", - "de": "" - }, - "39": { - "eng": "", - "de": "" - }, - "40": { - "eng": "", - "de": "" - }, - "41": { - "eng": "", - "de": "" - }, - "42": { - "eng": "", - "de": "" - }, - "43": { - "eng": "", - "de": "" - }, - "44": { - "eng": "", - "de": "" - }, - "45": { - "eng": "", - "de": "" - }, - "46": { - "eng": "", - "de": "" - }, - "47": { - "eng": "", - "de": "" - }, - "48": { - "eng": "", - "de": "" - }, - "49": { - "eng": "", - "de": "" - }, - "50": { - "eng": "", - "de": "" - } - } -} \ No newline at end of file +{"StandUp_1":{"name":"screen_text","eng":"It hurts...","de":"Es tut weh..."},"StandUp_2":{"name":"AKO","eng":"What...","de":"Was..."},"StandUp_3":{"name":"AKO","eng":"Blood...?!","de":"Blut...?!"},"StandUp_4":{"name":"AKO","eng":"Where the fuck am I here?","de":"Wo zum Teufel bin ich hier?"},"BaseBallBats_Junk_1":{"name":"screen_text","eng":"If I really barricated myself inside this room...","de":"Wenn ich mich wirklich in diesem Raum verbarrikadiert habe..."},"BaseBallBats_1":{"name":"AKO","eng":"There are two bats on the wall.","de":"Da sind zwei Baseballschläger an der Wand."},"BaseBallBats_2":{"name":"AKO","eng":"On one of them is blood...","de":"Auf einem von ihnen ist Blut ..."},"BaseBallBats_3":{"name":"AKO","eng":"Did i get knocked out with that?","de":"Wurde ich damit Bewustlos geschlagen?"},"BaseBallBats_4":{"name":"AKO","eng":"No wait, that'd be weird...","de":"Nein, warte, das wäre komisch ..."},"BaseBallBats_5":{"name":"AKO","eng":"Them who could have possibly knocked me out?","de":"Aber wer könnte mich dann Bewustlos geschlagen haben?"},"BaseBallBats_6":{"name":"AKO","eng":"I'm alone here... right...?","de":"Ich bin alleine hier ... richtig ...?"},"Junk_1":{"name":"AKO","eng":"The door is blocked as it seems.","de":"Die Tür ist wie es scheint blockiert."},"Junk_2":{"name":"AKO","eng":"Was that me?","de":"War ich das?"},"Junk_3":{"name":"AKO","eng":"Aah, what in the world happened here?! I cannot remember a thing...","de":"Aah, was in aller Welt ist hier passiert?! Ich kann mich an nichts erinnern ..."},"Junk_4":{"name":"AKO","eng":"No, wait just a moment","de":"Nein, warte einen Moment"},"Junk_5":{"name":"AKO","eng":"Then where is the blood on those bats from?","de":"Woher kommt dann das Blut auf diesen Baseballschläger?"},"Junk_6":{"name":"screen_text","eng":"I didn't knock out myself after all. And...","de":"Ich habe mich doch nicht umgehauen. Und..."},"Junk_7":{"name":"screen_text","eng":"I'm alone here... Am i not...?","de":"Ich bin alleine hier... Oder nicht...?"},"PoolTable_1":{"name":"AKO","eng":"A pool table.","de":"Ein Billardtisch."},"PoolTable_2":{"name":"AKO","eng":"All in all this seems to be a hobby room.","de":"Alles in allem scheint dies ein Hobbyraum zu sein."},"PoolTable_3":{"name":"AKO","eng":"But everything is kind of corrupted. Is this modern art or something? It's a bit creepy...","de":"Aber alles ist irgendwie korrupt. Ist das moderne Kunst oder so? Es ist ein bisschen gruselig ..."},"QwennEnters_1":{"name":"screen_text","eng":"What is this place anyway?","de":"Was ist dieser Ort überhaupt?"},"QwennEnters_2":{"name":"screen_text","eng":"Why does everything look so weird?","de":"Warum sieht alles so komisch aus?"},"QwennEnters_3":{"name":"AKO","eng":"WHO ARE YOU?!?!","de":"WER BIST DU?!?!"},"QwennEnters_4":{"name":"QWENN","eng":"Hey hey, calm down first!","de":"Hey hey, beruhige dich erstmal!"},"QwennEnters_5":{"name":"AKO","eng":"Okay, you are right.","de":"Okay, hast recht."},"QwennEnters_6":{"name":"QWENN","eng":"You see, now we can talk.","de":"Na siehst du, jetzt können wir uns ruhig unterhalten."},"Shelf_1":{"name":"AKO","eng":"A shelf.","de":"Ein Regal."},"Shelf_2":{"name":"AKO","eng":"It's kind of positioned in a suspicious way...","de":"Es ist irgendwie verdächtig positioniert ..."},"Vase_1":{"name":"AKO","eng":"A vase.","de":"Eine Vase."}} \ No newline at end of file diff --git a/game/maps/hobby_room_corrupted/baseball_bats.gd b/game/maps/hobby_room_corrupted/baseball_bats.gd index 9de87ea..a87b9c5 100644 --- a/game/maps/hobby_room_corrupted/baseball_bats.gd +++ b/game/maps/hobby_room_corrupted/baseball_bats.gd @@ -2,15 +2,15 @@ extends RPGH_Event func default(): - textbox("5") + textbox("BaseBallBats_1") if is_first_run(): - textbox("6") - textbox("7", DataBase.AKO_01) + textbox("BaseBallBats_2") + textbox("BaseBallBats_3", DataBase.AKO_01) if map.talked_to_bats_or_junk.value: - textbox("8", DataBase.AKO_01) - screen_text("9") - screen_text("10") - screen_text("11") + textbox("BaseBallBats_4", DataBase.AKO_01) + screen_text("BaseBallBats_Junk_1") + screen_text("BaseBallBats_5") + screen_text("BaseBallBats_6") else: map.talked_to_bats_or_junk.value = true map.handle_talked_to_counter() diff --git a/game/maps/hobby_room_corrupted/hobby_room_corrupted.gd b/game/maps/hobby_room_corrupted/hobby_room_corrupted.gd index 2c87491..9f970c1 100644 --- a/game/maps/hobby_room_corrupted/hobby_room_corrupted.gd +++ b/game/maps/hobby_room_corrupted/hobby_room_corrupted.gd @@ -4,6 +4,7 @@ extends RPGH_Map var talked_to_bats_or_junk = Storable("TalkedToBatsOrJunk", false) var talked_to_counter = Storable("TalkedToCounter", 0) + func handle_talked_to_counter(): talked_to_counter.value += 1 if talked_to_counter.value == 4: diff --git a/game/maps/hobby_room_corrupted/junk.gd b/game/maps/hobby_room_corrupted/junk.gd index d2881eb..efa66c9 100644 --- a/game/maps/hobby_room_corrupted/junk.gd +++ b/game/maps/hobby_room_corrupted/junk.gd @@ -2,16 +2,16 @@ extends RPGH_Event func default(): - textbox("12") + textbox("Junk_1") if is_first_run(): - textbox("13", DataBase.AKO_01) - textbox("14", DataBase.AKO_02) + textbox("Junk_2", DataBase.AKO_01) + textbox("Junk_3", DataBase.AKO_02) if map.talked_to_bats_or_junk.value: - textbox("15", DataBase.AKO_01) - screen_text("9") - screen_text("16") - screen_text("17") - screen_text("18") + textbox("Junk_4", DataBase.AKO_01) + screen_text("BaseBallBats_Junk_1") + screen_text("Junk_5") + screen_text("Junk_6") + screen_text("Junk_7") else: map.talked_to_bats_or_junk.value = true map.handle_talked_to_counter() diff --git a/game/maps/hobby_room_corrupted/pool_table.gd b/game/maps/hobby_room_corrupted/pool_table.gd index 9bc8960..67cbf09 100644 --- a/game/maps/hobby_room_corrupted/pool_table.gd +++ b/game/maps/hobby_room_corrupted/pool_table.gd @@ -1,9 +1,10 @@ extends RPGH_Event + func default(): - textbox("19") + textbox("PoolTable_1") if is_first_run(): - textbox("20", DataBase.AKO_01) - textbox("21", DataBase.AKO_01) + textbox("PoolTable_2", DataBase.AKO_01) + textbox("PoolTable_3", DataBase.AKO_01) map.handle_talked_to_counter() yield(RPGH.Dialog, "finished_textbox_queue") diff --git a/game/maps/hobby_room_corrupted/qwenn_enters.gd b/game/maps/hobby_room_corrupted/qwenn_enters.gd index b5bd386..18506ab 100644 --- a/game/maps/hobby_room_corrupted/qwenn_enters.gd +++ b/game/maps/hobby_room_corrupted/qwenn_enters.gd @@ -2,15 +2,15 @@ extends RPGH_Event func default(): - screen_text("22") - screen_text("23") + screen_text("QwennEnters_1") + screen_text("QwennEnters_2") yield(RPGH.Dialog, "finished_textbox_queue") $Qwenn.visible = true yield(get_tree().create_timer(1.5), "timeout") RPGH.get_node("UI/Insertion/AnimationPlayer").play("FadeInInsertion") yield(RPGH.get_node("UI/Insertion/AnimationPlayer"), "animation_finished") - textbox("24", DataBase.AKO_04) - textbox("25", null, DataBase.QWENN_01) - textbox("26", DataBase.AKO_01) - textbox("27", null, DataBase.QWENN_02) + textbox("QwennEnters_3", DataBase.AKO_04) + textbox("QwennEnters_4", null, DataBase.QWENN_01) + textbox("QwennEnters_5", DataBase.AKO_01) + textbox("QwennEnters_6", null, DataBase.QWENN_02) yield(RPGH.Dialog, "finished_textbox_queue") diff --git a/game/maps/hobby_room_corrupted/shelf.gd b/game/maps/hobby_room_corrupted/shelf.gd index 4bed2a4..f722de9 100644 --- a/game/maps/hobby_room_corrupted/shelf.gd +++ b/game/maps/hobby_room_corrupted/shelf.gd @@ -2,8 +2,8 @@ extends RPGH_Event func default(): - textbox("28") + textbox("Shelf_1") if is_first_run(): - textbox("29", DataBase.AKO_01) + textbox("Shelf_2", DataBase.AKO_01) map.handle_talked_to_counter() yield(RPGH.Dialog, "finished_textbox_queue") diff --git a/game/maps/hobby_room_corrupted/stand_up_animation.gd b/game/maps/hobby_room_corrupted/stand_up_animation.gd index 72e5a10..86d3add 100644 --- a/game/maps/hobby_room_corrupted/stand_up_animation.gd +++ b/game/maps/hobby_room_corrupted/stand_up_animation.gd @@ -18,10 +18,10 @@ func default(): var anim = $Sprite/AnimationPlayer anim.play("WakeUpShakeHead") yield(anim, "animation_finished") - screen_text("1") - textbox("2", DataBase.AKO_02) - textbox("3", DataBase.AKO_03) - textbox("4", DataBase.AKO_04) + screen_text("StandUp_1") + textbox("StandUp_2", DataBase.AKO_02) + textbox("StandUp_3", DataBase.AKO_03) + textbox("StandUp_4", DataBase.AKO_04) yield(RPGH.Dialog, "finished_textbox_queue") anim.play("StandUp") diff --git a/game/maps/hobby_room_corrupted/vase.gd b/game/maps/hobby_room_corrupted/vase.gd index 7c08a9f..16a76ad 100644 --- a/game/maps/hobby_room_corrupted/vase.gd +++ b/game/maps/hobby_room_corrupted/vase.gd @@ -2,5 +2,5 @@ extends RPGH_Event func default(): - textbox("30") + textbox("Vase_1") yield(RPGH.Dialog, "finished_textbox_queue") diff --git a/project.godot b/project.godot index 018cb47..b46e36d 100644 --- a/project.godot +++ b/project.godot @@ -15,6 +15,11 @@ _global_script_classes=[ { "path": "res://DataBase.gd" }, { "base": "Node", +"class": "RPGH_DataManager", +"language": "GDScript", +"path": "res://addons/rpgh_engine/data_management/data_manager.gd" +}, { +"base": "Node", "class": "RPGH_Event", "language": "GDScript", "path": "res://addons/rpgh_engine/nodes/event/event.gd" @@ -36,6 +41,7 @@ _global_script_classes=[ { } ] _global_script_class_icons={ "DataBase": "", +"RPGH_DataManager": "", "RPGH_Event": "res://addons/rpgh_engine/nodes/event/icon_event.svg", "RPGH_Humanoid": "", "RPGH_Map": "res://addons/rpgh_engine/nodes/map/icon_map.svg", @@ -48,6 +54,7 @@ config/name="RPGH Engine" run/main_scene="res://main.tscn" boot_splash/bg_color=Color( 0.141176, 0.141176, 0.141176, 1 ) config/icon="res://icon.png" +config/version="0.0.1" [autoload]