添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions
@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -512.0, z = -512.0 },
size = { x = 1024.0, z = 1024.0 },
born_pos = { x = 0.019, y = -7.195, z = 0.000 },
born_rot = { x = 0.000, y = 90.000, z = 0.000 },
die_y = -40,
city_id = 3,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 20123 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -512.0, z = -512.0 }, max = { x = 512.0, z = 512.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,175 @@
{
"sceneId": 20123,
"routes": [
{
"localId": 1,
"name": "Route_001",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -3.36261773,
"y": -6.872569,
"z": -34.79177
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true
},
{
"pos": {
"x": -3.36261773,
"y": -11.9027777,
"z": -34.79177
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true,
"reachStop": true
}
]
},
{
"localId": 2,
"name": "Route_002",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 12.0474854,
"y": -17.3353672,
"z": -23.4847679
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true
},
{
"pos": {
"x": 12.0474854,
"y": -11.6820831,
"z": -23.4847679
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true,
"reachStop": true
}
]
},
{
"localId": 3,
"name": "Route_003",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 12.7362,
"y": 5.282459,
"z": -35.436615
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true
},
{
"pos": {
"x": 12.741354,
"y": -1.64372778,
"z": -35.4383621
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true,
"reachStop": true
}
]
},
{
"localId": 4,
"name": "Route_004",
"type": "OneWay",
"rotType": "ROT_ROUND",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 4.865772,
"y": -3.4,
"z": -21.11615
},
"waitTime": 1.0,
"targetVelocity": 2.0,
"hasReachEvent": true,
"rotRoundReachDir": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 4.865772,
"y": -3.4,
"z": -21.11615
},
"waitTime": 3.0,
"targetVelocity": 2.0,
"hasReachEvent": true,
"rotRoundReachDir": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 4.865772,
"y": -3.4,
"z": -21.11615
},
"waitTime": 1.0,
"targetVelocity": 2.0,
"hasReachEvent": true,
"rotRoundReachDir": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"rotRoundWaitRounds": 0,
"reachStop": true
}
]
}
]
}
@@ -0,0 +1,15 @@
-- 所有的group
groups = {
{ id = 220123001, refresh_id = 1, pos = { x = 5.113, y = -7.070, z = -14.138 } },
{ id = 220123002, refresh_id = 1001, pos = { x = -11.942, y = -7.988, z = -28.894 } },
{ id = 220123003, refresh_id = 1001, pos = { x = 19.066, y = -7.034, z = -29.797 } },
{ id = 220123004, refresh_id = 1, pos = { x = 4.705, y = -7.034, z = -28.344 } },
{ id = 220123005, refresh_id = 1, pos = { x = 28.470, y = -17.514, z = -22.989 } },
{ id = 220123006, refresh_id = 1001, pos = { x = 22.608, y = -18.414, z = -12.122 } },
{ id = 220123007, refresh_id = 1001, pos = { x = 20.235, y = 2.703, z = -51.261 } },
{ id = 220123008, refresh_id = 1001, pos = { x = 4.345, y = -11.961, z = -31.245 } },
{ id = 220123009, refresh_id = 1, pos = { x = 4.831, y = -6.768, z = -33.578 } },
{ id = 220123010, refresh_id = 1, pos = { x = 6.182, y = -7.008, z = -26.433 } },
{ id = 220123011, pos = { x = 4.566, y = -6.473, z = -34.555 }, business = { type = 1 } },
{ id = 220123012, refresh_id = 1001, pos = { x = 13.083, y = 3.190, z = -58.541 } }
}
@@ -0,0 +1,8 @@
dummy_points = {
["Q1203003_N10000005"] = { pos = { x = 7.961, y = -7.070, z = -16.060 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["Q1203003_N1005"] = { pos = { x = 5.758, y = -7.070, z = -15.819 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["Q1203003_N1034"] = { pos = { x = 3.802, y = -7.070, z = -15.754 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["Q1203005_N10000005"] = { pos = { x = 8.447, y = -7.070, z = -33.688 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q1203005_N1005"] = { pos = { x = 5.295, y = -7.070, z = -33.510 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q1203005_N1034"] = { pos = { x = 2.733, y = -7.070, z = -33.482 }, rot = { x = 0.000, y = 0.000, z = 0.000 } }
}
@@ -0,0 +1,377 @@
-- 基础信息
local base_info = {
group_id = 220123001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70900201, pos = { x = 5.919, y = -7.475, z = -13.832 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1003, gadget_id = 70900201, pos = { x = -4.927, y = -5.876, z = -28.817 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1005, gadget_id = 70900201, pos = { x = 5.255, y = -6.026, z = -28.817 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1006, gadget_id = 70310008, pos = { x = 8.083, y = -16.459, z = -19.375 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1010, gadget_id = 70900201, pos = { x = 4.820, y = -5.467, z = -34.781 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1016, gadget_id = 70900201, pos = { x = -4.326, y = -5.281, z = -26.193 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 1002, shape = RegionShape.SPHERE, radius = 3, pos = { x = 5.704, y = -8.478, z = -13.772 } },
{ config_id = 1009, shape = RegionShape.SPHERE, radius = 2, pos = { x = 5.151, y = -7.887, z = -29.336 } },
{ config_id = 1013, shape = RegionShape.SPHERE, radius = 3, pos = { x = -3.206, y = -6.032, z = -25.103 } },
-- 玩家直接去到夹层的话,把去第一个平台的小黄点去掉
{ config_id = 1014, shape = RegionShape.CUBIC, size = { x = 20.000, y = 5.000, z = 20.000 }, pos = { x = 4.779, y = -12.277, z = -30.374 } },
{ config_id = 1015, shape = RegionShape.CUBIC, size = { x = 5.000, y = 3.000, z = 5.000 }, pos = { x = 4.837, y = -7.887, z = -36.552 } },
{ config_id = 1017, shape = RegionShape.SPHERE, radius = 2, pos = { x = -3.911, y = -5.356, z = -26.526 } }
}
-- 触发器
triggers = {
{ config_id = 1001002, name = "ENTER_REGION_1002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1002", action = "action_EVENT_ENTER_REGION_1002" },
{ config_id = 1001004, name = "VARIABLE_CHANGE_1004", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_1004", action = "action_EVENT_VARIABLE_CHANGE_1004" },
{ config_id = 1001007, name = "VARIABLE_CHANGE_1007", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_1007", action = "action_EVENT_VARIABLE_CHANGE_1007" },
{ config_id = 1001008, name = "GROUP_LOAD_1008", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_1008" },
{ config_id = 1001009, name = "ENTER_REGION_1009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1009", action = "action_EVENT_ENTER_REGION_1009" },
{ config_id = 1001011, name = "VARIABLE_CHANGE_1011", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_1011", action = "action_EVENT_VARIABLE_CHANGE_1011" },
{ config_id = 1001012, name = "VARIABLE_CHANGE_1012", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_1012", action = "action_EVENT_VARIABLE_CHANGE_1012" },
{ config_id = 1001013, name = "ENTER_REGION_1013", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1013", action = "action_EVENT_ENTER_REGION_1013" },
-- 玩家直接去到夹层的话,把去第一个平台的小黄点去掉
{ config_id = 1001014, name = "ENTER_REGION_1014", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1014", action = "action_EVENT_ENTER_REGION_1014" },
{ config_id = 1001015, name = "ENTER_REGION_1015", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1015", action = "action_EVENT_ENTER_REGION_1015" },
{ config_id = 1001017, name = "ENTER_REGION_1017", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1017", action = "action_EVENT_ENTER_REGION_1017" }
}
-- 变量
variables = {
{ config_id = 1, name = "stage", value = 1, no_refresh = false },
{ config_id = 2, name = "Light", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1006 },
regions = { },
triggers = { "VARIABLE_CHANGE_1004", "VARIABLE_CHANGE_1007", "GROUP_LOAD_1008", "VARIABLE_CHANGE_1011", "VARIABLE_CHANGE_1012" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 去到壁画,
monsters = { },
gadgets = { 1001 },
regions = { 1002 },
triggers = { "ENTER_REGION_1002" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = 开前门,
monsters = { },
gadgets = { 1003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = 第一次去到镜子前,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = 指引玩家去灯台,
monsters = { },
gadgets = { 1016 },
regions = { 1014, 1017 },
triggers = { "ENTER_REGION_1014", "ENTER_REGION_1017" },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = 最后回到壁画前,
monsters = { },
gadgets = { 1005 },
regions = { 1009 },
triggers = { "ENTER_REGION_1009" },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { },
gadgets = { },
regions = { 1013 },
triggers = { "ENTER_REGION_1013" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_1002(context, evt)
if evt.param1 ~= 1002 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_1002(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220123001, 3)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220123001, 2)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1004(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"stage"为3
if ScriptLib.GetGroupVariableValue(context, "stage") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1004(context, evt)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220123001, 3)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1007(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"stage"为4
if ScriptLib.GetGroupVariableValue(context, "stage") ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1007(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 220123001, 4)
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_1008(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220123001, 2)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1009(context, evt)
if evt.param1 ~= 1009 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_1009(context, evt)
-- 将本组内变量名为 "Mural" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "Mural", 1, 220123009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 删除suite6的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220123001, 6)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1011(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"stage"为5
if ScriptLib.GetGroupVariableValue(context, "stage") ~= 5 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1011(context, evt)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 220123001, 5)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1012(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"stage"为6
if ScriptLib.GetGroupVariableValue(context, "stage") ~= 6 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1012(context, evt)
-- 添加suite6的新内容
ScriptLib.AddExtraGroupSuite(context, 220123001, 6)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1013(context, evt)
if evt.param1 ~= 1013 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"Light"为0
if ScriptLib.GetGroupVariableValue(context, "Light") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_1013(context, evt)
-- 调用提示id为 201230102 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201230102) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1014(context, evt)
if evt.param1 ~= 1014 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_1014(context, evt)
-- 删除suite5的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220123001, 5)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1015(context, evt)
if evt.param1 ~= 1015 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_1015(context, evt)
-- 删除suite4的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220123001, 4)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1017(context, evt)
if evt.param1 ~= 1017 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_1017(context, evt)
-- 删除suite5的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220123001, 5)
return 0
end
@@ -0,0 +1,142 @@
-- 基础信息
local base_info = {
group_id = 220123002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2002, monster_id = 25100401, pos = { x = -11.963, y = -7.973, z = -29.014 }, rot = { x = 0.000, y = 89.180, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 }, pose_id = 1002 },
{ config_id = 2003, monster_id = 25080101, pos = { x = -14.147, y = -7.934, z = -29.725 }, rot = { x = 0.000, y = 80.248, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 }, pose_id = 1003 },
{ config_id = 2004, monster_id = 25080301, pos = { x = -13.911, y = -7.990, z = -27.792 }, rot = { x = 0.000, y = 117.911, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 }, pose_id = 1003 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70290138, pos = { x = -4.986, y = -7.084, z = -28.974 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 2007, gadget_id = 70211012, pos = { x = -9.010, y = -7.990, z = -28.770 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, drop_tag = "战斗中级稻妻", state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 2008, gadget_id = 70220048, pos = { x = -23.378, y = -7.795, z = -29.984 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2009, gadget_id = 70220065, pos = { x = -24.185, y = -7.821, z = -25.991 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 2010, gadget_id = 70220065, pos = { x = -20.572, y = -7.990, z = -19.773 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 2011, gadget_id = 70220048, pos = { x = -13.884, y = -7.557, z = -33.962 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2012, gadget_id = 70220065, pos = { x = -7.603, y = -7.990, z = -23.680 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 2013, gadget_id = 70220050, pos = { x = 11.077, y = -7.132, z = -19.499 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2014, gadget_id = 70220062, pos = { x = 10.905, y = -7.153, z = -18.062 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 }
}
-- 区域
regions = {
{ config_id = 2005, shape = RegionShape.SPHERE, radius = 6, pos = { x = -6.311, y = -3.026, z = -19.377 } }
}
-- 触发器
triggers = {
{ config_id = 1002005, name = "ENTER_REGION_2005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_2005" },
{ 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" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 },
regions = { 2005 },
triggers = { "ENTER_REGION_2005", "ANY_MONSTER_DIE_2006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 2002, 2003, 2004 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ENTER_REGION_2005(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220123002, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_2006(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_2006(context, evt)
-- 将configid为 2001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将本组内变量名为 "stage" 的变量设置为 3
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage", 3, 220123001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 改变指定group组220123002中, configid为2007的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220123002, 2007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220123004中, configid为4001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220123004, 4001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,295 @@
-- 基础信息
local base_info = {
group_id = 220123003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3002, monster_id = 25080101, pos = { x = 24.703, y = -7.030, z = -30.134 }, rot = { x = 0.000, y = 337.005, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 }, pose_id = 1004 },
{ config_id = 3003, monster_id = 25080101, pos = { x = 25.246, y = -7.030, z = -28.909 }, rot = { x = 0.000, y = 258.695, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 }, pose_id = 1004 },
{ config_id = 3030, monster_id = 25080101, pos = { x = 24.698, y = -6.972, z = -27.287 }, rot = { x = 0.000, y = 211.125, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 }, pose_id = 1004 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70290138, pos = { x = 15.416, y = -7.079, z = -29.018 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 3010, gadget_id = 70220066, pos = { x = 37.748, y = -3.960, z = -32.081 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 3011, gadget_id = 70220014, pos = { x = 36.782, y = -3.960, z = -32.017 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3013, gadget_id = 70220070, pos = { x = 21.275, y = -7.030, z = -24.939 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3014, gadget_id = 70220070, pos = { x = 23.652, y = -7.000, z = -24.915 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3015, gadget_id = 70220065, pos = { x = 28.802, y = -6.890, z = -38.161 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 3016, gadget_id = 70220048, pos = { x = 25.776, y = -6.970, z = -37.636 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3017, gadget_id = 70220065, pos = { x = 18.750, y = -7.030, z = -36.604 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 3018, gadget_id = 70220048, pos = { x = 18.804, y = -7.030, z = -38.172 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3019, gadget_id = 70220065, pos = { x = 33.681, y = -6.970, z = -31.559 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 3020, gadget_id = 70220048, pos = { x = 32.027, y = -7.034, z = -31.510 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3021, gadget_id = 70220062, pos = { x = 27.967, y = -7.008, z = -24.871 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 3022, gadget_id = 70220062, pos = { x = 18.633, y = -7.009, z = -34.074 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 3023, gadget_id = 70220062, pos = { x = 18.652, y = -7.022, z = -35.085 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 3024, gadget_id = 70220062, pos = { x = 22.841, y = -6.986, z = -43.401 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 3025, gadget_id = 70220050, pos = { x = 24.191, y = -7.030, z = -38.294 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3026, gadget_id = 70220050, pos = { x = 17.841, y = -7.042, z = -23.318 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3027, gadget_id = 70220062, pos = { x = 26.230, y = -6.986, z = -23.795 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 3028, gadget_id = 71700226, pos = { x = 24.736, y = -6.959, z = -24.037 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3031, gadget_id = 70290141, pos = { x = 23.314, y = -7.030, z = -34.366 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 3032, gadget_id = 70220070, pos = { x = 23.218, y = -7.030, z = -31.700 }, rot = { x = 0.000, y = 86.409, z = 0.000 }, level = 1 },
{ config_id = 3033, gadget_id = 70220070, pos = { x = 22.815, y = -7.030, z = -28.558 }, rot = { x = 0.000, y = 268.214, z = 0.000 }, level = 1 },
{ config_id = 3034, gadget_id = 70220065, pos = { x = 38.783, y = -3.960, z = -35.657 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 3035, gadget_id = 70220048, pos = { x = 38.783, y = -3.960, z = -33.684 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 3004, shape = RegionShape.CUBIC, size = { x = 5.000, y = 1.000, z = 10.000 }, pos = { x = 14.685, y = -6.856, z = -28.787 } },
{ config_id = 3008, shape = RegionShape.CUBIC, size = { x = 6.000, y = 2.000, z = 10.000 }, pos = { x = 34.246, y = -11.773, z = -25.795 } },
{ config_id = 3009, shape = RegionShape.CUBIC, size = { x = 9.000, y = 4.000, z = 10.000 }, pos = { x = 12.103, y = -5.588, z = -49.694 } },
-- 点完三盏灯之后玩家来到这,去掉怪物
{ config_id = 3012, shape = RegionShape.CUBIC, size = { x = 15.000, y = 5.000, z = 15.000 }, pos = { x = 5.863, y = -6.981, z = -29.178 } }
}
-- 触发器
triggers = {
{ config_id = 1003004, name = "ENTER_REGION_3004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3004", action = "action_EVENT_ENTER_REGION_3004" },
{ config_id = 1003005, name = "ANY_MONSTER_DIE_3005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3005", action = "action_EVENT_ANY_MONSTER_DIE_3005" },
-- 剧情结束时去掉怪物
{ config_id = 1003006, name = "VARIABLE_CHANGE_3006", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_3006", action = "action_EVENT_VARIABLE_CHANGE_3006" },
{ config_id = 1003007, name = "GADGET_STATE_CHANGE_3007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_3007", action = "action_EVENT_GADGET_STATE_CHANGE_3007" },
{ config_id = 1003008, name = "ENTER_REGION_3008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3008", action = "action_EVENT_ENTER_REGION_3008" },
{ config_id = 1003009, name = "ENTER_REGION_3009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3009", action = "action_EVENT_ENTER_REGION_3009" },
-- 点完三盏灯之后玩家来到这,去掉怪物
{ config_id = 1003012, name = "ENTER_REGION_3012", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3012", action = "action_EVENT_ENTER_REGION_3012" },
{ config_id = 1003029, name = "GROUP_LOAD_3029", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_3029" }
}
-- 变量
variables = {
{ config_id = 1, name = "END", value = 0, no_refresh = false },
{ config_id = 2, name = "BACKDOOR", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001, 3010, 3011, 3013, 3014, 3015, 3016, 3017, 3018, 3019, 3020, 3021, 3022, 3023, 3024, 3025, 3026, 3027, 3028, 3034, 3035 },
regions = { 3012 },
triggers = { "ANY_MONSTER_DIE_3005", "VARIABLE_CHANGE_3006", "ENTER_REGION_3012", "GROUP_LOAD_3029" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 敌人触发条件,
monsters = { },
gadgets = { },
regions = { 3008, 3009 },
triggers = { "GADGET_STATE_CHANGE_3007", "ENTER_REGION_3008", "ENTER_REGION_3009" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 3002, 3003, 3030 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_3004(context, evt)
if evt.param1 ~= 3004 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
if GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 220123003, 3001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_3004(context, evt)
-- 将configid为 3001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3005(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3005(context, evt)
-- 将configid为 3001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_3006(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"END"为1
if ScriptLib.GetGroupVariableValue(context, "END") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_3006(context, evt)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220123003, 3)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_3007(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220123003, 3001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_3007(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220123003, 3)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220123003, 2)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3008(context, evt)
if evt.param1 ~= 3008 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_3008(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220123003, 3)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220123003, 2)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3009(context, evt)
if evt.param1 ~= 3009 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_3009(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220123003, 3)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220123003, 2)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3012(context, evt)
if evt.param1 ~= 3012 then return false end
-- 判断变量"BACKDOOR"为3
if ScriptLib.GetGroupVariableValue(context, "BACKDOOR") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_3012(context, evt)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220123003, 3)
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_3029(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220123003, 2)
return 0
end
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,73 @@
-- 基础信息
local base_info = {
group_id = 220123005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5001, gadget_id = 70690029, pos = { x = 36.000, y = -24.500, z = -25.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5002, gadget_id = 70690029, pos = { x = 11.000, y = -14.000, z = -49.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5001, 5002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,134 @@
-- 基础信息
local base_info = {
group_id = 220123006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 6001, monster_id = 25100301, pos = { x = 22.715, y = -17.860, z = -14.517 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 }, pose_id = 1003 },
{ config_id = 6002, monster_id = 25100401, pos = { x = 22.496, y = -17.858, z = -9.201 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 }, pose_id = 1003 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6003, gadget_id = 70220065, pos = { x = 12.124, y = -17.545, z = -10.924 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 6004, gadget_id = 70220048, pos = { x = 11.972, y = -17.545, z = -9.334 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6005, gadget_id = 70211012, pos = { x = 12.155, y = -17.545, z = -13.867 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, drop_tag = "战斗中级稻妻", state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 6007, gadget_id = 70220065, pos = { x = 13.689, y = -17.545, z = -9.337 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 6008, gadget_id = 70220065, pos = { x = 15.917, y = -17.495, z = -1.798 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 6009, gadget_id = 70220048, pos = { x = 17.727, y = -17.514, z = -2.461 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6010, gadget_id = 70220065, pos = { x = 29.606, y = -17.549, z = -1.707 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 6011, gadget_id = 70220066, pos = { x = 28.364, y = -17.514, z = -1.758 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 }
}
-- 区域
regions = {
{ config_id = 6012, shape = RegionShape.SPHERE, radius = 7, pos = { x = -0.069, y = -4.737, z = -28.625 } }
}
-- 触发器
triggers = {
{ config_id = 1006006, name = "ANY_MONSTER_DIE_6006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6006", action = "action_EVENT_ANY_MONSTER_DIE_6006" },
{ config_id = 1006012, name = "ENTER_REGION_6012", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6012", action = "action_EVENT_ENTER_REGION_6012" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6003, 6004, 6005, 6007, 6008, 6009, 6010, 6011 },
regions = { 6012 },
triggers = { "ANY_MONSTER_DIE_6006", "ENTER_REGION_6012" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 6001, 6002 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6006(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6006(context, evt)
-- 将configid为 6005 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_6012(context, evt)
if evt.param1 ~= 6012 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_6012(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220123006, 2)
return 0
end
@@ -0,0 +1,793 @@
-- 基础信息
local base_info = {
group_id = 220123007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 7026, monster_id = 25010201, pos = { x = 33.882, y = 1.929, z = -20.786 }, rot = { x = 0.000, y = 358.848, z = 0.000 }, level = 1, pose_id = 9003 },
{ config_id = 7027, monster_id = 25010201, pos = { x = 36.190, y = 1.929, z = -20.693 }, rot = { x = 0.000, y = 322.831, z = 0.000 }, level = 1, pose_id = 9003 },
{ config_id = 7028, monster_id = 25030301, pos = { x = 35.641, y = 1.929, z = -21.977 }, rot = { x = 0.000, y = 302.726, z = 0.000 }, level = 1, disableWander = true, pose_id = 9006 },
{ config_id = 7047, monster_id = 25060101, pos = { x = 34.455, y = 1.929, z = -22.242 }, rot = { x = 0.000, y = 36.345, z = 0.000 }, level = 1, pose_id = 9006 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7001, gadget_id = 70350293, pos = { x = 25.113, y = 2.682, z = -53.156 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false, interact_id = 43, is_use_point_array = true },
{ config_id = 7002, gadget_id = 70350293, pos = { x = 19.979, y = 2.649, z = -58.314 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, start_route = false, interact_id = 43, is_use_point_array = true },
{ config_id = 7003, gadget_id = 70350293, pos = { x = 35.132, y = 2.649, z = -43.155 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false, interact_id = 43, is_use_point_array = true },
{ config_id = 7004, gadget_id = 70350293, pos = { x = 29.804, y = 2.721, z = -37.806 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, start_route = false, interact_id = 43, is_use_point_array = true },
{ config_id = 7005, gadget_id = 70350293, pos = { x = 40.285, y = 2.669, z = -48.318 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, start_route = false, interact_id = 43, is_use_point_array = true },
{ config_id = 7006, gadget_id = 70350293, pos = { x = 40.285, y = 2.669, z = -38.017 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, start_route = false, interact_id = 43, is_use_point_array = true },
{ config_id = 7021, gadget_id = 70220048, pos = { x = 29.768, y = 2.724, z = -31.145 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7022, gadget_id = 70220048, pos = { x = 40.379, y = 2.649, z = -31.474 }, rot = { x = 0.000, y = 28.165, z = 0.000 }, level = 1 },
{ config_id = 7023, gadget_id = 70211001, pos = { x = 43.630, y = 3.337, z = -47.585 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, drop_tag = "战斗低级稻妻", isOneoff = true, persistent = true },
{ config_id = 7025, gadget_id = 70211001, pos = { x = 16.763, y = 4.820, z = -34.998 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗低级稻妻", isOneoff = true, persistent = true },
{ config_id = 7029, gadget_id = 70220066, pos = { x = 12.006, y = 2.683, z = -55.173 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 7030, gadget_id = 70220066, pos = { x = 12.959, y = 2.747, z = -54.389 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 7031, gadget_id = 70220066, pos = { x = 11.028, y = 2.609, z = -60.616 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 7032, gadget_id = 70220014, pos = { x = 11.022, y = 2.609, z = -59.674 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7033, gadget_id = 70220066, pos = { x = 39.417, y = 1.809, z = -57.012 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 7034, gadget_id = 70220014, pos = { x = 39.355, y = 1.809, z = -58.053 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7035, gadget_id = 70220066, pos = { x = 48.853, y = 2.581, z = -49.490 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 7036, gadget_id = 70220014, pos = { x = 48.862, y = 2.581, z = -50.484 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7037, gadget_id = 70220065, pos = { x = 46.871, y = 2.619, z = -24.790 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 7038, gadget_id = 70220048, pos = { x = 45.070, y = 2.619, z = -24.800 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7039, gadget_id = 70220065, pos = { x = 31.134, y = 1.929, z = -20.755 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 7040, gadget_id = 70220065, pos = { x = 37.702, y = 1.929, z = -20.863 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 7041, gadget_id = 70220062, pos = { x = 32.549, y = 1.932, z = -20.120 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 7042, gadget_id = 70220062, pos = { x = 35.034, y = 1.929, z = -19.532 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 7043, gadget_id = 70220062, pos = { x = 22.680, y = 2.617, z = -27.342 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 7044, gadget_id = 70220062, pos = { x = 23.251, y = 2.628, z = -26.347 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 7045, gadget_id = 70220065, pos = { x = 25.543, y = 2.657, z = -25.463 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 7046, gadget_id = 70220048, pos = { x = 27.333, y = 2.655, z = -25.461 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7052, gadget_id = 70220066, pos = { x = 49.541, y = 2.619, z = -28.294 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 7053, gadget_id = 70220066, pos = { x = 48.596, y = 2.619, z = -28.926 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 7054, gadget_id = 70220066, pos = { x = 47.838, y = 2.619, z = -32.173 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 7055, gadget_id = 70220066, pos = { x = 46.487, y = 2.619, z = -32.230 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 7056, gadget_id = 70220014, pos = { x = 44.091, y = 2.583, z = -51.781 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7057, gadget_id = 70220066, pos = { x = 43.004, y = 2.584, z = -51.624 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 7058, gadget_id = 70220065, pos = { x = 34.876, y = 1.809, z = -62.387 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 7059, gadget_id = 70220065, pos = { x = 38.394, y = 1.875, z = -55.686 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 7060, gadget_id = 70220048, pos = { x = 46.892, y = 2.588, z = -34.545 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
-- 刷怪
{ config_id = 7024, shape = RegionShape.SPHERE, radius = 5, pos = { x = 35.248, y = 2.878, z = -50.121 } }
}
-- 触发器
triggers = {
-- 第1个门
{ config_id = 1007007, name = "GADGET_STATE_CHANGE_7007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7007", action = "action_EVENT_GADGET_STATE_CHANGE_7007", trigger_count = 0 },
-- 第1个门
{ config_id = 1007008, name = "GADGET_STATE_CHANGE_7008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7008", action = "action_EVENT_GADGET_STATE_CHANGE_7008", trigger_count = 0 },
-- 第2个门
{ config_id = 1007009, name = "GADGET_STATE_CHANGE_7009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7009", action = "action_EVENT_GADGET_STATE_CHANGE_7009", trigger_count = 0 },
-- 第2个门
{ config_id = 1007010, name = "GADGET_STATE_CHANGE_7010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7010", action = "action_EVENT_GADGET_STATE_CHANGE_7010", trigger_count = 0 },
-- 第3个门
{ config_id = 1007011, name = "GADGET_STATE_CHANGE_7011", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7011", action = "action_EVENT_GADGET_STATE_CHANGE_7011", trigger_count = 0 },
-- 第3个门
{ config_id = 1007012, name = "GADGET_STATE_CHANGE_7012", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7012", action = "action_EVENT_GADGET_STATE_CHANGE_7012", trigger_count = 0 },
-- 第4个门
{ config_id = 1007013, name = "GADGET_STATE_CHANGE_7013", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7013", action = "action_EVENT_GADGET_STATE_CHANGE_7013", trigger_count = 0 },
-- 第4个门
{ config_id = 1007014, name = "GADGET_STATE_CHANGE_7014", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7014", action = "action_EVENT_GADGET_STATE_CHANGE_7014", trigger_count = 0 },
-- 第5个门移动-正常
{ config_id = 1007015, name = "GADGET_STATE_CHANGE_7015", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7015", action = "action_EVENT_GADGET_STATE_CHANGE_7015", trigger_count = 0 },
-- 第5个门移动-被门6卡着
{ config_id = 1007016, name = "GADGET_STATE_CHANGE_7016", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7016", action = "action_EVENT_GADGET_STATE_CHANGE_7016", trigger_count = 0 },
-- 第5个门移动-正常
{ config_id = 1007017, name = "GADGET_STATE_CHANGE_7017", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7017", action = "action_EVENT_GADGET_STATE_CHANGE_7017", trigger_count = 0 },
-- 第6个门移动-正常
{ config_id = 1007018, name = "GADGET_STATE_CHANGE_7018", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7018", action = "action_EVENT_GADGET_STATE_CHANGE_7018", trigger_count = 0 },
-- 第6个门移动-正常
{ config_id = 1007019, name = "GADGET_STATE_CHANGE_7019", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7019", action = "action_EVENT_GADGET_STATE_CHANGE_7019", trigger_count = 0 },
-- 第6个门移动-被门5卡着
{ config_id = 1007020, name = "GADGET_STATE_CHANGE_7020", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7020", action = "action_EVENT_GADGET_STATE_CHANGE_7020", trigger_count = 0 },
-- 刷怪
{ config_id = 1007024, name = "ENTER_REGION_7024", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_7024", action = "action_EVENT_ENTER_REGION_7024" },
-- 门4的阻挡
{ config_id = 1007048, name = "ANY_GADGET_DIE_7048", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_7048", action = "action_EVENT_ANY_GADGET_DIE_7048" },
-- 门6的阻挡
{ config_id = 1007049, name = "ANY_GADGET_DIE_7049", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_7049", action = "action_EVENT_ANY_GADGET_DIE_7049" },
-- 第4个门被卡着
{ config_id = 1007050, name = "GADGET_STATE_CHANGE_7050", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7050", action = "action_EVENT_GADGET_STATE_CHANGE_7050", trigger_count = 0 },
-- 第6个门被阻碍卡着
{ config_id = 1007051, name = "GADGET_STATE_CHANGE_7051", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7051", action = "action_EVENT_GADGET_STATE_CHANGE_7051", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "Wall1", value = 1, no_refresh = false },
{ config_id = 2, name = "Wall2", value = 1, no_refresh = false },
{ config_id = 3, name = "Wall3", value = 1, no_refresh = false },
{ config_id = 4, name = "Wall4", value = 1, no_refresh = false },
{ config_id = 5, name = "Wall5", value = 1, no_refresh = false },
{ config_id = 6, name = "Wall6", value = 1, no_refresh = false },
{ config_id = 7, name = "Block4", value = 1, no_refresh = false },
{ config_id = 8, name = "Block6", value = 1, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7001, 7002, 7003, 7004, 7005, 7006, 7021, 7022, 7023, 7025, 7029, 7030, 7031, 7032, 7033, 7034, 7035, 7036, 7037, 7038, 7039, 7040, 7041, 7042, 7043, 7044, 7045, 7046, 7052, 7053, 7054, 7055, 7056, 7057, 7058, 7059, 7060 },
regions = { 7024 },
triggers = { "GADGET_STATE_CHANGE_7007", "GADGET_STATE_CHANGE_7008", "GADGET_STATE_CHANGE_7009", "GADGET_STATE_CHANGE_7010", "GADGET_STATE_CHANGE_7011", "GADGET_STATE_CHANGE_7012", "GADGET_STATE_CHANGE_7013", "GADGET_STATE_CHANGE_7014", "GADGET_STATE_CHANGE_7015", "GADGET_STATE_CHANGE_7016", "GADGET_STATE_CHANGE_7017", "GADGET_STATE_CHANGE_7018", "GADGET_STATE_CHANGE_7019", "GADGET_STATE_CHANGE_7020", "ENTER_REGION_7024", "ANY_GADGET_DIE_7048", "ANY_GADGET_DIE_7049", "GADGET_STATE_CHANGE_7050", "GADGET_STATE_CHANGE_7051" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 7026, 7027, 7028, 7047 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7007(context, evt)
-- 检测config_id为7001的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 7001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"Wall1"为1
if ScriptLib.GetGroupVariableValue(context, "Wall1") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7007(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 7001, 5, {2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 将本组内变量名为 "Wall1" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "Wall1", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7008(context, evt)
-- 检测config_id为7001的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 7001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"Wall1"为2
if ScriptLib.GetGroupVariableValue(context, "Wall1") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7008(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 7001, 5, {1}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 将本组内变量名为 "Wall1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "Wall1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7009(context, evt)
-- 检测config_id为7002的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 7002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"Wall2"为1
if ScriptLib.GetGroupVariableValue(context, "Wall2") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7009(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 7002, 6, {2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 将本组内变量名为 "Wall2" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "Wall2", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7010(context, evt)
-- 检测config_id为7002的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 7002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"Wall2"为2
if ScriptLib.GetGroupVariableValue(context, "Wall2") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7010(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 7002, 6, {1}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 将本组内变量名为 "Wall2" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "Wall2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7011(context, evt)
-- 检测config_id为7003的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 7003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"Wall3"为1
if ScriptLib.GetGroupVariableValue(context, "Wall3") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7011(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 7003, 7, {2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 将本组内变量名为 "Wall3" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "Wall3", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7012(context, evt)
-- 检测config_id为7003的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 7003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"Wall3"为2
if ScriptLib.GetGroupVariableValue(context, "Wall3") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7012(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 7003, 7, {1}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 将本组内变量名为 "Wall3" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "Wall3", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7013(context, evt)
-- 检测config_id为7004的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 7004 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"Wall4"为1
if ScriptLib.GetGroupVariableValue(context, "Wall4") ~= 1 then
return false
end
-- 判断变量"Block4"为0
if ScriptLib.GetGroupVariableValue(context, "Block4") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7013(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 7004, 8, {2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 将本组内变量名为 "Wall4" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "Wall4", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7014(context, evt)
-- 检测config_id为7004的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 7004 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"Wall4"为2
if ScriptLib.GetGroupVariableValue(context, "Wall4") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7014(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 7004, 8, {1}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 将本组内变量名为 "Wall4" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "Wall4", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7015(context, evt)
-- 检测config_id为7005的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 7005 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"Wall5"为1
if ScriptLib.GetGroupVariableValue(context, "Wall5") ~= 1 then
return false
end
-- 判断变量"Wall6"为2
if ScriptLib.GetGroupVariableValue(context, "Wall6") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7015(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 7005, 9, {2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 将本组内变量名为 "Wall5" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "Wall5", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7016(context, evt)
-- 检测config_id为7005的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 7005 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"Wall5"为1
if ScriptLib.GetGroupVariableValue(context, "Wall5") ~= 1 then
return false
end
-- 判断变量"Wall6"为1
if ScriptLib.GetGroupVariableValue(context, "Wall6") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7016(context, evt)
-- 调用提示id为 50050101 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 50050101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7017(context, evt)
-- 检测config_id为7005的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 7005 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"Wall5"为2
if ScriptLib.GetGroupVariableValue(context, "Wall5") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7017(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 7005, 9, {1}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 将本组内变量名为 "Wall5" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "Wall5", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7018(context, evt)
-- 检测config_id为7006的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 7006 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"Wall6"为1
if ScriptLib.GetGroupVariableValue(context, "Wall6") ~= 1 then
return false
end
-- 判断变量"Block6"为0
if ScriptLib.GetGroupVariableValue(context, "Block6") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7018(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 7006, 9, {3}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 将本组内变量名为 "Wall6" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "Wall6", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7019(context, evt)
-- 检测config_id为7006的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 7006 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"Wall6"为2
if ScriptLib.GetGroupVariableValue(context, "Wall6") ~= 2 then
return false
end
-- 判断变量"Wall5"为1
if ScriptLib.GetGroupVariableValue(context, "Wall5") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7019(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 7006, 9, {2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 将本组内变量名为 "Wall6" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "Wall6", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7020(context, evt)
-- 检测config_id为7006的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 7006 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"Wall6"为2
if ScriptLib.GetGroupVariableValue(context, "Wall6") ~= 2 then
return false
end
-- 判断变量"Wall5"为2
if ScriptLib.GetGroupVariableValue(context, "Wall5") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7020(context, evt)
-- 调用提示id为 50050101 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 50050101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_7024(context, evt)
if evt.param1 ~= 7024 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_7024(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220123007, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_7048(context, evt)
if 7021 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_7048(context, evt)
-- 将本组内变量名为 "Block4" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "Block4", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_7049(context, evt)
if 7022 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_7049(context, evt)
-- 将本组内变量名为 "Block6" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "Block6", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7050(context, evt)
-- 检测config_id为7004的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 7004 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"Wall4"为1
if ScriptLib.GetGroupVariableValue(context, "Wall4") ~= 1 then
return false
end
-- 判断变量"Block4"为1
if ScriptLib.GetGroupVariableValue(context, "Block4") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7050(context, evt)
-- 调用提示id为 50050101 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 50050101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7051(context, evt)
-- 检测config_id为7006的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 7006 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"Wall6"为1
if ScriptLib.GetGroupVariableValue(context, "Wall6") ~= 1 then
return false
end
-- 判断变量"Block6"为1
if ScriptLib.GetGroupVariableValue(context, "Block6") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7051(context, evt)
-- 调用提示id为 50050101 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 50050101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,251 @@
-- 基础信息
local base_info = {
group_id = 220123008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 8001, monster_id = 25010201, pos = { x = 6.416, y = -11.961, z = -33.769 }, rot = { x = 0.000, y = 222.864, z = 0.000 }, level = 1, pose_id = 9003 },
{ config_id = 8002, monster_id = 25010201, pos = { x = 4.585, y = -11.961, z = -33.205 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, pose_id = 9003 },
{ config_id = 8005, monster_id = 25010201, pos = { x = 5.473, y = -11.825, z = -31.782 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, pose_id = 9002 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8004, gadget_id = 70310008, pos = { x = 8.038, y = -13.612, z = -30.412 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8007, gadget_id = 70220070, pos = { x = 8.200, y = -8.060, z = -38.225 }, rot = { x = 0.000, y = 180.000, z = 180.000 }, level = 1 },
{ config_id = 8008, gadget_id = 70220070, pos = { x = 9.055, y = -8.060, z = -37.811 }, rot = { x = 0.000, y = 180.000, z = 180.000 }, level = 1 }
}
-- 区域
regions = {
-- 进入平台处刷怪
{ config_id = 8003, shape = RegionShape.CUBIC, size = { x = 4.000, y = 2.000, z = 4.000 }, pos = { x = -3.094, y = -6.253, z = -34.909 } },
-- 进入此区域把怪给remove掉
{ config_id = 8009, shape = RegionShape.CUBIC, size = { x = 11.000, y = 5.000, z = 15.000 }, pos = { x = 4.576, y = -7.001, z = -29.578 } },
-- 进入平台处刷怪2
{ config_id = 8011, shape = RegionShape.CUBIC, size = { x = 4.000, y = 2.000, z = 4.000 }, pos = { x = 12.937, y = -7.494, z = -23.142 } }
}
-- 触发器
triggers = {
-- 进入平台处刷怪
{ config_id = 1008003, name = "ENTER_REGION_8003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8003", action = "action_EVENT_ENTER_REGION_8003" },
-- 剧情时干掉所有怪物
{ config_id = 1008006, name = "VARIABLE_CHANGE_8006", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_8006", action = "action_EVENT_VARIABLE_CHANGE_8006" },
-- 进入此区域把怪给remove掉
{ config_id = 1008009, name = "ENTER_REGION_8009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8009", action = "action_EVENT_ENTER_REGION_8009", trigger_count = 0 },
-- 玩家开启隐形机关后加载suite3,进行判断
{ config_id = 1008010, name = "VARIABLE_CHANGE_8010", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_8010", action = "action_EVENT_VARIABLE_CHANGE_8010" },
-- 进入平台处刷怪2
{ config_id = 1008011, name = "ENTER_REGION_8011", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8011", action = "action_EVENT_ENTER_REGION_8011" },
-- 增加保底,如果怪物全清了,则去掉再刷的逻辑
{ config_id = 1008012, name = "ANY_MONSTER_DIE_8012", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_8012", action = "action_EVENT_ANY_MONSTER_DIE_8012" }
}
-- 变量
variables = {
{ config_id = 1, name = "END", value = 0, no_refresh = false },
{ config_id = 2, name = "START", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8004, 8007, 8008 },
regions = { },
triggers = { "VARIABLE_CHANGE_8006", "VARIABLE_CHANGE_8010", "ANY_MONSTER_DIE_8012" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 8001, 8002 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = 正常刷怪,
monsters = { },
gadgets = { },
regions = { 8003 },
triggers = { "ENTER_REGION_8003" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = 玩家没进去,从另一侧刷怪,
monsters = { },
gadgets = { },
regions = { 8009, 8011 },
triggers = { "ENTER_REGION_8009", "ENTER_REGION_8011" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_8003(context, evt)
if evt.param1 ~= 8003 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_8003(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220123008, 2)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 220123008, 4)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_8006(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"END"为1
if ScriptLib.GetGroupVariableValue(context, "END") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_8006(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220123008, 2)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220123008, 3)
-- 删除suite4的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220123008, 4)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_8009(context, evt)
if evt.param1 ~= 8009 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_8009(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220123008, 2)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_8010(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"START"为1
if ScriptLib.GetGroupVariableValue(context, "START") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_8010(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220123008, 3)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_8011(context, evt)
if evt.param1 ~= 8011 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_8011(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220123008, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_8012(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_8012(context, evt)
-- 删除suite4的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220123008, 4)
return 0
end
@@ -0,0 +1,181 @@
-- 基础信息
local base_info = {
group_id = 220123009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9002, gadget_id = 70330161, pos = { x = 4.820, y = -3.400, z = -21.116 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false, is_use_point_array = true },
{ config_id = 9003, gadget_id = 70300048, pos = { x = 4.810, y = -6.473, z = -34.715 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
-- 扰动壁画
{ config_id = 9005, gadget_id = 70330161, pos = { x = 4.820, y = -3.400, z = -21.116 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, start_route = false, is_use_point_array = true },
-- 正常壁画
{ config_id = 9006, gadget_id = 70330161, pos = { x = 4.820, y = -3.400, z = -21.116 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, start_route = false, is_use_point_array = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 4秒后转墙!
{ config_id = 1009004, name = "VARIABLE_CHANGE_9004", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_9004", action = "action_EVENT_VARIABLE_CHANGE_9004" },
-- 转墙!
{ config_id = 1009007, name = "TIME_AXIS_PASS_9007", event = EventType.EVENT_TIME_AXIS_PASS, source = "T999", condition = "", action = "action_EVENT_TIME_AXIS_PASS_9007" },
{ config_id = 1009008, name = "TIME_AXIS_PASS_9008", event = EventType.EVENT_TIME_AXIS_PASS, source = "T888", condition = "", action = "action_EVENT_TIME_AXIS_PASS_9008" }
}
-- 变量
variables = {
{ config_id = 1, name = "Mural", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 9002 },
regions = { },
triggers = { "VARIABLE_CHANGE_9004", "TIME_AXIS_PASS_9007", "TIME_AXIS_PASS_9008" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 9005 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 9006 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_9004(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"Mural"为1
if ScriptLib.GetGroupVariableValue(context, "Mural") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_9004(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "120300401") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 改变指定group组220123002中, configid为2001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220123002, 2001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220123003中, configid为3001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220123003, 3001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 创建标识为"T999",时间节点为{4}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "T999", {4}, false)
-- 将本组内变量名为 "END" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "END", 1, 220123003) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "END" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "END", 1, 220123008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_9007(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 9002, 11, {1}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 创建标识为"T888",时间节点为{5}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "T888", {5}, false)
return 0
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_9008(context, evt)
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 9002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
return 0
end
@@ -0,0 +1,415 @@
-- 基础信息
local base_info = {
group_id = 220123010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10005, gadget_id = 70310008, pos = { x = 2.555, y = -13.531, z = -30.670 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10011, gadget_id = 70211021, pos = { x = 7.252, y = -6.997, z = -28.841 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, drop_tag = "战斗高级稻妻", isOneoff = true, persistent = true },
{ config_id = 10012, gadget_id = 70330162, pos = { x = 4.820, y = -6.473, z = -35.857 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
-- 进区域提示玩家看镜子,调整目标点group变量,准备开始挑战
{ config_id = 10001, shape = RegionShape.CUBIC, size = { x = 10.000, y = 5.000, z = 20.000 }, pos = { x = 0.388, y = -6.938, z = -31.946 } },
-- 看镜子,并且起一个时间轴
{ config_id = 10006, shape = RegionShape.CUBIC, size = { x = 5.000, y = 3.000, z = 3.000 }, pos = { x = 4.707, y = -6.473, z = -35.027 } },
-- 挑战失败后重新开始
{ config_id = 10014, shape = RegionShape.SPHERE, radius = 50, pos = { x = 19.147, y = 3.036, z = -35.605 } }
}
-- 触发器
triggers = {
-- 进区域提示玩家看镜子,调整目标点group变量,准备开始挑战
{ config_id = 1010001, name = "ENTER_REGION_10001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10001", action = "action_EVENT_ENTER_REGION_10001" },
-- 接受变量开始点灯挑战
{ config_id = 1010002, name = "VARIABLE_CHANGE_10002", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_10002", action = "action_EVENT_VARIABLE_CHANGE_10002" },
{ config_id = 1010003, name = "CHALLENGE_SUCCESS_10003", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "101", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_10003" },
-- 统计点灯数量的trigger
{ config_id = 1010004, name = "VARIABLE_CHANGE_10004", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_10004", action = "action_EVENT_VARIABLE_CHANGE_10004", trigger_count = 0, tag = "123" },
-- 看镜子,并且起一个时间轴
{ config_id = 1010006, name = "ENTER_REGION_10006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10006", action = "action_EVENT_ENTER_REGION_10006" },
-- 时间轴到了开始挑战
{ config_id = 1010007, name = "TIME_AXIS_PASS_10007", event = EventType.EVENT_TIME_AXIS_PASS, source = "T1", condition = "", action = "action_EVENT_TIME_AXIS_PASS_10007" },
{ config_id = 1010009, name = "DUNGEON_ALL_AVATAR_DIE_10009", event = EventType.EVENT_DUNGEON_ALL_AVATAR_DIE, source = "", condition = "", action = "action_EVENT_DUNGEON_ALL_AVATAR_DIE_10009", trigger_count = 0 },
{ config_id = 1010010, name = "DUNGEON_SETTLE_10010", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "condition_EVENT_DUNGEON_SETTLE_10010", action = "action_EVENT_DUNGEON_SETTLE_10010" },
-- 挑战失败,加载suite2
{ config_id = 1010013, name = "CHALLENGE_FAIL_10013", event = EventType.EVENT_CHALLENGE_FAIL, source = "101", condition = "", action = "action_EVENT_CHALLENGE_FAIL_10013", trigger_count = 0 },
-- 挑战失败后重新开始
{ config_id = 1010014, name = "ENTER_REGION_10014", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10014", action = "action_EVENT_ENTER_REGION_10014", trigger_count = 0 },
-- 把Lamp变量置回0,然后重新加回到之前的数值
{ config_id = 1010015, name = "GADGET_CREATE_10015", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_10015", action = "action_EVENT_GADGET_CREATE_10015", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "Start", value = 0, no_refresh = false },
{ config_id = 2, name = "Lamp", value = 0, no_refresh = false },
{ config_id = 3, name = "Yes", value = 0, no_refresh = false },
{ config_id = 4, name = "Omega", value = 0, no_refresh = false }
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1010008, name = "TIME_AXIS_PASS_10008", event = EventType.EVENT_TIME_AXIS_PASS, source = "T1", condition = "", action = "action_EVENT_TIME_AXIS_PASS_10008" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 10012 },
regions = { 10001 },
triggers = { "ENTER_REGION_10001", "VARIABLE_CHANGE_10002", "CHALLENGE_SUCCESS_10003", "VARIABLE_CHANGE_10004", "TIME_AXIS_PASS_10007", "DUNGEON_ALL_AVATAR_DIE_10009", "DUNGEON_SETTLE_10010", "CHALLENGE_FAIL_10013" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { 10014 },
triggers = { "ENTER_REGION_10014" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 10005 },
regions = { },
triggers = { "GADGET_CREATE_10015" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_10001(context, evt)
if evt.param1 ~= 10001 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_10001(context, evt)
-- 触发镜头注目,注目位置为坐标(4.9,-6,-36),持续时间为4秒,并且为强制注目形式,不广播其他玩家
local pos = {x=4.9, y=-6, z=-36}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 4, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 1,
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
-- 调用提示id为 4000123 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 4000123) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 改变指定group组220123004中, configid为4001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220123004, 4001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 将本组内变量名为 "stage" 的变量设置为 4
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage", 4, 220123001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 创建标识为"T1",时间节点为{7}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "T1", {7}, false)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_10002(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"Start"为1
if ScriptLib.GetGroupVariableValue(context, "Start") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_10002(context, evt)
-- 创建编号为101(该挑战的识别id),挑战内容为2005010的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 101, 2005010, 3, 123, 4, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
ScriptLib.AddExtraGroupSuite(context, 220123004, 6)
ScriptLib.AddExtraGroupSuite(context, 220123004, 7)
ScriptLib.AddExtraGroupSuite(context, 220123004, 8)
ScriptLib.AddExtraGroupSuite(context, 220123004, 9)
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_10003(context, evt)
-- 将本组内变量名为 "stage" 的变量设置为 6
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage", 6, 220123001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "Finish" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "Finish", 1, 220123004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_10004(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 == evt.param2 then return false end
-- 判断变量"Lamp"为1
if ScriptLib.GetGroupVariableValue(context, "Lamp") == 1 then
return true
end
-- 判断变量"Lamp"为2
if ScriptLib.GetGroupVariableValue(context, "Lamp") == 2 then
return true
end
-- 判断变量"Lamp"为3
if ScriptLib.GetGroupVariableValue(context, "Lamp") == 3 then
return true
end
-- 判断变量"Lamp"为4
if ScriptLib.GetGroupVariableValue(context, "Lamp") == 4 then
return true
end
return false
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_10004(context, evt)
ScriptLib.PrintLog('Counting Lamps')
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_10006(context, evt)
if evt.param1 ~= 10006 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_10006(context, evt)
-- 调用提示id为 4000124 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 4000124) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 创建标识为"T",时间节点为{3}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "T", {3}, false)
return 0
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_10007(context, evt)
-- 将本组内变量名为 "Start" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "Start", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "stage" 的变量设置为 5
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage", 5, 220123001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "Challenge" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "Challenge", 1, 220123004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_DUNGEON_ALL_AVATAR_DIE_10009(context, evt)
-- 地城失败结算
if 0 ~= ScriptLib.CauseDungeonFail(context) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cause_dungeonfail")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_DUNGEON_SETTLE_10010(context, evt)
-- 判断副本成功
if 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_DUNGEON_SETTLE_10010(context, evt)
-- 创建id为10011的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 10011 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_10013(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220123010, 2)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_10014(context, evt)
if evt.param1 ~= 10014 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_10014(context, evt)
-- 创建编号为101(该挑战的识别id),挑战内容为2005010的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 101, 2005010, 3, 123, 4, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
ScriptLib.AddExtraGroupSuite(context, 220123010, 3)
ScriptLib.RemoveExtraGroupSuite(context, 220123010, 2)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_10015(context, evt)
if 10005 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_10015(context, evt)
local c = 0
c = ScriptLib.GetGroupVariableValue(context, "Lamp")
if c == 1 then
ScriptLib.ChangeGroupVariableValue(context, "Omega", 1)
end
if c == 2 then
ScriptLib.ChangeGroupVariableValue(context, "Omega", 1)
ScriptLib.ChangeGroupVariableValue(context, "Omega", 1)
end
if c == 3 then
ScriptLib.ChangeGroupVariableValue(context, "Omega", 1)
ScriptLib.ChangeGroupVariableValue(context, "Omega", 1)
ScriptLib.ChangeGroupVariableValue(context, "Omega", 1)
end
if c == 4 then
ScriptLib.ChangeGroupVariableValue(context, "Omega", 1)
ScriptLib.ChangeGroupVariableValue(context, "Omega", 1)
ScriptLib.ChangeGroupVariableValue(context, "Omega", 1)
ScriptLib.ChangeGroupVariableValue(context, "Omega", 1)
end
ScriptLib.RemoveExtraGroupSuite(context, 220123010, 3)
return 0
end
@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 220123011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 11001, gadget_id = 70300048, pos = { x = 4.828, y = -6.473, z = -34.860 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,95 @@
-- 基础信息
local base_info = {
group_id = 220123012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 12001, monster_id = 25100401, pos = { x = 13.953, y = 2.609, z = -60.835 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1101 }, pose_id = 1002 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 12003, gadget_id = 70211002, pos = { x = 14.087, y = 2.609, z = -58.541 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, drop_tag = "战斗低级稻妻", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1012004, name = "ANY_MONSTER_DIE_12004", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_12004", action = "action_EVENT_ANY_MONSTER_DIE_12004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 12001 },
gadgets = { 12003 },
regions = { },
triggers = { "ANY_MONSTER_DIE_12004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_12004(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_12004(context, evt)
-- 将configid为 12003 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 12003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,45 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 12.80827,
"y": -7.028,
"z": -28.73899
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.0
},
"tranPos": {
"x": 13.0181465,
"y": -7.028,
"z": -28.9202652
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}
@@ -0,0 +1,540 @@
[
{
"pointArrayId": 1,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": -2.940656,
"y": -11.98592,
"z": -34.66531
},
"rotation": {
"x": 0.0,
"y": 270.0,
"z": 0.0
},
"velocity": 1.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 1.0
},
{
"pointId": 2,
"position": {
"x": -2.940656,
"y": -7.882506,
"z": -34.66531
},
"rotation": {
"x": 0.0,
"y": 270.0,
"z": 0.0
},
"velocity": 1.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 1.0
}
]
},
{
"pointArrayId": 2,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 12.60001,
"y": -17.3353653,
"z": -23.46634
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 1.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 1.0
},
{
"pointId": 2,
"position": {
"x": 12.60001,
"y": -11.96515,
"z": -23.46634
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 1.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 1.0
}
]
},
{
"pointArrayId": 3,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 12.82096,
"y": -7.208297,
"z": -34.71377
},
"rotation": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"velocity": 1.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 1.0
},
{
"pointId": 2,
"position": {
"x": 12.6660881,
"y": -1.61654568,
"z": -34.8689575
},
"rotation": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"velocity": 1.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 1.0
}
]
},
{
"pointArrayId": 4,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 4.865772,
"y": -3.4,
"z": -21.11615
},
"rotation": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"velocity": 0.0,
"time": 5.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 5,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 25.11319,
"y": 2.682316,
"z": -53.15554
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 2.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 34.86292,
"y": 2.682316,
"z": -53.15554
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 2.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 6,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 19.9785,
"y": 2.648831,
"z": -58.31371
},
"rotation": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"velocity": 0.0,
"time": 2.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 19.9785,
"y": 2.648831,
"z": -48.52886
},
"rotation": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"velocity": 0.0,
"time": 2.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 7,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 35.13151,
"y": 2.648831,
"z": -43.15516
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 2.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 45.47436,
"y": 2.648831,
"z": -43.15516
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 2.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 8,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 29.80407,
"y": 2.720716,
"z": -37.80595
},
"rotation": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"velocity": 0.0,
"time": 2.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 29.80407,
"y": 2.720716,
"z": -27.88181
},
"rotation": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"velocity": 0.0,
"time": 2.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 9,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 40.28481,
"y": 2.668926,
"z": -48.31753
},
"rotation": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"velocity": 0.0,
"time": 2.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 40.28481,
"y": 2.668926,
"z": -38.01728
},
"rotation": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"velocity": 0.0,
"time": 2.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 3,
"position": {
"x": 40.28481,
"y": 2.668926,
"z": -28.05824
},
"rotation": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"velocity": 0.0,
"time": 2.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 10,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": -2.812594,
"y": -7.229736,
"z": -23.52644
},
"rotation": {
"x": 0.0,
"y": 270.0,
"z": 0.0
},
"velocity": 0.5,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 1.0
},
{
"pointId": 2,
"position": {
"x": -2.812594,
"y": -4.120125,
"z": -23.52644
},
"rotation": {
"x": 0.0,
"y": 270.0,
"z": 0.0
},
"velocity": 0.5,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 1.0
}
]
},
{
"pointArrayId": 11,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 4.82,
"y": -3.4,
"z": -21.11615
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 4.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 1.0,
"z": 0.0
},
"rotSpeed": 45.0,
"arriveRange": 2.0
}
]
}
]