添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -400.0, z = -300.0 },
size = { x = 1024.0, z = 1800.0 },
born_pos = { x = -37.059, y = -3.362, z = -44.906 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
die_y = -12,
city_id = 102,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 20140 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -400.0, z = -300.0 }, max = { x = 624.0, z = 1500.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,25 @@
-- 所有的group
groups = {
{ id = 220140001, pos = { x = 45.264, y = 53.674, z = 335.097 } },
{ id = 220140002, pos = { x = 37.437, y = 70.760, z = 464.666 } },
{ id = 220140003, pos = { x = -36.326, y = -3.484, z = -42.174 }, business = { type = 2 } },
{ id = 220140004, pos = { x = -0.736, y = 38.645, z = 271.475 }, related_level_tag_series_list = { 10 }, business = { type = 2 } },
{ id = 220140005, pos = { x = -87.231, y = -1.116, z = 15.783 } },
{ id = 220140006, pos = { x = -87.376, y = 19.380, z = 127.716 } },
{ id = 220140007, pos = { x = -7.516, y = 45.573, z = 339.729 } },
{ id = 220140008, pos = { x = 64.349, y = 56.850, z = 400.044 } },
{ id = 220140009, pos = { x = 38.494, y = 87.130, z = 563.033 } },
{ id = 220140010, pos = { x = 71.349, y = 106.970, z = 891.485 } },
{ id = 220140011, pos = { x = 29.611, y = 84.203, z = 662.699 } },
{ id = 220140012, pos = { x = -7.940, y = 44.288, z = 336.151 }, related_level_tag_series_list = { 10 }, business = { type = 2 } },
{ id = 220140013, pos = { x = 41.083, y = 87.300, z = 580.282 }, business = { type = 2 } },
{ id = 220140014, pos = { x = -1.226, y = -2.057, z = 1.899 } },
{ id = 220140016, pos = { x = -25.656, y = -5.178, z = -53.837 } },
{ id = 220140017, pos = { x = -1.028, y = -3.061, z = 0.608 }, business = { type = 2 } },
{ id = 220140018, pos = { x = 0.227, y = 38.498, z = 285.733 }, related_level_tag_series_list = { 10 }, business = { type = 2 } },
{ id = 220140019, pos = { x = 36.796, y = 87.130, z = 559.426 }, business = { type = 2 } },
{ id = 220140020, pos = { x = 27.201, y = 84.175, z = 661.773 }, business = { type = 2 } },
{ id = 220140021, pos = { x = 122.424, y = 85.400, z = 683.302 }, business = { type = 2 } },
{ id = 220140023, pos = { x = 72.845, y = 106.970, z = 889.430 }, business = { type = 2 } },
{ id = 220140024, pos = { x = -81.034, y = 8.158, z = 115.669 } }
}

View File

@@ -0,0 +1,28 @@
dummy_points = {
["guide_Q4006704"] = { pos = { x = -5.180, y = -3.170, z = 1.382 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4006705"] = { pos = { x = -88.038, y = -1.116, z = 21.877 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4006706"] = { pos = { x = -80.889, y = 8.372, z = 118.077 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4006707"] = { pos = { x = -0.598, y = 43.082, z = 272.148 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4006708"] = { pos = { x = -9.102, y = 44.611, z = 332.988 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4006709"] = { pos = { x = 45.175, y = 70.760, z = 461.242 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4006710"] = { pos = { x = 72.544, y = 125.970, z = 889.136 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4006711"] = { pos = { x = 72.402, y = 106.970, z = 891.552 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006703_guide"] = { pos = { x = -38.910, y = -2.935, z = -44.496 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006703_N10011"] = { pos = { x = -40.007, y = -2.704, z = -45.351 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006703_N10095"] = { pos = { x = -40.257, y = -2.624, z = -43.798 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["Q4006703_N1042"] = { pos = { x = -40.699, y = -2.508, z = -44.677 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["Q4006710_N12646"] = { pos = { x = 94.221, y = 86.310, z = 769.343 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006712_guide"] = { pos = { x = 79.154, y = 135.522, z = 1028.171 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006712_N10011"] = { pos = { x = 78.047, y = 135.477, z = 1030.369 }, rot = { x = 0.000, y = 305.012, z = 0.000 } },
["Q4006712_N10095"] = { pos = { x = 77.744, y = 135.477, z = 1029.469 }, rot = { x = 0.000, y = 305.012, z = 0.000 } },
["Q4006712_N1032"] = { pos = { x = 75.625, y = 135.546, z = 1031.978 }, rot = { x = 359.179, y = 304.544, z = 0.869 } },
["Q4006712_N1042"] = { pos = { x = 76.997, y = 135.477, z = 1028.774 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006715_N12646"] = { pos = { x = 72.613, y = 106.970, z = 891.922 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006717_guide"] = { pos = { x = 113.822, y = 85.400, z = 758.325 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["T4006703_oz"] = { pos = { x = -39.205, y = -2.867, z = -45.335 }, rot = { x = 0.000, y = 330.000, z = 0.000 } },
["T4006703_paimon"] = { pos = { x = -39.615, y = -2.828, z = -43.798 }, rot = { x = 0.000, y = 200.000, z = 0.000 } },
["T4006703_player"] = { pos = { x = -38.745, y = -3.029, z = -44.725 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["T4006712_oz"] = { pos = { x = 79.171, y = 135.477, z = 1031.142 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["T4006712_paimon"] = { pos = { x = 74.559, y = 135.549, z = 1030.232 }, rot = { x = 0.000, y = 60.000, z = 0.000 } },
["T4006712_player"] = { pos = { x = 75.415, y = 135.477, z = 1029.349 }, rot = { x = 0.000, y = 30.000, z = 0.000 } }
}

View File

@@ -0,0 +1,130 @@
-- 基础信息
local base_info = {
group_id = 220140001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1002, monster_id = 25080401, pos = { x = 45.128, y = 53.677, z = 335.385 }, rot = { x = 0.000, y = 236.274, z = 0.000 }, level = 1, pose_id = 1 },
{ config_id = 1003, monster_id = 25050301, pos = { x = 40.898, y = 52.981, z = 336.286 }, rot = { x = 0.000, y = 218.074, z = 0.000 }, level = 1 },
{ config_id = 1004, monster_id = 25050301, pos = { x = 42.383, y = 52.730, z = 331.133 }, rot = { x = 0.000, y = 298.427, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 1001, shape = RegionShape.CUBIC, size = { x = 30.000, y = 10.000, z = 30.000 }, pos = { x = 42.823, y = 54.048, z = 337.595 } }
}
-- 触发器
triggers = {
{ config_id = 1001001, name = "ENTER_REGION_1001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1001", action = "action_EVENT_ENTER_REGION_1001" }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1001005, name = "ANY_MONSTER_DIE_1005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_1005", action = "action_EVENT_ANY_MONSTER_DIE_1005" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
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 = { 1001 },
triggers = { "ENTER_REGION_1001" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 1002, 1003, 1004 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_1001(context, evt)
if evt.param1 ~= 1001 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_1001(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220140001, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 调用提示id为 60010363 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 60010363) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end

View File

@@ -0,0 +1,164 @@
-- 基础信息
local base_info = {
group_id = 220140002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2002, monster_id = 25050401, pos = { x = 38.633, y = 70.760, z = 462.834 }, rot = { x = 0.000, y = 171.887, z = 0.000 }, level = 1 },
{ config_id = 2003, monster_id = 25050301, pos = { x = 36.660, y = 70.760, z = 460.137 }, rot = { x = 0.000, y = 171.887, z = 0.000 }, level = 1 },
{ config_id = 2004, monster_id = 25050301, pos = { x = 41.173, y = 70.760, z = 461.338 }, rot = { x = 0.000, y = 171.887, z = 0.000 }, level = 1 },
{ config_id = 2005, monster_id = 25050301, pos = { x = 37.340, y = 70.760, z = 467.998 }, rot = { x = 0.000, y = 171.887, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2007, gadget_id = 70690011, pos = { x = 35.308, y = 70.760, z = 471.901 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2009, gadget_id = 70360001, pos = { x = 39.313, y = 70.760, z = 466.294 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 2001, shape = RegionShape.CUBIC, size = { x = 30.000, y = 10.000, z = 30.000 }, pos = { x = 37.585, y = 70.760, z = 466.238 } }
}
-- 触发器
triggers = {
{ config_id = 1002001, name = "ENTER_REGION_2001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2001", action = "action_EVENT_ENTER_REGION_2001" },
{ config_id = 1002006, name = "ANY_MONSTER_DIE_2006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_2006", action = "action_EVENT_ANY_MONSTER_DIE_2006" },
{ config_id = 1002008, name = "ANY_GADGET_DIE_2008", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "", action = "action_EVENT_ANY_GADGET_DIE_2008", 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 = { 2001 },
triggers = { "ENTER_REGION_2001" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 2002, 2003, 2004, 2005 },
gadgets = { 2009 },
regions = { },
triggers = { "ANY_MONSTER_DIE_2006", "ANY_GADGET_DIE_2008" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 2007 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_2001(context, evt)
if evt.param1 ~= 2001 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_2001(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220140002, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_2006(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220140002) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_2006(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 220140002, 4)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 2009 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_2008(context, evt)
if evt.param1 == 2009 then
ScriptLib.ChangeToTargetLevelTag(context, 32)
end
return 0
end

View File

@@ -0,0 +1,535 @@
-- 基础信息
local base_info = {
group_id = 220140003
}
-- DEFS_MISCS
local defs = {
--本Group中发射器gadget的configID最多3个,
fireMachineList = {
3011
},
--key为发射器configIDvalue为ColorDefine
initConfig = {
[3011] = 5,
},
--Key为操作台。value为发射器。允许有多个操作台控制同一个发射器
controlRelation = {
},
--左右旋转的SelectOptionID
selectID_horizon = 613,
--上下俯仰的SelectOptionID
selectID_vertical = 612,
--定义左右旋转的步长,key为传递装置configIDvalue为GadgetState
horizon_steps = {
[3018] = {0, 102, 103, 104},
[3020] = {0, 102, 103, 104},
[3024] = {0, 102, 103, 104},
[3025] = {0, 102, 103, 104},
[3004] = {0, 102, 103, 104},
},
--定义上下俯仰的步长,key为传递装置configIDvalue为GadgetState
vertical_steps = {
[3018] = {0, 302, 303, 304},
[3020] = {0, 302, 303, 304},
[3024] = {0, 302, 303, 304},
[3025] = {0, 302, 303, 304},
[3004] = {0, 302, 303, 304},
},
serve_items = {3039}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70380300, pos = { x = -80.000, y = 41.000, z = 115.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop, persistent = true, is_use_point_array = true },
{ config_id = 3003, gadget_id = 70360170, pos = { x = -91.081, y = -0.418, z = 20.122 }, rot = { x = 0.000, y = 9.120, z = 0.000 }, level = 1, persistent = true },
{ config_id = 3007, gadget_id = 70380300, pos = { x = 0.000, y = 0.000, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 15.000 }, level = 1, persistent = true, is_use_point_array = true },
{ config_id = 3009, gadget_id = 70690027, pos = { x = -87.323, y = -1.722, z = 19.429 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3010, gadget_id = 70690001, pos = { x = -57.822, y = 17.279, z = 132.132 }, rot = { x = 340.048, y = 43.451, z = 0.000 }, level = 1, persistent = true },
{ config_id = 3012, gadget_id = 70690001, pos = { x = -47.914, y = 21.458, z = 142.591 }, rot = { x = 335.144, y = 43.451, z = 0.000 }, level = 1, persistent = true },
{ config_id = 3014, gadget_id = 70690001, pos = { x = -38.007, y = 25.636, z = 153.049 }, rot = { x = 333.025, y = 43.451, z = 0.000 }, level = 1, persistent = true },
{ config_id = 3015, gadget_id = 70690027, pos = { x = -34.528, y = -6.535, z = -29.295 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3016, gadget_id = 70690001, pos = { x = -28.099, y = 29.814, z = 163.508 }, rot = { x = 335.166, y = 43.451, z = 0.000 }, level = 1, persistent = true },
{ config_id = 3017, gadget_id = 70690001, pos = { x = -18.191, y = 33.993, z = 173.966 }, rot = { x = 334.804, y = 43.451, z = 0.000 }, level = 1, persistent = true },
{ config_id = 3019, gadget_id = 70690001, pos = { x = -8.283, y = 38.171, z = 184.424 }, rot = { x = 347.259, y = 17.275, z = 0.000 }, level = 1, persistent = true },
{ config_id = 3021, gadget_id = 70690001, pos = { x = -4.441, y = 39.486, z = 196.779 }, rot = { x = 354.199, y = 17.275, z = 0.000 }, level = 1, persistent = true },
{ config_id = 3022, gadget_id = 70310386, pos = { x = -90.897, y = -0.650, z = 20.091 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true },
{ config_id = 3026, gadget_id = 70690001, pos = { x = -40.004, y = -2.202, z = -19.486 }, rot = { x = 337.462, y = 319.779, z = 347.218 }, level = 1 },
{ config_id = 3027, gadget_id = 70690001, pos = { x = -49.903, y = 1.228, z = -8.231 }, rot = { x = 0.000, y = 318.667, z = 0.000 }, level = 1 },
{ config_id = 3028, gadget_id = 70290373, pos = { x = -69.635, y = 10.437, z = 130.424 }, rot = { x = 0.143, y = 146.963, z = 350.666 }, level = 1, persistent = true },
{ config_id = 3029, gadget_id = 70690001, pos = { x = -58.869, y = 1.228, z = 1.963 }, rot = { x = 0.000, y = 318.667, z = 0.000 }, level = 1 },
{ config_id = 3030, gadget_id = 70690027, pos = { x = -63.987, y = 10.177, z = 125.143 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 3033, gadget_id = 70211111, pos = { x = -70.476, y = 9.348, z = 117.419 }, rot = { x = 9.050, y = 235.987, z = 1.506 }, level = 16, drop_tag = "解谜中级群岛", isOneoff = true, persistent = true },
{ config_id = 3037, gadget_id = 70290373, pos = { x = -84.237, y = 18.300, z = 106.996 }, rot = { x = 351.530, y = 56.095, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 3038, gadget_id = 70300118, pos = { x = -91.059, y = -0.631, z = 20.080 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3039, gadget_id = 70290374, pos = { x = -92.944, y = 19.073, z = 128.750 }, rot = { x = 0.000, y = 239.686, z = 0.000 }, level = 1, state = GadgetState.GearStart, isOneoff = true },
{ config_id = 3040, gadget_id = 70690001, pos = { x = -85.893, y = 6.740, z = 28.405 }, rot = { x = 329.003, y = 1.001, z = 0.000 }, level = 1 },
{ config_id = 3041, gadget_id = 70690001, pos = { x = -85.732, y = 10.512, z = 37.665 }, rot = { x = 330.086, y = 1.001, z = 0.000 }, level = 1 },
{ config_id = 3042, gadget_id = 70690001, pos = { x = -85.570, y = 14.284, z = 46.925 }, rot = { x = 331.316, y = 357.188, z = 359.936 }, level = 1 },
{ config_id = 3043, gadget_id = 70690001, pos = { x = -85.408, y = 18.057, z = 56.185 }, rot = { x = 332.545, y = 357.330, z = 359.780 }, level = 1 },
{ config_id = 3044, gadget_id = 70690001, pos = { x = -85.004, y = 21.215, z = 65.563 }, rot = { x = 356.886, y = 8.271, z = 0.000 }, level = 1 },
{ config_id = 3045, gadget_id = 70690001, pos = { x = -83.567, y = 21.758, z = 75.444 }, rot = { x = 356.886, y = 8.271, z = 0.000 }, level = 1 },
{ config_id = 3049, gadget_id = 70690029, pos = { x = -1.248, y = 22.134, z = 210.636 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 3050, shape = RegionShape.CUBIC, size = { x = 30.000, y = 15.000, z = 30.000 }, pos = { x = -0.241, y = 35.906, z = 224.273 } }
}
-- 触发器
triggers = {
-- 添加suite和任务通知
{ config_id = 1003002, name = "TIME_AXIS_PASS_3002", event = EventType.EVENT_TIME_AXIS_PASS, source = "test", condition = "condition_EVENT_TIME_AXIS_PASS_3002", action = "action_EVENT_TIME_AXIS_PASS_3002", trigger_count = 0 },
{ config_id = 1003005, name = "TIME_AXIS_PASS_3005", event = EventType.EVENT_TIME_AXIS_PASS, source = "test", condition = "", action = "action_EVENT_TIME_AXIS_PASS_3005", trigger_count = 0 },
{ config_id = 1003006, name = "GADGET_STATE_CHANGE_3006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_3006", action = "action_EVENT_GADGET_STATE_CHANGE_3006", trigger_count = 0 },
{ config_id = 1003008, name = "TIME_AXIS_PASS_3008", event = EventType.EVENT_TIME_AXIS_PASS, source = "test", condition = "condition_EVENT_TIME_AXIS_PASS_3008", action = "action_EVENT_TIME_AXIS_PASS_3008", trigger_count = 0 },
{ config_id = 1003013, name = "SELECT_OPTION_3013", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3013", action = "action_EVENT_SELECT_OPTION_3013", trigger_count = 0 },
{ config_id = 1003023, name = "VARIABLE_CHANGE_3023", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "", action = "action_EVENT_VARIABLE_CHANGE_3023", trigger_count = 0 },
-- 4006706 任务保底
{ config_id = 1003034, name = "QUEST_START_3034", event = EventType.EVENT_QUEST_START, source = "4006706", condition = "condition_EVENT_QUEST_START_3034", action = "action_EVENT_QUEST_START_3034", trigger_count = 0 },
-- 4006706 任务保底
{ config_id = 1003035, name = "GROUP_LOAD_3035", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_3035", action = "action_EVENT_GROUP_LOAD_3035", trigger_count = 0 },
{ config_id = 1003036, name = "GROUP_LOAD_3036", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_3036", trigger_count = 0 },
-- 4006705 任务保底
{ config_id = 1003046, name = "QUEST_START_3046", event = EventType.EVENT_QUEST_START, source = "4006705", condition = "condition_EVENT_QUEST_START_3046", action = "action_EVENT_QUEST_START_3046", trigger_count = 0 },
-- 4006705 任务保底
{ config_id = 1003047, name = "GROUP_LOAD_3047", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_3047", action = "action_EVENT_GROUP_LOAD_3047", trigger_count = 0 },
{ config_id = 1003048, name = "GROUP_LOAD_3048", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_3048", action = "action_EVENT_GROUP_LOAD_3048", trigger_count = 0 },
{ config_id = 1003050, name = "ENTER_REGION_3050", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3050", action = "action_EVENT_ENTER_REGION_3050", trigger_count = 0 },
{ config_id = 1003051, name = "SELECT_OPTION_3051", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3051", action = "action_EVENT_SELECT_OPTION_3051", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 2, name = "load", value = 0, no_refresh = true },
{ config_id = 3, name = "option1", value = 0, no_refresh = true },
{ config_id = 5, name = "option2", value = 0, no_refresh = true },
{ config_id = 8, name = "wind", value = 0, no_refresh = true }
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 3004, gadget_id = 70310159, pos = { x = -87.485, y = 19.845, z = 129.520 }, rot = { x = 0.000, y = 235.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 3011, gadget_id = 70310158, pos = { x = -79.278, y = 19.380, z = 115.084 }, rot = { x = 358.400, y = 330.874, z = 7.363 }, level = 1, state = GadgetState.GearAction2 },
{ config_id = 3018, gadget_id = 70310159, pos = { x = -92.264, y = 19.845, z = 125.650 }, rot = { x = 0.000, y = 231.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 612 } } },
{ config_id = 3020, gadget_id = 70310159, pos = { x = -101.509, y = 12.536, z = 118.351 }, rot = { x = 19.000, y = 140.032, z = 356.934 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 3024, gadget_id = 70310159, pos = { x = -91.202, y = 7.125, z = 106.090 }, rot = { x = 352.000, y = 45.775, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 3025, gadget_id = 70310159, pos = { x = -79.978, y = 9.209, z = 117.199 }, rot = { x = 355.000, y = 73.500, z = 355.862 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 3031, gadget_id = 70310188, pos = { x = -67.053, y = 10.531, z = 120.577 }, rot = { x = 353.489, y = 359.052, z = 7.440 }, level = 1, state = GadgetState.GearStop, isOneoff = true }
},
triggers = {
{ config_id = 1003032, name = "ANY_GADGET_DIE_3032", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_3032", action = "action_EVENT_ANY_GADGET_DIE_3032" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001, 3003, 3007, 3022, 3028, 3033, 3038 },
regions = { 3050 },
triggers = { "TIME_AXIS_PASS_3002", "TIME_AXIS_PASS_3005", "TIME_AXIS_PASS_3008", "SELECT_OPTION_3013", "VARIABLE_CHANGE_3023", "QUEST_START_3034", "GROUP_LOAD_3035", "GROUP_LOAD_3036", "QUEST_START_3046", "GROUP_LOAD_3047", "GROUP_LOAD_3048", "ENTER_REGION_3050", "SELECT_OPTION_3051" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 3009, 3015, 3026, 3027, 3029, 3037, 3039, 3040, 3041, 3042, 3043, 3044, 3045 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_3006" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 3010, 3012, 3014, 3016, 3017, 3019, 3021, 3030, 3049 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_3002(context, evt)
if "test" ~= evt.source_name or 2 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_3002(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220140003, 2)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006705") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_3005(context, evt)
if evt.source_name == "test" and evt.param1 == 1 then
ScriptLib.SetGadgetStateByConfigId(context,3001, GadgetState.Default)
ScriptLib.SetPlatformPointArray(context, 3001, 1, {2}, {route_type=RouteType.OneWay, record_mode=RouteRecordMode.Reach})
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_3006(context, evt)
if 3028 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_3006(context, evt)
-- 将本组内变量名为 "wind" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "wind", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220140003, 3)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006706") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_3008(context, evt)
if "test" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_3008(context, evt)
-- 触发镜头注目,注目位置为坐标{x=-80, y=41, z=115}持续时间为2.5秒,并且为强制注目形式,不广播其他玩家
local pos = {x=-80, y=41, z=115}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2.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_SELECT_OPTION_3013(context, evt)
-- 判断是gadgetid 3003 option_id 7
if 3003 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3013(context, evt)
-- 将本组内变量名为 "load" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "load", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 创建标识为"test",时间节点为{4,9}的时间轴false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "test", {4,9}, false)
-- 改变指定group组220140003中 configid为3007的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220140003, 3007, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220140017, 1)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220140017, 2)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 3007, 2, {2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 触发镜头注目,注目位置为坐标{x=0, y=0, z=0}持续时间为2.5秒,并且为强制注目形式,不广播其他玩家
local pos = {x=0, y=0, z=0}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2.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
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220140003, EntityType.GADGET, 3038 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 删除指定group 220140003 指定config3003物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220140003, 3003, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220140016, 2)
return 0
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_3023(context, evt)
if ScriptLib.GetGroupVariableValue(context, "load") == 0 and ScriptLib.GetGroupVariableValue(context, "option1") == 1 and ScriptLib.GetGroupVariableValue(context, "option2") == 1 then
ScriptLib.SetGroupVariableValue(context, "option1", 2)
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3003, {7})
ScriptLib.KillEntityByConfigId(context, {group_id=220140003, config_id=3022, entity_type=EntityType.GADGET})
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_3034(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220140003, 3028) then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_3034(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006706") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_3035(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220140003, 3028) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_3035(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006706") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_3036(context, evt)
if ScriptLib.GetGroupVariableValue(context, "load") == 1 then
ScriptLib.AddExtraGroupSuite(context, 0, 2)
ScriptLib.SetPlatformPointArray(context, 3001, 3, {1}, {route_type=RouteType.OneWay, record_mode=RouteRecordMode.Reach})
ScriptLib.KillEntityByConfigId(context, {group_id=220140003, config_id=3038, entity_type=EntityType.GADGET})
end
if ScriptLib.GetGroupVariableValue(context, "load") == 0 and ScriptLib.GetGroupVariableValue(context, "option1") == 2 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3003, {7})
ScriptLib.KillEntityByConfigId(context, {group_id=220140003, config_id=3022, entity_type=EntityType.GADGET})
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_3046(context, evt)
-- 判断变量"load"为1
if ScriptLib.GetGroupVariableValue(context, "load") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_3046(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006705") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_3047(context, evt)
-- 判断变量"load"为1
if ScriptLib.GetGroupVariableValue(context, "load") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_3047(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006705") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_3048(context, evt)
-- 判断变量"wind"为1
if ScriptLib.GetGroupVariableValue(context, "wind") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_3048(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220140003, 3)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3050(context, evt)
if evt.param1 ~= 3050 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_3050(context, evt)
ScriptLib.ActivateDungeonCheckPoint(context, 6)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3051(context, evt)
-- 判断是gadgetid 3003 option_id 7
if 3003 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3051(context, evt)
-- 将configid为 3003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
require "V2_8/FireMachineColorHandle"
require "V2_8/KazuhaServeItem"

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,105 @@
-- 基础信息
local base_info = {
group_id = 220140005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 5001, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 15.000 }, pos = { x = -87.573, y = -1.116, z = 15.366 } }
}
-- 触发器
triggers = {
{ config_id = 1005001, name = "ENTER_REGION_5001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5001", action = "action_EVENT_ENTER_REGION_5001" }
}
-- 变量
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 = { 5001 },
triggers = { "ENTER_REGION_5001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_5001(context, evt)
if evt.param1 ~= 5001 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_5001(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006705") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end

View File

@@ -0,0 +1,105 @@
-- 基础信息
local base_info = {
group_id = 220140006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 6001, shape = RegionShape.CUBIC, size = { x = 25.000, y = 25.000, z = 25.000 }, pos = { x = -68.358, y = 10.266, z = 124.561 } }
}
-- 触发器
triggers = {
{ config_id = 1006001, name = "ENTER_REGION_6001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6001", action = "action_EVENT_ENTER_REGION_6001" }
}
-- 变量
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 = { 6001 },
triggers = { "ENTER_REGION_6001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_6001(context, evt)
if evt.param1 ~= 6001 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_6001(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006706") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end

View File

@@ -0,0 +1,89 @@
-- 基础信息
local base_info = {
group_id = 220140007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,124 @@
-- 基础信息
local base_info = {
group_id = 220140008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 8001, monster_id = 25080401, pos = { x = 64.212, y = 56.850, z = 400.331 }, rot = { x = 0.000, y = 182.593, z = 0.000 }, level = 1, pose_id = 1 },
{ config_id = 8002, monster_id = 25050301, pos = { x = 59.982, y = 56.850, z = 401.232 }, rot = { x = 0.000, y = 164.393, z = 0.000 }, level = 1 },
{ config_id = 8003, monster_id = 25050301, pos = { x = 61.467, y = 56.850, z = 396.080 }, rot = { x = 0.000, y = 244.746, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 8005, shape = RegionShape.CUBIC, size = { x = 30.000, y = 10.000, z = 30.000 }, pos = { x = 59.617, y = 56.850, z = 394.794 } }
}
-- 触发器
triggers = {
{ config_id = 1008005, name = "ENTER_REGION_8005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8005", action = "action_EVENT_ENTER_REGION_8005" }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1008006, name = "ANY_MONSTER_DIE_8006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_8006", action = "action_EVENT_ANY_MONSTER_DIE_8006" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
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 = { 8005 },
triggers = { "ENTER_REGION_8005" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 8001, 8002, 8003 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_8005(context, evt)
if evt.param1 ~= 8005 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_8005(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220140008, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end

View File

@@ -0,0 +1,98 @@
-- 基础信息
local base_info = {
group_id = 220140009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,98 @@
-- 基础信息
local base_info = {
group_id = 220140010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,75 @@
-- 基础信息
local base_info = {
group_id = 220140011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 11001, gadget_id = 71700394, pos = { x = 74.228, y = 135.292, z = 1032.497 }, rot = { x = 0.000, y = 349.290, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
{ config_id = 1, name = "reminder1", value = 0, no_refresh = true },
{ config_id = 2, name = "reminder2", value = 0, no_refresh = true },
{ config_id = 3, name = "reminder3", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 11001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,347 @@
-- 基础信息
local base_info = {
group_id = 220140012
}
-- DEFS_MISCS
local defs = { serve_items = {12025,12026}}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 12005, monster_id = 25050301, pos = { x = 40.698, y = 53.099, z = 336.200 }, rot = { x = 0.000, y = 256.222, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, isOneoff = true },
{ config_id = 12006, monster_id = 25050301, pos = { x = 42.194, y = 52.884, z = 331.055 }, rot = { x = 0.000, y = 303.648, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, isOneoff = true },
{ config_id = 12011, monster_id = 25050301, pos = { x = 59.972, y = 56.850, z = 401.222 }, rot = { x = 0.000, y = 179.188, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, isOneoff = true },
{ config_id = 12014, monster_id = 25050301, pos = { x = 63.982, y = 56.850, z = 400.451 }, rot = { x = 0.000, y = 196.230, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, isOneoff = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 12001, gadget_id = 70310297, pos = { x = 42.895, y = 46.127, z = 366.440 }, rot = { x = 320.673, y = 35.624, z = 295.401 }, level = 1, isOneoff = true, persistent = true, vision_level = VisionLevelType.VISION_LEVEL_LITTLE_REMOTE },
{ config_id = 12003, gadget_id = 70290373, pos = { x = 36.547, y = 70.752, z = 470.920 }, rot = { x = 0.000, y = 164.894, z = 0.000 }, level = 1, persistent = true },
{ config_id = 12004, gadget_id = 70310296, pos = { x = 46.390, y = 39.000, z = 353.810 }, rot = { x = 347.784, y = 42.740, z = 5.293 }, level = 1, isOneoff = true, persistent = true, vision_level = VisionLevelType.VISION_LEVEL_LITTLE_REMOTE },
{ config_id = 12007, gadget_id = 70310297, pos = { x = 49.850, y = 55.941, z = 411.734 }, rot = { x = 333.854, y = 337.657, z = 41.102 }, level = 1, isOneoff = true, persistent = true, vision_level = VisionLevelType.VISION_LEVEL_LITTLE_REMOTE },
{ config_id = 12009, gadget_id = 70310297, pos = { x = 76.865, y = 66.174, z = 457.258 }, rot = { x = 325.482, y = 85.069, z = 260.034 }, level = 1, isOneoff = true, persistent = true, vision_level = VisionLevelType.VISION_LEVEL_LITTLE_REMOTE },
{ config_id = 12010, gadget_id = 70310296, pos = { x = 46.830, y = 40.941, z = 403.377 }, rot = { x = 357.416, y = 325.617, z = 0.953 }, level = 1, isOneoff = true, persistent = true },
{ config_id = 12013, gadget_id = 70310296, pos = { x = 23.090, y = 55.980, z = 453.490 }, rot = { x = 349.493, y = 286.198, z = 11.470 }, level = 1, isOneoff = true, persistent = true, vision_level = VisionLevelType.VISION_LEVEL_LITTLE_REMOTE },
{ config_id = 12016, gadget_id = 70690029, pos = { x = 41.857, y = 61.875, z = 476.129 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 12017, gadget_id = 70690001, pos = { x = 39.365, y = 80.922, z = 484.915 }, rot = { x = 336.124, y = 339.650, z = 0.000 }, level = 1, persistent = true },
{ config_id = 12018, gadget_id = 70690001, pos = { x = 36.185, y = 84.970, z = 493.488 }, rot = { x = 329.382, y = 339.650, z = 0.000 }, level = 1, persistent = true },
{ config_id = 12019, gadget_id = 70690001, pos = { x = 33.005, y = 89.017, z = 502.062 }, rot = { x = 350.059, y = 355.471, z = 0.000 }, level = 1, persistent = true },
{ config_id = 12020, gadget_id = 70690001, pos = { x = 32.262, y = 90.666, z = 511.440 }, rot = { x = 350.059, y = 355.471, z = 0.000 }, level = 1, persistent = true },
{ config_id = 12021, gadget_id = 70290373, pos = { x = 44.612, y = 70.717, z = 472.883 }, rot = { x = 0.000, y = 164.894, z = 0.000 }, level = 1, persistent = true },
{ config_id = 12022, gadget_id = 70360001, pos = { x = -7.284, y = 38.335, z = 312.461 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true, persistent = true },
{ config_id = 12025, gadget_id = 70290374, pos = { x = 42.669, y = 70.866, z = 463.123 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, isOneoff = true },
{ config_id = 12026, gadget_id = 70290374, pos = { x = 50.627, y = 70.218, z = 466.119 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, isOneoff = true },
{ config_id = 12027, gadget_id = 70690029, pos = { x = 31.409, y = 71.842, z = 519.904 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
{ config_id = 12023, shape = RegionShape.SPHERE, radius = 20, pos = { x = 40.880, y = 70.817, z = 465.342 } },
{ config_id = 12029, shape = RegionShape.SPHERE, radius = 15, pos = { x = 46.874, y = 53.557, z = 333.571 } }
}
-- 触发器
triggers = {
{ config_id = 1012002, name = "LEVEL_TAG_CHANGE_12002", event = EventType.EVENT_LEVEL_TAG_CHANGE, source = "", condition = "", action = "action_EVENT_LEVEL_TAG_CHANGE_12002", trigger_count = 0 },
{ config_id = 1012008, name = "ANY_MONSTER_DIE_12008", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_12008", action = "action_EVENT_ANY_MONSTER_DIE_12008" },
{ config_id = 1012012, name = "ANY_MONSTER_DIE_12012", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_12012", action = "action_EVENT_ANY_MONSTER_DIE_12012" },
{ config_id = 1012015, name = "GADGET_STATE_CHANGE_12015", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "action_EVENT_GADGET_STATE_CHANGE_12015", trigger_count = 0 },
{ config_id = 1012023, name = "ENTER_REGION_12023", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_12023", trigger_count = 0 },
{ config_id = 1012024, name = "GROUP_LOAD_12024", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_12024", trigger_count = 0 },
{ config_id = 1012029, name = "ENTER_REGION_12029", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_12029", action = "action_EVENT_ENTER_REGION_12029" },
{ config_id = 1012030, name = "TIME_AXIS_PASS_12030", event = EventType.EVENT_TIME_AXIS_PASS, source = "temp", condition = "condition_EVENT_TIME_AXIS_PASS_12030", action = "action_EVENT_TIME_AXIS_PASS_12030" },
{ config_id = 1012031, name = "TIME_AXIS_PASS_12031", event = EventType.EVENT_TIME_AXIS_PASS, source = "temp1", condition = "condition_EVENT_TIME_AXIS_PASS_12031", action = "action_EVENT_TIME_AXIS_PASS_12031" }
}
-- 变量
variables = {
{ config_id = 1, name = "temp", value = 0, no_refresh = true },
{ config_id = 2, name = "change", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 12022 },
regions = { },
triggers = { "LEVEL_TAG_CHANGE_12002", "GROUP_LOAD_12024" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 12001, 12007, 12009 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 12005, 12006 },
gadgets = { 12004 },
regions = { 12029 },
triggers = { "ANY_MONSTER_DIE_12008", "ENTER_REGION_12029", "TIME_AXIS_PASS_12030" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 12011, 12014 },
gadgets = { 12010 },
regions = { },
triggers = { "ANY_MONSTER_DIE_12012", "TIME_AXIS_PASS_12031" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 12003, 12013, 12021, 12025, 12026 },
regions = { 12023 },
triggers = { "GADGET_STATE_CHANGE_12015", "ENTER_REGION_12023" },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 12016, 12017, 12018, 12019, 12020, 12027 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_LEVEL_TAG_CHANGE_12002(context, evt)
if evt.param2 == 31 then
ScriptLib.AddExtraGroupSuite(context, 0, 2)
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_12008(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_12008(context, evt)
-- 将本组内变量名为 "plat" 的变量设置为 5
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "plat", 5, 220140004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "temp" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "temp", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 12007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 创建标识为"temp",时间节点为{2}的时间轴false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "temp", {2}, false)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_12012(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_12012(context, evt)
-- 将本组内变量名为 "temp" 的变量设置为 3
if 0 ~= ScriptLib.SetGroupVariableValue(context, "temp", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "plat" 的变量设置为 6
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "plat", 6, 220140004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 12009 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 创建标识为"temp1",时间节点为{2}的时间轴false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "temp1", {2}, false)
return 0
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_12015(context, evt)
if ScriptLib.GetGadgetStateByConfigId(context, 0, 12003) == 201 and ScriptLib.GetGadgetStateByConfigId(context, 0, 12021) == 201 and ScriptLib.GetGroupVariableValue(context, "temp") == 3 then
ScriptLib.SetGroupVariableValueByGroup(context, "plat", 7, 220140004)
ScriptLib.SetGroupVariableValue(context, "temp", 4)
ScriptLib.SetGroupVariableValueByGroup(context, "monster", 1, 220140019)
ScriptLib.AddExtraGroupSuite(context, 0, 6)
ScriptLib.AddExtraGroupSuite(context, 220140019, 2)
end
return 0
end
-- 触发操作
function action_EVENT_ENTER_REGION_12023(context, evt)
if ScriptLib.GetGroupVariableValue(context, "change") == 0 and ScriptLib.GetRegionEntityCount(context, {region_eid = evt.source_eid, entity_type = EntityType.AVATAR}) == 1 then
ScriptLib.SetGroupVariableValue(context, "change", 1)
ScriptLib.ChangeToTargetLevelTag(context, 32)
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_12024(context, evt)
if ScriptLib.GetGroupVariableValue(context, "temp") == 1 then
ScriptLib.AddExtraGroupSuite(context, 0, 2)
ScriptLib.AddExtraGroupSuite(context, 0, 3)
end
if ScriptLib.GetGroupVariableValue(context, "temp") == 2 then
ScriptLib.AddExtraGroupSuite(context, 0, 2)
ScriptLib.AddExtraGroupSuite(context, 0, 3)
ScriptLib.AddExtraGroupSuite(context, 0, 4)
end
if ScriptLib.GetGroupVariableValue(context, "temp") == 3 then
ScriptLib.AddExtraGroupSuite(context, 0, 2)
ScriptLib.AddExtraGroupSuite(context, 0, 3)
ScriptLib.AddExtraGroupSuite(context, 0, 4)
ScriptLib.AddExtraGroupSuite(context, 0, 5)
end
if ScriptLib.GetGroupVariableValue(context, "temp") == 4 then
ScriptLib.AddExtraGroupSuite(context, 0, 2)
ScriptLib.AddExtraGroupSuite(context, 0, 3)
ScriptLib.AddExtraGroupSuite(context, 0, 4)
ScriptLib.AddExtraGroupSuite(context, 0, 5)
ScriptLib.AddExtraGroupSuite(context, 0, 6)
end
if ScriptLib.CheckSceneTag(context, 20140,1070 ) or ScriptLib.GetGroupVariableValue(context, "temp") == 0 then
ScriptLib.AddExtraGroupSuite(context, 0, 2)
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_12029(context, evt)
if evt.param1 ~= 12029 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_12029(context, evt)
-- 调用提示id为 60010363 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 60010363) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_12030(context, evt)
if "temp" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_12030(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 220140012, 4)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_12031(context, evt)
if "temp1" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_12031(context, evt)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 220140012, 5)
return 0
end
require "V2_8/KazuhaServeItem"

View File

@@ -0,0 +1,241 @@
-- 基础信息
local base_info = {
group_id = 220140013
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 13004, gadget_id = 70690001, pos = { x = 100.084, y = 94.557, z = 786.746 }, rot = { x = 331.405, y = 339.667, z = 0.000 }, level = 1, persistent = true },
{ config_id = 13005, gadget_id = 70690001, pos = { x = 96.835, y = 98.106, z = 795.512 }, rot = { x = 333.395, y = 339.667, z = 0.000 }, level = 1, persistent = true },
{ config_id = 13006, gadget_id = 70310297, pos = { x = 25.500, y = 80.600, z = 667.000 }, rot = { x = 332.800, y = 330.000, z = 304.000 }, level = 1, isOneoff = true, vision_level = VisionLevelType.VISION_LEVEL_LITTLE_REMOTE },
{ config_id = 13007, gadget_id = 70690001, pos = { x = 93.586, y = 101.656, z = 804.279 }, rot = { x = 333.979, y = 336.090, z = 0.887 }, level = 1, persistent = true },
{ config_id = 13008, gadget_id = 70310297, pos = { x = 116.150, y = 93.352, z = 700.720 }, rot = { x = 319.836, y = 56.101, z = 328.138 }, level = 1, isOneoff = true, vision_level = VisionLevelType.VISION_LEVEL_LITTLE_REMOTE },
{ config_id = 13009, gadget_id = 70310296, pos = { x = 107.610, y = 68.913, z = 700.179 }, rot = { x = 0.270, y = 30.516, z = 1.388 }, level = 1, persistent = true, vision_level = VisionLevelType.VISION_LEVEL_LITTLE_REMOTE },
{ config_id = 13010, gadget_id = 70310296, pos = { x = 12.490, y = 67.430, z = 647.950 }, rot = { x = 357.919, y = 289.065, z = 357.131 }, level = 1, persistent = true, vision_level = VisionLevelType.VISION_LEVEL_LITTLE_REMOTE },
{ config_id = 13012, gadget_id = 70380298, pos = { x = 44.270, y = 85.000, z = 605.720 }, rot = { x = 0.000, y = 292.846, z = 0.000 }, level = 1 },
{ config_id = 13013, gadget_id = 70690001, pos = { x = 90.338, y = 105.205, z = 813.045 }, rot = { x = 333.767, y = 339.667, z = 0.000 }, level = 1, persistent = true },
{ config_id = 13014, gadget_id = 70310297, pos = { x = 92.700, y = 75.700, z = 733.190 }, rot = { x = 343.360, y = 282.736, z = 283.730 }, level = 1, isOneoff = true, vision_level = VisionLevelType.VISION_LEVEL_LITTLE_REMOTE },
{ config_id = 13015, gadget_id = 70310296, pos = { x = 102.422, y = 68.531, z = 743.746 }, rot = { x = 0.879, y = 283.192, z = 0.836 }, level = 1, persistent = true, vision_level = VisionLevelType.VISION_LEVEL_LITTLE_REMOTE },
{ config_id = 13016, gadget_id = 70690001, pos = { x = 87.089, y = 108.754, z = 821.811 }, rot = { x = 333.685, y = 335.433, z = 1.971 }, level = 1, persistent = true },
{ config_id = 13017, gadget_id = 70690001, pos = { x = 83.841, y = 112.303, z = 830.578 }, rot = { x = 358.459, y = 353.899, z = 0.000 }, level = 1, persistent = true },
{ config_id = 13018, gadget_id = 70690029, pos = { x = 99.988, y = 76.835, z = 779.546 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 13019, gadget_id = 70690001, pos = { x = 82.794, y = 112.568, z = 840.372 }, rot = { x = 358.459, y = 353.899, z = 0.000 }, level = 1, persistent = true },
{ config_id = 13020, gadget_id = 70690029, pos = { x = 83.714, y = 94.823, z = 851.402 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 13029, gadget_id = 70310296, pos = { x = 52.220, y = 98.795, z = 977.082 }, rot = { x = 353.671, y = 304.964, z = 5.137 }, level = 1, persistent = true, vision_level = VisionLevelType.VISION_LEVEL_LITTLE_REMOTE },
{ config_id = 13030, gadget_id = 70310296, pos = { x = 89.390, y = 96.820, z = 978.089 }, rot = { x = 18.777, y = 128.700, z = 345.032 }, level = 1, persistent = true, vision_level = VisionLevelType.VISION_LEVEL_LITTLE_REMOTE }
}
-- 区域
regions = {
{ config_id = 13002, shape = RegionShape.SPHERE, radius = 10, pos = { x = 44.679, y = 84.590, z = 598.078 } }
}
-- 触发器
triggers = {
{ config_id = 1013001, name = "QUEST_FINISH_13001", event = EventType.EVENT_QUEST_FINISH, source = "4006716", condition = "", action = "action_EVENT_QUEST_FINISH_13001", trigger_count = 0 },
{ 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 = "QUEST_FINISH_13003", event = EventType.EVENT_QUEST_FINISH, source = "4006710", condition = "", action = "action_EVENT_QUEST_FINISH_13003", trigger_count = 0 },
{ config_id = 1013011, name = "GROUP_LOAD_13011", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_13011", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "temp", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 13006, 13008, 13012, 13014 },
regions = { 13002 },
triggers = { "QUEST_FINISH_13001", "ENTER_REGION_13002", "QUEST_FINISH_13003", "GROUP_LOAD_13011" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 13009 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 13015 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 13004, 13005, 13007, 13013, 13016, 13017, 13018, 13019, 13020 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 13029, 13030 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 13010 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_QUEST_FINISH_13001(context, evt)
-- 将本组内变量名为 "temp" 的变量设置为 4
if 0 ~= ScriptLib.SetGroupVariableValue(context, "temp", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 220140013, 5)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_13002(context, evt)
if evt.param1 ~= 13002 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"plat"为8
if ScriptLib.GetGroupVariableValueByGroup(context, "plat", 220140004) ~= 8 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_13002(context, evt)
-- 将本组内变量名为 "plat" 的变量设置为 9
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "plat", 9, 220140004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "temp" 的变量设置为 6
if 0 ~= ScriptLib.SetGroupVariableValue(context, "temp", 6) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 13006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 创建id为13010的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 13010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_FINISH_13003(context, evt)
-- 将本组内变量名为 "temp" 的变量设置为 3
if 0 ~= ScriptLib.SetGroupVariableValue(context, "temp", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 220140013, 4)
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_13011(context, evt)
if ScriptLib.GetGroupVariableValue(context, "temp") == 1 then
ScriptLib.AddExtraGroupSuite(context, 0, 2)
end
if ScriptLib.GetGroupVariableValue(context, "temp") == 2 then
ScriptLib.AddExtraGroupSuite(context, 0, 2)
ScriptLib.AddExtraGroupSuite(context, 0, 3)
end
if ScriptLib.GetGroupVariableValue(context, "temp") == 3 then
ScriptLib.AddExtraGroupSuite(context, 0, 2)
ScriptLib.AddExtraGroupSuite(context, 0, 3)
ScriptLib.AddExtraGroupSuite(context, 0, 4)
end
if ScriptLib.GetGroupVariableValue(context, "temp") == 4 then
ScriptLib.AddExtraGroupSuite(context, 0, 2)
ScriptLib.AddExtraGroupSuite(context, 0, 3)
ScriptLib.AddExtraGroupSuite(context, 0, 4)
ScriptLib.AddExtraGroupSuite(context, 0, 5)
end
if ScriptLib.GetGroupVariableValue(context, "temp") == 6 then
ScriptLib.AddExtraGroupSuite(context, 0, 6)
end
return 0
end

View File

@@ -0,0 +1,115 @@
-- 基础信息
local base_info = {
group_id = 220140014
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1014001, name = "QUEST_START_14001", event = EventType.EVENT_QUEST_START, source = "4006704", condition = "condition_EVENT_QUEST_START_14001", action = "action_EVENT_QUEST_START_14001", trigger_count = 0 },
{ config_id = 1014002, name = "GROUP_LOAD_14002", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_14002", action = "action_EVENT_GROUP_LOAD_14002", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "QUEST_START_14001", "GROUP_LOAD_14002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_QUEST_START_14001(context, evt)
-- 判断变量"temp"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "temp", 220140017) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_14001(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006704") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_14002(context, evt)
-- 判断变量"temp"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "temp", 220140017) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_14002(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006704") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end

View File

@@ -0,0 +1,183 @@
-- 基础信息
local base_info = {
group_id = 220140016
}
-- DEFS_MISCS
local defs = {
--本Group中发射器gadget的configID最多3个,
fireMachineList = {
16001
},
--key为发射器configIDvalue为ColorDefine
initConfig = {
[16001] = 1,
},
--Key为操作台。value为发射器。允许有多个操作台控制同一个发射器
controlRelation = {
},
--左右旋转的SelectOptionID
selectID_horizon = 613,
--上下俯仰的SelectOptionID
selectID_vertical = 612,
--定义左右旋转的步长,key为传递装置configIDvalue为GadgetState
horizon_steps = {
[16005] = {0, 102, 103, 104},
[16010] = {0, 102, 103, 104},
},
--定义上下俯仰的步长,key为传递装置configIDvalue为GadgetState
vertical_steps = {
[16005] = {0, 302, 303, 304},
[16010] = {0, 302, 303, 304},
},
serve_items = {16002}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 16001, gadget_id = 70310158, pos = { x = -35.832, y = -2.849, z = -63.227 }, rot = { x = 0.000, y = 0.000, z = 346.740 }, level = 1, state = GadgetState.GearStart },
{ config_id = 16002, gadget_id = 70290374, pos = { x = -35.831, y = -4.544, z = -36.594 }, rot = { x = 10.000, y = 25.000, z = 346.740 }, level = 1, state = GadgetState.ChestLocked, isOneoff = true },
{ config_id = 16003, gadget_id = 70310188, pos = { x = -35.644, y = -3.903, z = -36.556 }, rot = { x = 10.000, y = 25.000, z = 346.740 }, level = 1, isOneoff = true, persistent = true },
{ config_id = 16005, gadget_id = 70310159, pos = { x = -35.832, y = -2.849, z = -59.523 }, rot = { x = 355.000, y = 325.000, z = 346.740 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 16007, gadget_id = 70690027, pos = { x = -25.316, y = -7.041, z = -32.638 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16010, gadget_id = 70310159, pos = { x = -42.249, y = -1.866, z = -50.358 }, rot = { x = 9.163, y = 25.057, z = 349.164 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 16012, gadget_id = 70290373, pos = { x = -28.707, y = -5.922, z = -37.384 }, rot = { x = 347.580, y = 278.923, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1016004, name = "ANY_GADGET_DIE_16004", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "", action = "action_EVENT_ANY_GADGET_DIE_16004", trigger_count = 0 },
{ config_id = 1016006, name = "GROUP_LOAD_16006", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_16006", action = "action_EVENT_GROUP_LOAD_16006", trigger_count = 0 },
{ config_id = 1016013, name = "GADGET_STATE_CHANGE_16013", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "action_EVENT_GADGET_STATE_CHANGE_16013", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "temp", value = 0, no_refresh = true },
{ config_id = 2, 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 = { 16001, 16002, 16003, 16005, 16010, 16012 },
regions = { },
triggers = { "ANY_GADGET_DIE_16004", "GROUP_LOAD_16006", "GADGET_STATE_CHANGE_16013" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 16007 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_16004(context, evt)
if evt.param1 == 16003 then
ScriptLib.SetGroupVariableValue(context, "isLock_1", 0)
ScriptLib.SetGadgetStateByConfigId(context,16002, GadgetState.GearStart)
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_16006(context, evt)
-- 判断变量"temp"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "temp", 220140016) ~= 1 then
return false
end
-- 判断变量"load"为0
if ScriptLib.GetGroupVariableValueByGroup(context, "load", 220140003) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_16006(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220140016, 2)
return 0
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_16013(context, evt)
if evt.param2 == 16012 and ScriptLib.GetGadgetStateByConfigId(context, 0, 16012) == 201 then
ScriptLib.SetGroupVariableValueByGroup(context, "option1", 1, 220140003)
ScriptLib.SetGroupVariableValueByGroup(context, "unlock", 1, 220140017)
ScriptLib.SetGroupVariableValueByGroup(context, "isLock_1", 0, 220140017)
ScriptLib.SetGroupVariableValue(context, "temp", 1)
ScriptLib.AddExtraGroupSuite(context, 0, 2)
ScriptLib.SetGroupGadgetStateByConfigId(context, 220140017, 17002, GadgetState.Default)
ScriptLib.SetGroupGadgetStateByConfigId(context, 220140017, 17003, GadgetState.GearStart)
ScriptLib.KillEntityByConfigId(context, {group_id=220140017, config_id=17012, entity_type=EntityType.GADGET})
ScriptLib.KillEntityByConfigId(context, {group_id=220140017, config_id=17013, entity_type=EntityType.GADGET})
end
return 0
end
require "V2_8/FireMachineColorHandle"
require "V2_8/KazuhaServeItem"

View File

@@ -0,0 +1,252 @@
-- 基础信息
local base_info = {
group_id = 220140017
}
-- DEFS_MISCS
local defs = {
--本Group中发射器gadget的configID最多3个,
fireMachineList = {
17001
},
--key为发射器configIDvalue为ColorDefine
initConfig = {
[17001] = 5,
},
--Key为操作台。value为发射器。允许有多个操作台控制同一个发射器
controlRelation = {
},
--左右旋转的SelectOptionID
selectID_horizon = 613,
--上下俯仰的SelectOptionID
selectID_vertical = 612,
--定义左右旋转的步长,key为传递装置configIDvalue为GadgetState
horizon_steps = {
},
--定义上下俯仰的步长,key为传递装置configIDvalue为GadgetState
vertical_steps = {
},
serve_items = {17003}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 17002, gadget_id = 70290373, pos = { x = -7.443, y = -3.734, z = -3.207 }, rot = { x = 342.542, y = 93.984, z = 358.778 }, level = 1, state = GadgetState.ChestLocked, persistent = true },
{ config_id = 17003, gadget_id = 70290374, pos = { x = 4.122, y = 0.985, z = 3.313 }, rot = { x = 0.000, y = 0.000, z = 0.861 }, level = 1, state = GadgetState.ChestLocked, isOneoff = true },
{ config_id = 17005, gadget_id = 70690027, pos = { x = -12.403, y = -7.387, z = 4.221 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 17006, gadget_id = 70690001, pos = { x = -25.011, y = -0.479, z = 2.705 }, rot = { x = 355.845, y = 280.863, z = 0.000 }, level = 1 },
{ config_id = 17007, gadget_id = 70690001, pos = { x = -44.601, y = 0.970, z = 6.464 }, rot = { x = 355.845, y = 280.863, z = 0.000 }, level = 1 },
{ config_id = 17008, gadget_id = 70690001, pos = { x = -64.191, y = 2.419, z = 10.223 }, rot = { x = 355.845, y = 280.863, z = 0.000 }, level = 1 },
{ config_id = 17012, gadget_id = 70310386, pos = { x = -7.640, y = -3.110, z = -3.208 }, rot = { x = 342.542, y = 93.984, z = 358.778 }, level = 1, isOneoff = true, persistent = true },
{ config_id = 17013, gadget_id = 70310386, pos = { x = 4.122, y = 1.517, z = 3.313 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1017004, name = "GADGET_STATE_CHANGE_17004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_17004", action = "action_EVENT_GADGET_STATE_CHANGE_17004", trigger_count = 0 },
{ config_id = 1017009, name = "GROUP_LOAD_17009", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_17009", trigger_count = 0 },
-- 4006704任务接入+保底
{ config_id = 1017010, name = "QUEST_START_17010", event = EventType.EVENT_QUEST_START, source = "4006704", condition = "condition_EVENT_QUEST_START_17010", action = "action_EVENT_QUEST_START_17010", trigger_count = 0 },
-- 4006704任务接入+保底
{ config_id = 1017011, name = "GROUP_LOAD_17011", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_17011", action = "action_EVENT_GROUP_LOAD_17011", trigger_count = 0 },
{ config_id = 1017014, name = "GROUP_LOAD_17014", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_17014", action = "action_EVENT_GROUP_LOAD_17014", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "temp", value = 0, no_refresh = true },
{ config_id = 2, name = "unlock", value = 0, no_refresh = true },
{ config_id = 3, name = "isLock_1", value = 1, no_refresh = true }
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 17001, gadget_id = 70310158, pos = { x = -0.567, y = -1.878, z = -0.670 }, rot = { x = 357.805, y = 7.383, z = 16.469 }, level = 1, state = GadgetState.GearAction2 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 17002, 17003, 17012, 17013 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_17004", "GROUP_LOAD_17009", "QUEST_START_17010", "GROUP_LOAD_17011", "GROUP_LOAD_17014" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 17005, 17006, 17007, 17008 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_17004(context, evt)
if 17002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_17004(context, evt)
-- 将本组内变量名为 "option2" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "option2", 1, 220140003) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "temp" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "temp", 1, 220140017) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220140017, 2)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006704") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_17009(context, evt)
if ScriptLib.GetGroupVariableValue(context, "temp") == 1 and ScriptLib.GetGroupVariableValueByGroup(context, "load", 220140003) == 0 then
ScriptLib.AddExtraGroupSuite(context, 0, 2)
end
if ScriptLib.GetGadgetStateByConfigId(context, 0, 17002) == 101 and ScriptLib.GetGroupVariableValue(context, "unlock") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,17002, GadgetState.Default)
ScriptLib.KillEntityByConfigId(context, {group_id=220140017, config_id=17012, entity_type=EntityType.GADGET})
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_17010(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220140017, 17002) then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_17010(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006704") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_17011(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220140017, 17002) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_17011(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006704") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_17014(context, evt)
-- 判断变量"unlock"为1
if ScriptLib.GetGroupVariableValue(context, "unlock") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_17014(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 17013 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
require "V2_8/FireMachineColorHandle"
require "V2_8/KazuhaServeItem"

View File

@@ -0,0 +1,356 @@
-- 基础信息
local base_info = {
group_id = 220140018
}
-- DEFS_MISCS
local defs = {
--本Group中发射器gadget的configID最多3个,
fireMachineList = {
18002
},
--key为发射器configIDvalue为ColorDefine
initConfig = {
[18002] = 1,
},
--Key为操作台。value为发射器。允许有多个操作台控制同一个发射器
controlRelation = {
},
--左右旋转的SelectOptionID
selectID_horizon = 613,
--上下俯仰的SelectOptionID
selectID_vertical = 612,
--定义左右旋转的步长,key为传递装置configIDvalue为GadgetState
horizon_steps = {
[18003] = {0, 102, 103, 104},
[18004] = {0, 102, 103, 104},
[18005] = {0, 102, 103, 104},
[18006] = {0, 102, 103, 104},
[18007] = {0, 102, 103, 104},
[18008] = {0, 102, 103, 104},
},
--定义上下俯仰的步长,key为传递装置configIDvalue为GadgetState
vertical_steps = {
[18003] = {0, 302, 303, 304},
[18004] = {0, 302, 303, 304},
[18005] = {0, 302, 303, 304},
[18006] = {0, 302, 303, 304},
[18007] = {0, 302, 303, 304},
[18008] = {0, 302, 303, 304},
},
--本Group用哪组LevelTag控制请查LevelTagData表
levelTagGroupID = 10,
--是否由re-quire控制切suite填0则不需要配置switchByLevelTag_suites
switchByLevelTag = 1,
--切入该LevelTag时加载且仅加载的suite。
--注意被此操作Remove掉的物件不会保留GadgetState
switchByLevelTag_suites = {
["2_8_Kazuha03_01"] = {},
["2_8_Kazuha03_02"] = {2},
["2_8_Kazuha03_03"] = {2},
["2_8_Kazuha03_05"] = {2},
},
--需要保存gadgetState的物件configID最多9个
saved_gadget =
{
18009,18012
},
serve_items = {18009}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 18001, gadget_id = 70360001, pos = { x = 0.037, y = 38.498, z = 278.743 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18002, gadget_id = 70310158, pos = { x = -0.823, y = 38.497, z = 279.028 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 18003, gadget_id = 70310159, pos = { x = -0.609, y = 38.497, z = 283.913 }, rot = { x = 0.000, y = 315.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 18004, gadget_id = 70310159, pos = { x = -5.036, y = 38.497, z = 288.340 }, rot = { x = 0.000, y = 45.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 18005, gadget_id = 70310159, pos = { x = 3.824, y = 38.497, z = 297.200 }, rot = { x = 0.000, y = 315.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 18006, gadget_id = 70310159, pos = { x = -8.962, y = 38.497, z = 309.986 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 612 } } },
{ config_id = 18009, gadget_id = 70290374, pos = { x = -8.789, y = 38.977, z = 316.940 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.ChestLocked, isOneoff = true },
{ config_id = 18010, gadget_id = 70310188, pos = { x = -8.789, y = 39.779, z = 316.940 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true },
{ config_id = 18012, gadget_id = 70290373, pos = { x = -1.337, y = 44.623, z = 339.549 }, rot = { x = 358.156, y = 283.304, z = 9.922 }, level = 1, persistent = true },
{ config_id = 18015, gadget_id = 70211111, pos = { x = -4.843, y = 38.636, z = 277.459 }, rot = { x = 0.000, y = 57.658, z = 0.000 }, level = 16, drop_tag = "解谜中级群岛", isOneoff = true, persistent = true },
{ config_id = 18019, gadget_id = 70211001, pos = { x = 51.680, y = 55.108, z = 337.431 }, rot = { x = 0.000, y = 248.537, z = 0.000 }, level = 16, drop_tag = "战斗低级群岛", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1018007, name = "GADGET_STATE_CHANGE_18007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_18007", action = "action_EVENT_GADGET_STATE_CHANGE_18007", trigger_count = 0 },
-- 4006708 任务保底
{ config_id = 1018008, name = "QUEST_START_18008", event = EventType.EVENT_QUEST_START, source = "4006708", condition = "condition_EVENT_QUEST_START_18008", action = "action_EVENT_QUEST_START_18008", trigger_count = 0 },
{ config_id = 1018011, name = "ANY_GADGET_DIE_18011", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_18011", action = "action_EVENT_ANY_GADGET_DIE_18011", trigger_count = 0 },
{ config_id = 1018013, name = "GADGET_STATE_CHANGE_18013", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_18013", action = "action_EVENT_GADGET_STATE_CHANGE_18013", trigger_count = 0 },
{ config_id = 1018014, name = "LUA_NOTIFY_18014", event = EventType.EVENT_LUA_NOTIFY, source = "", condition = "condition_EVENT_LUA_NOTIFY_18014", action = "action_EVENT_LUA_NOTIFY_18014", trigger_count = 0 },
{ config_id = 1018016, name = "TIME_AXIS_PASS_18016", event = EventType.EVENT_TIME_AXIS_PASS, source = "message", condition = "condition_EVENT_TIME_AXIS_PASS_18016", action = "action_EVENT_TIME_AXIS_PASS_18016", trigger_count = 0 },
-- 4006708 包括了任务保底
{ config_id = 1018017, name = "GROUP_LOAD_18017", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_18017", trigger_count = 0 },
{ config_id = 1018018, name = "TIME_AXIS_PASS_18018", event = EventType.EVENT_TIME_AXIS_PASS, source = "temp", condition = "condition_EVENT_TIME_AXIS_PASS_18018", action = "action_EVENT_TIME_AXIS_PASS_18018", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "message", value = 0, no_refresh = true },
{ config_id = 2, 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 = { 18001 },
regions = { },
triggers = { "QUEST_START_18008", "GROUP_LOAD_18017" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 18002, 18003, 18004, 18005, 18006, 18009, 18010, 18012, 18015, 18019 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_18007", "ANY_GADGET_DIE_18011", "GADGET_STATE_CHANGE_18013", "LUA_NOTIFY_18014", "TIME_AXIS_PASS_18016", "TIME_AXIS_PASS_18018" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_18007(context, evt)
if 18009 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_18007(context, evt)
-- 将本组内变量名为 "extra" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "extra", 2, 220140004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_18008(context, evt)
-- 判断变量"message"为1
if ScriptLib.GetGroupVariableValue(context, "message") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_18008(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006708") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_18011(context, evt)
if 18010 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_18011(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为 18009 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 18009, 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_18013(context, evt)
if 18012 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_18013(context, evt)
-- 将本组内变量名为 "temp" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "temp", 1, 220140012) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "plat" 的变量设置为 4
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "plat", 4, 220140004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "message" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "message", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220140012, monsters = {}, gadgets = {12001} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创建标识为"message",时间节点为{1}的时间轴false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "message", {1}, false)
-- 创建标识为"temp",时间节点为{2,4}的时间轴false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "temp", {2,4}, false)
return 0
end
-- 触发条件
function condition_EVENT_LUA_NOTIFY_18014(context, evt)
-- 判断变量"plat"为2
if ScriptLib.GetGroupVariableValueByGroup(context, "plat", 220140004) ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LUA_NOTIFY_18014(context, evt)
-- 将本组内变量名为 "plat" 的变量设置为 3
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "plat", 3, 220140004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_18016(context, evt)
if "message" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_18016(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006708") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_18017(context, evt)
if ScriptLib.CheckSceneTag(context, 20140,1070 ) then
ScriptLib.AddExtraGroupSuite(context, 0, 2)
end
if ScriptLib.GetGroupVariableValue(context, "message") == 1 then
ScriptLib.AddQuestProgress(context, "4006708")
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_18018(context, evt)
if "temp" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_18018(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220140012, 3)
return 0
end
require "V2_8/FireMachineColorHandle"
require "V2_8/DreamLandSuiteState"
require "V2_8/KazuhaServeItem"

View File

@@ -0,0 +1,268 @@
-- 基础信息
local base_info = {
group_id = 220140019
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 19003, monster_id = 25050301, pos = { x = 35.685, y = 87.130, z = 564.388 }, rot = { x = 0.000, y = 183.055, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 19004, monster_id = 25050301, pos = { x = 41.647, y = 87.130, z = 563.990 }, rot = { x = 0.000, y = 196.572, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 19005, monster_id = 25050401, pos = { x = 33.984, y = 87.130, z = 557.394 }, rot = { x = 0.000, y = 183.547, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 19006, monster_id = 25050401, pos = { x = 40.313, y = 87.130, z = 557.074 }, rot = { x = 0.000, y = 197.097, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 19009, monster_id = 25080401, pos = { x = 29.513, y = 87.170, z = 570.502 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 },
{ config_id = 19010, monster_id = 25080401, pos = { x = 48.460, y = 87.170, z = 567.808 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 },
{ config_id = 19011, monster_id = 25050301, pos = { x = 43.652, y = 87.130, z = 571.497 }, rot = { x = 0.000, y = 195.061, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 19013, monster_id = 25050301, pos = { x = 35.276, y = 87.130, z = 572.781 }, rot = { x = 0.000, y = 195.061, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 19015, monster_id = 25050401, pos = { x = 39.826, y = 87.130, z = 574.706 }, rot = { x = 0.000, y = 188.518, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 19007, gadget_id = 70360001, pos = { x = 49.053, y = 87.130, z = 556.647 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 19016, gadget_id = 70950011, pos = { x = 22.506, y = 87.300, z = 588.652 }, rot = { x = 0.000, y = 7.057, z = 0.000 }, level = 1, isOneoff = true },
{ config_id = 19017, gadget_id = 70950011, pos = { x = 40.617, y = 87.300, z = 586.410 }, rot = { x = 0.000, y = 7.057, z = 0.000 }, level = 1, isOneoff = true },
{ config_id = 19018, gadget_id = 70950011, pos = { x = 59.494, y = 87.300, z = 584.073 }, rot = { x = 0.000, y = 7.057, z = 0.000 }, level = 1, isOneoff = true },
{ config_id = 19021, gadget_id = 70211011, pos = { x = 43.061, y = 85.400, z = 598.128 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 16, drop_tag = "战斗中级群岛", isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 19012, shape = RegionShape.CUBIC, size = { x = 30.000, y = 15.000, z = 15.000 }, pos = { x = 46.727, y = 85.609, z = 599.157 } },
{ config_id = 19014, shape = RegionShape.CUBIC, size = { x = 8.000, y = 15.000, z = 8.000 }, pos = { x = 120.806, y = 85.769, z = 750.476 } }
}
-- 触发器
triggers = {
{ config_id = 1019001, name = "QUEST_START_19001", event = EventType.EVENT_QUEST_START, source = "4006709", condition = "condition_EVENT_QUEST_START_19001", action = "action_EVENT_QUEST_START_19001", trigger_count = 0 },
{ config_id = 1019002, name = "GROUP_LOAD_19002", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_19002", action = "action_EVENT_GROUP_LOAD_19002", trigger_count = 0 },
{ config_id = 1019008, name = "ANY_MONSTER_DIE_19008", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_19008", action = "action_EVENT_ANY_MONSTER_DIE_19008", trigger_count = 0 },
{ config_id = 1019012, name = "ENTER_REGION_19012", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_19012", action = "action_EVENT_ENTER_REGION_19012", trigger_count = 0 },
{ config_id = 1019014, name = "ENTER_REGION_19014", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_19014", action = "action_EVENT_ENTER_REGION_19014", trigger_count = 0 },
{ config_id = 1019019, name = "GROUP_LOAD_19019", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_19019", trigger_count = 0 },
{ config_id = 1019020, name = "ANY_MONSTER_DIE_19020", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_19020", action = "action_EVENT_ANY_MONSTER_DIE_19020", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "monster", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 19007, 19021 },
regions = { 19012, 19014 },
triggers = { "QUEST_START_19001", "GROUP_LOAD_19002", "ENTER_REGION_19012", "ENTER_REGION_19014", "GROUP_LOAD_19019" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 19003, 19004, 19005, 19006 },
gadgets = { 19016, 19017, 19018 },
regions = { },
triggers = { "ANY_MONSTER_DIE_19008" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 19009, 19010, 19011, 19013, 19015 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_19020" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_QUEST_START_19001(context, evt)
-- 判断变量"monster"为3
if ScriptLib.GetGroupVariableValue(context, "monster") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_19001(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006709") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_19002(context, evt)
-- 判断变量"monster"为3
if ScriptLib.GetGroupVariableValue(context, "monster") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_19002(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006709") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_19008(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"monster"为1
if ScriptLib.GetGroupVariableValue(context, "monster") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_19008(context, evt)
-- 将本组内变量名为 "monster" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "monster", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220140019, 3)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_19012(context, evt)
if evt.param1 ~= 19012 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_19012(context, evt)
ScriptLib.ActivateDungeonCheckPoint(context, 8)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_19014(context, evt)
if evt.param1 ~= 19014 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_19014(context, evt)
ScriptLib.ActivateDungeonCheckPoint(context, 10)
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_19019(context, evt)
if ScriptLib.CheckSceneTag(context, 20140,1070 ) then
if ScriptLib.GetGroupVariableValue(context, "monster") == 1 or ScriptLib.GetGroupVariableValue(context, "monster") == 2 then
ScriptLib.RefreshGroup(context, { suite=1})
ScriptLib.SetGroupVariableValue(context, "monster", 1)
ScriptLib.AddExtraGroupSuite(context, 0, 2)
end
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_19020(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_19020(context, evt)
-- 将本组内变量名为 "plat" 的变量设置为 8
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "plat", 8, 220140004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "monster" 的变量设置为 3
if 0 ~= ScriptLib.SetGroupVariableValue(context, "monster", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006709") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220140019, 2)
return 0
end

View File

@@ -0,0 +1,231 @@
-- 基础信息
local base_info = {
group_id = 220140020
}
-- DEFS_MISCS
local defs = {
--本Group中发射器gadget的configID最多3个,
fireMachineList = {
20001
},
--key为发射器configIDvalue为ColorDefine
initConfig = {
[20001] = 2,
},
--Key为操作台。value为发射器。允许有多个操作台控制同一个发射器
controlRelation = {
},
--左右旋转的SelectOptionID
selectID_horizon = 613,
--上下俯仰的SelectOptionID
selectID_vertical = 612,
--定义左右旋转的步长,key为传递装置configIDvalue为GadgetState
horizon_steps = {
[20002] = {0, 102, 103, 104},
[20003] = {0, 102, 103, 104},
[20004] = {0, 102, 103, 104},
[20005] = {0, 102, 103, 104},
[20006] = {0, 102, 103, 104},
},
--定义上下俯仰的步长,key为传递装置configIDvalue为GadgetState
vertical_steps = {
[20002] = {0, 302, 303, 304},
[20003] = {0, 302, 303, 304},
[20004] = {0, 302, 303, 304},
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 20003, monster_id = 25080101, pos = { x = 27.130, y = 84.544, z = 665.036 }, rot = { x = 0.000, y = 81.486, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1003 },
{ config_id = 20004, monster_id = 25080101, pos = { x = 31.694, y = 83.982, z = 661.314 }, rot = { x = 0.000, y = 351.758, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1003 },
{ config_id = 20005, monster_id = 25080201, pos = { x = 33.253, y = 84.842, z = 669.438 }, rot = { x = 0.000, y = 215.403, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1003 },
{ config_id = 20009, monster_id = 25080201, pos = { x = 26.209, y = 83.388, z = 652.783 }, rot = { x = 0.000, y = 115.163, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 20001, gadget_id = 70310158, pos = { x = 22.146, y = 83.538, z = 654.692 }, rot = { x = 0.443, y = 40.766, z = 359.897 }, level = 1, persistent = true },
{ config_id = 20002, gadget_id = 70310386, pos = { x = 22.181, y = 84.117, z = 654.661 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true, persistent = true },
{ config_id = 20008, gadget_id = 70310188, pos = { x = 31.034, y = 84.823, z = 665.032 }, rot = { x = 357.192, y = 358.889, z = 356.975 }, level = 1, state = GadgetState.GearStart, isOneoff = true, persistent = true },
{ config_id = 20013, gadget_id = 70380298, pos = { x = 41.658, y = 85.740, z = 669.852 }, rot = { x = 4.924, y = 123.295, z = 0.668 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1020006, name = "ANY_MONSTER_DIE_20006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_20006", action = "action_EVENT_ANY_MONSTER_DIE_20006", trigger_count = 0 },
{ config_id = 1020012, name = "ANY_GADGET_DIE_20012", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_20012", action = "action_EVENT_ANY_GADGET_DIE_20012", trigger_count = 0 },
{ config_id = 1020014, name = "GROUP_LOAD_20014", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_20014", action = "action_EVENT_GROUP_LOAD_20014", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "plat", value = 1, no_refresh = true },
{ config_id = 2, name = "chest", value = 0, no_refresh = true },
{ config_id = 3, name = "temp", value = 0, no_refresh = true }
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1020015, name = "AVATAR_NEAR_PLATFORM_20015", event = EventType.EVENT_AVATAR_NEAR_PLATFORM, source = "", condition = "condition_EVENT_AVATAR_NEAR_PLATFORM_20015", action = "action_EVENT_AVATAR_NEAR_PLATFORM_20015", trigger_count = 0 },
{ config_id = 1020016, name = "AVATAR_NEAR_PLATFORM_20016", event = EventType.EVENT_AVATAR_NEAR_PLATFORM, source = "", condition = "condition_EVENT_AVATAR_NEAR_PLATFORM_20016", action = "action_EVENT_AVATAR_NEAR_PLATFORM_20016", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 20001, 20013 },
regions = { },
triggers = { "ANY_MONSTER_DIE_20006", "ANY_GADGET_DIE_20012", "GROUP_LOAD_20014" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 20003, 20004, 20005, 20009 },
gadgets = { 20002, 20008 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_20006(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220140020) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_20006(context, evt)
-- 将本组内变量名为 "temp" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "temp", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将configid为 20001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 20001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 20002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_20012(context, evt)
if 20008 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_20012(context, evt)
-- 将本组内变量名为 "temp" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "temp", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "plat" 的变量设置为 10
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "plat", 10, 220140004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_20014(context, evt)
-- 判断变量"temp"为1
if ScriptLib.GetGroupVariableValue(context, "temp") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_20014(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220140020, 2)
-- 将configid为 20001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 20001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
require "V2_8/FireMachineColorHandle"

View File

@@ -0,0 +1,581 @@
-- 基础信息
local base_info = {
group_id = 220140021
}
-- DEFS_MISCS
local defs = {
--本Group中发射器gadget的configID最多3个,
fireMachineList = {
21002
},
--key为发射器configIDvalue为ColorDefine
initConfig = {
[21002] = 1,
},
--Key为操作台。value为发射器。允许有多个操作台控制同一个发射器
controlRelation = {
},
--左右旋转的SelectOptionID
selectID_horizon = 613,
--上下俯仰的SelectOptionID
selectID_vertical = 612,
--定义左右旋转的步长,key为传递装置configIDvalue为GadgetState
horizon_steps = {
},
--定义上下俯仰的步长,key为传递装置configIDvalue为GadgetState
vertical_steps = {
},
serve_items = {21003,21004}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 21021, monster_id = 25100101, pos = { x = 113.756, y = 85.400, z = 756.963 }, rot = { x = 0.000, y = 110.030, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 21002, gadget_id = 70310158, pos = { x = 126.963, y = 85.398, z = 676.801 }, rot = { x = 0.000, y = 341.424, z = 0.000 }, level = 1, persistent = true },
{ config_id = 21003, gadget_id = 70290374, pos = { x = 125.038, y = 85.424, z = 681.689 }, rot = { x = 0.000, y = 341.424, z = 0.000 }, level = 1, state = GadgetState.ChestLocked, isOneoff = true },
{ config_id = 21004, gadget_id = 70290374, pos = { x = 123.243, y = 85.398, z = 687.447 }, rot = { x = 0.000, y = 341.424, z = 0.000 }, level = 1, state = GadgetState.ChestLocked, isOneoff = true },
{ config_id = 21005, gadget_id = 70310188, pos = { x = 125.052, y = 86.289, z = 681.614 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, isOneoff = true, persistent = true },
{ config_id = 21006, gadget_id = 70310188, pos = { x = 123.227, y = 86.257, z = 687.323 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop, isOneoff = true, persistent = true },
{ config_id = 21007, gadget_id = 70360001, pos = { x = 126.963, y = 85.398, z = 676.801 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 602 } } },
{ config_id = 21008, gadget_id = 70380298, pos = { x = 151.380, y = 85.000, z = 696.573 }, rot = { x = 0.000, y = 340.741, z = 0.000 }, level = 1 },
{ config_id = 21013, gadget_id = 70290373, pos = { x = 107.996, y = 85.400, z = 765.950 }, rot = { x = 0.000, y = 125.525, z = 0.000 }, level = 1, state = GadgetState.ChestLocked, persistent = true },
{ config_id = 21014, gadget_id = 70211101, pos = { x = 121.422, y = 85.398, z = 693.287 }, rot = { x = 0.000, y = 161.000, z = 0.000 }, level = 16, drop_tag = "解谜低级群岛", state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 21015, gadget_id = 70310188, pos = { x = 121.300, y = 85.942, z = 692.963 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true, persistent = true },
{ config_id = 21017, gadget_id = 70290373, pos = { x = 103.451, y = 85.443, z = 759.472 }, rot = { x = 0.000, y = 125.885, z = 0.000 }, level = 1, state = GadgetState.ChestLocked, persistent = true },
{ config_id = 21019, gadget_id = 70310386, pos = { x = 108.006, y = 85.912, z = 766.006 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 21020, gadget_id = 70310386, pos = { x = 103.529, y = 86.086, z = 759.515 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 21025, gadget_id = 70380298, pos = { x = 109.150, y = 85.910, z = 766.070 }, rot = { x = 0.000, y = 33.295, z = 0.000 }, level = 1, persistent = true },
{ config_id = 21037, gadget_id = 70710520, pos = { x = 98.973, y = 85.496, z = 754.247 }, rot = { x = 0.000, y = 164.542, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1021001, name = "GROUP_LOAD_21001", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_21001", action = "action_EVENT_GROUP_LOAD_21001", trigger_count = 0 },
{ config_id = 1021009, name = "TIME_AXIS_PASS_21009", event = EventType.EVENT_TIME_AXIS_PASS, source = "fire", condition = "condition_EVENT_TIME_AXIS_PASS_21009", action = "action_EVENT_TIME_AXIS_PASS_21009" },
{ config_id = 1021010, name = "TIME_AXIS_PASS_21010", event = EventType.EVENT_TIME_AXIS_PASS, source = "fire", condition = "condition_EVENT_TIME_AXIS_PASS_21010", action = "action_EVENT_TIME_AXIS_PASS_21010" },
{ config_id = 1021011, name = "SELECT_OPTION_21011", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_21011", action = "action_EVENT_SELECT_OPTION_21011" },
{ config_id = 1021012, name = "GROUP_LOAD_21012", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_21012", trigger_count = 0 },
{ config_id = 1021016, name = "TIME_AXIS_PASS_21016", event = EventType.EVENT_TIME_AXIS_PASS, source = "fire", condition = "condition_EVENT_TIME_AXIS_PASS_21016", action = "action_EVENT_TIME_AXIS_PASS_21016" },
{ config_id = 1021018, name = "VARIABLE_CHANGE_21018", event = EventType.EVENT_VARIABLE_CHANGE, source = "fire", condition = "condition_EVENT_VARIABLE_CHANGE_21018", action = "action_EVENT_VARIABLE_CHANGE_21018", trigger_count = 0 },
{ config_id = 1021022, name = "GROUP_LOAD_21022", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_21022", trigger_count = 0 },
{ config_id = 1021023, name = "ANY_MONSTER_DIE_21023", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_21023", action = "action_EVENT_ANY_MONSTER_DIE_21023", trigger_count = 0 },
{ config_id = 1021024, name = "GADGET_STATE_CHANGE_21024", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "action_EVENT_GADGET_STATE_CHANGE_21024", trigger_count = 0 },
{ config_id = 1021026, name = "GROUP_LOAD_21026", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_21026", trigger_count = 0 },
{ config_id = 1021027, name = "GROUP_LOAD_21027", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_21027", trigger_count = 0 },
-- 4006717 任务保底
{ config_id = 1021028, name = "QUEST_START_21028", event = EventType.EVENT_QUEST_START, source = "4006717", condition = "condition_EVENT_QUEST_START_21028", action = "action_EVENT_QUEST_START_21028", trigger_count = 0 },
-- 4006717 任务保底
{ config_id = 1021029, name = "GROUP_LOAD_21029", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_21029", action = "action_EVENT_GROUP_LOAD_21029", trigger_count = 0 },
{ config_id = 1021030, name = "GROUP_LOAD_21030", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_21030", trigger_count = 0 },
{ config_id = 1021031, name = "GROUP_LOAD_21031", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_21031", trigger_count = 0 },
{ config_id = 1021032, name = "GROUP_LOAD_21032", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_21032", trigger_count = 0 },
{ config_id = 1021033, name = "ANY_MONSTER_DIE_21033", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_21033", action = "action_EVENT_ANY_MONSTER_DIE_21033", trigger_count = 0 },
{ config_id = 1021034, name = "GROUP_LOAD_21034", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_21034", trigger_count = 0 },
{ config_id = 1021035, name = "GROUP_LOAD_21035", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_21035", trigger_count = 0 },
{ config_id = 1021036, name = "GROUP_LOAD_21036", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_21036", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "temp", value = 0, no_refresh = true },
{ config_id = 2, name = "fire", value = 0, no_refresh = true },
{ config_id = 3, name = "isLock_1", value = 1, no_refresh = true },
{ config_id = 4, name = "isLock_2", value = 1, no_refresh = true },
{ config_id = 5, name = "monster", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 21008, 21013, 21017, 21019, 21020, 21037 },
regions = { },
triggers = { "GROUP_LOAD_21001", "GROUP_LOAD_21012", "VARIABLE_CHANGE_21018", "GROUP_LOAD_21022", "GADGET_STATE_CHANGE_21024", "GROUP_LOAD_21026", "GROUP_LOAD_21027", "QUEST_START_21028", "GROUP_LOAD_21029", "GROUP_LOAD_21030", "GROUP_LOAD_21031", "GROUP_LOAD_21032", "GROUP_LOAD_21034", "GROUP_LOAD_21035", "GROUP_LOAD_21036" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 21002, 21003, 21004, 21005, 21006, 21014, 21015 },
regions = { },
triggers = { "TIME_AXIS_PASS_21009", "TIME_AXIS_PASS_21010", "SELECT_OPTION_21011", "TIME_AXIS_PASS_21016" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 21021 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_21023", "ANY_MONSTER_DIE_21033" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GROUP_LOAD_21001(context, evt)
-- 判断变量"monster"为1
if ScriptLib.GetGroupVariableValue(context, "monster") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_21001(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220140021, 3)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_21009(context, evt)
if "fire" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_21009(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 21005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 将configid为 21003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 21003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_21010(context, evt)
if "fire" ~= evt.source_name or 2 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_21010(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 21006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 将configid为 21004 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 21004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_21011(context, evt)
-- 判断是gadgetid 21007 option_id 602
if 21007 ~= evt.param1 then
return false
end
if 602 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_21011(context, evt)
-- 将本组内变量名为 "temp" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "temp", 2, 220140013) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "plat" 的变量设置为 12
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "plat", 12, 220140004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "temp" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "temp", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "monster" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "monster", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "isLock_1" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isLock_1", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "isLock_2" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isLock_2", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 创建标识为"fire",时间节点为{1,2,3}的时间轴false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "fire", {1,2,3}, false)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220140021, 3)
-- 触发镜头注目,注目位置为坐标{x=125, y=86.5, z=681.6}持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=125, y=86.5, z=681.6}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 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
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220140021, EntityType.GADGET, 21007 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_21012(context, evt)
if ScriptLib.GetGroupVariableValue(context, "temp") == 1 or ScriptLib.GetGroupVariableValue(context, "temp") == 2 then
ScriptLib.AddExtraGroupSuite(context, 0, 2)
if ScriptLib.GetGroupVariableValue(context, "fire") == 1 and ScriptLib.GetGroupVariableValue(context, "temp") == 1 then
ScriptLib.CreateGadget(context, {config_id=21007})
end
if ScriptLib.GetGroupVariableValue(context, "temp") == 2 then
ScriptLib.SetGadgetStateByConfigId(context,21014, GadgetState.Default)
end
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_21016(context, evt)
if "fire" ~= evt.source_name or 3 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_21016(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 21015 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 将configid为 21014 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 21014, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_21018(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"fire"为1
if ScriptLib.GetGroupVariableValue(context, "fire") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_21018(context, evt)
-- 创建id为21007的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 21007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_21022(context, evt)
if ScriptLib.GetGroupVariableValue(context, "temp") == 2 then
ScriptLib.KillEntityByConfigId(context, {group_id=220140021, config_id=21005, entity_type=EntityType.GADGET})
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_21023(context, evt)
if 21021 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_21023(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 21020 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_21024(context, evt)
if ScriptLib.GetGadgetStateByConfigId(context, 0, 21013) == 201 and ScriptLib.GetGadgetStateByConfigId(context, 0, 21017) == 201 and ScriptLib.GetGroupVariableValue(context, "monster") == 2 then
ScriptLib.SetGroupVariableValueByGroup(context, "plat", 14, 220140004)
ScriptLib.SetGroupVariableValue(context, "monster", 3)
ScriptLib.AddQuestProgress(context, "4006717")
ScriptLib.CreateGadget(context, {config_id=21025})
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_21026(context, evt)
if ScriptLib.GetGroupVariableValue(context, "temp") == 2 then
ScriptLib.KillEntityByConfigId(context, {group_id=220140021, config_id=21006, entity_type=EntityType.GADGET})
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_21027(context, evt)
if ScriptLib.GetGroupVariableValue(context, "temp") == 2 then
ScriptLib.KillEntityByConfigId(context, {group_id=220140021, config_id=21015, entity_type=EntityType.GADGET})
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_21028(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220140021, 21013) then
return false
end
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220140021, 21017) then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_21028(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006717") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_21029(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220140021, 21013) then
return false
end
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220140021, 21017) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_21029(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006717") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_21030(context, evt)
if ScriptLib.GetGroupVariableValue(context, "monster") == 2 then
if ScriptLib.GetGadgetStateByConfigId(context, 0, 21013) ~= 201 then
ScriptLib.SetGadgetStateByConfigId(context,21013, GadgetState.Default)
end
if ScriptLib.GetGadgetStateByConfigId(context, 0, 21017) ~= 201 then
ScriptLib.SetGadgetStateByConfigId(context,21017, GadgetState.Default)
end
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_21031(context, evt)
if ScriptLib.GetGroupVariableValue(context, "monster") == 2 then
ScriptLib.KillEntityByConfigId(context, {group_id=220140021, config_id=21019, entity_type=EntityType.GADGET})
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_21032(context, evt)
if ScriptLib.GetGroupVariableValue(context, "monster") == 2 then
ScriptLib.KillEntityByConfigId(context, {group_id=220140021, config_id=21020, entity_type=EntityType.GADGET})
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_21033(context, evt)
if 21021 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_21033(context, evt)
-- 将本组内变量名为 "monster" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "monster", 2, 220140021) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将configid为 21013 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 21013, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 21017 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 21017, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 21019 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_21034(context, evt)
if ScriptLib.GetGroupVariableValue(context, "monster") == 3 then
ScriptLib.SetGadgetStateByConfigId(context,21013, GadgetState.GearStart)
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_21035(context, evt)
if ScriptLib.GetGroupVariableValue(context, "monster") == 3 then
ScriptLib.SetGadgetStateByConfigId(context,21017, GadgetState.GearStart)
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_21036(context, evt)
if ScriptLib.GetGroupVariableValue(context, "monster") == 3 then
ScriptLib.CreateGadget(context, {config_id=21025})
end
return 0
end
require "V2_8/FireMachineColorHandle"
require "V2_8/KazuhaServeItem"

View File

@@ -0,0 +1,336 @@
-- 基础信息
local base_info = {
group_id = 220140023
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 23003, monster_id = 25080401, pos = { x = 69.876, y = 106.970, z = 902.085 }, rot = { x = 0.000, y = 174.999, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 },
{ config_id = 23004, monster_id = 25080401, pos = { x = 75.242, y = 106.970, z = 902.317 }, rot = { x = 0.000, y = 174.999, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 },
{ config_id = 23005, monster_id = 25050301, pos = { x = 65.595, y = 106.980, z = 904.721 }, rot = { x = 0.000, y = 182.476, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 23008, monster_id = 25050301, pos = { x = 79.764, y = 106.980, z = 904.418 }, rot = { x = 0.000, y = 174.121, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 23010, monster_id = 25050401, pos = { x = 70.360, y = 106.970, z = 889.085 }, rot = { x = 0.000, y = 180.207, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 23012, monster_id = 25050301, pos = { x = 67.020, y = 106.970, z = 892.492 }, rot = { x = 0.000, y = 177.524, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 23013, monster_id = 25050301, pos = { x = 79.373, y = 106.970, z = 892.736 }, rot = { x = 0.000, y = 191.540, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 23020, monster_id = 25050401, pos = { x = 76.256, y = 106.986, z = 889.448 }, rot = { x = 0.000, y = 169.537, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 23027, monster_id = 25080401, pos = { x = 78.837, y = 106.995, z = 877.886 }, rot = { x = 0.000, y = 170.442, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 },
{ config_id = 23028, monster_id = 25080401, pos = { x = 66.917, y = 106.995, z = 877.806 }, rot = { x = 0.000, y = 159.848, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 23002, gadget_id = 70360001, pos = { x = 73.903, y = 106.970, z = 888.972 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 23014, gadget_id = 70211012, pos = { x = 76.157, y = 107.090, z = 921.019 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 16, drop_tag = "战斗中级群岛", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 23001, shape = RegionShape.SPHERE, radius = 30, pos = { x = 72.845, y = 106.970, z = 889.430 } },
{ config_id = 23007, shape = RegionShape.SPHERE, radius = 5, pos = { x = 72.845, y = 106.970, z = 921.216 } }
}
-- 触发器
triggers = {
{ config_id = 1023001, name = "ENTER_REGION_23001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_23001", trigger_count = 0 },
-- 4006711 任务保底
{ config_id = 1023006, name = "QUEST_START_23006", event = EventType.EVENT_QUEST_START, source = "4006711", condition = "condition_EVENT_QUEST_START_23006", action = "action_EVENT_QUEST_START_23006", trigger_count = 0 },
{ config_id = 1023007, name = "ENTER_REGION_23007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_23007", action = "action_EVENT_ENTER_REGION_23007", trigger_count = 0 },
{ config_id = 1023009, name = "ANY_MONSTER_DIE_23009", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_23009", action = "action_EVENT_ANY_MONSTER_DIE_23009", trigger_count = 0 },
{ config_id = 1023011, name = "GROUP_LOAD_23011", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_23011", trigger_count = 0 },
-- 4006711 增加了任务保底
{ config_id = 1023015, name = "GROUP_LOAD_23015", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_23015", action = "action_EVENT_GROUP_LOAD_23015", trigger_count = 0 },
{ config_id = 1023016, name = "ANY_MONSTER_DIE_23016", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_23016", action = "action_EVENT_ANY_MONSTER_DIE_23016", trigger_count = 0 },
{ config_id = 1023029, name = "ANY_MONSTER_DIE_23029", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_23029", action = "action_EVENT_ANY_MONSTER_DIE_23029" }
}
-- 变量
variables = {
{ config_id = 1, name = "temp", value = 0, no_refresh = true },
{ config_id = 2, name = "load", value = 1, no_refresh = true }
}
-- 废弃数据
garbages = {
monsters = {
{ config_id = 23019, monster_id = 25050301, pos = { x = 85.507, y = 107.000, z = 895.283 }, rot = { x = 0.000, y = 269.887, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 23021, monster_id = 25050301, pos = { x = 85.696, y = 106.836, z = 889.988 }, rot = { x = 0.000, y = 269.887, z = 0.000 }, level = 1, disableWander = true }
},
triggers = {
{ config_id = 1023024, name = "ANY_MONSTER_DIE_23024", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_23024", action = "action_EVENT_ANY_MONSTER_DIE_23024" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 23002, 23014 },
regions = { 23001, 23007 },
triggers = { "ENTER_REGION_23001", "QUEST_START_23006", "ENTER_REGION_23007", "GROUP_LOAD_23011", "GROUP_LOAD_23015" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 23027, 23028 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_23009" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 23010, 23012, 23013, 23020 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_23016" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { 23003, 23004, 23005, 23008 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_23029" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ENTER_REGION_23001(context, evt)
if ScriptLib.GetGroupVariableValue(context, "load") == 1 then
if ScriptLib.GetGroupVariableValue(context, "temp") == 0 or ScriptLib.GetGroupVariableValue(context, "temp") == 1 or ScriptLib.GetGroupVariableValue(context, "temp") == 2 then
ScriptLib.SetGroupVariableValue(context, "temp", 0)
ScriptLib.SetGroupVariableValue(context, "load", 0)
ScriptLib.AddExtraGroupSuite(context, 0, 2)
ScriptLib.ShowReminder(context, 60010370)
end
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_23006(context, evt)
-- 判断变量"temp"为3
if ScriptLib.GetGroupVariableValue(context, "temp") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_23006(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006711") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_23007(context, evt)
if evt.param1 ~= 23007 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_23007(context, evt)
ScriptLib.ActivateDungeonCheckPoint(context,12)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_23009(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"temp"为0
if ScriptLib.GetGroupVariableValue(context, "temp") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_23009(context, evt)
-- 将本组内变量名为 "temp" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "temp", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220140023, 3)
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_23011(context, evt)
-- 将本组内变量名为 "load" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "load", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220140023, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_23015(context, evt)
-- 判断变量"temp"为3
if ScriptLib.GetGroupVariableValue(context, "temp") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_23015(context, evt)
-- 改变指定group组220140023中 configid为23014的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220140023, 23014, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006711") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_23016(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"temp"为1
if ScriptLib.GetGroupVariableValue(context, "temp") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_23016(context, evt)
-- 将本组内变量名为 "temp" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "temp", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 220140023, 5)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_23029(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"temp"为2
if ScriptLib.GetGroupVariableValue(context, "temp") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_23029(context, evt)
-- 将本组内变量名为 "temp" 的变量设置为 3
if 0 ~= ScriptLib.SetGroupVariableValue(context, "temp", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将configid为 23014 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 23014, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006711") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end

View File

@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 220140024
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 24001, gadget_id = 70500036, pos = { x = -78.357, y = 9.295, z = 114.381 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, arguments = { 34 } }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 24001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,132 @@
[
{
"pointArrayId": 1,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": -80.0,
"y": 41.0,
"z": 115.0
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 7.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": -80.0,
"y": 21.0,
"z": 115.0
},
"rotation": {
"x": 0.0,
"y": 325.0,
"z": 7.00000048
},
"velocity": 7.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 2,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 3.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": -5.333289,
"y": 14.9846592,
"z": 25.930481
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 3.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 3,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": -80.0,
"y": 21.0,
"z": 115.0
},
"rotation": {
"x": 0.0,
"y": 325.0,
"z": 7.00000048
},
"velocity": 0.0,
"time": 0.1,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
}
]