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

341 lines
15 KiB
Go

-- 基础信息
local base_info = {
group_id = 220151011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 11001, gadget_id = 70330444, pos = { x = -133.220, y = -45.182, z = 44.300 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11002, gadget_id = 70330444, pos = { x = -133.220, y = -45.182, z = 42.940 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11003, gadget_id = 70330444, pos = { x = -120.800, y = -45.182, z = 44.300 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11004, gadget_id = 70330444, pos = { x = -120.800, y = -45.182, z = 42.940 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11005, gadget_id = 70330444, pos = { x = -120.800, y = -45.182, z = 37.275 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11006, gadget_id = 70330444, pos = { x = -120.800, y = -45.182, z = 35.916 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11007, gadget_id = 70330444, pos = { x = -133.220, y = -45.182, z = 37.275 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11008, gadget_id = 70330444, pos = { x = -133.220, y = -45.182, z = 35.916 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11009, gadget_id = 70330444, pos = { x = -132.354, y = -45.182, z = 29.570 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11010, gadget_id = 70330444, pos = { x = -133.713, y = -45.182, z = 29.567 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11011, gadget_id = 70330444, pos = { x = -143.868, y = -45.182, z = 29.570 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11012, gadget_id = 70330444, pos = { x = -145.227, y = -45.182, z = 29.567 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11013, gadget_id = 70330444, pos = { x = -144.546, y = -45.182, z = 35.892 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11014, gadget_id = 70330444, pos = { x = -144.545, y = -45.182, z = 37.252 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11015, gadget_id = 70330444, pos = { x = -143.868, y = -45.182, z = 43.568 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11016, gadget_id = 70330444, pos = { x = -145.227, y = -45.182, z = 43.568 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11017, gadget_id = 70330444, pos = { x = -144.546, y = -45.182, z = 54.980 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11018, gadget_id = 70330444, pos = { x = -144.546, y = -45.182, z = 56.339 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11019, gadget_id = 70330444, pos = { x = -133.340, y = -45.182, z = 54.980 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11020, gadget_id = 70330444, pos = { x = -133.340, y = -45.182, z = 56.339 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11021, gadget_id = 70330322, pos = { x = -124.047, y = -45.210, z = 43.596 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11022, gadget_id = 70330322, pos = { x = -130.124, y = -45.210, z = 43.596 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 11023, gadget_id = 70330322, pos = { x = -124.047, y = -45.210, z = 36.621 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11024, gadget_id = 70330322, pos = { x = -130.124, y = -45.210, z = 36.621 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 11025, gadget_id = 70330322, pos = { x = -133.091, y = -45.210, z = 32.963 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 11026, gadget_id = 70330322, pos = { x = -144.179, y = -45.210, z = 26.963 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11027, gadget_id = 70330322, pos = { x = -142.124, y = -45.210, z = 36.621 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 11028, gadget_id = 70330322, pos = { x = -144.533, y = -45.210, z = 40.525 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11029, gadget_id = 70330322, pos = { x = -141.475, y = -45.210, z = 55.605 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 11030, gadget_id = 70330322, pos = { x = -135.398, y = -45.210, z = 55.605 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11038, gadget_id = 70330321, pos = { x = -145.587, y = -45.259, z = 59.143 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 11031, shape = RegionShape.SPHERE, radius = 7, pos = { x = -127.017, y = -44.691, z = 46.806 } },
{ config_id = 11032, shape = RegionShape.SPHERE, radius = 6, pos = { x = -127.017, y = -44.691, z = 35.970 } },
{ config_id = 11033, shape = RegionShape.SPHERE, radius = 6, pos = { x = -130.468, y = -43.930, z = 30.789 } },
{ config_id = 11034, shape = RegionShape.SPHERE, radius = 5, pos = { x = -138.011, y = -45.210, z = 32.460 } },
{ config_id = 11035, shape = RegionShape.SPHERE, radius = 4, pos = { x = -144.802, y = -43.339, z = 38.913 } },
{ config_id = 11036, shape = RegionShape.SPHERE, radius = 6, pos = { x = -149.191, y = -43.339, z = 48.857 } },
{ config_id = 11037, shape = RegionShape.SPHERE, radius = 5, pos = { x = -138.672, y = -44.718, z = 54.809 } },
{ config_id = 11039, shape = RegionShape.SPHERE, radius = 6, pos = { x = -143.452, y = -45.210, z = 62.026 } }
}
-- 触发器
triggers = {
{ config_id = 1011031, name = "ENTER_REGION_11031", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11031", action = "action_EVENT_ENTER_REGION_11031", trigger_count = 0 },
{ config_id = 1011032, name = "ENTER_REGION_11032", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11032", action = "action_EVENT_ENTER_REGION_11032", trigger_count = 0 },
{ config_id = 1011033, name = "ENTER_REGION_11033", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11033", action = "action_EVENT_ENTER_REGION_11033", trigger_count = 0 },
{ config_id = 1011034, name = "ENTER_REGION_11034", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11034", action = "action_EVENT_ENTER_REGION_11034", trigger_count = 0 },
{ config_id = 1011035, name = "ENTER_REGION_11035", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11035", action = "action_EVENT_ENTER_REGION_11035", trigger_count = 0 },
{ config_id = 1011036, name = "ENTER_REGION_11036", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11036", action = "action_EVENT_ENTER_REGION_11036", trigger_count = 0 },
{ config_id = 1011037, name = "ENTER_REGION_11037", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11037", action = "action_EVENT_ENTER_REGION_11037", trigger_count = 0 },
{ config_id = 1011039, name = "ENTER_REGION_11039", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11039", action = "action_EVENT_ENTER_REGION_11039", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 11001, 11002, 11003, 11004, 11005, 11006, 11007, 11008, 11009, 11010, 11011, 11012, 11013, 11014, 11015, 11016, 11017, 11018, 11019, 11020, 11021, 11022, 11023, 11024, 11025, 11026, 11027, 11028, 11029, 11030, 11038 },
regions = { 11031, 11032, 11033, 11034, 11035, 11036, 11037, 11039 },
triggers = { "ENTER_REGION_11031", "ENTER_REGION_11032", "ENTER_REGION_11033", "ENTER_REGION_11034", "ENTER_REGION_11035", "ENTER_REGION_11036", "ENTER_REGION_11037", "ENTER_REGION_11039" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_11031(context, evt)
if evt.param1 ~= 11031 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11031(context, evt)
-- 将configid为 11021 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11021, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 11022 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11022, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11032(context, evt)
if evt.param1 ~= 11032 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11032(context, evt)
-- 将configid为 11023 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11023, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 11024 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11024, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11033(context, evt)
if evt.param1 ~= 11033 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11033(context, evt)
-- 将configid为 11025 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11025, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11034(context, evt)
if evt.param1 ~= 11034 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11034(context, evt)
-- 将configid为 11026 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11026, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 11024 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11024, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 11027 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11027, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11035(context, evt)
if evt.param1 ~= 11035 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11035(context, evt)
-- 将configid为 11028 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11028, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11036(context, evt)
if evt.param1 ~= 11036 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11036(context, evt)
-- 将configid为 11028 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11028, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11037(context, evt)
if evt.param1 ~= 11037 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11037(context, evt)
-- 将configid为 11029 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11029, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 11030 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11030, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11039(context, evt)
if evt.param1 ~= 11039 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11039(context, evt)
-- 将configid为 11038 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11038, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end