Files
hk4e-go/gdconf/game_data_config/lua/scene/40031/scene40031_group240031002.lua
T
2022-11-30 00:00:20 +08:00

225 lines
9.4 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 基础信息
local base_info = {
group_id = 240031002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2001, monster_id = 21010301, pos = { x = 526.010, y = -1.921, z = 245.618 }, rot = { x = 0.000, y = 150.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2002, monster_id = 21010201, pos = { x = 538.639, y = -1.983, z = 234.985 }, rot = { x = 0.000, y = 240.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2003, monster_id = 21010201, pos = { x = 527.037, y = -1.983, z = 234.897 }, rot = { x = 0.000, y = 120.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2004, monster_id = 21010301, pos = { x = 538.729, y = -1.953, z = 245.587 }, rot = { x = 0.000, y = 210.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2005, monster_id = 21010201, pos = { x = 525.977, y = -1.984, z = 242.190 }, rot = { x = 0.000, y = 150.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2006, monster_id = 21020201, pos = { x = 538.589, y = -1.984, z = 237.988 }, rot = { x = 0.000, y = 210.000, z = 0.000 }, level = 1, affix = { 1007 } },
{ config_id = 2007, monster_id = 21020201, pos = { x = 526.619, y = -1.984, z = 238.006 }, rot = { x = 0.000, y = 150.000, z = 0.000 }, level = 1, affix = { 1007 } },
{ config_id = 2008, monster_id = 21010201, pos = { x = 538.772, y = -1.984, z = 242.009 }, rot = { x = 0.000, y = 210.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2009, monster_id = 21010201, pos = { x = 530.294, y = -1.983, z = 245.781 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2010, monster_id = 21010201, pos = { x = 535.410, y = -2.056, z = 245.817 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2011, monster_id = 21010201, pos = { x = 532.987, y = -1.984, z = 247.991 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2012, monster_id = 21010201, pos = { x = 526.133, y = -1.983, z = 245.317 }, rot = { x = 0.000, y = 150.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2013, monster_id = 21010201, pos = { x = 538.605, y = -1.983, z = 245.325 }, rot = { x = 0.000, y = 210.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2014, monster_id = 21010201, pos = { x = 527.270, y = -1.983, z = 235.124 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2015, monster_id = 21010201, pos = { x = 538.228, y = -1.983, z = 235.061 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2016, monster_id = 21010201, pos = { x = 526.504, y = -1.984, z = 242.149 }, rot = { x = 0.000, y = 150.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2017, monster_id = 21010201, pos = { x = 538.587, y = -1.984, z = 238.511 }, rot = { x = 0.000, y = 210.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2018, monster_id = 21010201, pos = { x = 527.056, y = -1.984, z = 238.152 }, rot = { x = 0.000, y = 150.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2019, monster_id = 21010201, pos = { x = 538.497, y = -1.984, z = 241.787 }, rot = { x = 0.000, y = 210.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } },
{ config_id = 2020, monster_id = 21010201, pos = { x = 533.403, y = -1.984, z = 248.661 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, affix = { 1007, 1008 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2024, gadget_id = 70900205, pos = { x = 528.261, y = -2.765, z = 242.811 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1002021, name = "ANY_MONSTER_LIVE_2021", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_2021", action = "action_EVENT_ANY_MONSTER_LIVE_2021" },
{ config_id = 1002022, name = "CHALLENGE_FAIL_2022", event = EventType.EVENT_CHALLENGE_FAIL, source = "110110", condition = "", action = "action_EVENT_CHALLENGE_FAIL_2022", trigger_count = 0 },
{ config_id = 1002023, name = "CHALLENGE_SUCCESS_2023", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "110110", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_2023", trigger_count = 0 },
{ config_id = 1002025, name = "MONSTER_TIDE_DIE_2025", event = EventType.EVENT_MONSTER_TIDE_DIE, source = "3", condition = "condition_EVENT_MONSTER_TIDE_DIE_2025", action = "action_EVENT_MONSTER_TIDE_DIE_2025" },
{ config_id = 1002026, name = "MONSTER_TIDE_DIE_2026", event = EventType.EVENT_MONSTER_TIDE_DIE, source = "4", condition = "condition_EVENT_MONSTER_TIDE_DIE_2026", action = "action_EVENT_MONSTER_TIDE_DIE_2026", trigger_count = 0 },
{ config_id = 1002027, name = "MONSTER_TIDE_DIE_2027", event = EventType.EVENT_MONSTER_TIDE_DIE, source = "5", condition = "condition_EVENT_MONSTER_TIDE_DIE_2027", action = "action_EVENT_MONSTER_TIDE_DIE_2027", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2024 },
regions = { },
triggers = { "ANY_MONSTER_LIVE_2021", "CHALLENGE_FAIL_2022", "CHALLENGE_SUCCESS_2023", "MONSTER_TIDE_DIE_2025", "MONSTER_TIDE_DIE_2026", "MONSTER_TIDE_DIE_2027" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 2001, 2002, 2003, 2004, 2005, 2006, 2007 },
gadgets = { 2024 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 2024 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_2021(context, evt)
if 2001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_2021(context, evt)
ScriptLib.CreateFatherChallenge(context, 110110, 110110, 90, {success = 2, fail = 1, fail_on_wipe=true})
ScriptLib.AttachChildChallenge(context, 110110, 110111, 110111, {15000,0,0,0},{},{success=1,fail=1})
ScriptLib.AttachChildChallenge(context, 110110, 110112, 110112, {1,15,0,0},{},{success=1,fail=1})
ScriptLib.StartFatherChallenge(context, 110110)
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_2022(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240031002, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240031001, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_2023(context, evt)
-- 改变指定group组240031001中, configid为1001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240031001, 1001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240031002, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_MONSTER_TIDE_DIE_2025(context, evt)
if 5 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_MONSTER_TIDE_DIE_2025(context, evt)
-- 创建编号为4(该怪物潮的识别id)的怪物潮,创建怪物总数为1,场上怪物最少1只,最多1只
if 0 ~= ScriptLib.AutoMonsterTide(context, 4, 240031002, {2006}, 1, 1, 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_MONSTER_TIDE_DIE_2026(context, evt)
if 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_MONSTER_TIDE_DIE_2026(context, evt)
-- 创建编号为5(该怪物潮的识别id)的怪物潮,创建怪物总数为1,场上怪物最少1只,最多1只
if 0 ~= ScriptLib.AutoMonsterTide(context, 5, 240031002, {2007}, 1, 1, 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_MONSTER_TIDE_DIE_2027(context, evt)
if 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_MONSTER_TIDE_DIE_2027(context, evt)
-- 创建编号为4(该怪物潮的识别id)的怪物潮,创建怪物总数为1,场上怪物最少1只,最多1只
if 0 ~= ScriptLib.AutoMonsterTide(context, 4, 240031002, {2006}, 1, 1, 1) then
return -1
end
return 0
end