diff --git a/Resources/Scripts/Scene/20179/scene20179.lua b/Resources/Scripts/Scene/20179/scene20179.lua index a45d02b64..f06543456 100644 --- a/Resources/Scripts/Scene/20179/scene20179.lua +++ b/Resources/Scripts/Scene/20179/scene20179.lua @@ -1,4 +1,4 @@ --- map configuration +-- scene config scene_config = { begin_pos = { x = -512.0, z = -512.0 }, size = { x = 1024.0, z = 1024.0 }, @@ -9,16 +9,10 @@ scene_config = { vision_anchor = { x = -1000.0, z = -1000.0 } } --- all blocks +-- ids blocks blocks = { 20179 } --- All block bounds coordinates +-- block bounds coordinates block_rects = { { min = { x = -512.0, z = -512.0 }, max = { x = 512.0, z = 512.0 } } -} - --- Dummy Points -dummy_points = { "dummy_points" } - --- Routes -routes_config = { } \ No newline at end of file +} \ No newline at end of file diff --git a/Resources/Scripts/Scene/20179/scene20179_block20179.lua b/Resources/Scripts/Scene/20179/scene20179_block20179.lua index 9c9590a1f..81ae0e601 100644 --- a/Resources/Scripts/Scene/20179/scene20179_block20179.lua +++ b/Resources/Scripts/Scene/20179/scene20179_block20179.lua @@ -1,5 +1,7 @@ --- all groups +-- groups groups = { - { id = 220179001, refresh_id = 1, pos = { x = 100, y = 10.5, z = 99.5 } }, - { id = 220179002, refresh_id = 1, pos = { x = 299.999, y = 10.2, z = 99.999 } } + { + id = 220179001, + pos = { x = 100, y = 10.5, z = 99.5 } + } } \ No newline at end of file diff --git a/Resources/Scripts/Scene/20179/scene20179_dummy_points.lua b/Resources/Scripts/Scene/20179/scene20179_dummy_points.lua deleted file mode 100644 index 6383d7d04..000000000 --- a/Resources/Scripts/Scene/20179/scene20179_dummy_points.lua +++ /dev/null @@ -1,2 +0,0 @@ -dummy_points = { -} \ No newline at end of file diff --git a/Resources/Scripts/Scene/20179/scene20179_group220179001.lua b/Resources/Scripts/Scene/20179/scene20179_group220179001.lua index bfe65dda1..e7e12f12f 100644 --- a/Resources/Scripts/Scene/20179/scene20179_group220179001.lua +++ b/Resources/Scripts/Scene/20179/scene20179_group220179001.lua @@ -3,7 +3,24 @@ local base_info = { } monsters = { - { config_id = 1028, monster_id = 29080103, pos = { x = 100, y = 10.271, z = 100 }, rot = { x = 0.000, y = 161.345, z = 0.000 }, level = 32, title_id = 171, special_name_id = 13, isElite = true } + { + config_id = 1028, + monster_id = 29080103, + pos = { x = 100, y = 10.271, z = 100 }, + rot = { x = 0.000, y = 161.345, z = 0.000 }, + level = 1, + title_id = 171, + special_name_id = 13, + }, + { + config_id = 1029, + monster_id = 29080104, + pos = { x = 298.354, y = 10.271, z = 109.712 }, + rot = { x = 0.000, y = 0.000, z = 0.000 }, + level = 1, + title_id = 173, -- idk name not show up + special_name_id = 14, + } } npcs = { @@ -16,13 +33,21 @@ gadgets = { { config_id = 1027, gadget_id = 70290987, pos = { x = 100, y = 10.251, z = 100 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, is_enable_interact = true }, { config_id = 1029, gadget_id = 70290954, pos = { x = 100, y = 10.2, z = 100 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, is_enable_interact = true }, { config_id = 1039, gadget_id = 70290995, pos = { x = 204.242, y = 10.001, z = 115.858 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, is_enable_interact = true }, + { config_id = 2001, gadget_id = 70291045, pos = { x = 300.381, y = 37.317, z = 300.381 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, is_enable_interact = true }, + { config_id = 2002, gadget_id = 70290986, pos = { x = 300, y = 10.251, z = 300 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, is_enable_interact = true }, + { config_id = 2006, gadget_id = 70290964, pos = { x = 299.999, y = 10.2, z = 299.999 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, is_enable_interact = true }, + { config_id = 2007, gadget_id = 70360001, pos = { x = 299.999, y = 10.2, z = 299.999 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, is_enable_interact = true }, + -- gif + { config_id = 2008, gadget_id = 70210106, pos = { x = 301.228, y = 10.271, z = 95.719 }, rot = { x = 0, y = 21, z = 0 }, level = 1, drop_tag = "「正机之神」", persistent = true, boss_chest = { monster_config_id=1029, resin=60, life_time = 1800, take_num = 1} } } regions = { } triggers = { - { config_id = 1001028, name = "ANY_MONSTER_DIE_1028", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_1028", action = "action_EVENT_ANY_MONSTER_DIE_1028", trigger_count = 0 } + { config_id = 1001028, name = "ANY_MONSTER_DIE_1028", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_1028", action = "action_EVENT_ANY_MONSTER_DIE_1028", trigger_count = 0 }, + { config_id = 1001029, name = "ANY_MONSTER_DIE_1029", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_1029", action = "action_EVENT_ANY_MONSTER_DIE_1029", trigger_count = 0 }, + { config_id = 1001029, name = "ANY_MONSTER_LIVE_1029", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_1029", action = "action_EVENT_ANY_MONSTER_LIVE_1029", trigger_count = 0 } } variables = { @@ -41,6 +66,13 @@ suites = { regions = { }, triggers = { "ANY_MONSTER_DIE_1028" }, rand_weight = 100 + }, + { + monsters = { 1029 }, + gadgets = { 2006, 2002, 2001, 2007 }, + regions = { }, + triggers = { "ANY_MONSTER_LIVE_1029", "ANY_MONSTER_DIE_1029" }, + rand_weight = 100 } } @@ -52,6 +84,29 @@ end function action_EVENT_ANY_MONSTER_DIE_1028(context, evt) ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set die action monster 1 and refresh group 2") ScriptLib.PlayCutScene(context, 121, 0) - ScriptLib.RefreshGroup(context, { group_id = 220179002, suite = 1 }) + ScriptLib.RefreshGroup(context, { group_id = 220179001, suite = 2 }) + return true +end + +function condition_EVENT_ANY_MONSTER_DIE_1029(context, evt) + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set die condition monster 2") + return true +end + +function action_EVENT_ANY_MONSTER_DIE_1029(context, evt) + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set die action monster 2") + ScriptLib.CreateGadget(context, { config_id = 2008 }) + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add") + return true +end + +function condition_EVENT_ANY_MONSTER_LIVE_1029(context, evt) + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set live condition monster 2") + return true +end + +function action_EVENT_ANY_MONSTER_LIVE_1029(context, evt) + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set live action monster 2") + --todo return true end \ No newline at end of file diff --git a/Resources/Scripts/Scene/20179/scene20179_group220179002.lua b/Resources/Scripts/Scene/20179/scene20179_group220179002.lua deleted file mode 100644 index 8c995c0bb..000000000 --- a/Resources/Scripts/Scene/20179/scene20179_group220179002.lua +++ /dev/null @@ -1,69 +0,0 @@ -local base_info = { - group_id = 220179002 -} - -monsters = { - { config_id = 1029, monster_id = 29080104, pos = { x = 298.354, y = 10.271, z = 109.712 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 32, title_id = 173, special_name_id = 14, isElite = true } -} - -npcs = { -} - -gadgets = { - { config_id = 2001, gadget_id = 70291045, pos = { x = 300.381, y = 37.317, z = 300.381 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, is_enable_interact = true }, - { config_id = 2002, gadget_id = 70290986, pos = { x = 300, y = 10.251, z = 300 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, is_enable_interact = true }, - { config_id = 2006, gadget_id = 70290964, pos = { x = 299.999, y = 10.2, z = 299.999 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, is_enable_interact = true }, - { config_id = 2007, gadget_id = 70360001, pos = { x = 299.999, y = 10.2, z = 299.999 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 90, is_enable_interact = true }, - -- git - { config_id = 2008, gadget_id = 70210106, pos = { x = 301.228, y = 10.271, z = 95.719 }, rot = { x = 0, y = 21, z = 0 }, level = 1, drop_tag = "「正机之神」", persistent = true, boss_chest = { monster_config_id=1029, resin=60, life_time = 1800, take_num = 1} } -} - -regions = { -} - -triggers = { - { config_id = 1001029, name = "ANY_MONSTER_DIE_1029", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_1029", action = "action_EVENT_ANY_MONSTER_DIE_1029", trigger_count = 0 }, - { config_id = 1001029, name = "ANY_MONSTER_LIVE_1029", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_1029", action = "action_EVENT_ANY_MONSTER_LIVE_1029", trigger_count = 0 } -} - -variables = { -} - -init_config = { - suite = 1, - end_suite = 0, - rand_suite = false -} - -suites = { - { - monsters = { 1029 }, - gadgets = { 2006, 2002, 2001, 2007 }, - regions = { }, - triggers = { "ANY_MONSTER_LIVE_1029", "ANY_MONSTER_DIE_1029" }, - rand_weight = 100 - } -} - -function condition_EVENT_ANY_MONSTER_DIE_1029(context, evt) - ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set die condition monster 2") - return true -end - -function action_EVENT_ANY_MONSTER_DIE_1029(context, evt) - ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set die action monster 2") - ScriptLib.CreateGadget(context, { config_id = 2008 }) - ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add") - return true -end - -function condition_EVENT_ANY_MONSTER_LIVE_1029(context, evt) - ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set live condition monster 2") - return true -end - -function action_EVENT_ANY_MONSTER_LIVE_1029(context, evt) - ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set live action monster 2") - --todo - return true -end \ No newline at end of file