添加配置表

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 = -288.5, z = -108.7 },
size = { x = 454.3, z = 410.9 },
born_pos = { x = -67.141, y = 126.465, z = 73.828 },
born_rot = { x = 0.000, y = 213.215, z = 0.000 },
born_point_list = {
{ pos = { x = -66.996, y = 126.465, z = 74.251 }, rot = { x = 0.000, y = 222.654, z = 0.000 } },
{ pos = { x = -69.795, y = 126.453, z = 79.626 }, rot = { x = 0.000, y = 328.087, z = 0.000 } },
{ pos = { x = -70.416, y = 126.457, z = 69.810 }, rot = { x = 0.000, y = 228.841, z = 0.000 } },
{ pos = { x = -60.257, y = 126.462, z = 73.402 }, rot = { x = 0.000, y = 94.404, z = 0.000 } }
},
die_y = -6.220444,
city_id = 2,
vision_anchor = { x = -288.5, z = -108.7 }
}
-- 所有的区块
blocks = { 40018 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -288.5, z = -108.7 }, max = { x = 165.8, z = 302.2 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }
@@ -0,0 +1,9 @@
-- 所有的group
groups = {
{ id = 240018001, refresh_id = 1, pos = { x = -66.780, y = 126.465, z = 74.526 } },
{ id = 240018002, refresh_id = 1, pos = { x = -84.188, y = 114.726, z = 107.838 } },
{ id = 240018003, refresh_id = 1, pos = { x = -18.482, y = 111.688, z = 67.920 } },
{ id = 240018004, pos = { x = -100.726, y = 111.823, z = 33.736 } },
{ id = 240018005, refresh_id = 1002, pos = { x = -66.668, y = 124.746, z = 74.767 } },
{ id = 240018006, refresh_id = 1, pos = { x = -86.906, y = 117.418, z = 108.390 } }
}
@@ -0,0 +1,308 @@
-- 基础信息
local base_info = {
group_id = 240018001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70350023, pos = { x = -87.026, y = 117.594, z = 108.916 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1002, gadget_id = 70350023, pos = { x = -101.039, y = 111.826, z = 33.953 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1003, gadget_id = 70350023, pos = { x = -18.366, y = 111.691, z = 68.155 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1001004, name = "GADGET_CREATE_1004", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1004", action = "action_EVENT_GADGET_CREATE_1004" },
{ config_id = 1001005, name = "GADGET_CREATE_1005", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1005", action = "action_EVENT_GADGET_CREATE_1005" },
{ config_id = 1001006, name = "GADGET_CREATE_1006", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1006", action = "action_EVENT_GADGET_CREATE_1006" },
{ config_id = 1001007, name = "SELECT_OPTION_1007", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1007", action = "action_EVENT_SELECT_OPTION_1007" },
{ config_id = 1001016, name = "SELECT_OPTION_1016", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1016", action = "action_EVENT_SELECT_OPTION_1016" },
{ config_id = 1001017, name = "SELECT_OPTION_1017", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1017", action = "action_EVENT_SELECT_OPTION_1017" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001, 1002, 1003 },
regions = { },
triggers = { "GADGET_CREATE_1004", "GADGET_CREATE_1005", "GADGET_CREATE_1006", "SELECT_OPTION_1007", "SELECT_OPTION_1016", "SELECT_OPTION_1017" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_1004(context, evt)
if 1001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1004(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240018001, 1001, {177}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_1005(context, evt)
if 1002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1005(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240018001, 1002, {177}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_1006(context, evt)
if 1003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1006(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240018001, 1003, {177}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1007(context, evt)
-- 判断是gadgetid 1001 option_id 177
if 1001 ~= evt.param1 then
return false
end
if 177 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1007(context, evt)
-- 删除指定group 240018001 ;指定config1001;物件身上指定option177
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240018001, 1001, 177) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 240018001 ;指定config1002;物件身上指定option177
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240018001, 1002, 177) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 240018001 ;指定config1003;物件身上指定option177
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240018001, 1003, 177) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 1001 的物件更改为状态 GadgetState.GearAction1
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1001, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1002 的物件更改为状态 GadgetState.GearAction1
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1002, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1003 的物件更改为状态 GadgetState.GearAction1
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1003, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1016(context, evt)
-- 判断是gadgetid 1002 option_id 177
if 1002 ~= evt.param1 then
return false
end
if 177 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1016(context, evt)
-- 删除指定group 240018001 ;指定config1001;物件身上指定option177
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240018001, 1001, 177) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 240018001 ;指定config1002;物件身上指定option177
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240018001, 1002, 177) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 240018001 ;指定config1003;物件身上指定option177
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240018001, 1003, 177) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 1001 的物件更改为状态 GadgetState.GearAction1
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1001, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1002 的物件更改为状态 GadgetState.GearAction1
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1002, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1003 的物件更改为状态 GadgetState.GearAction1
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1003, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1017(context, evt)
-- 判断是gadgetid 1003 option_id 177
if 1003 ~= evt.param1 then
return false
end
if 177 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1017(context, evt)
-- 删除指定group 240018001 ;指定config1001;物件身上指定option177
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240018001, 1001, 177) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 240018001 ;指定config1002;物件身上指定option177
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240018001, 1002, 177) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 240018001 ;指定config1003;物件身上指定option177
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240018001, 1003, 177) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 1001 的物件更改为状态 GadgetState.GearAction1
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1001, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1002 的物件更改为状态 GadgetState.GearAction1
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1002, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1003 的物件更改为状态 GadgetState.GearAction1
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1003, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,548 @@
-- 基础信息
local base_info = {
group_id = 240018002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70360005, pos = { x = -80.446, y = 117.514, z = 111.536 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2002, gadget_id = 70360005, pos = { x = -90.747, y = 117.515, z = 102.495 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2003, gadget_id = 70360005, pos = { x = -104.193, y = 111.722, z = 43.781 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2004, gadget_id = 70690008, pos = { x = -27.237, y = 95.339, z = 86.576 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2005, gadget_id = 70690008, pos = { x = -66.173, y = 95.339, z = 111.399 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2006, gadget_id = 70690008, pos = { x = -93.274, y = 95.339, z = 93.523 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2013, gadget_id = 70360005, pos = { x = -91.958, y = 111.732, z = 31.016 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2014, gadget_id = 70360005, pos = { x = -22.582, y = 111.600, z = 60.966 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2015, gadget_id = 70360005, pos = { x = -22.185, y = 111.593, z = 74.840 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2016, gadget_id = 70690008, pos = { x = -101.895, y = 95.339, z = 56.462 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2017, gadget_id = 70690008, pos = { x = -78.252, y = 95.339, z = 33.162 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2018, gadget_id = 70690008, pos = { x = -31.556, y = 95.339, z = 52.355 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2019, gadget_id = 70690001, pos = { x = -99.224, y = 119.000, z = 83.088 }, rot = { x = 0.000, y = 7.257, z = 0.000 }, level = 1 },
{ config_id = 2020, gadget_id = 70690001, pos = { x = -102.675, y = 119.000, z = 68.737 }, rot = { x = 0.000, y = 7.686, z = 0.000 }, level = 1 },
{ config_id = 2021, gadget_id = 70690001, pos = { x = -63.366, y = 119.000, z = 35.017 }, rot = { x = 0.000, y = 257.663, z = 0.000 }, level = 1 },
{ config_id = 2022, gadget_id = 70690001, pos = { x = -45.074, y = 119.000, z = 42.989 }, rot = { x = 0.000, y = 236.857, z = 0.000 }, level = 1 },
{ config_id = 2023, gadget_id = 70690001, pos = { x = -38.239, y = 119.000, z = 100.780 }, rot = { x = 0.000, y = 131.161, z = 0.000 }, level = 1 },
{ config_id = 2024, gadget_id = 70690001, pos = { x = -51.278, y = 119.000, z = 109.104 }, rot = { x = 0.000, y = 283.295, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1002007, name = "GADGET_STATE_CHANGE_2007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2007", action = "action_EVENT_GADGET_STATE_CHANGE_2007", trigger_count = 0 },
{ config_id = 1002008, name = "GADGET_STATE_CHANGE_2008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2008", action = "action_EVENT_GADGET_STATE_CHANGE_2008", trigger_count = 0 },
{ config_id = 1002009, name = "GADGET_STATE_CHANGE_2009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2009", action = "action_EVENT_GADGET_STATE_CHANGE_2009", trigger_count = 0 },
{ config_id = 1002010, name = "GADGET_STATE_CHANGE_2010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2010", action = "action_EVENT_GADGET_STATE_CHANGE_2010", trigger_count = 0 },
{ config_id = 1002011, name = "GADGET_STATE_CHANGE_2011", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2011", action = "action_EVENT_GADGET_STATE_CHANGE_2011", trigger_count = 0 },
{ config_id = 1002012, name = "GADGET_STATE_CHANGE_2012", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2012", action = "action_EVENT_GADGET_STATE_CHANGE_2012", trigger_count = 0 },
{ config_id = 1002025, name = "TIMER_EVENT_2025", event = EventType.EVENT_TIMER_EVENT, source = "time1", condition = "", action = "action_EVENT_TIMER_EVENT_2025", trigger_count = 0 },
{ config_id = 1002026, name = "TIMER_EVENT_2026", event = EventType.EVENT_TIMER_EVENT, source = "time2", condition = "", action = "action_EVENT_TIMER_EVENT_2026", trigger_count = 0 },
{ config_id = 1002027, name = "TIMER_EVENT_2027", event = EventType.EVENT_TIMER_EVENT, source = "time3", condition = "", action = "action_EVENT_TIMER_EVENT_2027", trigger_count = 0 },
{ config_id = 1002028, name = "GADGET_STATE_CHANGE_2028", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2028", action = "action_EVENT_GADGET_STATE_CHANGE_2028", trigger_count = 0 },
{ config_id = 1002029, name = "GADGET_STATE_CHANGE_2029", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2029", action = "action_EVENT_GADGET_STATE_CHANGE_2029", trigger_count = 0 },
{ config_id = 1002030, name = "GADGET_STATE_CHANGE_2030", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2030", action = "action_EVENT_GADGET_STATE_CHANGE_2030", trigger_count = 0 },
{ config_id = 1002031, name = "GADGET_STATE_CHANGE_2031", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2031", action = "action_EVENT_GADGET_STATE_CHANGE_2031", trigger_count = 0 },
{ config_id = 1002032, name = "GADGET_STATE_CHANGE_2032", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2032", action = "action_EVENT_GADGET_STATE_CHANGE_2032", trigger_count = 0 },
{ config_id = 1002033, name = "GADGET_STATE_CHANGE_2033", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2033", action = "action_EVENT_GADGET_STATE_CHANGE_2033", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2002, 2003, 2013, 2014, 2015 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_2007", "GADGET_STATE_CHANGE_2008", "GADGET_STATE_CHANGE_2009", "GADGET_STATE_CHANGE_2010", "GADGET_STATE_CHANGE_2011", "GADGET_STATE_CHANGE_2012", "TIMER_EVENT_2025", "TIMER_EVENT_2026", "TIMER_EVENT_2027", "GADGET_STATE_CHANGE_2028", "GADGET_STATE_CHANGE_2029", "GADGET_STATE_CHANGE_2030", "GADGET_STATE_CHANGE_2031", "GADGET_STATE_CHANGE_2032", "GADGET_STATE_CHANGE_2033" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 2004, 2005, 2006, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2007(context, evt)
if 2001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2007(context, evt)
-- 创建id为2004的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2004 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2005的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2023的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2023 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2024的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2024 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2008(context, evt)
if 2015 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2008(context, evt)
-- 创建id为2004的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2004 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2005的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2023的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2023 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2024的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2024 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2009(context, evt)
if 2014 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2009(context, evt)
-- 创建id为2017的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2017 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2018的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2018 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2021的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2021 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2022的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2022 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2010(context, evt)
if 2013 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2010(context, evt)
-- 创建id为2017的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2017 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2018的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2018 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2021的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2021 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2022的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2022 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2011(context, evt)
if 2002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2011(context, evt)
-- 创建id为2006的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2016的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2016 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2019的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2019 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2020的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2020 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2012(context, evt)
if 2003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2012(context, evt)
-- 创建id为2006的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2016的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2016 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2019的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2019 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2020的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2020 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_2025(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 240018002, EntityType.GADGET, 2004 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 240018002, EntityType.GADGET, 2005 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 240018002, EntityType.GADGET, 2023 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 240018002, EntityType.GADGET, 2024 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_2026(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 240018002, EntityType.GADGET, 2006 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 240018002, EntityType.GADGET, 2016 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 240018002, EntityType.GADGET, 2019 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 240018002, EntityType.GADGET, 2020 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_2027(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 240018002, EntityType.GADGET, 2017 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 240018002, EntityType.GADGET, 2018 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 240018002, EntityType.GADGET, 2021 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 240018002, EntityType.GADGET, 2022 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2028(context, evt)
if 2001 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2028(context, evt)
-- 延迟8秒后,向groupId为:240018002的对象,请求一次调用,并将string参数:"time1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240018002, "time1", 8) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2029(context, evt)
if 2015 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2029(context, evt)
-- 延迟8秒后,向groupId为:240018002的对象,请求一次调用,并将string参数:"time1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240018002, "time1", 8) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2030(context, evt)
if 2014 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2030(context, evt)
-- 延迟8秒后,向groupId为:240018002的对象,请求一次调用,并将string参数:"time3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240018002, "time3", 8) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2031(context, evt)
if 2013 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2031(context, evt)
-- 延迟8秒后,向groupId为:240018002的对象,请求一次调用,并将string参数:"time3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240018002, "time3", 8) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2032(context, evt)
if 2002 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2032(context, evt)
-- 延迟8秒后,向groupId为:240018002的对象,请求一次调用,并将string参数:"time2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240018002, "time2", 8) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2033(context, evt)
if 2003 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2033(context, evt)
-- 延迟8秒后,向groupId为:240018002的对象,请求一次调用,并将string参数:"time2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240018002, "time2", 8) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
@@ -0,0 +1,81 @@
-- 基础信息
local base_info = {
group_id = 240018003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70211001, pos = { x = -66.847, y = 124.705, z = 70.364 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗低级璃月", showcutscene = true, isOneoff = true, persistent = true }
}
-- 区域
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
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 3001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,71 @@
-- 基础信息
local base_info = {
group_id = 240018004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- 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,396 @@
-- 基础信息
local base_info = {
group_id = 240018005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 5001, monster_id = 20011401, pos = { x = -85.029, y = 117.547, z = 111.558 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5002, monster_id = 20011401, pos = { x = -83.565, y = 117.526, z = 105.603 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5003, monster_id = 20011401, pos = { x = -80.736, y = 117.510, z = 108.588 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5004, monster_id = 20011401, pos = { x = -14.348, y = 111.606, z = 64.301 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5005, monster_id = 20011401, pos = { x = -21.804, y = 111.615, z = 72.010 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5006, monster_id = 20011401, pos = { x = -15.223, y = 111.628, z = 71.218 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5007, monster_id = 20011401, pos = { x = -105.919, y = 111.750, z = 32.560 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5008, monster_id = 20011401, pos = { x = -96.288, y = 111.761, z = 34.476 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5009, monster_id = 20011401, pos = { x = -101.685, y = 111.759, z = 38.726 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5010, monster_id = 21020301, pos = { x = -91.637, y = 117.526, z = 109.489 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5011, monster_id = 21011201, pos = { x = -85.332, y = 117.527, z = 104.470 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5012, monster_id = 21011201, pos = { x = -81.363, y = 117.509, z = 107.990 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5013, monster_id = 21011201, pos = { x = -84.282, y = 117.525, z = 112.560 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5014, monster_id = 21011201, pos = { x = -86.991, y = 117.539, z = 112.906 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5015, monster_id = 21010201, pos = { x = -99.904, y = 111.734, z = 27.915 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5016, monster_id = 21010201, pos = { x = -94.646, y = 111.731, z = 34.803 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5017, monster_id = 21010201, pos = { x = -22.223, y = 111.607, z = 64.115 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5018, monster_id = 21010201, pos = { x = -17.174, y = 111.626, z = 72.467 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5019, monster_id = 21010201, pos = { x = -11.763, y = 111.593, z = 64.183 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5020, monster_id = 21010201, pos = { x = -25.115, y = 111.593, z = 69.204 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5021, monster_id = 21010501, pos = { x = -107.924, y = 111.724, z = 31.920 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5022, monster_id = 21010501, pos = { x = -96.428, y = 111.659, z = 28.478 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5023, monster_id = 21030401, pos = { x = -102.436, y = 111.725, z = 27.581 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5024, monster_id = 21011201, pos = { x = -103.196, y = 111.748, z = 38.768 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5025, monster_id = 21011201, pos = { x = -95.819, y = 111.743, z = 36.337 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5026, monster_id = 21010201, pos = { x = -90.354, y = 117.542, z = 107.367 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5027, monster_id = 21010201, pos = { x = -84.451, y = 117.514, z = 113.352 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5028, monster_id = 21020101, pos = { x = -17.743, y = 111.638, z = 64.433 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5029, monster_id = 21010301, pos = { x = -12.877, y = 111.608, z = 67.540 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5030, monster_id = 21010301, pos = { x = -23.586, y = 111.617, z = 68.070 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5031, monster_id = 21010301, pos = { x = -13.476, y = 111.594, z = 72.623 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5032, monster_id = 21010301, pos = { x = -22.347, y = 111.593, z = 73.622 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5033, monster_id = 21010301, pos = { x = -82.835, y = 117.518, z = 111.680 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5034, monster_id = 21010301, pos = { x = -87.306, y = 117.548, z = 105.205 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5035, monster_id = 21010301, pos = { x = -95.559, y = 111.735, z = 30.842 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5036, monster_id = 21010301, pos = { x = -106.501, y = 111.724, z = 37.868 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5037, monster_id = 20011501, pos = { x = -106.741, y = 111.738, z = 33.468 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5038, monster_id = 20011501, pos = { x = -101.877, y = 111.738, z = 28.214 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5039, monster_id = 20011401, pos = { x = -101.317, y = 111.733, z = 40.170 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5040, monster_id = 20011401, pos = { x = -95.009, y = 111.722, z = 29.162 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5041, monster_id = 20011401, pos = { x = -96.640, y = 111.739, z = 38.130 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5042, monster_id = 20011501, pos = { x = -11.914, y = 111.696, z = 68.265 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5043, monster_id = 20011501, pos = { x = -86.248, y = 117.512, z = 114.111 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5044, monster_id = 21020301, pos = { x = -87.354, y = 117.531, z = 104.244 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5045, monster_id = 21020301, pos = { x = -91.020, y = 117.510, z = 112.610 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5046, monster_id = 20011501, pos = { x = -81.710, y = 117.510, z = 111.433 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5048, monster_id = 21011201, pos = { x = -106.958, y = 111.727, z = 36.259 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5049, monster_id = 21011201, pos = { x = -95.595, y = 111.723, z = 29.771 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5050, monster_id = 21011201, pos = { x = -24.164, y = 111.597, z = 66.111 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5051, monster_id = 21011201, pos = { x = -12.513, y = 111.596, z = 69.625 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5063, gadget_id = 70350035, pos = { x = -87.000, y = 117.600, z = 108.900 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5064, gadget_id = 70350035, pos = { x = -100.800, y = 111.800, z = 34.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5065, gadget_id = 70350035, pos = { x = -18.400, y = 111.700, z = 68.200 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1005052, name = "VARIABLE_CHANGE_5052", event = EventType.EVENT_VARIABLE_CHANGE, source = "wave", condition = "condition_EVENT_VARIABLE_CHANGE_5052", action = "action_EVENT_VARIABLE_CHANGE_5052" },
{ config_id = 1005053, name = "VARIABLE_CHANGE_5053", event = EventType.EVENT_VARIABLE_CHANGE, source = "wave", condition = "condition_EVENT_VARIABLE_CHANGE_5053", action = "action_EVENT_VARIABLE_CHANGE_5053" },
{ config_id = 1005054, name = "VARIABLE_CHANGE_5054", event = EventType.EVENT_VARIABLE_CHANGE, source = "wave", condition = "condition_EVENT_VARIABLE_CHANGE_5054", action = "action_EVENT_VARIABLE_CHANGE_5054" },
{ config_id = 1005055, name = "VARIABLE_CHANGE_5055", event = EventType.EVENT_VARIABLE_CHANGE, source = "wave", condition = "condition_EVENT_VARIABLE_CHANGE_5055", action = "action_EVENT_VARIABLE_CHANGE_5055" },
{ config_id = 1005056, name = "ANY_MONSTER_LIVE_5056", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_5056", action = "action_EVENT_ANY_MONSTER_LIVE_5056" },
{ config_id = 1005057, name = "ANY_MONSTER_DIE_5057", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_5057", action = "action_EVENT_ANY_MONSTER_DIE_5057", trigger_count = 0 },
{ config_id = 1005058, name = "CHALLENGE_SUCCESS_5058", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "100", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_5058" },
{ config_id = 1005059, name = "CHALLENGE_FAIL_5059", event = EventType.EVENT_CHALLENGE_FAIL, source = "100", condition = "", action = "action_EVENT_CHALLENGE_FAIL_5059" },
{ config_id = 1005060, name = "ANY_GADGET_DIE_5060", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_5060", action = "action_EVENT_ANY_GADGET_DIE_5060" },
{ config_id = 1005061, name = "ANY_GADGET_DIE_5061", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_5061", action = "action_EVENT_ANY_GADGET_DIE_5061" },
{ config_id = 1005062, name = "ANY_GADGET_DIE_5062", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_5062", action = "action_EVENT_ANY_GADGET_DIE_5062" }
}
-- 变量
variables = {
{ config_id = 1, name = "wave", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "VARIABLE_CHANGE_5052", "VARIABLE_CHANGE_5053", "VARIABLE_CHANGE_5054", "VARIABLE_CHANGE_5055", "ANY_MONSTER_LIVE_5056", "ANY_MONSTER_DIE_5057", "CHALLENGE_SUCCESS_5058", "CHALLENGE_FAIL_5059", "ANY_GADGET_DIE_5060", "ANY_GADGET_DIE_5061", "ANY_GADGET_DIE_5062" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 5001, 5002, 5003, 5004, 5005, 5006, 5007, 5008, 5009 },
gadgets = { 5063, 5064, 5065 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 5019, 5020, 5021, 5022, 5023, 5024, 5025, 5026, 5027 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 5028, 5029, 5030, 5031, 5032, 5033, 5034, 5035, 5036 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { 5037, 5038, 5039, 5040, 5041, 5042, 5043 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { 5044, 5045, 5046, 5048, 5049, 5050, 5051 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_5052(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"wave"为1
if ScriptLib.GetGroupVariableValue(context, "wave") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5052(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 240018005, 3)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_5053(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"wave"为2
if ScriptLib.GetGroupVariableValue(context, "wave") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5053(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 240018005, 4)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_5054(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"wave"为3
if ScriptLib.GetGroupVariableValue(context, "wave") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5054(context, evt)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 240018005, 5)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_5055(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"wave"为4
if ScriptLib.GetGroupVariableValue(context, "wave") ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5055(context, evt)
-- 添加suite6的新内容
ScriptLib.AddExtraGroupSuite(context, 240018005, 6)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_5056(context, evt)
if 5001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_5056(context, evt)
-- 创建编号为100(该挑战的识别id),挑战内容为51的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 100, 51, 300, 240018005, 40, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_5057(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_5057(context, evt)
-- 针对当前group内变量名为 "wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_5058(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 240018003, 2)
-- 将configid为 1001 的物件更改为状态 GadgetState.GearAction2
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1001, GadgetState.GearAction2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1002 的物件更改为状态 GadgetState.GearAction2
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1002, GadgetState.GearAction2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1003 的物件更改为状态 GadgetState.GearAction2
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1003, GadgetState.GearAction2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_5059(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240018001, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240018005, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_5060(context, evt)
if 5063 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_5060(context, evt)
-- 终止识别id为100的挑战,并判定失败
ScriptLib.StopChallenge(context, 100, 0)
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_5061(context, evt)
if 5064 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_5061(context, evt)
-- 终止识别id为100的挑战,并判定失败
ScriptLib.StopChallenge(context, 100, 0)
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_5062(context, evt)
if 5065 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_5062(context, evt)
-- 终止识别id为100的挑战,并判定失败
ScriptLib.StopChallenge(context, 100, 0)
return 0
end
@@ -0,0 +1,78 @@
-- 基础信息
local base_info = {
group_id = 240018006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6001, gadget_id = 70360046, pos = { x = -89.350, y = 116.490, z = 92.430 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6002, gadget_id = 70360046, pos = { x = -91.370, y = 116.360, z = 84.680 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6003, gadget_id = 70360046, pos = { x = -94.100, y = 115.590, z = 76.770 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6004, gadget_id = 70360046, pos = { x = -94.100, y = 114.900, z = 60.410 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6005, gadget_id = 70360046, pos = { x = -97.060, y = 113.890, z = 54.330 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6006, gadget_id = 70360046, pos = { x = -94.100, y = 115.440, z = 68.020 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6007, gadget_id = 70360046, pos = { x = 0.000, y = 0.000, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6001, 6002, 6003, 6004, 6005, 6006, 6007 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,99 @@
{
"areas": {},
"doors": {},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": -40.45184,
"y": 86.67802,
"z": 62.65594
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 2.0,
"heightType": "Center",
"length": 600.0,
"useHeight": false,
"width": 600.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
}
},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": -104.553,
"y": 33.31,
"z": 22.25034
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.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
}
},
"transRadius": 0.0
}