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

223 lines
11 KiB
Go

-- 基础信息
local base_info = {
group_id = 250015043
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 43001, monster_id = 20010301, pos = { x = 97.623, y = 0.500, z = -121.768 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43002, monster_id = 20010301, pos = { x = 97.680, y = 0.500, z = -121.224 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43003, monster_id = 20010301, pos = { x = 98.170, y = 0.500, z = -121.803 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43004, monster_id = 20010301, pos = { x = 98.108, y = 0.500, z = -121.611 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43005, monster_id = 20010301, pos = { x = 98.273, y = 0.500, z = -121.150 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43006, monster_id = 20010301, pos = { x = 97.271, y = 0.500, z = -121.475 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43007, monster_id = 20010301, pos = { x = 97.798, y = 0.500, z = -120.750 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43008, monster_id = 20010301, pos = { x = 97.285, y = 0.500, z = -121.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43009, monster_id = 20010301, pos = { x = 98.258, y = 0.500, z = -120.717 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43010, monster_id = 20010301, pos = { x = 98.859, y = 0.500, z = -120.813 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43011, monster_id = 20010301, pos = { x = 98.880, y = 0.500, z = -121.680 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43012, monster_id = 20010301, pos = { x = 98.714, y = 0.500, z = -122.051 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43013, monster_id = 20010301, pos = { x = 97.437, y = 0.500, z = -120.640 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1018, 1019 } },
{ config_id = 43014, monster_id = 20010301, pos = { x = 99.405, y = 0.500, z = -121.155 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43015, monster_id = 20010301, pos = { x = 97.798, y = 0.500, z = -120.417 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43016, monster_id = 20011001, pos = { x = 97.124, y = 0.500, z = -127.894 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43017, monster_id = 20011001, pos = { x = 97.124, y = 0.500, z = -127.568 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43018, monster_id = 20011001, pos = { x = 96.634, y = 0.500, z = -127.855 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43019, monster_id = 20011001, pos = { x = 96.985, y = 0.500, z = -128.496 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43020, monster_id = 20011001, pos = { x = 97.554, y = 0.500, z = -127.546 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43021, monster_id = 20011001, pos = { x = 96.718, y = 0.500, z = -127.485 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43022, monster_id = 20011001, pos = { x = 96.521, y = 0.500, z = -128.336 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43023, monster_id = 20011001, pos = { x = 97.346, y = 0.500, z = -127.132 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43024, monster_id = 20011001, pos = { x = 96.725, y = 0.500, z = -127.093 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43025, monster_id = 20011001, pos = { x = 96.093, y = 0.500, z = -128.295 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43026, monster_id = 20011001, pos = { x = 96.267, y = 0.500, z = -127.624 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43027, monster_id = 20011001, pos = { x = 95.816, y = 0.500, z = -127.777 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43028, monster_id = 20011001, pos = { x = 95.724, y = 0.500, z = -128.328 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43029, monster_id = 20011001, pos = { x = 96.295, y = 0.500, z = -127.157 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43030, monster_id = 20011001, pos = { x = 95.809, y = 0.500, z = -127.368 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43032, monster_id = 22010101, pos = { x = 92.333, y = 0.500, z = -128.945 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43038, monster_id = 24010201, pos = { x = 97.133, y = 0.500, z = -118.788 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 100 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 43031, gadget_id = 70211012, pos = { x = 94.978, y = 0.500, z = -124.448 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗中级蒙德", state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 43033, gadget_id = 70310006, pos = { x = 93.092, y = 0.500, z = -124.825 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 43034, shape = RegionShape.SPHERE, radius = 10.8, pos = { x = 96.141, y = 0.500, z = -123.718 } }
}
-- 触发器
triggers = {
{ config_id = 1043034, name = "ENTER_REGION_43034", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_43034", action = "action_EVENT_ENTER_REGION_43034" },
{ config_id = 1043035, name = "ANY_MONSTER_DIE_43035", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_43035", action = "action_EVENT_ANY_MONSTER_DIE_43035" },
{ config_id = 1043036, name = "ANY_MONSTER_DIE_43036", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_43036", action = "action_EVENT_ANY_MONSTER_DIE_43036" },
{ config_id = 1043037, name = "ANY_MONSTER_DIE_43037", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_43037", action = "action_EVENT_ANY_MONSTER_DIE_43037" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 43001, 43002, 43003, 43004, 43005, 43006, 43007, 43008, 43009, 43010, 43011, 43012, 43013, 43014, 43015 },
gadgets = { 43031, 43033 },
regions = { 43034 },
triggers = { "ENTER_REGION_43034", "ANY_MONSTER_DIE_43035" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 43016, 43017, 43018, 43019, 43020, 43021, 43022, 43023, 43024, 43025, 43026, 43027, 43028, 43029, 43030 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_43036" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 43032, 43038 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_43037" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_43034(context, evt)
if evt.param1 ~= 43034 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_43034(context, evt)
-- 在指定位置对应半径范围播放reminder
local pos = {x=81,y=-5,z=-167}
if 0 ~= ScriptLib.ShowReminderRadius(context, 1110028, pos, 50) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui_bypos")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_43035(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250015043) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_43035(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250015043, 2)
-- 在指定位置对应半径范围播放reminder
local pos = {x=81,y=-5,z=-167}
if 0 ~= ScriptLib.ShowReminderRadius(context, 1110014, pos, 50) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui_bypos")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_43036(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250015043) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_43036(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250015043, 3)
-- 在指定位置对应半径范围播放reminder
local pos = {x=81,y=-5,z=-167}
if 0 ~= ScriptLib.ShowReminderRadius(context, 1120001, pos, 50) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui_bypos")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_43037(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250015043) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_43037(context, evt)
-- 将configid为 43031 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 43031, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end