添加配置表

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

View File

@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = 0.0, z = 0.0 },
size = { x = 800.0, z = 800.0 },
born_pos = { x = 379.384, y = 76.083, z = 723.438 },
born_rot = { x = 0.000, y = 153.696, z = 0.000 },
die_y = -20,
city_id = 4,
vision_anchor = { x = 0.0, z = 0.0 }
}
-- 所有的区块
blocks = { 20146 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = 0.0, z = 0.0 }, max = { x = 800.0, z = 800.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { }

View File

@@ -0,0 +1,4 @@
{
"sceneId": 20146,
"routes": []
}

View File

@@ -0,0 +1,11 @@
-- 所有的group
groups = {
{ id = 220146001, refresh_id = 1, pos = { x = 391.079, y = 79.277, z = 700.551 } },
{ id = 220146002, refresh_id = 1001, pos = { x = 382.029, y = 76.555, z = 709.145 } },
{ id = 220146003, refresh_id = 1001, pos = { x = 256.174, y = 86.158, z = 691.446 } },
{ id = 220146004, refresh_id = 1001, pos = { x = 342.683, y = 77.000, z = 687.065 } },
{ id = 220146005, refresh_id = 1, pos = { x = 318.422, y = 80.729, z = 685.968 } },
{ id = 220146006, refresh_id = 1001, pos = { x = 256.510, y = 96.432, z = 693.821 } },
{ id = 220146007, refresh_id = 1001, pos = { x = 253.787, y = 96.713, z = 691.182 } },
{ id = 220146010, pos = { x = 378.871, y = 75.866, z = 700.143 } }
}

View File

@@ -0,0 +1,3 @@
dummy_points = {
["Q7307014"] = { pos = { x = 389.346, y = 77.139, z = 720.758 }, rot = { x = 0.000, y = 0.000, z = 0.000 } }
}

View File

@@ -0,0 +1,392 @@
-- 基础信息
local base_info = {
group_id = 220146001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70310198, pos = { x = 367.014, y = 77.345, z = 685.428 }, rot = { x = 0.000, y = 107.277, z = 0.000 }, level = 1 },
{ config_id = 1002, gadget_id = 70310200, pos = { x = 322.034, y = 84.518, z = 685.095 }, rot = { x = 0.000, y = 86.334, z = 0.000 }, level = 1 },
{ config_id = 1003, gadget_id = 70310200, pos = { x = 353.639, y = 82.968, z = 677.223 }, rot = { x = 0.000, y = 46.285, z = 0.000 }, level = 1 },
{ config_id = 1004, gadget_id = 70310200, pos = { x = 346.914, y = 81.829, z = 690.022 }, rot = { x = 359.649, y = 315.683, z = 359.211 }, level = 1 },
{ config_id = 1005, gadget_id = 70310199, pos = { x = 332.065, y = 77.445, z = 683.661 }, rot = { x = 0.000, y = 68.194, z = 0.000 }, level = 1 },
{ config_id = 1006, gadget_id = 70310201, pos = { x = 321.266, y = 82.248, z = 694.990 }, rot = { x = 0.000, y = 50.912, z = 0.000 }, level = 1 },
{ config_id = 1007, gadget_id = 70310201, pos = { x = 320.447, y = 82.210, z = 675.504 }, rot = { x = 0.000, y = 139.982, z = 0.000 }, level = 1 },
{ config_id = 1011, gadget_id = 70290485, pos = { x = 322.204, y = 77.357, z = 684.949 }, rot = { x = 0.000, y = 81.611, z = 0.000 }, level = 1 },
{ config_id = 1012, gadget_id = 70310201, pos = { x = 309.928, y = 88.850, z = 686.004 }, rot = { x = 0.000, y = 86.334, z = 0.000 }, level = 1 },
{ config_id = 1020, gadget_id = 70330255, pos = { x = 317.608, y = 82.508, z = 686.160 }, rot = { x = 315.021, y = 268.509, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1001008, name = "GADGET_STATE_CHANGE_1008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_1008", action = "action_EVENT_GADGET_STATE_CHANGE_1008" },
{ config_id = 1001009, name = "GADGET_STATE_CHANGE_1009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_1009", action = "action_EVENT_GADGET_STATE_CHANGE_1009" },
{ config_id = 1001010, name = "GADGET_STATE_CHANGE_1010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_1010", action = "action_EVENT_GADGET_STATE_CHANGE_1010" },
{ config_id = 1001013, name = "GADGET_STATE_CHANGE_1013", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_1013", action = "action_EVENT_GADGET_STATE_CHANGE_1013" },
{ config_id = 1001014, name = "GADGET_STATE_CHANGE_1014", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_1014", action = "action_EVENT_GADGET_STATE_CHANGE_1014", trigger_count = 0 },
{ config_id = 1001015, name = "VARIABLE_CHANGE_1015", event = EventType.EVENT_VARIABLE_CHANGE, source = "sum", condition = "condition_EVENT_VARIABLE_CHANGE_1015", action = "action_EVENT_VARIABLE_CHANGE_1015" },
{ config_id = 1001016, name = "GADGET_STATE_CHANGE_1016", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_1016", action = "action_EVENT_GADGET_STATE_CHANGE_1016", trigger_count = 0 },
{ config_id = 1001017, name = "TIME_AXIS_PASS_1017", event = EventType.EVENT_TIME_AXIS_PASS, source = "1", condition = "condition_EVENT_TIME_AXIS_PASS_1017", action = "action_EVENT_TIME_AXIS_PASS_1017", trigger_count = 0 },
{ config_id = 1001018, name = "TIME_AXIS_PASS_1018", event = EventType.EVENT_TIME_AXIS_PASS, source = "2", condition = "condition_EVENT_TIME_AXIS_PASS_1018", action = "action_EVENT_TIME_AXIS_PASS_1018", trigger_count = 0 },
{ config_id = 1001019, name = "GADGET_STATE_CHANGE_1019", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_1019", action = "action_EVENT_GADGET_STATE_CHANGE_1019" }
}
-- 变量
variables = {
{ config_id = 1, name = "sum", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001, 1003, 1005, 1011 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_1008", "VARIABLE_CHANGE_1015", "GADGET_STATE_CHANGE_1019" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 1004 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_1009" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 1002 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_1013" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 1006, 1007, 1012, 1020 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_1010", "GADGET_STATE_CHANGE_1014", "GADGET_STATE_CHANGE_1016", "TIME_AXIS_PASS_1017", "TIME_AXIS_PASS_1018" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_1008(context, evt)
if 1003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_1008(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 1003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220146001, 2)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_1009(context, evt)
if 1004 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_1009(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 1004 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220146001, 3)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_1010(context, evt)
if 1012 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_1010(context, evt)
-- 停止标识为"1"的时间轴
ScriptLib.EndTimeAxis(context, "1")
-- 停止标识为"2"的时间轴
ScriptLib.EndTimeAxis(context, "2")
-- 针对当前group内变量名为 "sum" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "sum", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 1006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 1007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220146001, EntityType.GADGET, 1020 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_1013(context, evt)
if 1002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_1013(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 1002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 220146001, 4)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_1014(context, evt)
if 1006 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_1014(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 1006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 创建标识为"1",时间节点为{1}的时间轴false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "1", {1}, false)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1015(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"sum"为1
if ScriptLib.GetGroupVariableValue(context, "sum") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1015(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 1012 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220146005, 2)
-- 将configid为 1011 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1011, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标{x=315.853, y=77.28713, z=685.3493}持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=315.853, y=77.28713, z=685.3493}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = true, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
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
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_1016(context, evt)
if 1007 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_1016(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 1007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 创建标识为"2",时间节点为{1}的时间轴false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "2", {1}, false)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_1017(context, evt)
if "1" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_1017(context, evt)
-- 创建id为1006的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_1018(context, evt)
if "2" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_1018(context, evt)
-- 创建id为1007的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_1019(context, evt)
if 1005 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_1019(context, evt)
-- 调用提示id为 33010184 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 33010184) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end

View File

@@ -0,0 +1,233 @@
-- 基础信息
local base_info = {
group_id = 220146002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2004, monster_id = 26090901, pos = { x = 376.766, y = 75.522, z = 707.947 }, rot = { x = 0.000, y = 53.861, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
{ config_id = 2005, monster_id = 26090901, pos = { x = 384.315, y = 75.685, z = 702.823 }, rot = { x = 0.000, y = 347.073, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
{ config_id = 2006, monster_id = 26090701, pos = { x = 386.662, y = 75.666, z = 717.625 }, rot = { x = 0.000, y = 197.814, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
{ config_id = 2008, monster_id = 26090801, pos = { x = 379.834, y = 75.698, z = 715.728 }, rot = { x = 0.000, y = 153.563, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
{ config_id = 2009, monster_id = 26090801, pos = { x = 391.194, y = 75.692, z = 706.082 }, rot = { x = 0.000, y = 307.735, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
{ config_id = 2010, monster_id = 26090701, pos = { x = 392.519, y = 75.584, z = 713.630 }, rot = { x = 0.000, y = 254.956, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70290527, pos = { x = 372.564, y = 82.150, z = 687.436 }, rot = { x = 0.000, y = 35.001, z = 0.000 }, level = 1 },
{ config_id = 2002, gadget_id = 70290526, pos = { x = 383.960, y = 75.743, z = 709.980 }, rot = { x = 0.000, y = 47.461, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 2003, gadget_id = 70290484, pos = { x = 383.960, y = 75.991, z = 709.980 }, rot = { x = 0.000, y = 47.461, z = 0.000 }, level = 1 },
{ config_id = 2014, gadget_id = 70290574, pos = { x = 545.700, y = 106.700, z = 669.200 }, rot = { x = 0.000, y = 74.483, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 2011, shape = RegionShape.SPHERE, radius = 8, pos = { x = 383.960, y = 76.492, z = 709.980 } }
}
-- 触发器
triggers = {
{ config_id = 1002007, name = "ANY_MONSTER_DIE_2007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_2007", action = "action_EVENT_ANY_MONSTER_DIE_2007" },
{ config_id = 1002011, name = "ENTER_REGION_2011", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2011", action = "action_EVENT_ENTER_REGION_2011" },
{ config_id = 1002012, name = "SELECT_OPTION_2012", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2012", action = "action_EVENT_SELECT_OPTION_2012" },
{ config_id = 1002013, name = "TIME_AXIS_PASS_2013", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_2013", action = "action_EVENT_TIME_AXIS_PASS_2013" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2002, 2003, 2014 },
regions = { 2011 },
triggers = { "ENTER_REGION_2011", "SELECT_OPTION_2012", "TIME_AXIS_PASS_2013" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 2004, 2005, 2006, 2008, 2009, 2010 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_2007" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_2007(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_2007(context, evt)
-- 将configid为 2003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220146002, 2002, {98}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 触发镜头注目,注目位置为坐标{x=383.9602, y=75.97663, z=709.98}持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=383.9602, y=75.97663, z=709.98}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = true, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
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
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2011(context, evt)
if evt.param1 ~= 2011 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_2011(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220146002, 2)
-- 调用提示id为 33010175 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 33010175) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2012(context, evt)
-- 判断是gadgetid 2002 option_id 98
if 2002 ~= evt.param1 then
return false
end
if 98 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2012(context, evt)
-- 删除指定group 220146002 指定config2002物件身上指定option98
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220146002, 2002, 98) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 创建标识为"OpenDoor",时间节点为{1}的时间轴false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "OpenDoor", {1}, false)
-- 触发镜头注目,注目位置为坐标{x=371.8532, y=82.58594, z=687.9339}持续时间为3秒并且为强制注目形式不广播其他玩家
local pos = {x=371.8532, y=82.58594, z=687.9339}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 3, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
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
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220146004, 2)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_2013(context, evt)
if "OpenDoor" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_2013(context, evt)
-- 将configid为 2002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,123 @@
-- 基础信息
local base_info = {
group_id = 220146003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
[3001] = { config_id = 3001, monster_id = 26120101, pos = { x = 245.563, y = 96.486, z = 686.361 }, rot = { x = 0.000, y = 49.287, z = 0.000 }, level = 1, disableWander = true, pose_id = 102, title_id = 10125, special_name_id = 10177 },
[3002] = { config_id = 3002, monster_id = 26120101, pos = { x = 250.161, y = 96.844, z = 701.917 }, rot = { x = 0.000, y = 148.807, z = 0.000 }, level = 1, disableWander = true, pose_id = 102, title_id = 10125, special_name_id = 10177 },
[3029] = { config_id = 3029, monster_id = 26090401, pos = { x = 254.474, y = 96.641, z = 703.388 }, rot = { x = 0.000, y = 199.753, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
[3030] = { config_id = 3030, monster_id = 26090401, pos = { x = 249.606, y = 96.395, z = 683.449 }, rot = { x = 0.000, y = 14.825, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
[3031] = { config_id = 3031, monster_id = 26090101, pos = { x = 243.580, y = 96.688, z = 689.232 }, rot = { x = 0.000, y = 69.005, z = 0.000 }, level = 1, disableWander = true, pose_id = 102 },
[3032] = { config_id = 3032, monster_id = 26090101, pos = { x = 245.208, y = 96.713, z = 700.884 }, rot = { x = 0.000, y = 126.907, z = 0.000 }, level = 1, disableWander = true, pose_id = 102 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1003027, name = "ANY_MONSTER_DIE_3027", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3027", action = "action_EVENT_ANY_MONSTER_DIE_3027" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_3027" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 3001, 3002, 3029, 3030, 3031, 3032 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3027(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3027(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "7307014") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 调用提示id为 33010195 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 33010195) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end

View File

@@ -0,0 +1,84 @@
-- 基础信息
local base_info = {
group_id = 220146004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 4001, monster_id = 26090101, pos = { x = 350.497, y = 77.635, z = 686.336 }, rot = { x = 0.000, y = 357.229, z = 0.000 }, level = 1, disableWander = true, pose_id = 102 },
{ config_id = 4002, monster_id = 26090101, pos = { x = 340.240, y = 77.914, z = 681.817 }, rot = { x = 0.000, y = 276.024, z = 0.000 }, level = 1, disableWander = true, pose_id = 102 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4003, gadget_id = 70210101, pos = { x = 339.206, y = 78.312, z = 681.928 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜通用须弥", isOneoff = true, persistent = true },
{ config_id = 4004, gadget_id = 70210101, pos = { x = 348.673, y = 77.472, z = 686.349 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜通用须弥", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4003, 4004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 4001, 4002 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,238 @@
-- 基础信息
local base_info = {
group_id = 220146005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5001, gadget_id = 70290480, pos = { x = 322.199, y = 75.214, z = 685.289 }, rot = { x = 0.000, y = 83.974, z = 0.000 }, level = 1, start_route = false, is_use_point_array = true }
}
-- 区域
regions = {
{ config_id = 5006, shape = RegionShape.SPHERE, radius = 1, pos = { x = 322.314, y = 77.629, z = 685.057 } }
}
-- 触发器
triggers = {
{ config_id = 1005002, name = "PLATFORM_ARRIVAL_5002", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_5002", action = "action_EVENT_PLATFORM_ARRIVAL_5002", trigger_count = 0 },
{ config_id = 1005003, name = "PLATFORM_ARRIVAL_5003", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_5003", action = "action_EVENT_PLATFORM_ARRIVAL_5003", trigger_count = 0 },
{ config_id = 1005004, name = "TIME_AXIS_PASS_5004", event = EventType.EVENT_TIME_AXIS_PASS, source = "1", condition = "condition_EVENT_TIME_AXIS_PASS_5004", action = "action_EVENT_TIME_AXIS_PASS_5004", trigger_count = 0 },
{ config_id = 1005005, name = "TIME_AXIS_PASS_5005", event = EventType.EVENT_TIME_AXIS_PASS, source = "2", condition = "condition_EVENT_TIME_AXIS_PASS_5005", action = "action_EVENT_TIME_AXIS_PASS_5005", trigger_count = 0 },
{ config_id = 1005006, name = "ENTER_REGION_5006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5006", action = "action_EVENT_ENTER_REGION_5006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5001 },
regions = { },
triggers = { "PLATFORM_ARRIVAL_5002", "PLATFORM_ARRIVAL_5003", "TIME_AXIS_PASS_5004", "TIME_AXIS_PASS_5005" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { 5006 },
triggers = { "ENTER_REGION_5006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_PLATFORM_ARRIVAL_5002(context, evt)
-- 判断是gadgetid 为 5001的移动平台是否到达了2 的点集中的 3 点
if 5001 ~= evt.param1 then
return false
end
if 2 ~= evt.param2 then
return false
end
if 3 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_ARRIVAL_5002(context, evt)
-- 创建标识为"1",时间节点为{5}的时间轴false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "1", {5}, false)
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_ARRIVAL_5003(context, evt)
-- 判断是gadgetid 为 5001的移动平台是否到达了2 的点集中的 1 点
if 5001 ~= evt.param1 then
return false
end
if 2 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_ARRIVAL_5003(context, evt)
-- 创建标识为"2",时间节点为{5}的时间轴false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "2", {5}, false)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_5004(context, evt)
if "1" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_5004(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 5001, 2, {2,1}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 5001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_5005(context, evt)
if "2" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_5005(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 5001, 2, {2,3}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 5001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_5006(context, evt)
if evt.param1 ~= 5006 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_5006(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 5001, 2, {2,3}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 5001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220146006, 2)
return 0
end

View File

@@ -0,0 +1,143 @@
-- 基础信息
local base_info = {
group_id = 220146006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 6001, monster_id = 26090401, pos = { x = 253.850, y = 96.889, z = 690.029 }, rot = { x = 0.000, y = 323.249, z = 0.000 }, level = 1, disableWander = true, pose_id = 102 },
{ config_id = 6002, monster_id = 26090401, pos = { x = 254.934, y = 96.722, z = 697.166 }, rot = { x = 0.000, y = 230.011, z = 0.000 }, level = 1, disableWander = true, pose_id = 102 },
{ config_id = 6003, monster_id = 26090501, pos = { x = 250.443, y = 96.707, z = 697.638 }, rot = { x = 0.000, y = 142.150, z = 0.000 }, level = 1, disableWander = true, pose_id = 102 },
{ config_id = 6004, monster_id = 26090501, pos = { x = 249.487, y = 96.643, z = 691.958 }, rot = { x = 0.000, y = 47.632, z = 0.000 }, level = 1, disableWander = true, pose_id = 102 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6007, gadget_id = 70950156, pos = { x = 253.763, y = 96.956, z = 694.318 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6008, gadget_id = 70310148, pos = { x = 253.025, y = 96.959, z = 694.095 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6009, gadget_id = 70900201, pos = { x = 253.025, y = 99.817, z = 694.095 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 6006, shape = RegionShape.SPHERE, radius = 3, pos = { x = 252.747, y = 96.776, z = 694.047 } }
}
-- 触发器
triggers = {
{ config_id = 1006005, name = "ANY_MONSTER_DIE_6005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6005", action = "action_EVENT_ANY_MONSTER_DIE_6005" },
{ config_id = 1006006, name = "ENTER_REGION_6006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6006", action = "action_EVENT_ENTER_REGION_6006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_6005" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 6008, 6009 },
regions = { 6006 },
triggers = { "ENTER_REGION_6006" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 6001, 6002, 6003, 6004 },
gadgets = { 6007 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6005(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6005(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220146007, 2)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_6006(context, evt)
if evt.param1 ~= 6006 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_6006(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220146006, 3)
-- 杀死指定group内的gadget和monster,移除其它东西
ScriptLib.KillExtraGroupSuite(context, 220146006, 2)
-- 杀死指定group内的gadget和monster,移除其它东西
ScriptLib.KillExtraGroupSuite(context, 220146005, 1)
return 0
end

View File

@@ -0,0 +1,104 @@
-- 基础信息
local base_info = {
group_id = 220146007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 7001, monster_id = 26090401, pos = { x = 252.300, y = 96.972, z = 685.926 }, rot = { x = 0.000, y = 354.642, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
{ config_id = 7002, monster_id = 26090401, pos = { x = 253.689, y = 96.878, z = 701.822 }, rot = { x = 0.000, y = 204.872, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
{ config_id = 7003, monster_id = 26090201, pos = { x = 247.536, y = 96.745, z = 702.381 }, rot = { x = 0.000, y = 135.900, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
{ config_id = 7004, monster_id = 26090201, pos = { x = 244.915, y = 96.520, z = 686.780 }, rot = { x = 0.000, y = 47.632, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
{ config_id = 7005, monster_id = 26090401, pos = { x = 258.209, y = 96.769, z = 692.206 }, rot = { x = 0.000, y = 281.067, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1007006, name = "ANY_MONSTER_DIE_7006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_7006", action = "action_EVENT_ANY_MONSTER_DIE_7006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_7006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 7001, 7002, 7003, 7004, 7005 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_7006(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_7006(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220146003, 2)
return 0
end

View File

@@ -0,0 +1,121 @@
-- 基础信息
local base_info = {
group_id = 220146010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 10001, shape = RegionShape.SPHERE, radius = 5, pos = { x = 366.653, y = 77.355, z = 683.468 } },
{ config_id = 10002, shape = RegionShape.SPHERE, radius = 15, pos = { x = 264.569, y = 96.358, z = 691.394 } }
}
-- 触发器
triggers = {
{ config_id = 1010001, name = "ENTER_REGION_10001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10001", action = "action_EVENT_ENTER_REGION_10001" },
{ config_id = 1010002, name = "ENTER_REGION_10002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10002", action = "action_EVENT_ENTER_REGION_10002" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 10001, 10002 },
triggers = { "ENTER_REGION_10001", "ENTER_REGION_10002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_10001(context, evt)
if evt.param1 ~= 10001 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_10001(context, evt)
-- 调用提示id为 33010179 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 33010179) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_10002(context, evt)
if evt.param1 ~= 10002 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_10002(context, evt)
-- 调用提示id为 33010193 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 33010193) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end

View File

@@ -0,0 +1,85 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 240.0883,
"y": 96.65129,
"z": 695.4414
},
"rot": {
"x": 0.0,
"y": 96.4881,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.0
},
"tranPos": {
"x": 240.338516,
"y": 89.32501,
"z": 697.024658
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
},
"2": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 266.7029,
"y": 96.27773,
"z": 690.9166
},
"rot": {
"x": 0.0,
"y": 282.6134,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 5.0,
"z": 50.0
},
"tranPos": {
"x": 268.928345,
"y": 96.31503,
"z": 690.0708
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
}
},
"transRadius": 0.0
}

View File

@@ -0,0 +1,76 @@
[
{
"pointArrayId": 2,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 322.198975,
"y": 75.2144241,
"z": 685.2886
},
"rotation": {
"x": 0.0,
"y": 83.97398,
"z": 0.0
},
"velocity": 5.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 322.0772,
"y": 110.16658,
"z": 685.288635
},
"rotation": {
"x": 0.0,
"y": 83.97398,
"z": 0.0
},
"velocity": 5.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 3,
"position": {
"x": 269.854,
"y": 98.75697,
"z": 687.4376
},
"rotation": {
"x": 0.0,
"y": 83.97398,
"z": 0.0
},
"velocity": 5.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
}
]

View File

@@ -0,0 +1,45 @@
[
{
"area_id": 10132,
"isUseHeightBorder": true,
"points": [
{
"x": 356.776276,
"y": 791.2669
},
{
"x": 438.7174,
"y": 716.4667
},
{
"x": 420.38736,
"y": 600.679
},
{
"x": 334.167725,
"y": 519.188232
},
{
"x": 253.779175,
"y": 504.6715
},
{
"x": 177.33844,
"y": 550.1163
},
{
"x": 132.662521,
"y": 631.770569
},
{
"x": 174.771408,
"y": 694.7068
},
{
"x": 239.303711,
"y": 813.90155
}
],
"top": 300.0
}
]