添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions
@@ -0,0 +1,30 @@
-- 地图配置
scene_config = {
begin_pos = { x = -2325.0, z = -1646.1 },
size = { x = 5799.9, z = 5191.3 },
born_pos = { x = 337.917, y = -32.890, z = 526.590 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
born_point_list = {
{ pos = { x = 343.209, y = -27.850, z = 480.252 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = 344.868, y = -27.850, z = 482.272 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = 341.477, y = -27.850, z = 482.199 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = 343.066, y = -27.850, z = 484.237 }, rot = { x = 0.000, y = 180.000, z = 0.000 } }
},
die_y = -35,
city_id = 1,
vision_anchor = { x = -2325.0, z = -1646.1 }
}
-- 所有的区块
blocks = { 44002 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -2325.0, z = -1646.1 }, max = { x = 3474.9, z = 3545.2 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }
@@ -0,0 +1,12 @@
-- 所有的group
groups = {
{ id = 244002001, refresh_id = 1, pos = { x = 344.885, y = -32.890, z = 508.360 } },
{ id = 244002002, refresh_id = 1001, pos = { x = 343.175, y = -27.850, z = 484.053 } },
{ id = 244002003, refresh_id = 1, pos = { x = 343.238, y = -28.891, z = 430.766 } },
{ id = 244002004, refresh_id = 1001, pos = { x = 342.556, y = -28.965, z = 433.009 } },
{ id = 244002005, refresh_id = 1, pos = { x = 343.082, y = -19.277, z = 343.558 } },
{ id = 244002006, refresh_id = 1002, pos = { x = 343.002, y = -19.277, z = 344.350 } },
{ id = 244002007, refresh_id = 1, pos = { x = 343.238, y = -12.741, z = 263.001 } },
{ id = 244002008, refresh_id = 1002, pos = { x = 344.198, y = -12.741, z = 262.404 } },
{ id = 244002009, refresh_id = 1, pos = { x = 343.503, y = -28.891, z = 430.831 } }
}
@@ -0,0 +1,95 @@
-- 基础信息
local base_info = {
group_id = 244002001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70350002, pos = { x = 343.305, y = -11.435, z = 240.276 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1002, gadget_id = 70350003, pos = { x = 333.271, y = -27.948, z = 404.569 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1003, gadget_id = 70350003, pos = { x = 353.156, y = -27.945, z = 404.581 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1004, gadget_id = 70350003, pos = { x = 353.340, y = -18.920, z = 368.403 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1005, gadget_id = 70350003, pos = { x = 333.280, y = -18.814, z = 368.263 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1006, gadget_id = 70350003, pos = { x = 353.205, y = -18.386, z = 322.503 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1007, gadget_id = 70350003, pos = { x = 333.308, y = -18.412, z = 322.496 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1008, gadget_id = 70350003, pos = { x = 353.256, y = -11.382, z = 291.467 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1009, gadget_id = 70350003, pos = { x = 333.287, y = -11.422, z = 291.433 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1010, gadget_id = 70220013, pos = { x = 329.772, y = -27.898, z = 409.270 }, rot = { x = 0.000, y = 345.751, z = 0.000 }, level = 1 },
{ config_id = 1011, gadget_id = 70220013, pos = { x = 329.350, y = -27.983, z = 411.560 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1012, gadget_id = 70220013, pos = { x = 369.274, y = -14.284, z = 333.096 }, rot = { x = 0.000, y = 8.168, z = 0.000 }, level = 1 },
{ config_id = 1013, gadget_id = 70220013, pos = { x = 369.289, y = -14.283, z = 335.231 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1014, gadget_id = 70220013, pos = { x = 367.662, y = -14.283, z = 336.249 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1015, gadget_id = 70220014, pos = { x = 366.270, y = -14.283, z = 336.464 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1016, gadget_id = 70220013, pos = { x = 331.171, y = -28.014, z = 411.123 }, rot = { x = 0.000, y = 13.885, z = 0.000 }, level = 1 },
{ config_id = 1017, gadget_id = 70220013, pos = { x = 348.002, y = -27.844, z = 467.710 }, rot = { x = 0.000, y = 24.405, z = 0.000 }, level = 1 },
{ config_id = 1018, gadget_id = 70220013, pos = { x = 349.566, y = -27.844, z = 469.490 }, rot = { x = 0.000, y = 353.529, z = 0.000 }, level = 1 },
{ config_id = 1019, gadget_id = 70220013, pos = { x = 349.002, y = -27.860, z = 471.287 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1020, gadget_id = 70350003, pos = { x = 343.282, y = -18.401, z = 322.518 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1021, gadget_id = 70350003, pos = { x = 343.293, y = -11.416, z = 291.493 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1022, gadget_id = 70350003, pos = { x = 343.089, y = -27.966, z = 404.570 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1023, gadget_id = 70350003, pos = { x = 343.313, y = -18.860, z = 368.386 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1024, gadget_id = 70350013, pos = { x = 343.192, y = -27.850, z = 458.415 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1024 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,75 @@
-- 基础信息
local base_info = {
group_id = 244002002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2001, monster_id = 21011001, pos = { x = 347.566, y = -27.860, z = 471.301 }, rot = { x = 0.000, y = 273.782, z = 0.000 }, level = 1, disableWander = true, affix = { 1006 }, pose_id = 9003 },
{ config_id = 2002, monster_id = 21011001, pos = { x = 348.824, y = -27.910, z = 472.783 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1006 }, pose_id = 9003 },
{ config_id = 2003, monster_id = 21010201, pos = { x = 341.900, y = -27.850, z = 472.877 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 2004, monster_id = 21010201, pos = { x = 344.242, y = -27.850, z = 475.281 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1006 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,138 @@
-- 基础信息
local base_info = {
group_id = 244002003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70360002, pos = { x = 343.304, y = -28.891, z = 430.875 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_guest_can_operate = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1003002, name = "GADGET_CREATE_3002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_3002", action = "action_EVENT_GADGET_CREATE_3002" },
{ config_id = 1003003, name = "SELECT_OPTION_3003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3003", action = "action_EVENT_SELECT_OPTION_3003", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001 },
regions = { },
triggers = { "GADGET_CREATE_3002", "SELECT_OPTION_3003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_3002(context, evt)
if 3001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_3002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 244002003, 3001, {214}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3003(context, evt)
-- 判断是gadgetid 3001 option_id 214
if 3001 ~= evt.param1 then
return false
end
if 214 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3003(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 244002004, 2)
-- 删除指定group 244002003 ;指定config3001;物件身上指定option214
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 244002003, 3001, 214) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 3001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 244002009, 2)
-- 改变指定group组244002001中, configid为1024的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 244002001, 1024, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,260 @@
-- 基础信息
local base_info = {
group_id = 244002004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 4001, monster_id = 20011101, pos = { x = 343.418, y = -28.964, z = 426.958 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 4002, monster_id = 20011001, pos = { x = 347.752, y = -28.965, z = 427.715 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 4003, monster_id = 20011001, pos = { x = 338.980, y = -28.964, z = 427.322 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 4004, monster_id = 20011001, pos = { x = 346.230, y = -28.983, z = 423.721 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 4006, monster_id = 21010502, pos = { x = 339.813, y = -28.983, z = 420.362 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 4007, monster_id = 21010502, pos = { x = 346.433, y = -28.983, z = 420.396 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 4008, monster_id = 21030101, pos = { x = 335.461, y = -28.984, z = 423.037 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 4009, monster_id = 21030101, pos = { x = 331.510, y = -28.983, z = 426.468 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 4010, monster_id = 21011002, pos = { x = 350.712, y = -28.984, z = 422.396 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 4011, monster_id = 21011002, pos = { x = 353.025, y = -28.984, z = 425.129 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 4012, monster_id = 21010701, pos = { x = 339.390, y = -28.984, z = 425.605 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 4013, monster_id = 21010701, pos = { x = 336.127, y = -28.984, z = 429.229 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4017, gadget_id = 70900205, pos = { x = 344.871, y = -32.996, z = 431.932 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4018, gadget_id = 70330057, pos = { x = 343.239, y = -28.891, z = 430.761 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1004005, name = "ANY_MONSTER_DIE_4005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4005", action = "action_EVENT_ANY_MONSTER_DIE_4005" },
{ config_id = 1004014, name = "CHALLENGE_SUCCESS_4014", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "2", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_4014" },
{ config_id = 1004015, name = "CHALLENGE_FAIL_4015", event = EventType.EVENT_CHALLENGE_FAIL, source = "2", condition = "", action = "action_EVENT_CHALLENGE_FAIL_4015" },
{ config_id = 1004016, name = "ANY_MONSTER_LIVE_4016", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_4016", action = "action_EVENT_ANY_MONSTER_LIVE_4016" },
{ config_id = 1004019, name = "GADGET_CREATE_4019", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_4019", action = "action_EVENT_GADGET_CREATE_4019" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4017 },
regions = { },
triggers = { "CHALLENGE_SUCCESS_4014", "CHALLENGE_FAIL_4015", "ANY_MONSTER_LIVE_4016" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 4001, 4002, 4003, 4004, 4006, 4007 },
gadgets = { 4017, 4018 },
regions = { },
triggers = { "ANY_MONSTER_DIE_4005", "GADGET_CREATE_4019" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 4008, 4009, 4010, 4011, 4012, 4013 },
gadgets = { 4017 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4005(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4005(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 244002004, 3)
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_4014(context, evt)
-- 将configid为 4018 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4018, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 4018 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 改变指定group组244002001中, configid为1022的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 244002001, 1022, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组244002001中, configid为1023的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 244002001, 1023, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组244002001中, configid为1024的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 244002001, 1024, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 244002009, 3)
-- 触发镜头注目,注目位置为坐标(343,-28,404),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=343, y=-28, z=404}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 2,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
-- 杀死Group内所有gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 244002004, kill_policy = GroupKillPolicy.GROUP_KILL_GADGET }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_gadget_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_4015(context, evt)
-- 将configid为 4018 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4018, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 4018 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 改变指定group组244002001中, configid为1024的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 244002001, 1024, 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 = 244002004, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 244002003, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 244002009, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_4016(context, evt)
if 4001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_4016(context, evt)
-- 创建编号为2(该挑战的识别id),挑战内容为5的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 2, 5, 30, 244002004, 12, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_4019(context, evt)
if 4018 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_4019(context, evt)
-- 将configid为 4018 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4018, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,153 @@
-- 基础信息
local base_info = {
group_id = 244002005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5008, gadget_id = 70360002, pos = { x = 343.258, y = -19.277, z = 343.700 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_guest_can_operate = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1005001, name = "GADGET_CREATE_5001", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_5001", action = "action_EVENT_GADGET_CREATE_5001" },
{ config_id = 1005004, name = "SELECT_OPTION_5004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5004", action = "action_EVENT_SELECT_OPTION_5004", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5008 },
regions = { },
triggers = { "GADGET_CREATE_5001", "SELECT_OPTION_5004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_5001(context, evt)
if 5008 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_5001(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 244002005, 5008, {214}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5004(context, evt)
-- 判断是gadgetid 5008 option_id 214
if 5008 ~= evt.param1 then
return false
end
if 214 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5004(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 244002006, 2)
-- 删除指定group 244002005 ;指定config5008;物件身上指定option214
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 244002005, 5008, 214) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 改变指定group组244002001中, configid为1022的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 244002001, 1022, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组244002001中, configid为1023的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 244002001, 1023, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 将configid为 5008 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5008, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 244002009, 3)
return 0
end
@@ -0,0 +1,265 @@
-- 基础信息
local base_info = {
group_id = 244002006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 6001, monster_id = 23010601, pos = { x = 342.994, y = -19.277, z = 330.577 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 6002, monster_id = 23010201, pos = { x = 338.995, y = -19.276, z = 336.967 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 6003, monster_id = 23010501, pos = { x = 345.991, y = -19.277, z = 337.495 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 6004, monster_id = 23020101, pos = { x = 339.214, y = -19.276, z = 335.065 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 6005, monster_id = 23020101, pos = { x = 345.945, y = -19.277, z = 335.192 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6010, gadget_id = 70330057, pos = { x = 343.117, y = -19.277, z = 343.374 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6011, gadget_id = 70900205, pos = { x = 343.690, y = -31.324, z = 432.526 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1006006, name = "ANY_MONSTER_DIE_6006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6006", action = "action_EVENT_ANY_MONSTER_DIE_6006" },
{ config_id = 1006007, name = "ANY_MONSTER_LIVE_6007", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_6007", action = "action_EVENT_ANY_MONSTER_LIVE_6007" },
{ config_id = 1006008, name = "CHALLENGE_SUCCESS_6008", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "4", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_6008" },
{ config_id = 1006009, name = "CHALLENGE_FAIL_6009", event = EventType.EVENT_CHALLENGE_FAIL, source = "4", condition = "", action = "action_EVENT_CHALLENGE_FAIL_6009" },
{ config_id = 1006012, name = "GADGET_CREATE_6012", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_6012", action = "action_EVENT_GADGET_CREATE_6012" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6011 },
regions = { },
triggers = { "ANY_MONSTER_LIVE_6007", "CHALLENGE_SUCCESS_6008", "CHALLENGE_FAIL_6009" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 6001, 6002, 6003 },
gadgets = { 6010, 6011 },
regions = { },
triggers = { "ANY_MONSTER_DIE_6006", "GADGET_CREATE_6012" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 6004, 6005 },
gadgets = { 6011 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6006(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6006(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 244002006, 3)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_6007(context, evt)
if 6001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_6007(context, evt)
-- 创建编号为4(该挑战的识别id),挑战内容为2的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 4, 2, 240, 244002006, 5, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_6008(context, evt)
-- 将configid为 6010 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6010, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 6010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 改变指定group组244002001中, configid为1020的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 244002001, 1020, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组244002001中, configid为1021的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 244002001, 1021, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组244002001中, configid为1022的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 244002001, 1022, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组244002001中, configid为1023的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 244002001, 1023, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 244002009, 4)
-- 触发镜头注目,注目位置为坐标(343,-18,323),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=343, y=-18, z=323}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 2,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
-- 杀死Group内所有gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 244002006, kill_policy = GroupKillPolicy.GROUP_KILL_GADGET }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_gadget_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_6009(context, evt)
-- 将configid为 6010 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6010, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 6010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 改变指定group组244002001中, configid为1022的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 244002001, 1022, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组244002001中, configid为1023的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 244002001, 1023, 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 = 244002005, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 244002006, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 244002009, 3)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_6012(context, evt)
if 6010 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_6012(context, evt)
-- 将configid为 6010 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6010, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,153 @@
-- 基础信息
local base_info = {
group_id = 244002007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7002, gadget_id = 70360002, pos = { x = 343.297, y = -12.741, z = 263.058 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_guest_can_operate = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1007001, name = "GADGET_CREATE_7001", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_7001", action = "action_EVENT_GADGET_CREATE_7001" },
{ config_id = 1007003, name = "SELECT_OPTION_7003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_7003", action = "action_EVENT_SELECT_OPTION_7003", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7002 },
regions = { },
triggers = { "GADGET_CREATE_7001", "SELECT_OPTION_7003" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_7001(context, evt)
if 7002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_7001(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 244002007, 7002, {214}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_7003(context, evt)
-- 判断是gadgetid 7002 option_id 214
if 7002 ~= evt.param1 then
return false
end
if 214 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_7003(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 244002008, 2)
-- 删除指定group 244002007 ;指定config7002;物件身上指定option214
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 244002007, 7002, 214) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 改变指定group组244002001中, configid为1020的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 244002001, 1020, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组244002001中, configid为1021的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 244002001, 1021, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 将configid为 7002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除suite4的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 244002009, 4)
return 0
end
@@ -0,0 +1,288 @@
-- 基础信息
local base_info = {
group_id = 244002008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 8001, monster_id = 21010502, pos = { x = 345.119, y = -12.714, z = 250.359 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 8002, monster_id = 21010502, pos = { x = 338.959, y = -12.758, z = 250.948 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 8003, monster_id = 21020202, pos = { x = 341.711, y = -12.741, z = 258.358 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 8004, monster_id = 21020202, pos = { x = 346.514, y = -12.741, z = 259.125 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 8005, monster_id = 21030101, pos = { x = 350.101, y = -12.758, z = 253.957 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 8006, monster_id = 20011301, pos = { x = 343.668, y = -12.758, z = 255.385 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 8007, monster_id = 20011201, pos = { x = 347.149, y = -12.742, z = 256.438 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 8009, monster_id = 20011201, pos = { x = 339.095, y = -12.741, z = 257.144 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 8010, monster_id = 20011201, pos = { x = 343.736, y = -12.741, z = 258.620 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 8011, monster_id = 22010101, pos = { x = 335.087, y = -12.758, z = 252.529 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 } },
{ config_id = 8013, monster_id = 22030101, pos = { x = 344.075, y = -12.853, z = 250.858 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 4116 }, pose_id = 101 },
{ config_id = 8017, monster_id = 21011002, pos = { x = 337.002, y = -12.854, z = 250.163 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 4116 } },
{ config_id = 8018, monster_id = 21011002, pos = { x = 348.446, y = -12.875, z = 250.484 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 4116 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8020, gadget_id = 70900205, pos = { x = 345.470, y = -31.672, z = 433.183 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8021, gadget_id = 70330057, pos = { x = 343.198, y = -12.741, z = 262.972 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 8022, shape = RegionShape.SPHERE, radius = 30, pos = { x = 343.498, y = -12.742, z = 261.468 } }
}
-- 触发器
triggers = {
{ config_id = 1008008, name = "ANY_MONSTER_DIE_8008", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_8008", action = "action_EVENT_ANY_MONSTER_DIE_8008" },
{ config_id = 1008014, name = "ANY_MONSTER_LIVE_8014", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_8014", action = "action_EVENT_ANY_MONSTER_LIVE_8014" },
{ config_id = 1008015, name = "CHALLENGE_SUCCESS_8015", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "6", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_8015" },
{ config_id = 1008016, name = "CHALLENGE_FAIL_8016", event = EventType.EVENT_CHALLENGE_FAIL, source = "6", condition = "", action = "action_EVENT_CHALLENGE_FAIL_8016" },
{ config_id = 1008019, name = "GADGET_CREATE_8019", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_8019", action = "action_EVENT_GADGET_CREATE_8019" },
{ config_id = 1008022, name = "ENTER_REGION_8022", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8022", action = "action_EVENT_ENTER_REGION_8022", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8020 },
regions = { },
triggers = { "ANY_MONSTER_LIVE_8014", "CHALLENGE_SUCCESS_8015", "CHALLENGE_FAIL_8016" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 8001, 8002, 8003, 8004, 8005 },
gadgets = { 8020, 8021 },
regions = { },
triggers = { "ANY_MONSTER_DIE_8008", "GADGET_CREATE_8019" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 8006, 8007, 8009, 8010, 8011 },
gadgets = { 8020 },
regions = { 8022 },
triggers = { "ENTER_REGION_8022" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_8008(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_8008(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 244002008, 3)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_8014(context, evt)
if 8001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_8014(context, evt)
-- 创建编号为6(该挑战的识别id),挑战内容为1的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 6, 1, 244002008, 10, 0, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_8015(context, evt)
-- 将configid为 8021 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8021, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 8021 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 改变指定group组244002001中, configid为1020的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 244002001, 1020, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组244002001中, configid为1021的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 244002001, 1021, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 杀死Group内所有gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 244002008, kill_policy = GroupKillPolicy.GROUP_KILL_GADGET }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_gadget_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_8016(context, evt)
-- 将configid为 8021 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8021, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 8021 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 改变指定group组244002001中, configid为1020的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 244002001, 1020, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组244002001中, configid为1021的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 244002001, 1021, 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 = 244002007, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 244002008, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 244002009, 4)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_8019(context, evt)
if 8021 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_8019(context, evt)
-- 将configid为 8021 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8021, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_8022(context, evt)
if evt.param1 ~= 8022 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_8022(context, evt)
-- 将configid为 8021 的物件更改为状态 GadgetState.Action02
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8021, GadgetState.Action02) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 调用提示id为 400028 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 400028) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,146 @@
-- 基础信息
local base_info = {
group_id = 244002009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9001, gadget_id = 70900201, pos = { x = 343.262, y = -26.021, z = 474.396 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9002, gadget_id = 70900201, pos = { x = 343.307, y = -27.691, z = 430.804 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9003, gadget_id = 70900201, pos = { x = 343.252, y = -18.077, z = 343.655 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9004, gadget_id = 70900201, pos = { x = 343.324, y = -11.540, z = 263.010 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9005, gadget_id = 70900201, pos = { x = 343.252, y = -10.295, z = 243.780 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 9006, shape = RegionShape.SPHERE, radius = 10, pos = { x = 342.524, y = -27.850, z = 476.446 } }
}
-- 触发器
triggers = {
{ config_id = 1009006, name = "ENTER_REGION_9006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9006", action = "action_EVENT_ENTER_REGION_9006", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 9001 },
regions = { 9006 },
triggers = { "ENTER_REGION_9006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 9002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 9003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 9004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 9005 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_9006(context, evt)
if evt.param1 ~= 9006 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_9006(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 244002009, 2)
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 244002009, 1)
return 0
end
@@ -0,0 +1,165 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 343.2479,
"y": -11.44221,
"z": 244.5761
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 3.0,
"y": 3.0,
"z": 5.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"2": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70120003,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 331.2698,
"y": -28.9836,
"z": 439.4634
},
"rot": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 10.0,
"z": 40.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"3": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70120003,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 354.4953,
"y": -18.8534,
"z": 364.5255
},
"rot": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 10.0,
"z": 40.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"4": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70120003,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 326.596,
"y": -11.3537,
"z": 283.7311
},
"rot": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 10.0,
"z": 40.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}