添加配置表

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,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -150.0, z = -180.0 },
size = { x = 450.0, z = 950.0 },
born_pos = { x = 111.451, y = 101.599, z = 0.000 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
die_y = -400,
city_id = 102,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 20135 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -150.0, z = -180.0 }, max = { x = 300.0, z = 770.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { }
@@ -0,0 +1,19 @@
-- 所有的group
groups = {
{ id = 220135001, pos = { x = 102.857, y = -210.473, z = 683.140 } },
{ id = 220135002, pos = { x = 0.974, y = -0.365, z = 40.230 } },
{ id = 220135003, pos = { x = 100.587, y = 100.640, z = 1.010 } },
{ id = 220135004, pos = { x = 0.974, y = -0.365, z = 40.230 } },
{ id = 220135005, pos = { x = 101.655, y = 101.718, z = -4.147 }, business = { type = 1 } },
{ id = 220135006, pos = { x = 0.974, y = -0.365, z = 40.230 } },
{ id = 220135007, pos = { x = 0.974, y = -0.365, z = 40.230 } },
{ id = 220135008, pos = { x = 0.974, y = -0.365, z = 40.230 }, business = { type = 2 } },
{ id = 220135009, pos = { x = 37.846, y = 107.799, z = -27.474 }, business = { type = 2 } },
{ id = 220135010, pos = { x = 149.597, y = 95.982, z = -41.622 }, business = { type = 2 } },
{ id = 220135011, pos = { x = 105.789, y = -221.170, z = 525.410 }, business = { type = 2 } },
{ id = 220135013, pos = { x = 110.311, y = -217.977, z = 562.319 }, business = { type = 2 } },
{ id = 220135016, pos = { x = 103.490, y = 103.514, z = -40.709 } },
{ id = 220135017, pos = { x = 99.965, y = 101.093, z = -10.261 }, business = { type = 1 } },
{ id = 220135018, pos = { x = 103.367, y = 101.116, z = -6.309 } },
{ id = 220135019, pos = { x = 103.261, y = -215.455, z = 585.689 } }
}
@@ -0,0 +1,61 @@
dummy_points = {
["guide_Q4006604"] = { pos = { x = 69.857, y = 127.020, z = 69.363 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4006605"] = { pos = { x = 50.669, y = 121.768, z = 31.884 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4006607"] = { pos = { x = 35.530, y = 107.799, z = -26.355 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4006609"] = { pos = { x = 119.759, y = 69.540, z = 74.540 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4006610"] = { pos = { x = 149.061, y = 76.798, z = 23.167 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4006612"] = { pos = { x = 144.218, y = 95.470, z = -41.378 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4006613"] = { pos = { x = 119.486, y = 100.811, z = -1.890 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4006615"] = { pos = { x = 100.074, y = 103.339, z = -14.532 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4006616"] = { pos = { x = 109.540, y = -216.194, z = 690.520 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006603_guide"] = { pos = { x = 112.246, y = 101.031, z = -1.037 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006603_N1042"] = { pos = { x = 112.265, y = 101.031, z = 0.800 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["Q4006606_N12611"] = { pos = { x = 66.628, y = 102.127, z = -8.021 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["Q4006606_N12613"] = { pos = { x = 67.107, y = 102.127, z = -8.693 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006607_N12611"] = { pos = { x = 67.032, y = 102.135, z = -8.093 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006607_N12613"] = { pos = { x = 66.980, y = 102.135, z = -8.616 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006608_guide"] = { pos = { x = 97.760, y = 100.890, z = 25.972 }, rot = { x = 0.000, y = 271.533, z = 0.000 } },
["Q4006608_N1042"] = { pos = { x = 86.554, y = 101.031, z = -1.101 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006611_N12611"] = { pos = { x = 124.127, y = 93.940, z = -20.069 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["Q4006611_N12613"] = { pos = { x = 124.912, y = 93.960, z = -20.036 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["Q4006612_N12611"] = { pos = { x = 124.071, y = 93.964, z = -20.001 }, rot = { x = 0.000, y = 290.000, z = 0.000 } },
["Q4006612_N12613"] = { pos = { x = 125.053, y = 93.964, z = -20.034 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["Q4006613_SoulKazuha"] = { pos = { x = 103.083, y = 101.159, z = -5.914 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006614_N12614"] = { pos = { x = 103.135, y = 101.993, z = -5.800 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006615_transmit"] = { pos = { x = 108.311, y = -221.170, z = 528.067 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006617_N1032"] = { pos = { x = 101.239, y = 102.781, z = -40.544 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["T4006603_fischl"] = { pos = { x = 111.616, y = 101.031, z = 0.439 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["T4006603_mona"] = { pos = { x = 113.317, y = 101.031, z = 0.436 }, rot = { x = 0.000, y = 254.000, z = 0.000 } },
["T4006603_oz"] = { pos = { x = 111.661, y = 101.031, z = -0.517 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["T4006603_paimon"] = { pos = { x = 113.151, y = 101.031, z = -1.081 }, rot = { x = 0.000, y = 340.000, z = 0.000 } },
["T4006603_player"] = { pos = { x = 112.226, y = 101.031, z = -1.083 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["T4006606_fischl"] = { pos = { x = 76.102, y = 101.440, z = -8.760 }, rot = { x = 0.000, y = 260.000, z = 0.000 } },
["T4006606_mona"] = { pos = { x = 74.849, y = 101.440, z = -7.974 }, rot = { x = 0.000, y = 250.000, z = 0.000 } },
["T4006606_oz"] = { pos = { x = 75.873, y = 101.440, z = -7.614 }, rot = { x = 0.000, y = 240.000, z = 0.000 } },
["T4006606_paimon"] = { pos = { x = 73.114, y = 101.609, z = -6.545 }, rot = { x = 0.000, y = 200.000, z = 0.000 } },
["T4006606_player"] = { pos = { x = 74.111, y = 101.441, z = -7.198 }, rot = { x = 0.000, y = 250.000, z = 0.000 } },
["T4006606_xinyan"] = { pos = { x = 74.423, y = 101.440, z = -9.438 }, rot = { x = 0.000, y = 260.000, z = 0.000 } },
["T4006608_fischl"] = { pos = { x = 87.395, y = 101.031, z = -0.312 }, rot = { x = 0.000, y = 300.000, z = 0.000 } },
["T4006608_mona"] = { pos = { x = 85.915, y = 101.031, z = -0.321 }, rot = { x = 0.000, y = 30.000, z = 0.000 } },
["T4006608_oz"] = { pos = { x = 87.591, y = 101.031, z = 0.419 }, rot = { x = 0.000, y = 260.000, z = 0.000 } },
["T4006608_paimon"] = { pos = { x = 86.140, y = 101.031, z = 0.993 }, rot = { x = 0.000, y = 150.000, z = 0.000 } },
["T4006608_player"] = { pos = { x = 86.638, y = 101.031, z = 1.101 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["T4006611_fischl"] = { pos = { x = 122.055, y = 93.253, z = -12.349 }, rot = { x = 0.000, y = 160.000, z = 0.000 } },
["T4006611_mona"] = { pos = { x = 128.217, y = 93.253, z = -12.704 }, rot = { x = 0.000, y = 220.000, z = 0.000 } },
["T4006611_oz"] = { pos = { x = 121.160, y = 93.253, z = -12.814 }, rot = { x = 0.000, y = 150.000, z = 0.000 } },
["T4006611_paimon"] = { pos = { x = 124.088, y = 93.253, z = -11.671 }, rot = { x = 0.000, y = 160.000, z = 0.000 } },
["T4006611_player"] = { pos = { x = 125.071, y = 93.400, z = -11.465 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["T4006611_xinyan"] = { pos = { x = 126.156, y = 93.253, z = -11.588 }, rot = { x = 0.000, y = 200.000, z = 0.000 } },
["T4006614_fischl"] = { pos = { x = 104.439, y = 101.031, z = -6.377 }, rot = { x = 0.000, y = 280.000, z = 0.000 } },
["T4006614_mona"] = { pos = { x = 100.890, y = 101.031, z = -6.321 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["T4006614_oz"] = { pos = { x = 104.638, y = 101.031, z = -5.312 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["T4006614_paimon"] = { pos = { x = 103.276, y = 101.031, z = -7.136 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["T4006614_player"] = { pos = { x = 102.395, y = 101.031, z = -7.214 }, rot = { x = 0.000, y = 30.000, z = 0.000 } },
["T4006614_xinyan"] = { pos = { x = 100.620, y = 101.031, z = -5.527 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["T4006617_fischl"] = { pos = { x = 98.204, y = 102.781, z = -36.956 }, rot = { x = 0.000, y = 150.000, z = 0.000 } },
["T4006617_mona"] = { pos = { x = 96.164, y = 102.781, z = -37.665 }, rot = { x = 0.000, y = 135.000, z = 0.000 } },
["T4006617_oz"] = { pos = { x = 97.077, y = 102.781, z = -37.133 }, rot = { x = 0.000, y = 150.000, z = 0.000 } },
["T4006617_paimon"] = { pos = { x = 101.325, y = 102.942, z = -35.781 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["T4006617_player"] = { pos = { x = 102.340, y = 102.781, z = -35.972 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["T4006617_xinyan"] = { pos = { x = 96.131, y = 102.781, z = -38.524 }, rot = { x = 0.000, y = 120.000, z = 0.000 } }
}
@@ -0,0 +1,174 @@
-- 基础信息
local base_info = {
group_id = 220135001
}
-- DEFS_MISCS
function SLC_Try_Trans_Player(context)
ScriptLib.TransPlayerToPos(context, {uid_list = {context.uid}, pos = {x=102.3399, y= 102.781, z=-35.97215}, radius = 1, rot = {x=0,y=180,z=0}, is_skip_ui=false})
return 0
end
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1004, gadget_id = 70360001, pos = { x = 101.970, y = -202.760, z = 604.432 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_REMOTE }
}
-- 区域
regions = {
{ config_id = 1001, shape = RegionShape.CUBIC, size = { x = 100.000, y = 20.000, z = 250.000 }, pos = { x = 108.409, y = -218.752, z = 608.243 }, team_ability_group_list = { "KazuhaDreamland_Enter_TransPlayer_Handle" } },
{ config_id = 1003, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = 108.311, y = -221.170, z = 528.067 } },
{ config_id = 1006, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = 108.311, y = -221.170, z = 537.230 } }
}
-- 触发器
triggers = {
{ config_id = 1001003, name = "ENTER_REGION_1003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1003", action = "action_EVENT_ENTER_REGION_1003", trigger_count = 0 },
{ config_id = 1001005, name = "QUEST_START_1005", event = EventType.EVENT_QUEST_START, source = "7903601", condition = "condition_EVENT_QUEST_START_1005", action = "action_EVENT_QUEST_START_1005", trigger_count = 0 },
{ config_id = 1001006, name = "ENTER_REGION_1006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1006", action = "action_EVENT_ENTER_REGION_1006", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "leave", value = 0, no_refresh = true }
}
-- 废弃数据
garbages = {
regions = {
{ config_id = 1002, shape = RegionShape.SPHERE, radius = 5, pos = { x = 104.206, y = -218.706, z = 694.731 } }
},
triggers = {
{ config_id = 1001002, name = "ENTER_REGION_1002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1002", action = "action_EVENT_ENTER_REGION_1002", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1004 },
regions = { 1003, 1006 },
triggers = { "ENTER_REGION_1003", "QUEST_START_1005", "ENTER_REGION_1006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { 1001 },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_1003(context, evt)
if evt.param1 ~= 1003 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_1003(context, evt)
-- 将本组内变量名为 "leave" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "leave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "7903601") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_1005(context, evt)
-- 判断变量"leave"为1
if ScriptLib.GetGroupVariableValue(context, "leave") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_1005(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220135001, 2)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1006(context, evt)
if evt.param1 ~= 1006 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_1006(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "7903601") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,313 @@
-- 基础信息
local base_info = {
group_id = 220135002
}
-- DEFS_MISCS
local defs = {
serve_items = {2004 }
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70590060, pos = { x = 100.056, y = 102.578, z = 40.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false, persistent = true, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
{ config_id = 2002, gadget_id = 70690035, pos = { x = 100.495, y = 88.314, z = 38.636 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2003, gadget_id = 70290375, pos = { x = 96.869, y = 99.648, z = 44.288 }, rot = { x = 0.000, y = 175.871, z = 0.000 }, level = 1, persistent = true },
{ config_id = 2004, gadget_id = 70310363, pos = { x = 105.971, y = 99.792, z = 36.522 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, isOneoff = true },
{ config_id = 2005, gadget_id = 70360170, pos = { x = 97.760, y = 100.121, z = 25.972 }, rot = { x = 0.000, y = 271.533, z = 0.000 }, level = 1, persistent = true },
{ config_id = 2011, gadget_id = 70310386, pos = { x = 97.760, y = 99.757, z = 25.972 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 2016, shape = RegionShape.SPHERE, radius = 8, pos = { x = 97.760, y = 100.121, z = 25.972 } },
{ config_id = 2018, shape = RegionShape.SPHERE, radius = 8, pos = { x = 98.945, y = 102.121, z = -35.040 } }
}
-- 触发器
triggers = {
{ config_id = 1002006, name = "SELECT_OPTION_2006", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2006", action = "action_EVENT_SELECT_OPTION_2006", trigger_count = 0 },
-- 4006608 任务保底
{ config_id = 1002007, name = "QUEST_START_2007", event = EventType.EVENT_QUEST_START, source = "4006608", condition = "condition_EVENT_QUEST_START_2007", action = "action_EVENT_QUEST_START_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 = "GROUP_LOAD_2009", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_2009", trigger_count = 0 },
{ config_id = 1002010, name = "SELECT_OPTION_2010", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "", action = "action_EVENT_SELECT_OPTION_2010", trigger_count = 0 },
-- 4006608 任务保底
{ config_id = 1002012, name = "GROUP_LOAD_2012", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_2012", action = "action_EVENT_GROUP_LOAD_2012", trigger_count = 0 },
{ config_id = 1002013, name = "TIME_AXIS_PASS_2013", event = EventType.EVENT_TIME_AXIS_PASS, source = "createwind", condition = "condition_EVENT_TIME_AXIS_PASS_2013", action = "action_EVENT_TIME_AXIS_PASS_2013", trigger_count = 0 },
{ config_id = 1002016, name = "ENTER_REGION_2016", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2016", action = "action_EVENT_ENTER_REGION_2016", trigger_count = 0 },
{ config_id = 1002017, name = "GROUP_LOAD_2017", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_2017", trigger_count = 0 },
{ config_id = 1002018, name = "ENTER_REGION_2018", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2018", action = "action_EVENT_ENTER_REGION_2018", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 2, name = "turn", value = 1, no_refresh = true },
{ config_id = 1, name = "wind", value = 0, no_refresh = true },
{ config_id = 3, name = "option", value = 0, no_refresh = true }
}
-- 废弃数据
garbages = {
regions = {
{ config_id = 2014, shape = RegionShape.SPHERE, radius = 7, pos = { x = 50.328, y = 121.831, z = 50.700 } },
{ config_id = 2015, shape = RegionShape.SPHERE, radius = 7, pos = { x = 103.671, y = 68.315, z = 75.131 } }
},
triggers = {
{ config_id = 1002014, name = "ENTER_REGION_2014", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_2014", trigger_count = 0 },
{ config_id = 1002015, name = "ENTER_REGION_2015", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_2015", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2003, 2004, 2005, 2011 },
regions = { 2016, 2018 },
triggers = { "SELECT_OPTION_2006", "QUEST_START_2007", "GADGET_STATE_CHANGE_2008", "GROUP_LOAD_2009", "SELECT_OPTION_2010", "GROUP_LOAD_2012", "TIME_AXIS_PASS_2013", "ENTER_REGION_2016", "GROUP_LOAD_2017", "ENTER_REGION_2018" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_2006(context, evt)
-- 判断是gadgetid 2005 option_id 7
if 2005 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2006(context, evt)
-- 触发镜头注目,注目位置为坐标{x=100.056, y=102.578, z=40},持续时间为3.5秒,并且为强制注目形式,不广播其他玩家
local pos = {x=100.056, y=102.578, z=40}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 3.5, 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_QUEST_START_2007(context, evt)
-- 判断变量"turn"为0
if ScriptLib.GetGroupVariableValue(context, "turn") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_2007(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006608") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2008(context, evt)
if 2003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2008(context, evt)
-- 创建id为2002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 将本组内变量名为 "wind" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "wind", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_2009(context, evt)
if ScriptLib.GetGroupVariableValue(context, "turn") == 1 and ScriptLib.GetGroupVariableValue(context, "wind") == 1 then
ScriptLib.CreateGadget(context, {config_id=2002})
end
if ScriptLib.GetGroupVariableValue(context, "option") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2005, {7})
end
if ScriptLib.GetGroupVariableValue(context, "turn") == 0 then
ScriptLib.SetPlatformPointArray(context, 2001, 6, {1}, {route_type=RouteType.OneWay, turn_mode=true, record_mode=RouteRecordMode.Reach})
end
return 0
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2010(context, evt)
if evt.param1 == 2005 and evt.param2 == 7 and ScriptLib.GetGroupVariableValue(context, "turn") == 0 then
ScriptLib.SetGroupVariableValueByGroup(context, "room1", 1, 220135003)
ScriptLib.SetGroupVariableValue(context, "turn", 1)
ScriptLib.SetPlatformPointArray(context, 2001, 1, {1}, {route_type=RouteType.OneWay, turn_mode=true, record_mode=RouteRecordMode.Prereach})
ScriptLib.InitTimeAxis(context, "createwind", {3}, false)
ScriptLib.SetGadgetStateByConfigId(context,2005, GadgetState.Default)
else
if evt.param1 == 2005 and evt.param2 == 7 and ScriptLib.GetGroupVariableValue(context, "turn") == 1 then
ScriptLib.SetGroupVariableValueByGroup(context, "room1", 0, 220135003)
ScriptLib.SetGroupVariableValue(context, "turn", 0)
ScriptLib.SetPlatformPointArray(context, 2001, 1, {2}, {route_type=RouteType.OneWay, turn_mode=true, record_mode=RouteRecordMode.Prereach})
ScriptLib.KillEntityByConfigId(context, {group_id=220135002, config_id=2002, entity_type=EntityType.GADGET})
ScriptLib.AddQuestProgress(context, "4006608")
ScriptLib.SetGadgetStateByConfigId(context,2005, GadgetState.GearStart)
end
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_2012(context, evt)
-- 判断变量"turn"为0
if ScriptLib.GetGroupVariableValue(context, "turn") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_2012(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006608") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_2013(context, evt)
if "createwind" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_2013(context, evt)
-- 创建id为2002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2016(context, evt)
if evt.param1 ~= 2016 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_2016(context, evt)
ScriptLib.ActivateDungeonCheckPoint(context, 9)
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_2017(context, evt)
if ScriptLib.GetGroupVariableValue(context, "turn") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,2005, GadgetState.Default)
end
if ScriptLib.GetGroupVariableValue(context, "turn") == 0 then
ScriptLib.SetGadgetStateByConfigId(context,2005, GadgetState.GearStart)
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2018(context, evt)
if evt.param1 ~= 2018 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_2018(context, evt)
ScriptLib.ActivateDungeonCheckPoint(context, 9)
return 0
end
require "V2_8/KazuhaServeItem"
@@ -0,0 +1,321 @@
-- 基础信息
local base_info = {
group_id = 220135003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3015, gadget_id = 70360001, pos = { x = 95.355, y = 109.175, z = 10.516 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3016, gadget_id = 70950011, pos = { x = 75.815, y = 95.096, z = 10.156 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3017, gadget_id = 70950011, pos = { x = 130.875, y = 90.375, z = 18.905 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 3018, shape = RegionShape.SPHERE, radius = 7, pos = { x = 75.990, y = 100.640, z = 13.007 } },
{ config_id = 3019, shape = RegionShape.CUBIC, size = { x = 5.000, y = 5.000, z = 5.000 }, pos = { x = 75.990, y = 102.363, z = 15.400 } },
{ config_id = 3020, shape = RegionShape.CUBIC, size = { x = 20.000, y = 10.000, z = 5.000 }, pos = { x = 128.804, y = 91.468, z = 17.849 } },
{ config_id = 3021, shape = RegionShape.CUBIC, size = { x = 5.000, y = 5.000, z = 5.000 }, pos = { x = 130.751, y = 91.468, z = 22.667 } },
{ config_id = 3022, shape = RegionShape.CUBIC, size = { x = 5.000, y = 5.000, z = 5.000 }, pos = { x = 130.751, y = 91.468, z = 22.667 } }
}
-- 触发器
triggers = {
{ config_id = 1003011, name = "VARIABLE_CHANGE_3011", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "", action = "action_EVENT_VARIABLE_CHANGE_3011", trigger_count = 0 },
{ config_id = 1003012, name = "GROUP_LOAD_3012", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_3012", trigger_count = 0 },
{ config_id = 1003013, name = "VARIABLE_CHANGE_3013", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "", action = "action_EVENT_VARIABLE_CHANGE_3013", trigger_count = 0 },
{ config_id = 1003014, name = "VARIABLE_CHANGE_3014", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "", action = "action_EVENT_VARIABLE_CHANGE_3014", trigger_count = 0 },
{ config_id = 1003018, name = "ENTER_REGION_3018", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3018", action = "action_EVENT_ENTER_REGION_3018", trigger_count = 0 },
{ config_id = 1003019, name = "ENTER_REGION_3019", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3019", action = "action_EVENT_ENTER_REGION_3019", trigger_count = 0 },
{ config_id = 1003020, name = "ENTER_REGION_3020", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3020", action = "action_EVENT_ENTER_REGION_3020", trigger_count = 0 },
{ config_id = 1003021, name = "ENTER_REGION_3021", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3021", action = "action_EVENT_ENTER_REGION_3021", trigger_count = 0 },
{ config_id = 1003022, name = "ENTER_REGION_3022", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3022", action = "action_EVENT_ENTER_REGION_3022", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "room1", value = 1, no_refresh = true },
{ config_id = 2, name = "room3", value = 1, no_refresh = true },
{ config_id = 3, name = "room4", value = 1, no_refresh = true },
{ config_id = 4, name = "room5", value = 1, no_refresh = true },
{ config_id = 5, name = "reminder1", value = 0, no_refresh = true },
{ config_id = 6, name = "reminder2", value = 0, no_refresh = true }
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 3010, gadget_id = 70360001, pos = { x = 100.319, y = 101.127, z = 10.182 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_REMOTE }
},
regions = {
{ config_id = 3002, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = 95.124, y = 128.250, z = 69.533 } },
{ config_id = 3003, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = 51.494, y = 126.883, z = 69.166 } },
{ config_id = 3004, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = 59.324, y = 103.866, z = 23.189 } },
{ config_id = 3005, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = 100.318, y = 68.543, z = 73.976 } },
{ config_id = 3006, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = 143.874, y = 82.689, z = 73.284 } },
{ config_id = 3007, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = 130.521, y = 91.067, z = 22.252 } },
{ config_id = 3008, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 15.000 }, pos = { x = 102.745, y = 102.147, z = -35.425 } },
{ config_id = 3009, shape = RegionShape.SPHERE, radius = 8, pos = { x = 99.902, y = 100.640, z = 14.284 } }
},
triggers = {
{ config_id = 1003001, name = "GROUP_LOAD_3001", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_3001", trigger_count = 0 },
{ config_id = 1003002, name = "ENTER_REGION_3002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3002", action = "action_EVENT_ENTER_REGION_3002", trigger_count = 0 },
{ config_id = 1003003, name = "ENTER_REGION_3003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3003", action = "action_EVENT_ENTER_REGION_3003", trigger_count = 0 },
{ config_id = 1003004, name = "ENTER_REGION_3004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3004", action = "action_EVENT_ENTER_REGION_3004", trigger_count = 0 },
{ config_id = 1003005, name = "ENTER_REGION_3005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3005", action = "action_EVENT_ENTER_REGION_3005", trigger_count = 0 },
{ config_id = 1003006, name = "ENTER_REGION_3006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3006", action = "action_EVENT_ENTER_REGION_3006", trigger_count = 0 },
{ config_id = 1003007, name = "ENTER_REGION_3007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3007", action = "action_EVENT_ENTER_REGION_3007", trigger_count = 0 },
{ config_id = 1003008, name = "ENTER_REGION_3008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3008", action = "action_EVENT_ENTER_REGION_3008" },
{ config_id = 1003009, name = "ENTER_REGION_3009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3009", action = "action_EVENT_ENTER_REGION_3009", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3015 },
regions = { 3022 },
triggers = { "VARIABLE_CHANGE_3011", "GROUP_LOAD_3012", "VARIABLE_CHANGE_3013", "VARIABLE_CHANGE_3014", "ENTER_REGION_3022" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 3016 },
regions = { 3018, 3019 },
triggers = { "ENTER_REGION_3018", "ENTER_REGION_3019" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 3017 },
regions = { 3020, 3021 },
triggers = { "ENTER_REGION_3020", "ENTER_REGION_3021" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_3011(context, evt)
if ScriptLib.GetGroupVariableValue(context, "room1") == 0 or ScriptLib.GetGroupVariableValue(context, "room3") == 1 then
ScriptLib.AddExtraGroupSuite(context, 0, 2)
end
if ScriptLib.GetGroupVariableValue(context, "room1") == 1 or ScriptLib.GetGroupVariableValue(context, "room4") == 0 or ScriptLib.GetGroupVariableValue(context, "room5") == 0 then
ScriptLib.AddExtraGroupSuite(context, 0, 3)
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_3012(context, evt)
if ScriptLib.GetGroupVariableValue(context, "room1") == 0 or ScriptLib.GetGroupVariableValue(context, "room3") == 1 then
ScriptLib.AddExtraGroupSuite(context, 0, 2)
end
if ScriptLib.GetGroupVariableValue(context, "room1") == 1 or ScriptLib.GetGroupVariableValue(context, "room4") == 0 or ScriptLib.GetGroupVariableValue(context, "room5") == 0 then
ScriptLib.AddExtraGroupSuite(context, 0, 3)
end
ScriptLib.SetGroupVariableValue(context, "reminder1", 0)
ScriptLib.SetGroupVariableValue(context, "reminder2", 0)
return 0
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_3013(context, evt)
if ScriptLib.GetGroupVariableValue(context, "room1") == 1 and ScriptLib.GetGroupVariableValue(context, "room3") == 0 then
ScriptLib.RemoveExtraGroupSuite(context, 220135003, 2)
end
return 0
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_3014(context, evt)
if ScriptLib.GetGroupVariableValue(context, "room1") == 0 and ScriptLib.GetGroupVariableValue(context, "room4") == 1 and ScriptLib.GetGroupVariableValue(context, "room5") == 1 then
ScriptLib.RemoveExtraGroupSuite(context, 220135003, 3)
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3018(context, evt)
if evt.param1 ~= 3018 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"reminder1"为0
if ScriptLib.GetGroupVariableValue(context, "reminder1") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_3018(context, evt)
-- 将本组内变量名为 "reminder1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "reminder1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 调用提示id为 201350105 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201350105) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3019(context, evt)
if evt.param1 ~= 3019 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_3019(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220135003, EntityType.GADGET, 3016 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3020(context, evt)
if evt.param1 ~= 3020 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"reminder2"为0
if ScriptLib.GetGroupVariableValue(context, "reminder2") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_3020(context, evt)
-- 将本组内变量名为 "reminder2" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "reminder2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 调用提示id为 201350105 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201350105) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3021(context, evt)
if evt.param1 ~= 3021 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_3021(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220135003, EntityType.GADGET, 3017 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3022(context, evt)
if evt.param1 ~= 3022 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"turn"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "turn", 220135002) ~= 1 then
return false
end
if ScriptLib.CheckSceneTag(context, 20135, 1073) ~= true then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_3022(context, evt)
ScriptLib.ChangeToTargetLevelTag(context, 37)
return 0
end
@@ -0,0 +1,332 @@
-- 基础信息
local base_info = {
group_id = 220135004
}
-- DEFS_MISCS
local defs = {
--本Group中发射器gadget的configID,最多3个,
fireMachineList = {
4008
},
--key为发射器configIDvalue为ColorDefine
initConfig = {
[4008] = 1,
},
--Key为操作台。value为发射器。允许有多个操作台控制同一个发射器
controlRelation = {
},
--左右旋转的SelectOptionID
selectID_horizon = 613,
--上下俯仰的SelectOptionID
selectID_vertical = 612,
--定义左右旋转的步长,key为传递装置configIDvalue为GadgetState
horizon_steps = {
[4016] = {0, 102, 103, 104},
[4017] = {0, 102, 103, 104},
[4018] = {0, 102, 103, 104},
},
--定义上下俯仰的步长,key为传递装置configIDvalue为GadgetState
vertical_steps = {
[4016] = {0, 302, 303, 304},
[4017] = {0, 302, 303, 304},
[4018] = {0, 302, 303, 304},
},
serve_items = {4007,4014}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70590060, pos = { x = 69.380, y = 130.000, z = 69.380 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false, persistent = true, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
{ config_id = 4002, gadget_id = 70290375, pos = { x = 69.718, y = 127.910, z = 75.342 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 4003, gadget_id = 70360170, pos = { x = 87.801, y = 128.920, z = 67.045 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true, worktop_config = { init_options = { 7 } } },
{ config_id = 4006, gadget_id = 70290375, pos = { x = 69.214, y = 127.910, z = 63.457 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 4007, gadget_id = 70310363, pos = { x = 77.387, y = 146.525, z = 92.772 }, rot = { x = 0.000, y = 180.000, z = 180.000 }, level = 1, state = GadgetState.GearStart, isOneoff = true },
{ config_id = 4008, gadget_id = 70310367, pos = { x = 73.078, y = 146.200, z = 90.990 }, rot = { x = 0.000, y = 180.000, z = 180.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 4009, gadget_id = 70310369, pos = { x = 59.331, y = 127.170, z = 69.343 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 4012, gadget_id = 70690034, pos = { x = 63.911, y = 113.252, z = 68.326 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4013, gadget_id = 70290375, pos = { x = 62.681, y = 146.789, z = 72.193 }, rot = { x = 0.000, y = 121.871, z = 180.000 }, level = 1, state = GadgetState.GearStart, persistent = true },
{ config_id = 4014, gadget_id = 70310363, pos = { x = 69.411, y = 136.613, z = 69.407 }, rot = { x = 0.000, y = 180.000, z = 180.000 }, level = 1, state = GadgetState.GearStart, isOneoff = true },
{ config_id = 4016, gadget_id = 70310368, pos = { x = 73.078, y = 146.200, z = 83.306 }, rot = { x = 0.000, y = 180.000, z = 180.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 4017, gadget_id = 70310368, pos = { x = 66.913, y = 146.200, z = 83.306 }, rot = { x = 0.000, y = 180.000, z = 180.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 4018, gadget_id = 70310368, pos = { x = 66.913, y = 146.200, z = 72.616 }, rot = { x = 0.000, y = 180.000, z = 180.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 4019, gadget_id = 70310418, pos = { x = 62.681, y = 145.344, z = 72.193 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 4023, shape = RegionShape.SPHERE, radius = 8, pos = { x = 87.801, y = 128.920, z = 67.045 } }
}
-- 触发器
triggers = {
{ config_id = 1004004, name = "SELECT_OPTION_4004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4004", action = "action_EVENT_SELECT_OPTION_4004", trigger_count = 0 },
{ config_id = 1004005, name = "GROUP_LOAD_4005", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_4005", trigger_count = 0 },
{ config_id = 1004010, name = "GADGET_STATE_CHANGE_4010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "action_EVENT_GADGET_STATE_CHANGE_4010", trigger_count = 0 },
-- 4006604 任务保底
{ config_id = 1004011, name = "QUEST_START_4011", event = EventType.EVENT_QUEST_START, source = "4006604", condition = "condition_EVENT_QUEST_START_4011", action = "action_EVENT_QUEST_START_4011", trigger_count = 0 },
-- 4006604 任务保底
{ config_id = 1004015, name = "GROUP_LOAD_4015", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_4015", action = "action_EVENT_GROUP_LOAD_4015", trigger_count = 0 },
{ config_id = 1004020, name = "ANY_GADGET_DIE_4020", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_4020", action = "action_EVENT_ANY_GADGET_DIE_4020" },
{ config_id = 1004021, name = "SELECT_OPTION_4021", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "", action = "action_EVENT_SELECT_OPTION_4021", trigger_count = 0 },
{ config_id = 1004022, name = "TIME_AXIS_PASS_4022", event = EventType.EVENT_TIME_AXIS_PASS, source = "createwind", condition = "condition_EVENT_TIME_AXIS_PASS_4022", action = "action_EVENT_TIME_AXIS_PASS_4022", trigger_count = 0 },
{ config_id = 1004023, name = "ENTER_REGION_4023", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4023", action = "action_EVENT_ENTER_REGION_4023", trigger_count = 0 },
{ config_id = 1004024, name = "GROUP_LOAD_4024", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_4024", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "turn", value = 1, no_refresh = true },
{ config_id = 2, name = "test", value = 0, no_refresh = true },
{ config_id = 3, name = "wind", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4001, 4002, 4003, 4006, 4007, 4008, 4009, 4013, 4014, 4016, 4017, 4018, 4019 },
regions = { 4023 },
triggers = { "SELECT_OPTION_4004", "GROUP_LOAD_4005", "GADGET_STATE_CHANGE_4010", "QUEST_START_4011", "GROUP_LOAD_4015", "ANY_GADGET_DIE_4020", "SELECT_OPTION_4021", "TIME_AXIS_PASS_4022", "ENTER_REGION_4023", "GROUP_LOAD_4024" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_4004(context, evt)
-- 判断是gadgetid 4003 option_id 7
if 4003 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4004(context, evt)
-- 触发镜头注目,注目位置为坐标{x=59, y=130, z=69.38},持续时间为3.5秒,并且为强制注目形式,不广播其他玩家
local pos = {x=59, y=130, z=69.38}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 3.5, 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 action_EVENT_GROUP_LOAD_4005(context, evt)
if ScriptLib.GetGroupVariableValue(context, "turn") == 0 then
ScriptLib.SetPlatformPointArray(context, 4001, 5, {1}, {route_type=RouteType.OneWay, turn_mode=true, record_mode=RouteRecordMode.Reach})
if ScriptLib.GetGroupVariableValue(context, "wind") == 1 then
ScriptLib.CreateGadget(context, {config_id=4012})
end
end
return 0
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_4010(context, evt)
if ScriptLib.GetGadgetStateByConfigId(context, 0, 4002) == 201 and ScriptLib.GetGadgetStateByConfigId(context, 0, 4006) == 201 and ScriptLib.GetGroupVariableValue(context, "test") == 0 then
ScriptLib.AddQuestProgress(context, "4006604")
ScriptLib.SetGadgetStateByConfigId(context,4009, GadgetState.GearStart)
ScriptLib.SetGroupVariableValue(context, "test", 1)
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_4011(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220135004, 4009) then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_4011(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006604") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_4015(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220135004, 4009) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_4015(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006604") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_4020(context, evt)
if 4019 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_4020(context, evt)
-- 创建id为4012的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 4012 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 将本组内变量名为 "wind" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "wind", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4021(context, evt)
if evt.param1 == 4003 and evt.param2 == 7 and ScriptLib.GetGroupVariableValue(context, "turn") == 0 then
ScriptLib.SetGroupVariableValue(context, "turn", 1)
ScriptLib.SetPlatformPointArray(context, 4001, 4, {1}, {route_type=RouteType.OneWay, turn_mode=true, record_mode=RouteRecordMode.Prereach})
ScriptLib.KillEntityByConfigId(context, {group_id=220135004, config_id=4012, entity_type=EntityType.GADGET})
if ScriptLib.GetGroupVariableValue(context, "test") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,4009, GadgetState.GearStart)
end
ScriptLib.SetGadgetStateByConfigId(context,4003, GadgetState.Default)
else
if evt.param1 == 4003 and evt.param2 == 7 and ScriptLib.GetGroupVariableValue(context, "turn") == 1 then
ScriptLib.SetGroupVariableValue(context, "turn", 0)
ScriptLib.SetPlatformPointArray(context, 4001, 4, {2}, {route_type=RouteType.OneWay, turn_mode=true, record_mode=RouteRecordMode.Prereach})
ScriptLib.SetGadgetStateByConfigId(context,4009, GadgetState.Default)
if ScriptLib.GetGroupVariableValue(context, "wind") == 1 then
ScriptLib.InitTimeAxis(context, "createwind", {3}, false)
end
ScriptLib.SetGroupGadgetStateByConfigId(context, 0, 4003, GadgetState.GearStart)
end
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_4022(context, evt)
if "createwind" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_4022(context, evt)
-- 创建id为4012的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 4012 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_4023(context, evt)
if evt.param1 ~= 4023 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_4023(context, evt)
ScriptLib.ActivateDungeonCheckPoint(context, 3)
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_4024(context, evt)
if ScriptLib.GetGroupVariableValue(context, "turn") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,4003, GadgetState.Default)
else
ScriptLib.SetGadgetStateByConfigId(context,4003, GadgetState.GearStart)
end
return 0
end
require "V2_8/FireMachineColorHandle"
require "V2_8/KazuhaServeItem"
@@ -0,0 +1,169 @@
-- 基础信息
local base_info = {
group_id = 220135005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5001, gadget_id = 70290137, pos = { x = 100.067, y = 101.180, z = -14.649 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 5004, gadget_id = 70360001, pos = { x = 100.000, y = 102.350, z = -14.519 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1005002, name = "GADGET_CREATE_5002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_5002", action = "action_EVENT_GADGET_CREATE_5002", trigger_count = 0 },
{ config_id = 1005003, name = "SELECT_OPTION_5003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5003", action = "action_EVENT_SELECT_OPTION_5003", trigger_count = 0 },
-- 开门任务期间,刷到2
{ config_id = 1005005, name = "GROUP_LOAD_5005", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_5005", trigger_count = 0 },
-- 黑白空间结束刷到3
{ config_id = 1005007, name = "GROUP_LOAD_5007", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_5007", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5001 },
regions = { },
triggers = { "GROUP_LOAD_5005", "GROUP_LOAD_5007" },
rand_weight = 100,
ban_refresh = true
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 5001, 5004 },
regions = { },
triggers = { "GADGET_CREATE_5002", "SELECT_OPTION_5003", "GROUP_LOAD_5007" },
rand_weight = 100,
ban_refresh = true
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "GROUP_LOAD_5005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_5002(context, evt)
if 5004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_5002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220135005, 5004, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5003(context, evt)
-- 判断是gadgetid 5004 option_id 1
if 5004 ~= evt.param1 then
return false
end
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5003(context, evt)
-- 将使用操作台的玩家传送至目标点
if evt.uid ~= nil then
local t_pos = {x=108.311, y=-221.17, z=528.0668}
if 0 ~= ScriptLib.TransPlayerToPos(context, {uid_list = {evt.uid}, pos = t_pos, rot = {x=0, y=0, z=0}}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : trans_player_byOption")
return -1
end
else
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : trans_player_byOption")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_5005(context, evt)
if ScriptLib.GetHostQuestState(context,4006615)==2 then
ScriptLib.RefreshGroup(context, { group_id = 220135005, suite = 2 })
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_5007(context, evt)
if ScriptLib.GetHostQuestState(context,4006616)==3 then
ScriptLib.RefreshGroup(context, { group_id = 220135005, suite = 3 })
end
return 0
end
@@ -0,0 +1,360 @@
-- 基础信息
local base_info = {
group_id = 220135006
}
-- DEFS_MISCS
local defs = {
--本Group中发射器gadget的configID,最多3个,
fireMachineList = {
6011
},
--key为发射器configIDvalue为ColorDefine
initConfig = {
[6011] = 1,
},
--Key为操作台。value为发射器。允许有多个操作台控制同一个发射器
controlRelation = {
},
--左右旋转的SelectOptionID
selectID_horizon = 613,
--上下俯仰的SelectOptionID
selectID_vertical = 612,
--定义左右旋转的步长,key为传递装置configIDvalue为GadgetState
horizon_steps = {
[6012] = {0, 102, 103, 104},
[6013] = {0, 102, 103, 104},
[6014] = {0, 102, 103, 104},
},
--定义上下俯仰的步长,key为传递装置configIDvalue为GadgetState
vertical_steps = {
[6012] = {0, 302, 303, 304},
[6013] = {0, 302, 303, 304},
[6014] = {0, 302, 303, 304},
},
serve_items = {6018}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6001, gadget_id = 70590060, pos = { x = 50.830, y = 123.660, z = 31.480 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false, persistent = true, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
{ config_id = 6002, gadget_id = 70360170, pos = { x = 53.723, y = 121.975, z = 45.906 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, persistent = true, worktop_config = { init_options = { 7 } } },
{ config_id = 6005, gadget_id = 70690036, pos = { x = 43.072, y = 102.715, z = 37.326 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6006, gadget_id = 70310369, pos = { x = 49.169, y = 137.957, z = 23.241 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 6009, gadget_id = 70290375, pos = { x = 54.200, y = 142.866, z = 17.022 }, rot = { x = 0.000, y = 358.334, z = 180.000 }, level = 1, persistent = true },
{ config_id = 6010, gadget_id = 70290375, pos = { x = 56.648, y = 141.538, z = 39.561 }, rot = { x = 0.000, y = 180.000, z = 180.000 }, level = 1, state = GadgetState.GearStart, persistent = true },
{ config_id = 6011, gadget_id = 70310367, pos = { x = 47.149, y = 119.769, z = 38.090 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 6012, gadget_id = 70310368, pos = { x = 59.891, y = 120.226, z = 38.236 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 6013, gadget_id = 70310368, pos = { x = 59.891, y = 120.226, z = 24.362 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 6014, gadget_id = 70310368, pos = { x = 50.665, y = 120.226, z = 24.362 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 6018, gadget_id = 70310363, pos = { x = 51.002, y = 120.226, z = 28.175 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.ChestLocked, isOneoff = true },
{ config_id = 6019, gadget_id = 70310418, pos = { x = 51.002, y = 121.010, z = 28.175 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, isOneoff = true, persistent = true },
{ config_id = 6021, gadget_id = 70310365, pos = { x = 66.659, y = 142.565, z = 26.927 }, rot = { x = 0.000, y = 180.000, z = 180.000 }, level = 1, isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 6016, shape = RegionShape.SPHERE, radius = 6, pos = { x = 59.903, y = 103.850, z = 23.588 } },
{ config_id = 6022, shape = RegionShape.SPHERE, radius = 8, pos = { x = 53.723, y = 121.975, z = 45.906 } }
}
-- 触发器
triggers = {
{ config_id = 1006003, name = "SELECT_OPTION_6003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "", action = "action_EVENT_SELECT_OPTION_6003", trigger_count = 0 },
{ config_id = 1006004, name = "SELECT_OPTION_6004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6004", action = "action_EVENT_SELECT_OPTION_6004", trigger_count = 0 },
{ config_id = 1006007, name = "GROUP_LOAD_6007", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_6007", trigger_count = 0 },
{ config_id = 1006008, name = "GADGET_STATE_CHANGE_6008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_6008", action = "action_EVENT_GADGET_STATE_CHANGE_6008" },
-- 4006605 任务保底
{ config_id = 1006015, name = "QUEST_START_6015", event = EventType.EVENT_QUEST_START, source = "4006605", condition = "condition_EVENT_QUEST_START_6015", action = "action_EVENT_QUEST_START_6015", trigger_count = 0 },
{ config_id = 1006016, name = "ENTER_REGION_6016", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6016", action = "action_EVENT_ENTER_REGION_6016", trigger_count = 0 },
-- 4006605 任务保底
{ config_id = 1006017, name = "GROUP_LOAD_6017", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_6017", action = "action_EVENT_GROUP_LOAD_6017", trigger_count = 0 },
{ config_id = 1006020, name = "ANY_GADGET_DIE_6020", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_6020", action = "action_EVENT_ANY_GADGET_DIE_6020" },
{ config_id = 1006022, name = "ENTER_REGION_6022", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6022", action = "action_EVENT_ENTER_REGION_6022", trigger_count = 0 },
{ config_id = 1006023, name = "GROUP_LOAD_6023", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_6023", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 2, name = "turn", value = 1, no_refresh = true },
{ config_id = 1, name = "room", value = 0, no_refresh = true },
{ config_id = 3, name = "isLock_1", value = 1, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6001, 6002, 6005, 6006, 6009, 6010, 6011, 6012, 6013, 6014, 6018, 6019, 6021 },
regions = { 6016, 6022 },
triggers = { "SELECT_OPTION_6003", "SELECT_OPTION_6004", "GROUP_LOAD_6007", "GADGET_STATE_CHANGE_6008", "QUEST_START_6015", "ENTER_REGION_6016", "GROUP_LOAD_6017", "ANY_GADGET_DIE_6020", "ENTER_REGION_6022", "GROUP_LOAD_6023" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_SELECT_OPTION_6003(context, evt)
if evt.param2 == 7 and ScriptLib.GetGroupVariableValue(context, "turn") == 0 then
ScriptLib.SetGroupVariableValueByGroup(context, "room3", 1, 220135003)
ScriptLib.SetGroupVariableValue(context, "turn", 1)
ScriptLib.SetPlatformPointArray(context, 6001, 1, {1}, {route_type=RouteType.OneWay, turn_mode=true, record_mode=RouteRecordMode.Prereach})
ScriptLib.SetGadgetStateByConfigId(context,6006, GadgetState.Default)
ScriptLib.SetGadgetStateByConfigId(context,6002, GadgetState.Default)
else
if evt.param2 == 7 and ScriptLib.GetGroupVariableValue(context, "turn") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,6002, GadgetState.GearStart)
ScriptLib.SetGroupVariableValueByGroup(context, "room3", 0, 220135003)
ScriptLib.SetGroupVariableValue(context, "turn", 0)
ScriptLib.SetPlatformPointArray(context, 6001, 1, {2}, {route_type=RouteType.OneWay, turn_mode=true, record_mode=RouteRecordMode.Prereach})
if ScriptLib.GetGroupVariableValue(context, "room") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,6006, GadgetState.GearStart)
end
end
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_6004(context, evt)
-- 判断是gadgetid 6002 option_id 7
if 6002 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6004(context, evt)
-- 触发镜头注目,注目位置为坐标{x=50.83, y=123.66, z=31.48},持续时间为3.5秒,并且为强制注目形式,不广播其他玩家
local pos = {x=50.83, y=123.66, z=31.48}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 3.5, 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 action_EVENT_GROUP_LOAD_6007(context, evt)
if ScriptLib.GetGroupVariableValue(context, "turn") == 0 then
ScriptLib.SetPlatformPointArray(context, 6001, 6, {1}, {route_type=RouteType.OneWay, turn_mode=true, record_mode=RouteRecordMode.Reach})
end
ScriptLib.SetGadgetStateByConfigId(context,6021, GadgetState.Default)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_6008(context, evt)
if 6009 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_6008(context, evt)
-- 将本组内变量名为 "room" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "room", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将configid为 6006 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006605") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_6015(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220135006, 6006) then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_6015(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006605") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_6016(context, evt)
if evt.param1 ~= 6016 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"turn"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "turn", 220135006) ~= 1 then
return false
end
if ScriptLib.CheckSceneTag(context, 20135, 1072) ~= true then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_6016(context, evt)
ScriptLib.ChangeToTargetLevelTag(context, 35)
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_6017(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220135006, 6006) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_6017(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006605") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_6020(context, evt)
if 6019 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_6020(context, evt)
-- 将本组内变量名为 "isLock_1" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isLock_1", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将configid为 6018 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6018, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_6022(context, evt)
if evt.param1 ~= 6022 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_6022(context, evt)
ScriptLib.ActivateDungeonCheckPoint(context, 7)
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_6023(context, evt)
if ScriptLib.GetGroupVariableValue(context, "turn") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,6002, GadgetState.Default)
else
ScriptLib.SetGadgetStateByConfigId(context,6002, GadgetState.GearStart)
end
return 0
end
require "V2_8/FireMachineColorHandle"
require "V2_8/KazuhaServeItem"
@@ -0,0 +1,451 @@
-- 基础信息
local base_info = {
group_id = 220135007
}
-- DEFS_MISCS
local defs = {
--本Group中发射器gadget的configID,最多3个,
fireMachineList = {
7017,
7021,
},
--key为发射器configIDvalue为ColorDefine
initConfig = {
[7017] = 1,
[7021] = 4,
},
--Key为操作台。value为发射器。允许有多个操作台控制同一个发射器
controlRelation = {
},
--左右旋转的SelectOptionID
selectID_horizon = 613,
--上下俯仰的SelectOptionID
selectID_vertical = 612,
--定义左右旋转的步长,key为传递装置configIDvalue为GadgetState
horizon_steps = {
[7018] = {0, 102, 103, 104},
[7019] = {0, 102, 103, 104},
[7020] = {0, 102, 103, 104},
},
--定义上下俯仰的步长,key为传递装置configIDvalue为GadgetState
vertical_steps = {
[7018] = {0, 302, 303, 304},
[7019] = {0, 302, 303, 304},
[7020] = {0, 302, 303, 304},
},
serve_items = {7008,7009}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7001, gadget_id = 70590060, pos = { x = 121.430, y = 72.280, z = 74.540 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false, persistent = true, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
{ config_id = 7002, gadget_id = 70360170, pos = { x = 102.959, y = 68.995, z = 76.371 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true, worktop_config = { init_options = { 7 } } },
{ config_id = 7005, gadget_id = 70690034, pos = { x = 125.079, y = 70.437, z = 74.579 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7006, gadget_id = 70290375, pos = { x = 125.342, y = 70.309, z = 78.616 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 7007, gadget_id = 70290375, pos = { x = 125.316, y = 70.309, z = 70.769 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 7008, gadget_id = 70310363, pos = { x = 129.838, y = 89.275, z = 66.973 }, rot = { x = 0.000, y = 180.000, z = 180.000 }, level = 1, state = GadgetState.ChestLocked, isOneoff = true },
{ config_id = 7009, gadget_id = 70310363, pos = { x = 112.365, y = 88.964, z = 82.809 }, rot = { x = 0.000, y = 180.000, z = 180.000 }, level = 1, state = GadgetState.ChestLocked, isOneoff = true },
{ config_id = 7010, gadget_id = 70310369, pos = { x = 133.178, y = 89.208, z = 74.534 }, rot = { x = 0.000, y = 270.000, z = 180.000 }, level = 1, persistent = true },
{ config_id = 7013, gadget_id = 70211167, pos = { x = 122.902, y = 89.358, z = 75.553 }, rot = { x = 0.000, y = 270.000, z = 180.000 }, level = 16, drop_tag = "解谜中级群岛", isOneoff = true, persistent = true, autopick = true },
{ config_id = 7014, gadget_id = 70690036, pos = { x = 120.387, y = 52.250, z = 74.579 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7015, gadget_id = 70620009, pos = { x = 122.902, y = 88.778, z = 75.553 }, rot = { x = 0.000, y = 180.000, z = 180.000 }, level = 1, isOneoff = true },
{ config_id = 7016, gadget_id = 70310418, pos = { x = 129.784, y = 87.775, z = 67.099 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true, persistent = true },
{ config_id = 7017, gadget_id = 70310367, pos = { x = 113.028, y = 89.188, z = 68.065 }, rot = { x = 0.000, y = 0.000, z = 180.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 7018, gadget_id = 70310368, pos = { x = 112.877, y = 89.143, z = 70.670 }, rot = { x = 0.000, y = 176.671, z = 180.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 7019, gadget_id = 70310368, pos = { x = 122.238, y = 89.143, z = 71.214 }, rot = { x = 0.000, y = 176.671, z = 180.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 7020, gadget_id = 70310368, pos = { x = 129.605, y = 89.143, z = 71.643 }, rot = { x = 0.000, y = 176.671, z = 180.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 7021, gadget_id = 70310367, pos = { x = 129.449, y = 89.129, z = 77.946 }, rot = { x = 0.000, y = 176.671, z = 180.000 }, level = 1, state = GadgetState.GearAction2 },
{ config_id = 7022, gadget_id = 70310418, pos = { x = 112.371, y = 87.396, z = 82.703 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 7025, gadget_id = 70211166, pos = { x = 121.702, y = 79.568, z = 82.905 }, rot = { x = 0.000, y = 270.000, z = 180.000 }, level = 16, drop_tag = "解谜低级群岛", isOneoff = true, persistent = true, autopick = true },
{ config_id = 7026, gadget_id = 70211166, pos = { x = 121.702, y = 79.568, z = 66.180 }, rot = { x = 0.000, y = 90.000, z = 180.000 }, level = 16, drop_tag = "解谜低级群岛", isOneoff = true, persistent = true, autopick = true }
}
-- 区域
regions = {
{ config_id = 7032, shape = RegionShape.SPHERE, radius = 10, pos = { x = 102.959, y = 68.995, z = 76.371 } },
{ config_id = 7033, shape = RegionShape.SPHERE, radius = 8, pos = { x = 102.959, y = 68.995, z = 76.371 } }
}
-- 触发器
triggers = {
{ config_id = 1007003, name = "SELECT_OPTION_7003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "", action = "action_EVENT_SELECT_OPTION_7003", trigger_count = 0 },
{ config_id = 1007004, name = "ANY_GADGET_DIE_7004", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_7004", action = "action_EVENT_ANY_GADGET_DIE_7004", trigger_count = 0 },
{ config_id = 1007011, name = "ANY_GADGET_DIE_7011", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_7011", action = "action_EVENT_ANY_GADGET_DIE_7011", trigger_count = 0 },
{ config_id = 1007012, name = "SELECT_OPTION_7012", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_7012", action = "action_EVENT_SELECT_OPTION_7012", trigger_count = 0 },
{ config_id = 1007023, name = "GADGET_STATE_CHANGE_7023", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7023", action = "action_EVENT_GADGET_STATE_CHANGE_7023" },
{ config_id = 1007024, name = "GADGET_STATE_CHANGE_7024", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "action_EVENT_GADGET_STATE_CHANGE_7024", trigger_count = 0 },
{ config_id = 1007027, name = "GROUP_LOAD_7027", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_7027", trigger_count = 0 },
-- 4006609 任务保底
{ config_id = 1007028, name = "QUEST_START_7028", event = EventType.EVENT_QUEST_START, source = "4006609", condition = "condition_EVENT_QUEST_START_7028", action = "action_EVENT_QUEST_START_7028", trigger_count = 0 },
-- 4006609 任务保底
{ config_id = 1007029, name = "GROUP_LOAD_7029", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_7029", action = "action_EVENT_GROUP_LOAD_7029", trigger_count = 0 },
{ config_id = 1007030, name = "TIME_AXIS_PASS_7030", event = EventType.EVENT_TIME_AXIS_PASS, source = "createwind1", condition = "condition_EVENT_TIME_AXIS_PASS_7030", action = "action_EVENT_TIME_AXIS_PASS_7030", trigger_count = 0 },
{ config_id = 1007031, name = "TIME_AXIS_PASS_7031", event = EventType.EVENT_TIME_AXIS_PASS, source = "createwind2", condition = "condition_EVENT_TIME_AXIS_PASS_7031", action = "action_EVENT_TIME_AXIS_PASS_7031", trigger_count = 0 },
{ config_id = 1007032, name = "ENTER_REGION_7032", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_7032", action = "action_EVENT_ENTER_REGION_7032", trigger_count = 0 },
{ config_id = 1007033, name = "ENTER_REGION_7033", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_7033", action = "action_EVENT_ENTER_REGION_7033", trigger_count = 0 },
{ config_id = 1007034, name = "GROUP_LOAD_7034", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_7034", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 3, name = "turn", value = 1, no_refresh = true },
{ config_id = 1, name = "wind", value = 0, no_refresh = true },
{ config_id = 2, name = "door", value = 0, no_refresh = true },
{ config_id = 4, name = "isLock_1", value = 1, no_refresh = true },
{ config_id = 5, name = "isLock_2", value = 1, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7001, 7002, 7006, 7007, 7008, 7009, 7010, 7013, 7015, 7016, 7017, 7018, 7019, 7020, 7021, 7022, 7025, 7026 },
regions = { 7032, 7033 },
triggers = { "SELECT_OPTION_7003", "ANY_GADGET_DIE_7004", "ANY_GADGET_DIE_7011", "SELECT_OPTION_7012", "GADGET_STATE_CHANGE_7023", "GADGET_STATE_CHANGE_7024", "GROUP_LOAD_7027", "QUEST_START_7028", "GROUP_LOAD_7029", "TIME_AXIS_PASS_7030", "TIME_AXIS_PASS_7031", "ENTER_REGION_7032", "ENTER_REGION_7033", "GROUP_LOAD_7034" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_SELECT_OPTION_7003(context, evt)
if ScriptLib.GetGroupVariableValue(context, "turn") == 0 and evt.param2 == 7 then
ScriptLib.SetGroupVariableValueByGroup(context, "room4", 1, 220135003)
ScriptLib.SetPlatformPointArray(context, 7001, 4, {1}, {route_type=RouteType.OneWay, turn_mode=true, record_mode=RouteRecordMode.Prereach})
ScriptLib.SetGroupVariableValue(context, "turn", 1)
ScriptLib.KillEntityByConfigId(context, {group_id=220135007, config_id=7014, entity_type=EntityType.GADGET})
if ScriptLib.GetGroupVariableValue(context, "wind") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,7010, GadgetState.GearStart)
ScriptLib.InitTimeAxis(context, "createwind1", {3}, false)
end
ScriptLib.SetGadgetStateByConfigId(context,7002, GadgetState.Default)
else
if ScriptLib.GetGroupVariableValue(context, "turn") == 1 and evt.param2 == 7 then
ScriptLib.SetGroupVariableValueByGroup(context, "room4", 0, 220135003)
ScriptLib.SetGroupVariableValue(context, "turn", 0)
ScriptLib.SetPlatformPointArray(context, 7001, 4, {2}, {route_type=RouteType.OneWay, turn_mode=true, record_mode=RouteRecordMode.Prereach})
ScriptLib.SetGadgetStateByConfigId(context,7010, GadgetState.Default)
ScriptLib.InitTimeAxis(context, "createwind2", {3}, false)
ScriptLib.KillEntityByConfigId(context, {group_id=220135007, config_id=7005, entity_type=EntityType.GADGET})
ScriptLib.SetGadgetStateByConfigId(context,7002, GadgetState.GearStart)
end
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_7004(context, evt)
if 7016 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_7004(context, evt)
-- 将本组内变量名为 "isLock_1" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isLock_1", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将configid为 7008 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7008, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_7011(context, evt)
if 7022 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_7011(context, evt)
-- 将本组内变量名为 "isLock_2" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isLock_2", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将configid为 7009 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7009, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_7012(context, evt)
-- 判断是gadgetid 7002 option_id 7
if 7002 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_7012(context, evt)
-- 触发镜头注目,注目位置为坐标{x=121.43, y=72.28, z=74.54},持续时间为3.5秒,并且为强制注目形式,不广播其他玩家
local pos = {x=121.43, y=72.28, z=74.54}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 3.5, 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_7023(context, evt)
-- 检测config_id为7013的gadget是否从GadgetState.Default变为GadgetState.ChestOpened
if 7013 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7023(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 7015 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7024(context, evt)
if ScriptLib.GetGadgetStateByConfigId(context, 0, 7006) == 201 and ScriptLib.GetGadgetStateByConfigId(context, 0, 7007) == 201 then
if evt.param2 == 7006 or evt.param2 == 7007 then
ScriptLib.SetGroupVariableValue(context, "wind", 1)
ScriptLib.SetGroupVariableValue(context, "door", 1)
if ScriptLib.GetGroupVariableValue(context, "turn") == 1 then
ScriptLib.CreateGadget(context, {config_id=7005})
ScriptLib.SetGadgetStateByConfigId(context,7010, GadgetState.GearStart)
end
ScriptLib.AddQuestProgress(context, "4006609")
end
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_7027(context, evt)
if ScriptLib.GetGroupVariableValue(context, "turn") == 1 and ScriptLib.GetGroupVariableValue(context, "wind") == 1 then
ScriptLib.CreateGadget(context, {config_id=7005})
end
if ScriptLib.GetGroupVariableValue(context, "turn") == 0 then
ScriptLib.CreateGadget(context, {config_id=7014})
ScriptLib.SetPlatformPointArray(context, 7001, 5, {1}, {route_type=RouteType.OneWay, turn_mode=true, record_mode=RouteRecordMode.Reach})
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_7028(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220135007, 7010) then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_7028(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006609") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_7029(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220135007, 7010) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_7029(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006609") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_7030(context, evt)
if "createwind1" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_7030(context, evt)
-- 创建id为7005的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 7005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_7031(context, evt)
if "createwind2" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_7031(context, evt)
-- 创建id为7014的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 7014 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_7032(context, evt)
if evt.param1 ~= 7032 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"turn"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "turn", 220135002) ~= 1 then
return false
end
if ScriptLib.CheckSceneTag(context, 20135, 1073) ~= true then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_7032(context, evt)
ScriptLib.ChangeToTargetLevelTag(context, 37)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_7033(context, evt)
if evt.param1 ~= 7033 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_7033(context, evt)
ScriptLib.ActivateDungeonCheckPoint(context, 11)
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_7034(context, evt)
if ScriptLib.GetGroupVariableValue(context, "turn") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,7002, GadgetState.Default)
else
ScriptLib.SetGadgetStateByConfigId(context,7002, GadgetState.GearStart)
end
return 0
end
require "V2_8/FireMachineColorHandle"
require "V2_8/KazuhaServeItem"
@@ -0,0 +1,513 @@
-- 基础信息
local base_info = {
group_id = 220135008
}
-- DEFS_MISCS
local defs = {
--本Group中发射器gadget的configID,最多3个,
fireMachineList = {
8013
},
--key为发射器configIDvalue为ColorDefine
initConfig = {
[8013] = 1,
},
--Key为操作台。value为发射器。允许有多个操作台控制同一个发射器
controlRelation = {
},
--左右旋转的SelectOptionID
selectID_horizon = 613,
--上下俯仰的SelectOptionID
selectID_vertical = 612,
--定义左右旋转的步长,key为传递装置configIDvalue为GadgetState
horizon_steps = {
[8014] = {0, 102, 103, 104},
[8015] = {0, 102, 103, 104},
[8016] = {0, 102, 103, 104},
[8017] = {0, 102, 103, 104},
[8018] = {0, 102, 103, 104},
},
--定义上下俯仰的步长,key为传递装置configIDvalue为GadgetState
vertical_steps = {
[8014] = {0, 302, 303, 304},
[8015] = {0, 302, 303, 304},
[8016] = {0, 302, 303, 304},
[8017] = {0, 102, 103, 104},
[8018] = {0, 102, 103, 104},
},
serve_items = {8019,8021}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8001, gadget_id = 70590060, pos = { x = 149.100, y = 79.720, z = 21.600 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false, persistent = true, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
{ config_id = 8002, gadget_id = 70360170, pos = { x = 151.396, y = 77.436, z = 34.464 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, persistent = true, worktop_config = { init_options = { 7 } } },
{ config_id = 8005, gadget_id = 70690034, pos = { x = 149.254, y = 76.170, z = 23.118 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8006, gadget_id = 70310369, pos = { x = 139.508, y = 96.413, z = 21.529 }, rot = { x = 0.000, y = 90.000, z = 180.000 }, level = 1, persistent = true },
{ config_id = 8010, gadget_id = 70690036, pos = { x = 147.980, y = 60.701, z = 21.945 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8011, gadget_id = 70290375, pos = { x = 165.067, y = 86.843, z = 23.890 }, rot = { x = 0.000, y = 269.193, z = 0.000 }, level = 1, persistent = true },
{ config_id = 8012, gadget_id = 70290375, pos = { x = 165.226, y = 86.884, z = 19.134 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 8013, gadget_id = 70310367, pos = { x = 157.185, y = 76.802, z = 14.078 }, rot = { x = 0.000, y = 271.251, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 8014, gadget_id = 70310368, pos = { x = 150.626, y = 76.802, z = 14.221 }, rot = { x = 0.000, y = 271.251, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 8015, gadget_id = 70310368, pos = { x = 150.777, y = 76.802, z = 21.102 }, rot = { x = 0.000, y = 271.251, z = 0.000 }, level = 1, worktop_config = { init_options = { 612 } } },
{ config_id = 8016, gadget_id = 70310368, pos = { x = 150.777, y = 96.500, z = 21.102 }, rot = { x = 0.000, y = 91.251, z = 180.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 8017, gadget_id = 70310368, pos = { x = 150.841, y = 96.500, z = 24.043 }, rot = { x = 0.000, y = 91.251, z = 180.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 8018, gadget_id = 70310368, pos = { x = 160.388, y = 95.884, z = 23.834 }, rot = { x = 0.000, y = 91.251, z = 180.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 8019, gadget_id = 70310363, pos = { x = 160.388, y = 95.460, z = 28.583 }, rot = { x = 0.000, y = 180.000, z = 180.000 }, level = 1, state = GadgetState.ChestLocked, isOneoff = true },
{ config_id = 8021, gadget_id = 70310363, pos = { x = 141.700, y = 96.256, z = 21.299 }, rot = { x = 0.000, y = 180.000, z = 180.000 }, level = 1, state = GadgetState.ChestLocked, isOneoff = true },
{ config_id = 8022, gadget_id = 70310418, pos = { x = 141.700, y = 94.775, z = 21.299 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true, persistent = true },
{ config_id = 8023, gadget_id = 70310418, pos = { x = 160.388, y = 94.049, z = 28.583 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop, isOneoff = true, persistent = true },
{ config_id = 8024, gadget_id = 70310366, pos = { x = 146.823, y = 85.951, z = 26.826 }, rot = { x = 0.000, y = 180.000, z = 180.000 }, level = 1, isOneoff = true, persistent = true },
{ config_id = 8026, gadget_id = 70211166, pos = { x = 161.721, y = 86.996, z = 21.454 }, rot = { x = 0.000, y = 267.414, z = 0.000 }, level = 16, drop_tag = "解谜低级群岛", state = GadgetState.ChestLocked, isOneoff = true, persistent = true, autopick = true }
}
-- 区域
regions = {
{ config_id = 8033, shape = RegionShape.SPHERE, radius = 8, pos = { x = 151.396, y = 77.436, z = 34.464 } },
{ config_id = 8034, shape = RegionShape.SPHERE, radius = 8, pos = { x = 151.396, y = 77.436, z = 34.464 } }
}
-- 触发器
triggers = {
{ config_id = 1008003, name = "SELECT_OPTION_8003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "", action = "action_EVENT_SELECT_OPTION_8003", trigger_count = 0 },
{ config_id = 1008004, name = "GROUP_LOAD_8004", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_8004", trigger_count = 0 },
{ config_id = 1008007, name = "ANY_GADGET_DIE_8007", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_8007", action = "action_EVENT_ANY_GADGET_DIE_8007", trigger_count = 0 },
{ config_id = 1008008, name = "ANY_GADGET_DIE_8008", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_8008", action = "action_EVENT_ANY_GADGET_DIE_8008", trigger_count = 0 },
{ config_id = 1008020, name = "GADGET_STATE_CHANGE_8020", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_8020", action = "action_EVENT_GADGET_STATE_CHANGE_8020", trigger_count = 0 },
{ config_id = 1008025, name = "GADGET_STATE_CHANGE_8025", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "action_EVENT_GADGET_STATE_CHANGE_8025", trigger_count = 0 },
{ config_id = 1008027, name = "SELECT_OPTION_8027", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_8027", action = "action_EVENT_SELECT_OPTION_8027", trigger_count = 0 },
{ config_id = 1008028, name = "TIME_AXIS_PASS_8028", event = EventType.EVENT_TIME_AXIS_PASS, source = "temp1", condition = "condition_EVENT_TIME_AXIS_PASS_8028", action = "action_EVENT_TIME_AXIS_PASS_8028", trigger_count = 0 },
{ config_id = 1008029, name = "TIME_AXIS_PASS_8029", event = EventType.EVENT_TIME_AXIS_PASS, source = "temp2", condition = "condition_EVENT_TIME_AXIS_PASS_8029", action = "action_EVENT_TIME_AXIS_PASS_8029", trigger_count = 0 },
{ config_id = 1008030, name = "GADGET_STATE_CHANGE_8030", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_8030", action = "action_EVENT_GADGET_STATE_CHANGE_8030", trigger_count = 0 },
-- 4006610 任务保底
{ config_id = 1008031, name = "QUEST_START_8031", event = EventType.EVENT_QUEST_START, source = "4006610", condition = "condition_EVENT_QUEST_START_8031", action = "action_EVENT_QUEST_START_8031", trigger_count = 0 },
-- 4006610 任务保底
{ config_id = 1008032, name = "GROUP_LOAD_8032", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_8032", action = "action_EVENT_GROUP_LOAD_8032", trigger_count = 0 },
{ config_id = 1008033, name = "ENTER_REGION_8033", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8033", action = "action_EVENT_ENTER_REGION_8033", trigger_count = 0 },
{ config_id = 1008034, name = "ENTER_REGION_8034", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8034", action = "action_EVENT_ENTER_REGION_8034", trigger_count = 0 },
{ config_id = 1008035, name = "GROUP_LOAD_8035", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_8035", action = "action_EVENT_GROUP_LOAD_8035", trigger_count = 0 },
{ config_id = 1008036, name = "GROUP_LOAD_8036", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_8036", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 3, name = "turn", value = 1, no_refresh = true },
{ config_id = 1, name = "room", value = 0, no_refresh = true },
{ config_id = 2, name = "chest", value = 0, no_refresh = true },
{ config_id = 4, name = "open1", value = 0, no_refresh = true },
{ config_id = 5, name = "open2", value = 0, no_refresh = true },
{ config_id = 6, name = "isLock_1", value = 1, no_refresh = true },
{ config_id = 7, name = "isLock_2", value = 1, no_refresh = true }
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 8009, gadget_id = 70310386, pos = { x = 161.603, y = 87.316, z = 21.427 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8001, 8002, 8005, 8006, 8011, 8012, 8013, 8014, 8015, 8016, 8017, 8018, 8019, 8021, 8022, 8023, 8024, 8026 },
regions = { 8033, 8034 },
triggers = { "SELECT_OPTION_8003", "GROUP_LOAD_8004", "ANY_GADGET_DIE_8007", "ANY_GADGET_DIE_8008", "GADGET_STATE_CHANGE_8020", "GADGET_STATE_CHANGE_8025", "SELECT_OPTION_8027", "TIME_AXIS_PASS_8028", "TIME_AXIS_PASS_8029", "GADGET_STATE_CHANGE_8030", "QUEST_START_8031", "GROUP_LOAD_8032", "ENTER_REGION_8033", "ENTER_REGION_8034", "GROUP_LOAD_8035", "GROUP_LOAD_8036" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_SELECT_OPTION_8003(context, evt)
if evt.param2 == 7 and ScriptLib.GetGroupVariableValue(context, "turn") == 0 then
ScriptLib.SetGroupVariableValueByGroup(context, "room5", 1, 220135003)
ScriptLib.SetGroupVariableValue(context, "turn", 1)
ScriptLib.SetPlatformPointArray(context, 8001, 8, {1}, {route_type=RouteType.OneWay, turn_mode=true, record_mode=RouteRecordMode.Prereach})
ScriptLib.KillEntityByConfigId(context, {group_id=220135008, config_id=8010, entity_type=EntityType.GADGET})
ScriptLib.InitTimeAxis(context, "temp1", {3}, false)
if ScriptLib.GetGroupVariableValue(context, "room") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,8006, GadgetState.GearStart)
end
if ScriptLib.GetGroupVariableValue(context, "open1") == 0 then
ScriptLib.SetGadgetStateByConfigId(context,8011, GadgetState.Default)
end
if ScriptLib.GetGroupVariableValue(context, "open2") == 0 then
ScriptLib.SetGadgetStateByConfigId(context,8012, GadgetState.Default)
end
ScriptLib.SetGadgetStateByConfigId(context,8002, GadgetState.Default)
else
if evt.param2 == 7 and ScriptLib.GetGroupVariableValue(context, "turn") == 1 then
ScriptLib.SetGroupVariableValueByGroup(context, "room5", 0, 220135003)
ScriptLib.SetGroupVariableValue(context, "turn", 0)
ScriptLib.SetPlatformPointArray(context, 8001, 8, {2}, {route_type=RouteType.OneWay, turn_mode=true, record_mode=RouteRecordMode.Prereach})
ScriptLib.SetGadgetStateByConfigId(context,8006, GadgetState.Default)
ScriptLib.KillEntityByConfigId(context, {group_id=220135008, config_id=8005, entity_type=EntityType.GADGET})
ScriptLib.InitTimeAxis(context, "temp2", {3}, false)
if ScriptLib.GetGroupVariableValue(context, "open1") == 0 then
ScriptLib.SetGadgetStateByConfigId(context,8011, GadgetState.ChestLocked)
end
if ScriptLib.GetGroupVariableValue(context, "open2") == 0 then
ScriptLib.SetGadgetStateByConfigId(context,8012, GadgetState.ChestLocked)
end
ScriptLib.SetGadgetStateByConfigId(context,8002, GadgetState.GearStart)
end
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_8004(context, evt)
if ScriptLib.GetGroupVariableValue(context, "turn") == 0 then
ScriptLib.SetPlatformPointArray(context, 8001, 9, {1}, {route_type=RouteType.OneWay, turn_mode=true, record_mode=RouteRecordMode.Reach})
ScriptLib.KillEntityByConfigId(context, {group_id=220135008, config_id=8005, entity_type=EntityType.GADGET})
ScriptLib.CreateGadget(context, {config_id=8010})
if ScriptLib.GetGroupVariableValue(context, "open1") == 0 then
ScriptLib.SetGadgetStateByConfigId(context,8011, GadgetState.ChestLocked)
end
if ScriptLib.GetGroupVariableValue(context, "open2") == 0 then
ScriptLib.SetGadgetStateByConfigId(context,8012, GadgetState.ChestLocked)
end
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_8007(context, evt)
if 8022 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_8007(context, evt)
-- 将本组内变量名为 "isLock_2" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isLock_2", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将configid为 8021 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8021, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_8008(context, evt)
if 8023 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_8008(context, evt)
-- 将本组内变量名为 "isLock_1" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isLock_1", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将configid为 8019 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8019, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8020(context, evt)
if 8011 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8020(context, evt)
-- 将本组内变量名为 "open1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "open1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8025(context, evt)
if ScriptLib.GetGadgetStateByConfigId(context, 0, 8012) == 201 and ScriptLib.GetGadgetStateByConfigId(context, 0, 8011) == 201 and ScriptLib.GetGroupVariableValue(context, "room") == 0 then
ScriptLib.SetGroupVariableValue(context, "room", 1)
ScriptLib.SetGadgetStateByConfigId(context,8026, GadgetState.Default)
ScriptLib.AddQuestProgress(context, "4006610")
if ScriptLib.GetGroupVariableValue(context, "turn") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,8006, GadgetState.GearStart)
ScriptLib.BeginCameraSceneLook(context, { look_pos = {x = 139.5,y = 94.5,z = 21.5}, duration = 2, is_force = false, is_broadcast = false, is_recover_keep_current = true, delay = 0, is_set_follow_pos =false, is_abs_follow_pos=false, follow_pos = {x=0,y=0,z=0}, is_force_walk =true, is_change_play_mode = true, screen_x = 0, screen_y = 0, is_set_screenXY = false, other_params ={}, keep_rot_type = KeepRotType.KEEP_ROT_X, custom_radius = 0})
end
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_8027(context, evt)
-- 判断是gadgetid 8002 option_id 7
if 8002 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_8027(context, evt)
-- 触发镜头注目,注目位置为坐标{x=149.1, y=79.72, z=21.6},持续时间为3.5秒,并且为强制注目形式,不广播其他玩家
local pos = {x=149.1, y=79.72, z=21.6}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 3.5, 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_TIME_AXIS_PASS_8028(context, evt)
if "temp1" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_8028(context, evt)
-- 创建id为8005的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 8005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_8029(context, evt)
if "temp2" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_8029(context, evt)
-- 创建id为8010的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 8010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8030(context, evt)
if 8012 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8030(context, evt)
-- 将本组内变量名为 "open2" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "open2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_8031(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220135008, 8006) then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_8031(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006610") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_8032(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220135008, 8006) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_8032(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006610") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_8033(context, evt)
if evt.param1 ~= 8033 then return false end
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"turn"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "turn", 220135002) ~= 1 then
return false
end
if ScriptLib.CheckSceneTag(context, 20135, 1073) ~= true then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_8033(context, evt)
ScriptLib.ChangeToTargetLevelTag(context, 37)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_8034(context, evt)
if evt.param1 ~= 8034 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_8034(context, evt)
ScriptLib.ActivateDungeonCheckPoint(context, 13)
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_8035(context, evt)
if GadgetState.GearStop ~= ScriptLib.GetGadgetStateByConfigId(context, 220135008, 8024) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_8035(context, evt)
-- 将configid为 8024 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8024, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_8036(context, evt)
if ScriptLib.GetGroupVariableValue(context, "turn") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,8002, GadgetState.Default)
else
ScriptLib.SetGadgetStateByConfigId(context,8002, GadgetState.GearStart)
end
return 0
end
require "V2_8/FireMachineColorHandle"
require "V2_8/KazuhaServeItem"
@@ -0,0 +1,297 @@
-- 基础信息
local base_info = {
group_id = 220135009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 9001, monster_id = 25080401, pos = { x = 30.740, y = 107.800, z = -27.295 }, rot = { x = 0.000, y = 77.292, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1008 }, pose_id = 1, title_id = 10105, special_name_id = 10140 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9002, gadget_id = 70211012, pos = { x = 22.830, y = 107.687, z = -26.891 }, rot = { x = 0.100, y = 86.723, z = 1.765 }, level = 16, drop_tag = "战斗中级群岛", state = GadgetState.ChestLocked, isOneoff = true, persistent = true, autopick = true },
{ config_id = 9006, gadget_id = 70290137, pos = { x = 54.570, y = 106.883, z = -26.382 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
{ config_id = 9007, shape = RegionShape.CUBIC, size = { x = 30.000, y = 10.000, z = 40.000 }, pos = { x = 34.928, y = 110.635, z = -27.402 } },
{ config_id = 9010, shape = RegionShape.CUBIC, size = { x = 30.000, y = 10.000, z = 40.000 }, pos = { x = 34.928, y = 110.635, z = -27.402 } }
}
-- 触发器
triggers = {
{ config_id = 1009003, name = "ANY_MONSTER_DIE_9003", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_9003", trigger_count = 0 },
{ config_id = 1009004, name = "DUNGEON_ALL_AVATAR_DIE_9004", event = EventType.EVENT_DUNGEON_ALL_AVATAR_DIE, source = "", condition = "", action = "action_EVENT_DUNGEON_ALL_AVATAR_DIE_9004", trigger_count = 0 },
{ config_id = 1009005, name = "DUNGEON_AVATAR_SLIP_DIE_9005", event = EventType.EVENT_DUNGEON_AVATAR_SLIP_DIE, source = "", condition = "", action = "action_EVENT_DUNGEON_AVATAR_SLIP_DIE_9005", trigger_count = 0 },
{ config_id = 1009007, name = "ENTER_REGION_9007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9007", action = "action_EVENT_ENTER_REGION_9007", trigger_count = 0 },
{ config_id = 1009008, name = "GROUP_LOAD_9008", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_9008", trigger_count = 0 },
{ config_id = 1009009, name = "QUEST_START_9009", event = EventType.EVENT_QUEST_START, source = "4006607", condition = "", action = "action_EVENT_QUEST_START_9009", trigger_count = 0 },
{ config_id = 1009010, name = "ENTER_REGION_9010", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9010", action = "action_EVENT_ENTER_REGION_9010", trigger_count = 0 },
-- 4006607 任务长时间断线保底
{ config_id = 1009011, name = "GROUP_LOAD_9011", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_9011", action = "action_EVENT_GROUP_LOAD_9011", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "temp", value = 0, no_refresh = true },
{ config_id = 2, name = "voice", value = 0, no_refresh = false },
{ config_id = 3, name = "door", value = 0, no_refresh = true },
{ config_id = 4, name = "start", value = 0, no_refresh = true },
{ config_id = 5, name = "test", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 9002, 9006 },
regions = { 9007, 9010 },
triggers = { "DUNGEON_ALL_AVATAR_DIE_9004", "DUNGEON_AVATAR_SLIP_DIE_9005", "ENTER_REGION_9007", "GROUP_LOAD_9008", "QUEST_START_9009", "ENTER_REGION_9010", "GROUP_LOAD_9011" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 9001 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_9003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_9003(context, evt)
if ScriptLib.GetGroupVariableValue(context, "temp") == 0 and ScriptLib.GetGroupMonsterCount(context) == 0 then
ScriptLib.SetGroupVariableValue(context, "temp", 1)
ScriptLib.SetGroupVariableValue(context, "door", 1)
ScriptLib.SetGroupVariableValueByGroup(context, "option", 1, 220135002)
ScriptLib.ChangeToTargetLevelTag(context, 35)
ScriptLib.AddQuestProgress(context, "4006607")
ScriptLib.SetGadgetStateByConfigId(context,9006, GadgetState.GearStart)
ScriptLib.SetGadgetStateByConfigId(context,9002, GadgetState.Default)
ScriptLib.SetWorktopOptionsByGroupId(context, 220135002, 2005, {7})
ScriptLib.KillEntityByConfigId(context, {group_id=220135002, config_id=2011, entity_type=EntityType.GADGET})
end
return 0
end
-- 触发操作
function action_EVENT_DUNGEON_ALL_AVATAR_DIE_9004(context, evt)
ScriptLib.SetGroupVariableValue(context, "test", 0)
if ScriptLib.GetGroupVariableValue(context, "temp") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,9002, GadgetState.Default)
end
if ScriptLib.GetGroupVariableValue(context, "door") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,9006, GadgetState.GearStart)
else
ScriptLib.SetGadgetStateByConfigId(context,9006, GadgetState.Default)
end
ScriptLib.RemoveExtraGroupSuite(context, 220135009, 2)
return 0
end
-- 触发操作
function action_EVENT_DUNGEON_AVATAR_SLIP_DIE_9005(context, evt)
ScriptLib.RefreshGroup(context, { suite=1})
if ScriptLib.GetGroupVariableValue(context, "temp") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,9002, GadgetState.Default)
end
if ScriptLib.GetGroupVariableValue(context, "door") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,9006, GadgetState.GearStart)
else
ScriptLib.SetGadgetStateByConfigId(context,9006, GadgetState.Default)
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_9007(context, evt)
if evt.param1 ~= 9007 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"temp"为0
if ScriptLib.GetGroupVariableValue(context, "temp") ~= 0 then
return false
end
-- 判断变量"start"为1
if ScriptLib.GetGroupVariableValue(context, "start") ~= 1 then
return false
end
-- 判断变量"test"为0
if ScriptLib.GetGroupVariableValue(context, "test") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_9007(context, evt)
-- 将本组内变量名为 "test" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "test", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220135009, 2)
-- 将configid为 9006 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_9008(context, evt)
if ScriptLib.GetGroupVariableValue(context, "temp") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,9002, GadgetState.Default)
end
if ScriptLib.GetGroupVariableValue(context, "temp") == 1 and ScriptLib.GetGroupVariableValueByGroup(context, "temp", 220135010) == 0 then
ScriptLib.SetGroupVariableValueByGroup(context, "option", 1, 220135002)
ScriptLib.ChangeToTargetLevelTag(context, 35)
ScriptLib.SetGadgetStateByConfigId(context,9006, GadgetState.GearStart)
ScriptLib.SetGadgetStateByConfigId(context,9002, GadgetState.Default)
ScriptLib.SetWorktopOptionsByGroupId(context, 220135002, 2005, {7})
ScriptLib.KillEntityByConfigId(context, {group_id=220135002, config_id=2011, entity_type=EntityType.GADGET})
else
if ScriptLib.GetGroupVariableValueByGroup(context, "temp", 220135010) == 0 and ScriptLib.GetGroupVariableValueByGroup(context, "temp", 220135009) == 0 then
ScriptLib.RemoveExtraGroupSuite(context, 220135009, 2)
ScriptLib.SetGroupVariableValue(context, "test", 0)
ScriptLib.SetGroupVariableValue(context, "voice", 0)
end
if ScriptLib.GetGroupVariableValue(context, "door") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,9006, GadgetState.GearStart)
else
ScriptLib.SetGadgetStateByConfigId(context,9006, GadgetState.Default)
end
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_START_9009(context, evt)
if ScriptLib.GetGroupVariableValue(context, "temp") == 1 then
ScriptLib.AddQuestProgress(context, "4006607")
else
if ScriptLib.GetGroupVariableValue(context, "start") == 0 then
ScriptLib.SetGroupVariableValue(context, "door", 1)
ScriptLib.SetGroupVariableValue(context, "start", 1)
ScriptLib.SetGadgetStateByConfigId(context,9006, GadgetState.GearStart)
end
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_9010(context, evt)
if evt.param1 ~= 9010 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"temp"为0
if ScriptLib.GetGroupVariableValue(context, "temp") ~= 0 then
return false
end
-- 判断变量"voice"为0
if ScriptLib.GetGroupVariableValue(context, "voice") ~= 0 then
return false
end
-- 判断变量"start"为1
if ScriptLib.GetGroupVariableValue(context, "start") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_9010(context, evt)
-- 将本组内变量名为 "voice" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "voice", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 调用提示id为 60010372 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 60010372) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_9011(context, evt)
-- 判断变量"temp"为1
if ScriptLib.GetGroupVariableValue(context, "temp") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_9011(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006607") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,289 @@
-- 基础信息
local base_info = {
group_id = 220135010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 10003, monster_id = 25080101, pos = { x = 144.513, y = 95.703, z = -44.392 }, rot = { x = 0.000, y = 358.328, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1007 }, pose_id = 1, title_id = 10106, special_name_id = 10140 },
{ config_id = 10004, monster_id = 25080201, pos = { x = 151.335, y = 95.987, z = -40.051 }, rot = { x = 0.000, y = 344.448, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 },
{ config_id = 10005, monster_id = 25080201, pos = { x = 138.085, y = 95.987, z = -39.846 }, rot = { x = 0.000, y = 1.943, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 },
{ config_id = 10009, monster_id = 25080301, pos = { x = 148.615, y = 95.983, z = -48.405 }, rot = { x = 0.000, y = 353.389, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 },
{ config_id = 10010, monster_id = 25080301, pos = { x = 140.932, y = 95.987, z = -48.383 }, rot = { x = 0.000, y = 353.288, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10001, gadget_id = 70211012, pos = { x = 144.359, y = 95.434, z = -57.049 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 16, drop_tag = "战斗中级群岛", state = GadgetState.ChestLocked, isOneoff = true, persistent = true, autopick = true },
{ config_id = 10006, gadget_id = 70290137, pos = { x = 145.205, y = 94.666, z = -23.801 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
{ config_id = 10007, shape = RegionShape.CUBIC, size = { x = 30.000, y = 10.000, z = 30.000 }, pos = { x = 143.492, y = 95.936, z = -43.786 } },
{ config_id = 10013, shape = RegionShape.CUBIC, size = { x = 30.000, y = 10.000, z = 30.000 }, pos = { x = 143.492, y = 95.936, z = -43.786 } }
}
-- 触发器
triggers = {
{ config_id = 1010002, name = "ANY_MONSTER_DIE_10002", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_10002", trigger_count = 0 },
{ config_id = 1010007, name = "ENTER_REGION_10007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10007", action = "action_EVENT_ENTER_REGION_10007", trigger_count = 0 },
{ config_id = 1010008, name = "GROUP_LOAD_10008", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_10008", trigger_count = 0 },
{ config_id = 1010011, name = "QUEST_START_10011", event = EventType.EVENT_QUEST_START, source = "4006612", condition = "", action = "action_EVENT_QUEST_START_10011", trigger_count = 0 },
{ config_id = 1010012, name = "DUNGEON_ALL_AVATAR_DIE_10012", event = EventType.EVENT_DUNGEON_ALL_AVATAR_DIE, source = "", condition = "", action = "action_EVENT_DUNGEON_ALL_AVATAR_DIE_10012", trigger_count = 0 },
{ config_id = 1010013, name = "ENTER_REGION_10013", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10013", action = "action_EVENT_ENTER_REGION_10013", trigger_count = 0 },
{ config_id = 1010014, name = "DUNGEON_AVATAR_SLIP_DIE_10014", event = EventType.EVENT_DUNGEON_AVATAR_SLIP_DIE, source = "", condition = "", action = "action_EVENT_DUNGEON_AVATAR_SLIP_DIE_10014", trigger_count = 0 },
-- 4006612 任务load保底
{ config_id = 1010015, name = "GROUP_LOAD_10015", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_10015", action = "action_EVENT_GROUP_LOAD_10015", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "temp", value = 0, no_refresh = true },
{ config_id = 2, name = "voice", value = 0, no_refresh = false },
{ config_id = 3, name = "door", value = 0, no_refresh = true },
{ config_id = 4, name = "start", value = 0, no_refresh = true },
{ config_id = 5, name = "test", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 10001, 10006 },
regions = { 10007, 10013 },
triggers = { "ENTER_REGION_10007", "GROUP_LOAD_10008", "QUEST_START_10011", "DUNGEON_ALL_AVATAR_DIE_10012", "ENTER_REGION_10013", "DUNGEON_AVATAR_SLIP_DIE_10014", "GROUP_LOAD_10015" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 10003, 10004, 10005, 10009, 10010 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_10002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_10002(context, evt)
if ScriptLib.GetGroupMonsterCount(context) == 0 then
ScriptLib.SetGroupVariableValue(context, "temp", 1)
ScriptLib.SetGroupVariableValue(context, "door", 1)
ScriptLib.ChangeToTargetLevelTag(context, 37)
ScriptLib.SetGroupGadgetStateByConfigId(context, 220135010, 10006, GadgetState.GearStart)
ScriptLib.AddQuestProgress(context, "4006612")
ScriptLib.SetGroupGadgetStateByConfigId(context, 220135010, 10001, GadgetState.Default)
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_10007(context, evt)
if evt.param1 ~= 10007 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"temp"为0
if ScriptLib.GetGroupVariableValue(context, "temp") ~= 0 then
return false
end
-- 判断变量"start"为1
if ScriptLib.GetGroupVariableValue(context, "start") ~= 1 then
return false
end
-- 判断变量"test"为0
if ScriptLib.GetGroupVariableValue(context, "test") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_10007(context, evt)
-- 将本组内变量名为 "test" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "test", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将configid为 10006 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220135010, 2)
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_10008(context, evt)
if ScriptLib.GetGroupVariableValue(context, "temp") == 1 then
ScriptLib.ChangeToTargetLevelTag(context, 37)
ScriptLib.SetGroupGadgetStateByConfigId(context, 220135010, 10006, GadgetState.GearStart)
ScriptLib.AddQuestProgress(context, "4006612")
ScriptLib.SetGroupGadgetStateByConfigId(context, 220135010, 10001, GadgetState.Default)
else
ScriptLib.RefreshGroup(context, { suite=1})
if ScriptLib.GetGroupVariableValue(context, "door") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,10006, GadgetState.GearStart)
else
ScriptLib.SetGadgetStateByConfigId(context,10006, GadgetState.Default)
end
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_START_10011(context, evt)
if ScriptLib.GetGroupVariableValue(context, "temp") == 1 then
ScriptLib.AddQuestProgress(context, "4006612")
else
if ScriptLib.GetGroupVariableValue(context, "start") == 0 then
ScriptLib.SetGroupVariableValue(context, "door", 1)
ScriptLib.SetGroupVariableValue(context, "start", 1)
ScriptLib.SetGadgetStateByConfigId(context,10006, GadgetState.GearStart)
end
end
return 0
end
-- 触发操作
function action_EVENT_DUNGEON_ALL_AVATAR_DIE_10012(context, evt)
ScriptLib.SetGroupVariableValue(context, "test", 0)
if ScriptLib.GetGroupVariableValue(context, "temp") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,10001, GadgetState.Default)
end
if ScriptLib.GetGroupVariableValue(context, "door") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,10006, GadgetState.GearStart)
else
ScriptLib.SetGadgetStateByConfigId(context,10006, GadgetState.Default)
end
ScriptLib.RemoveExtraGroupSuite(context, 220135010, 2)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_10013(context, evt)
if evt.param1 ~= 10013 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"temp"为0
if ScriptLib.GetGroupVariableValue(context, "temp") ~= 0 then
return false
end
-- 判断变量"start"为1
if ScriptLib.GetGroupVariableValue(context, "start") ~= 1 then
return false
end
-- 判断变量"voice"为0
if ScriptLib.GetGroupVariableValue(context, "voice") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_10013(context, evt)
-- 将本组内变量名为 "voice" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "voice", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 调用提示id为 60010374 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 60010374) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_DUNGEON_AVATAR_SLIP_DIE_10014(context, evt)
ScriptLib.RefreshGroup(context, { suite=1})
if ScriptLib.GetGroupVariableValue(context, "temp") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,10001, GadgetState.Default)
end
if ScriptLib.GetGroupVariableValue(context, "door") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,10006, GadgetState.GearStart)
else
ScriptLib.SetGadgetStateByConfigId(context,10006, GadgetState.Default)
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_10015(context, evt)
-- 判断变量"temp"为1
if ScriptLib.GetGroupVariableValue(context, "temp") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_10015(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006612") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,74 @@
-- 基础信息
local base_info = {
group_id = 220135011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 11001, gadget_id = 70310303, pos = { x = 108.614, y = -227.005, z = 590.091 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
-- RegionAbility
{ config_id = 11002, shape = RegionShape.SPHERE, radius = 110, pos = { x = 125.735, y = -221.844, z = 605.737 }, team_ability_group_list = { "RegionAbility_Dreamland_KazuhaMovie" } }
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 11001 },
regions = { 11002 },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,378 @@
-- 基础信息
local base_info = {
group_id = 220135013
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 13001, gadget_id = 70310393, pos = { x = 112.764, y = -222.287, z = 543.838 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13004, gadget_id = 70310395, pos = { x = 112.648, y = -217.381, z = 587.396 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 13007, gadget_id = 70310394, pos = { x = 111.842, y = -220.915, z = 638.679 }, rot = { x = 0.000, y = 94.321, z = 0.000 }, level = 1 },
{ config_id = 13010, gadget_id = 70310333, pos = { x = 107.841, y = -217.173, z = 691.640 }, rot = { x = 0.000, y = 186.003, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 13002, shape = RegionShape.SPHERE, radius = 10, pos = { x = 112.543, y = -221.752, z = 544.458 } },
{ config_id = 13003, shape = RegionShape.SPHERE, radius = 18, pos = { x = 113.060, y = -221.752, z = 543.724 } },
{ config_id = 13005, shape = RegionShape.SPHERE, radius = 10, pos = { x = 113.832, y = -218.871, z = 587.259 } },
{ config_id = 13006, shape = RegionShape.SPHERE, radius = 22, pos = { x = 114.164, y = -218.098, z = 588.931 } },
{ config_id = 13008, shape = RegionShape.SPHERE, radius = 10, pos = { x = 112.036, y = -221.943, z = 637.961 } },
{ config_id = 13009, shape = RegionShape.SPHERE, radius = 20, pos = { x = 114.164, y = -221.722, z = 638.489 } },
{ config_id = 13011, shape = RegionShape.SPHERE, radius = 10, pos = { x = 108.181, y = -217.492, z = 691.493 } },
{ config_id = 13012, shape = RegionShape.SPHERE, radius = 20, pos = { x = 108.908, y = -217.630, z = 692.538 } }
}
-- 触发器
triggers = {
{ config_id = 1013002, name = "ENTER_REGION_13002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13002", action = "action_EVENT_ENTER_REGION_13002", trigger_count = 0 },
{ config_id = 1013003, name = "ENTER_REGION_13003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13003", action = "action_EVENT_ENTER_REGION_13003", trigger_count = 0 },
{ config_id = 1013005, name = "ENTER_REGION_13005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13005", action = "action_EVENT_ENTER_REGION_13005", trigger_count = 0 },
{ config_id = 1013006, name = "ENTER_REGION_13006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13006", action = "action_EVENT_ENTER_REGION_13006", trigger_count = 0 },
{ config_id = 1013008, name = "ENTER_REGION_13008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13008", action = "action_EVENT_ENTER_REGION_13008", trigger_count = 0 },
{ config_id = 1013009, name = "ENTER_REGION_13009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13009", action = "action_EVENT_ENTER_REGION_13009", trigger_count = 0 },
{ config_id = 1013011, name = "ENTER_REGION_13011", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13011", action = "action_EVENT_ENTER_REGION_13011", trigger_count = 0 },
{ config_id = 1013012, name = "ENTER_REGION_13012", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13012", action = "action_EVENT_ENTER_REGION_13012", trigger_count = 0 },
{ config_id = 1013013, name = "QUEST_START_13013", event = EventType.EVENT_QUEST_START, source = "7903602", condition = "", action = "action_EVENT_QUEST_START_13013", trigger_count = 0 },
{ config_id = 1013014, name = "GROUP_LOAD_13014", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_13014", action = "action_EVENT_GROUP_LOAD_13014" },
{ config_id = 1013015, name = "TIME_AXIS_PASS_13015", event = EventType.EVENT_TIME_AXIS_PASS, source = "quest", condition = "condition_EVENT_TIME_AXIS_PASS_13015", action = "action_EVENT_TIME_AXIS_PASS_13015", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 2, name = "temp", value = 0, no_refresh = true },
{ config_id = 3, name = "temp2", value = 0, no_refresh = true },
{ config_id = 4, name = "temp3", value = 0, no_refresh = true },
{ config_id = 5, name = "temp4", value = 0, no_refresh = true },
{ config_id = 1, name = "refresh", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 13001, 13004, 13007, 13010 },
regions = { 13002, 13003, 13005, 13006, 13008, 13009, 13011, 13012 },
triggers = { "ENTER_REGION_13002", "ENTER_REGION_13003", "ENTER_REGION_13005", "ENTER_REGION_13006", "ENTER_REGION_13008", "ENTER_REGION_13009", "ENTER_REGION_13011", "ENTER_REGION_13012", "QUEST_START_13013", "GROUP_LOAD_13014", "TIME_AXIS_PASS_13015" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_13002(context, evt)
if evt.param1 ~= 13002 then return false end
-- 判断变量"temp"为0
if ScriptLib.GetGroupVariableValue(context, "temp") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_13002(context, evt)
-- 将本组内变量名为 "temp" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "temp", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 调用提示id为 201350101 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201350101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_13003(context, evt)
if evt.param1 ~= 13003 then return false end
-- 判断变量"temp"为1
if ScriptLib.GetGroupVariableValue(context, "temp") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_13003(context, evt)
-- 将本组内变量名为 "temp" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "temp", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_13005(context, evt)
if evt.param1 ~= 13005 then return false end
-- 判断变量"temp2"为0
if ScriptLib.GetGroupVariableValue(context, "temp2") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_13005(context, evt)
-- 将本组内变量名为 "temp2" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "temp2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 调用提示id为 201350102 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201350102) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_13006(context, evt)
if evt.param1 ~= 13006 then return false end
-- 判断变量"temp2"为1
if ScriptLib.GetGroupVariableValue(context, "temp2") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_13006(context, evt)
-- 将本组内变量名为 "temp2" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "temp2", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_13008(context, evt)
if evt.param1 ~= 13008 then return false end
-- 判断变量"temp3"为0
if ScriptLib.GetGroupVariableValue(context, "temp3") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_13008(context, evt)
-- 将本组内变量名为 "temp3" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "temp3", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 调用提示id为 201350103 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201350103) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_13009(context, evt)
if evt.param1 ~= 13009 then return false end
-- 判断变量"temp3"为1
if ScriptLib.GetGroupVariableValue(context, "temp3") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_13009(context, evt)
-- 将本组内变量名为 "temp3" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "temp3", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_13011(context, evt)
if evt.param1 ~= 13011 then return false end
-- 判断变量"temp4"为0
if ScriptLib.GetGroupVariableValue(context, "temp4") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_13011(context, evt)
-- 将本组内变量名为 "temp4" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "temp4", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 调用提示id为 201350104 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201350104) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 创建标识为"quest",时间节点为{8}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "quest", {8}, false)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_13012(context, evt)
if evt.param1 ~= 13012 then return false end
-- 判断变量"temp4"为1
if ScriptLib.GetGroupVariableValue(context, "temp4") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_13012(context, evt)
-- 将本组内变量名为 "temp4" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "temp4", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_START_13013(context, evt)
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220135013, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
-- 将本组内变量名为 "refresh" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "refresh", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_13014(context, evt)
-- 判断变量"refresh"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "refresh", 220135013) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_13014(context, evt)
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220135013, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_13015(context, evt)
if "quest" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_13015(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006616") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 220135016
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 16001, gadget_id = 71700393, pos = { x = 103.610, y = 102.514, z = -40.321 }, rot = { x = 0.000, y = 270.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 = { 16001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,275 @@
-- 基础信息
local base_info = {
group_id = 220135017
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 17001, gadget_id = 70290137, pos = { x = 100.049, y = 101.043, z = -14.616 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 17002, gadget_id = 70360001, pos = { x = 100.049, y = 101.043, z = -14.616 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 17009, gadget_id = 70360001, pos = { x = 95.170, y = 101.031, z = -8.253 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 17010, shape = RegionShape.SPHERE, radius = 5, pos = { x = 99.965, y = 101.093, z = -14.539 } }
}
-- 触发器
triggers = {
{ config_id = 1017003, name = "SELECT_OPTION_17003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_17003", action = "action_EVENT_SELECT_OPTION_17003", trigger_count = 0 },
{ config_id = 1017004, name = "TIME_AXIS_PASS_17004", event = EventType.EVENT_TIME_AXIS_PASS, source = "temp", condition = "condition_EVENT_TIME_AXIS_PASS_17004", action = "action_EVENT_TIME_AXIS_PASS_17004", trigger_count = 0 },
{ config_id = 1017005, name = "SELECT_OPTION_17005", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_17005", action = "action_EVENT_SELECT_OPTION_17005", trigger_count = 0 },
{ config_id = 1017006, name = "TIME_AXIS_PASS_17006", event = EventType.EVENT_TIME_AXIS_PASS, source = "temp", condition = "condition_EVENT_TIME_AXIS_PASS_17006", action = "action_EVENT_TIME_AXIS_PASS_17006", trigger_count = 0 },
{ config_id = 1017007, name = "GADGET_CREATE_17007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_17007", action = "action_EVENT_GADGET_CREATE_17007", trigger_count = 0 },
{ config_id = 1017008, name = "TIME_AXIS_PASS_17008", event = EventType.EVENT_TIME_AXIS_PASS, source = "temp2", condition = "condition_EVENT_TIME_AXIS_PASS_17008", action = "action_EVENT_TIME_AXIS_PASS_17008", trigger_count = 0 },
{ config_id = 1017010, name = "ENTER_REGION_17010", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_17010", action = "action_EVENT_ENTER_REGION_17010", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 17009 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 17001, 17002 },
regions = { 17010 },
triggers = { "SELECT_OPTION_17003", "TIME_AXIS_PASS_17004", "SELECT_OPTION_17005", "TIME_AXIS_PASS_17006", "GADGET_CREATE_17007", "TIME_AXIS_PASS_17008", "ENTER_REGION_17010" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_17003(context, evt)
-- 判断是gadgetid 17002 option_id 1
if 17002 ~= evt.param1 then
return false
end
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_17003(context, evt)
-- 删除指定group 220135017 ;指定config17002;物件身上指定option1
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220135017, 17002, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 220135017 ;指定config17002;物件身上指定option626
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220135017, 17002, 626) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 17001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 17001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建标识为"temp",时间节点为{5,7}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "temp", {5,7}, false)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_17004(context, evt)
if "temp" ~= evt.source_name or 2 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_17004(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220135017, 17002, {1,626}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_17005(context, evt)
-- 判断是gadgetid 17002 option_id 626
if 17002 ~= evt.param1 then
return false
end
if 626 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_17005(context, evt)
-- 将使用操作台的玩家传送至目标点
if evt.uid ~= nil then
local t_pos = {x=108.3111, y=-221.17, z=528.0668}
if 0 ~= ScriptLib.TransPlayerToPos(context, {uid_list = {evt.uid}, pos = t_pos, rot = {x=0, y=0, z=0}}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : trans_player_byOption")
return -1
end
else
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : trans_player_byOption")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220135001, 2)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_17006(context, evt)
if "temp" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_17006(context, evt)
-- 将configid为 17001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 17001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_17007(context, evt)
if 17002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_17007(context, evt)
-- 将configid为 17001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 17001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建标识为"temp2",时间节点为{2}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "temp2", {2}, false)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_17008(context, evt)
if "temp2" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_17008(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220135017, 17002, {1,626}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_17010(context, evt)
if evt.param1 ~= 17010 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_17010(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "7903602") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,101 @@
-- 基础信息
local base_info = {
group_id = 220135018
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 18001, gadget_id = 70310333, pos = { x = 103.083, y = 101.159, z = -5.914 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1018002, name = "GROUP_LOAD_18002", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_18002", trigger_count = 0 },
{ config_id = 1018003, name = "GROUP_LOAD_18003", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_18003", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "GROUP_LOAD_18002" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 18001 },
regions = { },
triggers = { "GROUP_LOAD_18003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GROUP_LOAD_18002(context, evt)
if ScriptLib.GetHostQuestState(context,4006614)==2 then
ScriptLib.RefreshGroup(context, { group_id = 220135018, suite = 2 })
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_18003(context, evt)
if ScriptLib.GetHostQuestState(context,4006615)==3 then
ScriptLib.RefreshGroup(context, { group_id = 220135018, suite = 1 })
end
return 0
end
@@ -0,0 +1,128 @@
-- 基础信息
local base_info = {
group_id = 220135019
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 19001, gadget_id = 70300057, pos = { x = 107.823, y = -216.030, z = 691.474 }, rot = { x = 0.000, y = 186.003, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 19002, shape = RegionShape.CUBIC, size = { x = 50.000, y = 50.000, z = 200.000 }, pos = { x = 110.221, y = -218.253, z = 608.393 } },
{ config_id = 19003, shape = RegionShape.CUBIC, size = { x = 50.000, y = 50.000, z = 200.000 }, pos = { x = 112.367, y = -215.869, z = 608.393 } }
}
-- 触发器
triggers = {
{ config_id = 1019002, name = "ENTER_REGION_19002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_19002", action = "action_EVENT_ENTER_REGION_19002", trigger_count = 0 },
{ config_id = 1019003, name = "LEAVE_REGION_19003", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "", action = "action_EVENT_LEAVE_REGION_19003", trigger_count = 0 }
}
-- 变量
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 = { },
regions = { 19002 },
triggers = { "ENTER_REGION_19002" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 19001 },
regions = { 19003 },
triggers = { "LEAVE_REGION_19003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_19002(context, evt)
if evt.param1 ~= 19002 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_19002(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220135019, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_LEAVE_REGION_19003(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220135019, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,318 @@
[
{
"pointArrayId": 1,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 23.8033886,
"y": 16.7359123,
"z": 0.518059254
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 2.8,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 23.8033886,
"y": 16.7359123,
"z": 0.518059254
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 180.0
},
"velocity": 0.0,
"time": 2.8,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 3,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 23.8033886,
"y": 16.7359123,
"z": 0.518059254
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 2.8,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 23.8033886,
"y": 16.7359123,
"z": 0.518059254
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 180.0
},
"velocity": 0.0,
"time": 2.8,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 4,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 23.8033886,
"y": 16.7359123,
"z": 0.518059254
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 2.8,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 23.8033886,
"y": 16.7359123,
"z": 0.518059254
},
"rotation": {
"x": 0.0,
"y": 180.0,
"z": 180.0
},
"velocity": 0.0,
"time": 2.8,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 5,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 23.8033886,
"y": 16.7359123,
"z": 0.518059254
},
"rotation": {
"x": 0.0,
"y": 180.0,
"z": 180.0
},
"velocity": 0.0,
"time": 0.1,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 6,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 0.0,
"y": 0.0,
"z": 180.0
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 180.0
},
"velocity": 0.0,
"time": 0.1,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 8,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 23.8033886,
"y": 16.7359123,
"z": 0.518059254
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 3.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 23.8033886,
"y": 16.7359123,
"z": 0.518059254
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 180.3
},
"velocity": 0.0,
"time": 3.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 9,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 0.0,
"y": 0.0,
"z": 180.0
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 180.2
},
"velocity": 0.0,
"time": 0.1,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 10,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 0.0,
"y": 0.0,
"z": 180.0
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 0.1,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
}
]
@@ -0,0 +1,23 @@
[
{
"area_id": 10094,
"points": [
{
"x": 135.978271,
"y": 493.960083
},
{
"x": 49.09896,
"y": 492.866638
},
{
"x": 42.3667526,
"y": 742.8135
},
{
"x": 136.259735,
"y": 742.909546
}
]
}
]