添加配置表

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 = -343.3, z = -356.2 },
size = { x = 727.7, z = 699.9 },
born_pos = { x = -32.397, y = 36.700, z = 66.894 },
born_rot = { x = 0.000, y = 90.000, z = 0.000 },
die_y = -20,
city_id = 4,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 20163 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -343.3, z = -356.2 }, max = { x = 384.4, z = 343.7 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,42 @@
{
"sceneId": 20163,
"routes": [
{
"localId": 1,
"name": "Route_001",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -45.07303,
"y": 67.76368,
"z": -18.9673939
},
"waitTime": 2.0,
"speedLevel": 1
},
{
"pos": {
"x": -44.518425,
"y": 67.6904755,
"z": -10.7494783
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": -45.1624222,
"y": 67.9656754,
"z": -2.98396087
},
"waitTime": 2.0,
"speedLevel": 1
}
]
}
]
}
@@ -0,0 +1,19 @@
-- 所有的group
groups = {
{ id = 220163001, refresh_id = 1, pos = { x = -2.051, y = -3.155, z = -9.393 } },
{ id = 220163002, refresh_id = 1, pos = { x = -5.171, y = -3.468, z = -11.294 } },
{ id = 220163003, refresh_id = 1001, pos = { x = 2.306, y = 35.772, z = 64.440 } },
{ id = 220163004, refresh_id = 1002, pos = { x = -28.893, y = 84.222, z = -38.639 } },
{ id = 220163005, refresh_id = 1002, pos = { x = 46.619, y = 83.031, z = 2.644 } },
{ id = 220163006, refresh_id = 1, pos = { x = 2.534, y = 59.510, z = 67.293 } },
{ id = 220163007, refresh_id = 1, pos = { x = 1.649, y = 57.089, z = -13.295 } },
{ id = 220163008, refresh_id = 1, pos = { x = -5.208, y = 57.380, z = -15.787 } },
{ id = 220163009, refresh_id = 1, pos = { x = 99.587, y = 80.770, z = -39.055 } },
{ id = 220163010, refresh_id = 1, pos = { x = -28.723, y = 83.743, z = -59.450 } },
{ id = 220163011, refresh_id = 1, pos = { x = 52.599, y = 73.708, z = -64.008 } },
{ id = 220163012, refresh_id = 1, pos = { x = -29.792, y = 69.337, z = -8.314 } },
{ id = 220163013, refresh_id = 1, pos = { x = 5.664, y = 57.299, z = 0.784 } },
{ id = 220163014, refresh_id = 1, pos = { x = -25.538, y = 68.995, z = -9.767 } },
{ id = 220163015, refresh_id = 1001, pos = { x = 38.869, y = 74.120, z = -64.477 } },
{ id = 220163016, refresh_id = 1001, pos = { x = -30.233, y = 69.380, z = -10.605 } }
}
@@ -0,0 +1,10 @@
dummy_points = {
["Q302804_guide"] = { pos = { x = 2.595, y = 123.212, z = -14.691 }, rot = { x = 0.000, y = 180.064, z = 0.000 } },
["Q302804_N10000005"] = { pos = { x = 1.414, y = 123.213, z = -14.769 }, rot = { x = 0.000, y = 37.502, z = 0.000 } },
["Q302804_N1005"] = { pos = { x = 3.865, y = 123.259, z = -14.929 }, rot = { x = 0.000, y = 331.384, z = 0.000 } },
["Q302804_N1056"] = { pos = { x = 2.601, y = 123.211, z = -13.240 }, rot = { x = 0.000, y = 180.713, z = 0.000 } },
["Q302805_guide"] = { pos = { x = -31.610, y = 36.671, z = 67.594 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q302805_N10000005"] = { pos = { x = -29.791, y = 36.753, z = 66.349 }, rot = { x = 0.000, y = 307.163, z = 0.000 } },
["Q302805_N1005"] = { pos = { x = -29.802, y = 36.741, z = 68.042 }, rot = { x = 0.000, y = 238.405, z = 0.000 } },
["Q302805_N1056"] = { pos = { x = -30.860, y = 36.738, z = 67.231 }, rot = { x = 0.000, y = 88.320, z = 0.000 } }
}
@@ -0,0 +1,234 @@
-- 基础信息
local base_info = {
group_id = 220163001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70220103, pos = { x = 22.040, y = 43.451, z = 75.707 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1002, gadget_id = 70220103, pos = { x = 6.847, y = 50.958, z = 87.695 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1005, gadget_id = 70220103, pos = { x = -55.353, y = 60.166, z = -7.595 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1019, gadget_id = 70211101, pos = { x = -63.334, y = 81.010, z = -67.229 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜中级须弥", isOneoff = true, persistent = true },
{ config_id = 1028, gadget_id = 70220103, pos = { x = -35.281, y = 85.926, z = -53.737 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1029, gadget_id = 70900203, pos = { x = 2.731, y = 53.315, z = 86.440 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 1027, shape = RegionShape.SPHERE, radius = 3, pos = { x = -63.439, y = 82.019, z = -67.974 } },
{ config_id = 1030, shape = RegionShape.CUBIC, size = { x = 10.000, y = 12.000, z = 12.000 }, pos = { x = 4.371, y = 58.939, z = 82.749 } },
{ config_id = 1031, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 12.000 }, pos = { x = 25.006, y = 40.218, z = 66.805 } }
}
-- 触发器
triggers = {
{ config_id = 1001022, name = "VARIABLE_CHANGE_1022", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_1022", action = "action_EVENT_VARIABLE_CHANGE_1022" },
{ config_id = 1001027, name = "ENTER_REGION_1027", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1027", action = "action_EVENT_ENTER_REGION_1027" },
{ config_id = 1001030, name = "ENTER_REGION_1030", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1030", action = "action_EVENT_ENTER_REGION_1030", trigger_count = 0 },
{ config_id = 1001031, name = "ENTER_REGION_1031", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1031", action = "action_EVENT_ENTER_REGION_1031" }
}
-- 变量
variables = {
{ config_id = 1, name = "default", value = 0, no_refresh = false }
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 1003, gadget_id = 70360002, pos = { x = 2.684, y = 59.510, z = 64.053 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1004, gadget_id = 70211111, pos = { x = 119.724, y = 81.425, z = -34.665 }, rot = { x = 0.000, y = 267.903, z = 0.000 }, level = 1, drop_tag = "解谜中级须弥", isOneoff = true, persistent = true },
{ config_id = 1006, gadget_id = 70220103, pos = { x = 34.865, y = 16.596, z = -64.143 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1007, gadget_id = 70220103, pos = { x = 39.260, y = 11.887, z = -76.758 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1008, gadget_id = 70360002, pos = { x = -23.924, y = 68.995, z = -10.623 }, rot = { x = 0.000, y = 263.132, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 1010, gadget_id = 70220103, pos = { x = -43.086, y = 77.093, z = -28.015 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1011, gadget_id = 70220103, pos = { x = 74.170, y = 77.827, z = -84.146 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1012, gadget_id = 70220103, pos = { x = 94.908, y = 77.678, z = -75.538 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1013, gadget_id = 70220103, pos = { x = 109.887, y = 79.663, z = -59.160 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1014, gadget_id = 70220103, pos = { x = 63.194, y = 82.891, z = 3.548 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1015, gadget_id = 70360002, pos = { x = 27.005, y = 80.968, z = 2.921 }, rot = { x = 0.000, y = 89.614, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 1016, gadget_id = 70360002, pos = { x = 108.575, y = 78.145, z = -54.448 }, rot = { x = 0.000, y = 90.514, z = 0.000 }, level = 1 },
{ config_id = 1017, gadget_id = 70360002, pos = { x = 35.145, y = 73.643, z = -58.792 }, rot = { x = 0.000, y = 149.290, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 1018, gadget_id = 70360002, pos = { x = -19.970, y = 83.530, z = -41.018 }, rot = { x = 0.000, y = 273.067, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 1020, gadget_id = 70211112, pos = { x = 128.354, y = 88.908, z = -39.812 }, rot = { x = 0.000, y = 88.827, z = 0.000 }, level = 1, drop_tag = "解谜中级须弥", isOneoff = true, persistent = true },
{ config_id = 1021, gadget_id = 70360002, pos = { x = -25.587, y = 89.967, z = -75.625 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1023, gadget_id = 70710348, pos = { x = 2.575, y = 47.399, z = 85.860 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1024, gadget_id = 70220103, pos = { x = 88.671, y = 79.693, z = -63.854 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1025, gadget_id = 70220103, pos = { x = 98.752, y = 82.397, z = -38.839 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1026, gadget_id = 70710348, pos = { x = -49.031, y = 57.534, z = -10.569 }, rot = { x = 0.000, y = 267.133, z = 0.000 }, level = 1 }
},
regions = {
{ config_id = 1009, shape = RegionShape.SPHERE, radius = 5, pos = { x = 62.823, y = 10.618, z = -83.196 } }
},
triggers = {
{ 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" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1005, 1019 },
regions = { 1027, 1030, 1031 },
triggers = { "VARIABLE_CHANGE_1022", "ENTER_REGION_1027", "ENTER_REGION_1030", "ENTER_REGION_1031" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1022(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"default"为1
if ScriptLib.GetGroupVariableValue(context, "default") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1022(context, evt)
-- 创建id为1001的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为1002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1027(context, evt)
if evt.param1 ~= 1027 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_1027(context, evt)
-- 创建id为1028的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1028 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1030(context, evt)
if evt.param1 ~= 1030 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_1030(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220163001, EntityType.GADGET, 1029 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1031(context, evt)
if evt.param1 ~= 1031 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_1031(context, evt)
-- 创建id为1029的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1029 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 触发镜头注目,注目位置为坐标(22.040243.4505475.70689),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=22.0402, y=43.45054, z=75.70689}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end
@@ -0,0 +1,644 @@
-- 基础信息
local base_info = {
group_id = 220163002
}
-- Trigger变量
local defs = {
point_camera = 2024,
gadget_lookEntity = 2025,
look_duration = 6
}
-- DEFS_MISCS
local CameraLookSetting = {
blend_type = 0,
blend_duration = 4,
is_force_walk = false,
is_allow_input = ture,
delay = 0,
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[2004] = { config_id = 2004, gadget_id = 70900203, pos = { x = 2.857, y = 57.295, z = 1.719 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
-- 第一个电车提示点
[2007] = { config_id = 2007, gadget_id = 70900203, pos = { x = -39.559, y = 57.915, z = -10.564 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
-- 圆盘操作台提示点1
[2010] = { config_id = 2010, gadget_id = 70900203, pos = { x = -24.064, y = 70.316, z = -10.510 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_REMOTE },
-- 圆盘操作台提示点2
[2011] = { config_id = 2011, gadget_id = 70900203, pos = { x = -19.697, y = 84.918, z = -40.041 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
-- 圆盘操作提示点3
[2016] = { config_id = 2016, gadget_id = 70900203, pos = { x = 35.423, y = 75.110, z = -59.401 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
-- 圆盘操作提示点4
[2017] = { config_id = 2017, gadget_id = 70900203, pos = { x = 25.536, y = 82.354, z = 2.984 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[2022] = { config_id = 2022, gadget_id = 70900203, pos = { x = 8.772, y = 83.554, z = -68.964 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[2025] = { config_id = 2025, gadget_id = 70350085, pos = { x = 2.915, y = 58.302, z = -9.558 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[2027] = { config_id = 2027, gadget_id = 70220103, pos = { x = 32.947, y = 76.906, z = -65.429 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
-- reminder1--提示管道
[2002] = { config_id = 2002, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2.184, y = 51.975, z = 86.321 } },
-- 中间电梯reminder指引
[2005] = { config_id = 2005, shape = RegionShape.CUBIC, size = { x = 20.000, y = 10.000, z = 10.000 }, pos = { x = 0.859, y = 63.981, z = 52.133 } },
-- reminder2--提示找机关
[2006] = { config_id = 2006, shape = RegionShape.CUBIC, size = { x = 30.000, y = 10.000, z = 10.000 }, pos = { x = 2.554, y = 60.647, z = 1.608 } },
[2008] = { config_id = 2008, shape = RegionShape.SPHERE, radius = 6, pos = { x = -37.463, y = 57.351, z = -11.000 } },
-- 圆盘操作提示点1触发
[2009] = { config_id = 2009, shape = RegionShape.CUBIC, size = { x = 27.000, y = 10.000, z = 23.000 }, pos = { x = -35.550, y = 73.667, z = -8.673 } },
-- 轨道塞车reminder
[2014] = { config_id = 2014, shape = RegionShape.SPHERE, radius = 5, pos = { x = -33.261, y = 83.865, z = -56.633 } },
[2023] = { config_id = 2023, shape = RegionShape.CUBIC, size = { x = 30.000, y = 10.000, z = 20.000 }, pos = { x = 23.741, y = 82.393, z = -66.595 } },
-- 到达平台3
[2028] = { config_id = 2028, shape = RegionShape.SPHERE, radius = 8, pos = { x = 38.937, y = 74.847, z = -64.265 } },
-- 到达平台4
[2029] = { config_id = 2029, shape = RegionShape.SPHERE, radius = 5, pos = { x = 27.081, y = 82.831, z = 3.136 } },
-- 到达平台2
[2030] = { config_id = 2030, shape = RegionShape.SPHERE, radius = 5, pos = { x = -21.786, y = 84.129, z = -40.143 } }
}
-- 触发器
triggers = {
-- reminder1--提示管道
{ config_id = 1002002, name = "ENTER_REGION_2002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2002", action = "action_EVENT_ENTER_REGION_2002" },
-- 中间电梯reminder指引
{ config_id = 1002005, name = "ENTER_REGION_2005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2005", action = "action_EVENT_ENTER_REGION_2005" },
-- reminder2--提示找机关
{ config_id = 1002006, name = "ENTER_REGION_2006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2006", action = "action_EVENT_ENTER_REGION_2006" },
{ config_id = 1002008, name = "ENTER_REGION_2008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2008", action = "action_EVENT_ENTER_REGION_2008" },
-- 圆盘操作提示点1触发
{ config_id = 1002009, name = "ENTER_REGION_2009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2009", action = "action_EVENT_ENTER_REGION_2009" },
-- 圆盘1旋转正确--圆盘2操作引导
{ config_id = 1002012, name = "VARIABLE_CHANGE_2012", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_2012", action = "action_EVENT_VARIABLE_CHANGE_2012" },
-- 轨道塞车reminder
{ config_id = 1002014, name = "ENTER_REGION_2014", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2014", action = "action_EVENT_ENTER_REGION_2014" },
-- 圆盘1旋转正确--圆盘3操作引导
{ config_id = 1002015, name = "VARIABLE_CHANGE_2015", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_2015", action = "action_EVENT_VARIABLE_CHANGE_2015" },
-- 战斗房间3完成
{ config_id = 1002018, name = "VARIABLE_CHANGE_2018", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_2018", action = "action_EVENT_VARIABLE_CHANGE_2018" },
{ config_id = 1002020, name = "TIME_AXIS_PASS_2020", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_2020", action = "action_EVENT_TIME_AXIS_PASS_2020" },
-- reminder2--提示找机关
{ config_id = 1002021, name = "TIME_AXIS_PASS_2021", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_2021", action = "action_EVENT_TIME_AXIS_PASS_2021" },
{ config_id = 1002023, name = "ENTER_REGION_2023", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2023", action = "action_EVENT_ENTER_REGION_2023" },
-- 到达平台3
{ config_id = 1002028, name = "ENTER_REGION_2028", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2028", action = "action_EVENT_ENTER_REGION_2028", trigger_count = 0 },
-- 到达平台4
{ config_id = 1002029, name = "ENTER_REGION_2029", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2029", action = "action_EVENT_ENTER_REGION_2029", trigger_count = 0 },
-- 到达平台2
{ config_id = 1002030, name = "ENTER_REGION_2030", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2030", action = "action_EVENT_ENTER_REGION_2030", trigger_count = 0 }
}
-- 点位
points = {
[2024] = { config_id = 2024, pos = { x = 6.888, y = 74.376, z = 17.689 }, rot = { x = 0.000, y = 0.000, z = 0.000 } }
}
-- 变量
variables = {
{ config_id = 1, name = "discSuccess1", value = 0, no_refresh = true },
{ config_id = 2, name = "fightRoom2", value = 0, no_refresh = true },
{ config_id = 3, name = "discSuccess2", value = 0, no_refresh = true },
{ config_id = 4, name = "fightRoom3", value = 0, no_refresh = true },
{ config_id = 5, name = "guideFinish", value = 0, no_refresh = true }
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 2001, gadget_id = 70900203, pos = { x = 2.953, y = 61.509, z = 59.536 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
{ config_id = 2019, gadget_id = 70900203, pos = { x = 2.276, y = 56.955, z = 4.151 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2026, gadget_id = 70900203, pos = { x = 2.681, y = 50.896, z = 86.329 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
},
regions = {
{ config_id = 2003, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2.542, y = 61.408, z = 62.226 } },
{ config_id = 2013, shape = RegionShape.SPHERE, radius = 5, pos = { x = -20.019, y = 84.222, z = -40.098 } }
},
triggers = {
{ config_id = 1002003, name = "ENTER_REGION_2003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2003", action = "action_EVENT_ENTER_REGION_2003" },
{ config_id = 1002013, name = "ENTER_REGION_2013", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2013", action = "action_EVENT_ENTER_REGION_2013" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2025 },
regions = { 2002, 2009, 2028, 2029, 2030 },
triggers = { "ENTER_REGION_2002", "ENTER_REGION_2009", "VARIABLE_CHANGE_2012", "VARIABLE_CHANGE_2015", "VARIABLE_CHANGE_2018", "ENTER_REGION_2028", "ENTER_REGION_2029", "ENTER_REGION_2030" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { 2005 },
triggers = { "ENTER_REGION_2005" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 2004 },
regions = { 2006 },
triggers = { "ENTER_REGION_2006", "TIME_AXIS_PASS_2020", "TIME_AXIS_PASS_2021" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 2007 },
regions = { 2008 },
triggers = { "ENTER_REGION_2008" },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { },
gadgets = { 2010 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 8,
-- description = ,
monsters = { },
gadgets = { 2011 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 9,
-- description = ,
monsters = { },
gadgets = { },
regions = { 2014 },
triggers = { "ENTER_REGION_2014" },
rand_weight = 100
},
{
-- suite_id = 10,
-- description = ,
monsters = { },
gadgets = { 2016 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 11,
-- description = ,
monsters = { },
gadgets = { 2017 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 12,
-- description = ,
monsters = { },
gadgets = { },
regions = { 2023 },
triggers = { "ENTER_REGION_2023" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_2002(context, evt)
if evt.param1 ~= 2002 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_2002(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220163002, 3)
-- 调用提示id为 201630101 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201630101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2005(context, evt)
if evt.param1 ~= 2005 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_2005(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 220163002, 4)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2006(context, evt)
if evt.param1 ~= 2006 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_2006(context, evt)
ScriptLib.InitTimeAxis(context, "R", {3}, false)
LF_PointLook(context)
ScriptLib.RemoveEntityByConfigId(context, 220163002, EntityType.GADGET, 2004 )
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2008(context, evt)
if evt.param1 ~= 2008 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_2008(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220163002, EntityType.GADGET, 2007 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2009(context, evt)
if evt.param1 ~= 2009 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_2009(context, evt)
-- 添加suite7的新内容
ScriptLib.AddExtraGroupSuite(context, 220163002, 7)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220163002, EntityType.GADGET, 2007 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_2012(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"fightRoom2"为1
if ScriptLib.GetGroupVariableValue(context, "fightRoom2") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_2012(context, evt)
-- 添加suite8的新内容
ScriptLib.AddExtraGroupSuite(context, 220163002, 8)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2014(context, evt)
if evt.param1 ~= 2014 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_2014(context, evt)
-- 调用提示id为 201630104 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201630104) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 创建id为2022的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2022 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 添加suite12的新内容
ScriptLib.AddExtraGroupSuite(context, 220163002, 12)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_2015(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"discSuccess2"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "discSuccess2", 220163004) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_2015(context, evt)
-- 添加suite9的新内容
ScriptLib.AddExtraGroupSuite(context, 220163002, 9)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_2018(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"fightRoom3"为1
if ScriptLib.GetGroupVariableValue(context, "fightRoom3") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_2018(context, evt)
-- 添加suite11的新内容
ScriptLib.AddExtraGroupSuite(context, 220163002, 11)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_2020(context, evt)
if "R" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_2020(context, evt)
-- 调用提示id为 201630102 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201630102) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 创建标识为"r2",时间节点为{8}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "r2", {8}, false)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_2021(context, evt)
if "r2" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_2021(context, evt)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 220163002, 5)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2023(context, evt)
if evt.param1 ~= 2023 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_2023(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220163002, EntityType.GADGET, 2022 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 创建id为2016的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2016 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2027的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2027 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2028(context, evt)
if evt.param1 ~= 2028 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_2028(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220163002, EntityType.GADGET, 2022 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220163014, EntityType.GADGET, 14022 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2029(context, evt)
if evt.param1 ~= 2029 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_2029(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220163014, EntityType.GADGET, 14023 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220163011, EntityType.GADGET, 11012 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2030(context, evt)
if evt.param1 ~= 2030 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_2030(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220163014, EntityType.GADGET, 14021 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
require "V3_0/CameraLook"
@@ -0,0 +1,154 @@
-- 基础信息
local base_info = {
group_id = 220163003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3001, monster_id = 23010301, pos = { x = 1.573, y = 35.700, z = 64.326 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 9001 },
{ config_id = 3005, monster_id = 23010201, pos = { x = 2.851, y = 35.757, z = 69.862 }, rot = { x = 0.000, y = 221.666, z = 0.000 }, level = 1, disableWander = true, pose_id = 9011 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3003, gadget_id = 70350464, pos = { x = -13.508, y = 39.277, z = 67.115 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 3004, gadget_id = 70350464, pos = { x = 19.018, y = 39.313, z = 67.114 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 3006, shape = RegionShape.SPHERE, radius = 10, pos = { x = -15.975, y = 36.582, z = 66.710 } }
}
-- 触发器
triggers = {
{ config_id = 1003006, name = "ENTER_REGION_3006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3006", action = "action_EVENT_ENTER_REGION_3006", trigger_count = 0 },
{ config_id = 1003007, name = "ANY_MONSTER_DIE_3007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3007", action = "action_EVENT_ANY_MONSTER_DIE_3007" },
{ config_id = 1003008, name = "GADGET_STATE_CHANGE_3008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_3008", action = "action_EVENT_GADGET_STATE_CHANGE_3008" }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
monsters = {
{ config_id = 3002, monster_id = 23010601, pos = { x = 3.605, y = 35.634, z = 71.267 }, rot = { x = 0.000, y = 172.957, z = 0.000 }, level = 1, pose_id = 9012 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 3001, 3005 },
gadgets = { 3003, 3004 },
regions = { 3006 },
triggers = { "ENTER_REGION_3006", "ANY_MONSTER_DIE_3007", "GADGET_STATE_CHANGE_3008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_3006(context, evt)
if evt.param1 ~= 3006 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, 220163003, 3003) then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_3006(context, evt)
-- 将configid为 3003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3007(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3007(context, evt)
-- 将configid为 3004 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_3008(context, evt)
if 3004 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_3008(context, evt)
-- 将本组内变量名为 "default" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "default", 1, 220163001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
@@ -0,0 +1,248 @@
-- 基础信息
local base_info = {
group_id = 220163004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 4001, monster_id = 23010101, pos = { x = -33.992, y = 84.155, z = -39.746 }, rot = { x = 0.000, y = 238.714, z = 0.000 }, level = 1, disableWander = true, pose_id = 9001 },
{ config_id = 4002, monster_id = 23020101, pos = { x = -33.131, y = 84.154, z = -39.805 }, rot = { x = 0.000, y = 210.743, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4003, gadget_id = 70350464, pos = { x = -23.477, y = 86.510, z = -40.015 }, rot = { x = 0.000, y = 90.259, z = 0.000 }, level = 1 },
{ config_id = 4004, gadget_id = 70350464, pos = { x = -43.873, y = 86.509, z = -39.989 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 4005, gadget_id = 70350464, pos = { x = -33.594, y = 86.543, z = -50.188 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4013, gadget_id = 70211011, pos = { x = -28.465, y = 83.710, z = -45.401 }, rot = { x = 0.000, y = 312.770, z = 0.000 }, level = 1, drop_tag = "战斗中级须弥", isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 4006, shape = RegionShape.SPHERE, radius = 5, pos = { x = -46.125, y = 85.470, z = -41.192 } }
}
-- 触发器
triggers = {
{ config_id = 1004006, name = "ENTER_REGION_4006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4006", action = "action_EVENT_ENTER_REGION_4006" },
{ config_id = 1004007, name = "ANY_MONSTER_DIE_4007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4007", action = "action_EVENT_ANY_MONSTER_DIE_4007" },
{ config_id = 1004008, name = "VARIABLE_CHANGE_4008", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_4008", action = "action_EVENT_VARIABLE_CHANGE_4008", trigger_count = 0 },
{ config_id = 1004009, name = "VARIABLE_CHANGE_4009", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_4009", action = "action_EVENT_VARIABLE_CHANGE_4009", trigger_count = 0 },
{ config_id = 1004014, name = "ANY_MONSTER_DIE_4014", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4014", action = "action_EVENT_ANY_MONSTER_DIE_4014" }
}
-- 变量
variables = {
{ config_id = 1, name = "discSuccess2", value = 0, no_refresh = false }
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 4011, gadget_id = 70900201, pos = { x = -33.264, y = 85.421, z = -55.781 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
},
regions = {
{ config_id = 4012, shape = RegionShape.SPHERE, radius = 5, pos = { x = -33.831, y = 83.782, z = -56.406 } }
},
triggers = {
{ config_id = 1004010, name = "VARIABLE_CHANGE_4010", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_4010", action = "action_EVENT_VARIABLE_CHANGE_4010" },
{ config_id = 1004012, name = "ENTER_REGION_4012", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4012", action = "action_EVENT_ENTER_REGION_4012" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 4001 },
gadgets = { 4003, 4004, 4005 },
regions = { 4006 },
triggers = { "ENTER_REGION_4006", "ANY_MONSTER_DIE_4007", "VARIABLE_CHANGE_4008", "VARIABLE_CHANGE_4009" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 4002 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_4014" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_4006(context, evt)
if evt.param1 ~= 4006 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_4006(context, evt)
-- 将configid为 4004 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4004, 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_4007(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4007(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220163004, 2)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_4008(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"discSuccess2"为1
if ScriptLib.GetGroupVariableValue(context, "discSuccess2") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_4008(context, evt)
-- 将configid为 4005 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4005, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将本组内变量名为 "discSuccess2" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "discSuccess2", 1, 220163002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_4009(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"discSuccess2"为0
if ScriptLib.GetGroupVariableValue(context, "discSuccess2") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_4009(context, evt)
-- 将configid为 4005 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将本组内变量名为 "discSuccess2" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "discSuccess2", 0, 220163002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4014(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4014(context, evt)
-- 将configid为 4003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将本组内变量名为 "fightRoom2" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "fightRoom2", 1, 220163002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 创建id为4013的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 4013 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,201 @@
-- 基础信息
local base_info = {
group_id = 220163005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 5001, monster_id = 23010501, pos = { x = 43.157, y = 82.542, z = -2.144 }, rot = { x = 0.000, y = 39.839, z = 0.000 }, level = 1, disableWander = true, pose_id = 9001 },
{ config_id = 5002, monster_id = 23010401, pos = { x = 43.792, y = 82.806, z = 6.369 }, rot = { x = 0.000, y = 123.793, z = 0.000 }, level = 1, disableWander = true, pose_id = 9012 },
{ config_id = 5008, monster_id = 23010601, pos = { x = 40.176, y = 82.806, z = 4.526 }, rot = { x = 0.000, y = 95.732, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 5010, monster_id = 23040101, pos = { x = 37.155, y = 82.542, z = 3.111 }, rot = { x = 0.000, y = 85.724, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 5011, monster_id = 23010301, pos = { x = 42.168, y = 82.830, z = 0.881 }, rot = { x = 0.000, y = 49.279, z = 0.000 }, level = 1, disableWander = true, pose_id = 9011 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5003, gadget_id = 70350464, pos = { x = 32.910, y = 85.416, z = 3.137 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 5004, gadget_id = 70350464, pos = { x = 53.307, y = 85.461, z = 3.080 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 5007, gadget_id = 70211011, pos = { x = 38.068, y = 82.544, z = -1.994 }, rot = { x = 0.000, y = 46.676, z = 0.000 }, level = 1, drop_tag = "战斗中级须弥", isOneoff = true, persistent = true },
{ config_id = 5009, gadget_id = 70220103, pos = { x = 29.526, y = 88.220, z = 1.367 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 5005, shape = RegionShape.SPHERE, radius = 5, pos = { x = 58.367, y = 82.037, z = 2.832 } }
}
-- 触发器
triggers = {
{ config_id = 1005005, name = "ENTER_REGION_5005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5005", action = "action_EVENT_ENTER_REGION_5005" },
{ config_id = 1005006, name = "ANY_MONSTER_DIE_5006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_5006", action = "action_EVENT_ANY_MONSTER_DIE_5006" },
{ config_id = 1005012, name = "ANY_MONSTER_DIE_5012", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_5012", action = "action_EVENT_ANY_MONSTER_DIE_5012" },
{ config_id = 1005013, name = "ANY_MONSTER_DIE_5013", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_5013", action = "action_EVENT_ANY_MONSTER_DIE_5013" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 5002, 5011 },
gadgets = { 5003, 5004 },
regions = { 5005 },
triggers = { "ENTER_REGION_5005", "ANY_MONSTER_DIE_5012" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 5001, 5008 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_5013" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 5010 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_5006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_5005(context, evt)
if evt.param1 ~= 5005 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_5005(context, evt)
-- 将configid为 5004 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5004, 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_5006(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_5006(context, evt)
-- 将configid为 5003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将本组内变量名为 "fightRoom3" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "fightRoom3", 1, 220163002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 创建id为5007的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为5009的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5009 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_5012(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_5012(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220163005, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_5013(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_5013(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220163005, 3)
return 0
end
@@ -0,0 +1,97 @@
-- 基础信息
local base_info = {
group_id = 220163006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6002, gadget_id = 70350464, pos = { x = 2.640, y = 61.891, z = 57.581 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 6001, shape = RegionShape.SPHERE, radius = 7, pos = { x = 2.847, y = 61.143, z = 62.043 } }
}
-- 触发器
triggers = {
{ config_id = 1006001, name = "ENTER_REGION_6001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6001", action = "action_EVENT_ENTER_REGION_6001" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6002 },
regions = { 6001 },
triggers = { "ENTER_REGION_6001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_6001(context, evt)
if evt.param1 ~= 6001 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_6001(context, evt)
-- 将configid为 6002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,191 @@
-- 基础信息
local base_info = {
group_id = 220163008
}
-- DEFS_MISCS
local defs = {
option_turn = 613,
option_start = 7,
option_stop = 920,
point_array = 2,
station_region = 8012,
play_region = 8017,
--运输装置config_id
carrier_list = {8001,8002,8004,8013,8014,8016},
switcher_control =
{--[操作台configID] = {被控岔路装置1, 被控岔路装置2},
},
--终点
end_point = {8},
--转弯
turn_point = {3},
--option_gadget = 8015,
--几条路 注意是point_list有向的 倒数第二个点为岔路判定点
way_info =
{
--key为路径几 顺序无所谓
[1] =
{
point_list = {1,2,9,3,4,5,6,7,8},
spawn_point = 9,
gear_id = 0, --此判定点依据哪个岔路物件
dir = --岔路物件每个State通向哪
{ --GadgetState索引way_info ID
[0] = 0,
[201] = 0,
[202] = 0,
[203] = 0,
},
},
},
--停车点 到此点时会判断是否需要停车
stop_points =
{
3
},
--下车点 当到达下车点时,如果上面有人则停
leave_points=
{
6
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[8001] = { config_id = 8001, gadget_id = 70320028, pos = { x = -54.113, y = 62.455, z = -44.517 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true },
[8002] = { config_id = 8002, gadget_id = 70320028, pos = { x = -54.113, y = 62.455, z = -44.517 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true },
[8004] = { config_id = 8004, gadget_id = 70320028, pos = { x = -54.113, y = 62.455, z = -44.517 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true },
[8013] = { config_id = 8013, gadget_id = 70320028, pos = { x = -54.113, y = 62.455, z = -44.517 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true },
[8014] = { config_id = 8014, gadget_id = 70320028, pos = { x = -54.113, y = 62.455, z = -44.517 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true },
[8016] = { config_id = 8016, gadget_id = 70320028, pos = { x = -54.113, y = 62.455, z = -44.517 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true },
[8018] = { config_id = 8018, gadget_id = 70300118, pos = { x = -42.309, y = 57.192, z = -10.668 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
[8012] = { config_id = 8012, shape = RegionShape.SPHERE, radius = 3, pos = { x = -40.117, y = 57.183, z = -10.774 } },
-- play region
[8017] = { config_id = 8017, shape = RegionShape.SPHERE, radius = 60, pos = { x = -47.013, y = 57.183, z = -10.240 } }
}
-- 触发器
triggers = {
{ config_id = 1008005, name = "VARIABLE_CHANGE_8005", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_8005", action = "action_EVENT_VARIABLE_CHANGE_8005" },
-- play region
{ config_id = 1008017, name = "ENTER_REGION_8017", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 8003, gadget_id = 70300118, pos = { x = -39.618, y = 57.266, z = -10.709 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8015, gadget_id = 70350439, pos = { x = -39.673, y = 57.183, z = -10.701 }, rot = { x = 0.000, y = 89.987, z = 0.000 }, level = 1, state = GadgetState.GearStart, worktop_config = { init_options = { 920 } } }
},
triggers = {
{ config_id = 1008006, name = "PLATFORM_ARRIVAL_8006", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_8006", action = "action_EVENT_PLATFORM_ARRIVAL_8006", trigger_count = 0 },
{ config_id = 1008007, name = "PLATFORM_ARRIVAL_8007", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_8007", action = "action_EVENT_PLATFORM_ARRIVAL_8007", trigger_count = 0 },
{ config_id = 1008008, name = "PLATFORM_ARRIVAL_8008", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_8008", action = "action_EVENT_PLATFORM_ARRIVAL_8008", trigger_count = 0 },
{ config_id = 1008009, name = "PLATFORM_ARRIVAL_8009", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_8009", action = "action_EVENT_PLATFORM_ARRIVAL_8009", trigger_count = 0 },
{ config_id = 1008010, name = "PLATFORM_ARRIVAL_8010", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_8010", action = "action_EVENT_PLATFORM_ARRIVAL_8010", trigger_count = 0 },
{ config_id = 1008011, name = "PLATFORM_ARRIVAL_8011", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_8011", action = "action_EVENT_PLATFORM_ARRIVAL_8011", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8001, 8018 },
regions = { 8012, 8017 },
triggers = { "VARIABLE_CHANGE_8005", "ENTER_REGION_8017" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_8005(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"first_station"为1
if ScriptLib.GetGroupVariableValue(context, "first_station") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_8005(context, evt)
-- 调用提示id为 201630103 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201630103) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "guideFinish" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "guideFinish", 1, 220163002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
require "V3_2/MachineCarrier"
@@ -0,0 +1,360 @@
-- 基础信息
local base_info = {
group_id = 220163009
}
-- DEFS_MISCS
local defs = {
option_turn = 613,
option_start = 7,
option_stop = 920,
station_region = 9020,
play_region = 9026,
point_array = 3,
--运输装置config_id
--打开旋转选项point{15,16,17}
recover_points = {15,16,17},
carrier_list = {9001,9006,9021,9022,9023,9024},
switcher_control =
{--[操作台configID] = {被控岔路装置1, 被控岔路装置2},
[9007] = {9002},
[9008] = {9005},
},
end_point = {14},
--转弯
turn_point = {5,12},
--option_gadget = 9003,
--几条路 注意是point_list有向的 倒数第二个点为岔路判定点
way_info =
{
--key为路径几 顺序无所谓
[1] =
{
point_list = {1,2,3},
spawn_point = 0,
gear_id = 9002, --此判定点依据哪个岔路物件
dir = --岔路物件每个State通向哪
{ --GadgetState索引way_info ID
[0] = 0,
[201] = 0,
[202] = 0,
[203] = 2,
},
},
[2] =
{
point_list = {4,15,5,6},
spawn_point = 0,
gear_id = 9005, --此判定点依据哪个岔路物件
dir = --岔路物件每个State通向哪
{ --GadgetState索引way_info ID
[0] = 3,
[201] = 4,
[202] = 0,
[203] = 0,
},
},
[3] =
{
point_list = {7,17,8,9,10},
spawn_point = 0,
gear_id = 9002, --此判定点依据哪个岔路物件
dir = --岔路物件每个State通向哪
{ --GadgetState索引way_info ID
[0] = 2,
[201] = 0,
[202] = 0,
[203] = 0,
},
},
[4] =
{
point_list = {7,16,11,12,13,14},
spawn_point = 16,
gear_id = 0, --此判定点依据哪个岔路物件
dir = --岔路物件每个State通向哪
{ --GadgetState索引way_info ID
[0] = 0,
[201] = 0,
[202] = 0,
[203] = 0,
},
},
},
--停车点 到此点时会判断是否需要停车
stop_points =
{
5
},
--下车点 当到达下车点时,如果上面有人则停
leave_points=
{
12
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[9001] = { config_id = 9001, gadget_id = 70320028, pos = { x = 61.627, y = 86.810, z = -37.072 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true },
-- 右边岔路
[9002] = { config_id = 9002, gadget_id = 70320027, pos = { x = 83.685, y = 88.041, z = -48.161 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
-- 左边岔路
[9005] = { config_id = 9005, gadget_id = 70320027, pos = { x = 83.676, y = 88.060, z = -12.605 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[9006] = { config_id = 9006, gadget_id = 70320028, pos = { x = 61.627, y = 86.810, z = -37.072 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true },
-- 右边操作机关
[9007] = { config_id = 9007, gadget_id = 70350439, pos = { x = 89.127, y = 81.548, z = -38.587 }, rot = { x = 0.600, y = 43.600, z = 0.585 }, level = 1, persistent = true, worktop_config = { init_options = { 613 } }, server_global_value_config = { ["SGV_MACHINE_ENERGY_LEVEL"] = 1 } },
-- 左边操作机关
[9008] = { config_id = 9008, gadget_id = 70350439, pos = { x = 89.086, y = 81.548, z = -30.647 }, rot = { x = 0.000, y = 138.976, z = 0.000 }, level = 1, persistent = true, worktop_config = { init_options = { 613 } }, server_global_value_config = { ["SGV_MACHINE_ENERGY_LEVEL"] = 1 } },
[9013] = { config_id = 9013, gadget_id = 70300118, pos = { x = 86.742, y = 81.548, z = -34.678 }, rot = { x = 0.600, y = 43.600, z = 0.585 }, level = 1 },
[9021] = { config_id = 9021, gadget_id = 70320028, pos = { x = 61.627, y = 86.810, z = -37.072 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true },
[9022] = { config_id = 9022, gadget_id = 70320028, pos = { x = 61.627, y = 86.810, z = -37.072 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true },
[9023] = { config_id = 9023, gadget_id = 70320028, pos = { x = 61.627, y = 86.810, z = -37.072 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true },
[9024] = { config_id = 9024, gadget_id = 70320028, pos = { x = 61.627, y = 86.810, z = -37.072 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true }
}
-- 区域
regions = {
[9020] = { config_id = 9020, shape = RegionShape.CUBIC, size = { x = 4.000, y = 3.000, z = 8.000 }, pos = { x = 87.809, y = 83.019, z = -34.551 } },
[9025] = { config_id = 9025, shape = RegionShape.SPHERE, radius = 5, pos = { x = 90.397, y = 81.734, z = -34.123 } },
-- play region
[9026] = { config_id = 9026, shape = RegionShape.SPHERE, radius = 100, pos = { x = 49.232, y = 97.717, z = -32.435 } },
[9027] = { config_id = 9027, shape = RegionShape.SPHERE, radius = 8, pos = { x = 91.890, y = 81.691, z = -34.993 } }
}
-- 触发器
triggers = {
{ config_id = 1009009, name = "GROUP_LOAD_9009", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_9009", trigger_count = 0 },
{ config_id = 1009011, name = "PLATFORM_ARRIVAL_9011", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_9011", action = "action_EVENT_PLATFORM_ARRIVAL_9011" },
{ config_id = 1009016, name = "SELECT_OPTION_9016", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_9016", action = "action_EVENT_SELECT_OPTION_9016", trigger_count = 0 },
{ config_id = 1009017, name = "SELECT_OPTION_9017", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_9017", action = "action_EVENT_SELECT_OPTION_9017", trigger_count = 0 },
{ config_id = 1009025, name = "ENTER_REGION_9025", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "" },
-- play region
{ config_id = 1009026, name = "ENTER_REGION_9026", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "", trigger_count = 0 },
{ config_id = 1009027, name = "ENTER_REGION_9027", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9027", action = "action_EVENT_ENTER_REGION_9027" }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 9003, gadget_id = 70350439, pos = { x = 88.363, y = 81.559, z = -34.629 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 920 } } },
{ config_id = 9004, gadget_id = 70320027, pos = { x = 106.199, y = 87.186, z = -47.985 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 9010, gadget_id = 70320027, pos = { x = 106.199, y = 87.107, z = -21.629 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 9012, gadget_id = 70300118, pos = { x = 88.355, y = 81.603, z = -34.638 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9014, gadget_id = 70300118, pos = { x = 89.089, y = 81.548, z = -30.628 }, rot = { x = 0.000, y = 138.976, z = 0.000 }, level = 1 },
{ config_id = 9015, gadget_id = 70360002, pos = { x = 94.148, y = 80.801, z = -36.867 }, rot = { x = 0.000, y = 91.367, z = 0.000 }, level = 1, worktop_config = { init_options = { 7, 613 } } }
},
triggers = {
{ config_id = 1009018, name = "PLATFORM_ARRIVAL_9018", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_9018", action = "action_EVENT_PLATFORM_ARRIVAL_9018", trigger_count = 0 },
{ config_id = 1009019, name = "PLATFORM_ARRIVAL_9019", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_9019", action = "action_EVENT_PLATFORM_ARRIVAL_9019", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 9001, 9002, 9005, 9007, 9008, 9013 },
regions = { 9020, 9025, 9026, 9027 },
triggers = { "GROUP_LOAD_9009", "PLATFORM_ARRIVAL_9011", "SELECT_OPTION_9016", "SELECT_OPTION_9017", "ENTER_REGION_9025", "ENTER_REGION_9026", "ENTER_REGION_9027" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GROUP_LOAD_9009(context, evt)
-- 将configid为 9002 的物件更改为状态 GadgetState.GearAction1
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9002, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_ARRIVAL_9011(context, evt)
-- 判断是gadgetid 为 9001的移动平台,是否到达了3 的点集中的 9 点
if 9001 ~= evt.param1 then
return false
end
if 3 ~= evt.param2 then
return false
end
if 9 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_ARRIVAL_9011(context, evt)
-- 将configid为 9002 的物件更改为状态 GadgetState.GearAction1
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9002, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_9016(context, evt)
-- 判断是gadgetid 9007 option_id 613
if 9007 ~= evt.param1 then
return false
end
if 613 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_9016(context, evt)
-- 触发镜头注目,注目位置为坐标(83.6853185.10368-48.1614),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=83.68531, y=85.10368, z=-48.1614}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_9017(context, evt)
-- 判断是gadgetid 9008 option_id 613
if 9008 ~= evt.param1 then
return false
end
if 613 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_9017(context, evt)
-- 触发镜头注目,注目位置为坐标(83.6764785.10368-12.60524),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=83.67647, y=85.10368, z=-12.60524}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_9027(context, evt)
if evt.param1 ~= 9027 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_9027(context, evt)
-- 将configid为 9007 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9007, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 9008 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9008, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
require "V3_2/MachineCarrier"
@@ -0,0 +1,257 @@
-- 基础信息
local base_info = {
group_id = 220163010
}
-- DEFS_MISCS
local defs = {
option_turn = 613,
option_start = 7,
option_stop = 920,
play_region = 10021,
--岔路旋转State列表
turn_queue = {203,202,201,0},
point_array = 4,
--option_gadget = 10003,
station_region = 10019,
recover_points = {5,6},
--运输装置config_id
carrier_list = {10001,10004,10005,10006,10010,10011,10012,10013,10014,10016,10017,10018},
switcher_control =
{--[操作台configID] = {被控岔路装置1, 被控岔路装置2},
[10003] = {10002},
},
--终点
end_point = {12,13},
--转弯
turn_point = {4,11},
--几条路 注意是point_list有向的 倒数第二个点为岔路判定点
way_info =
{
--key为路径几 顺序无所谓
[1] =
{
point_list = {1,2,3},
spawn_point = 2,
gear_id = 10002, --此判定点依据哪个岔路物件
dir = --岔路物件每个State通向哪
{ --GadgetState索引way_info ID
[0] = 0,
[201] = 0,
[202] = 3,
[203] = 2,
},
},
[2] =
{
point_list = {14,4,6,11,7,12},
spawn_point = 0,
gear_id = 0, --此判定点依据哪个岔路物件
dir = --岔路物件每个State通向哪
{ --GadgetState索引way_info ID
[0] = 0,
[201] = 0,
[202] = 0,
[203] = 0,
},
},
[3] =
{
point_list = {14,4,5,8,9,10,13},
spawn_point = 0,
gear_id = 0, --此判定点依据哪个岔路物件
dir = --岔路物件每个State通向哪
{ --GadgetState索引way_info ID
[0] = 0,
[201] = 0,
[202] = 0,
[203] = 0,
},
},
},
--停车点 到此点时会判断是否需要停车
stop_points =
{
4
},
--下车点 当到达下车点时,如果上面有人则停
leave_points=
{
9,11
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[10001] = { config_id = 10001, gadget_id = 70320028, pos = { x = -87.322, y = 88.771, z = -100.187 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, is_use_point_array = true },
-- 可动岔路
[10002] = { config_id = 10002, gadget_id = 70320027, pos = { x = -31.853, y = 90.038, z = -61.140 }, rot = { x = 0.019, y = 180.389, z = 359.830 }, level = 1 },
[10003] = { config_id = 10003, gadget_id = 70350439, pos = { x = -33.268, y = 83.779, z = -53.951 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true, worktop_config = { init_options = { 613 } }, server_global_value_config = { ["SGV_MACHINE_ENERGY_LEVEL"] = 1 } },
[10004] = { config_id = 10004, gadget_id = 70320028, pos = { x = -87.322, y = 88.771, z = -100.187 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_REMOTE },
[10005] = { config_id = 10005, gadget_id = 70320028, pos = { x = -87.322, y = 88.771, z = -100.187 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_REMOTE },
[10006] = { config_id = 10006, gadget_id = 70320028, pos = { x = -87.322, y = 88.771, z = -100.187 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_REMOTE },
[10007] = { config_id = 10007, gadget_id = 70300118, pos = { x = -33.260, y = 83.804, z = -58.200 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[10010] = { config_id = 10010, gadget_id = 70320028, pos = { x = -87.322, y = 88.771, z = -100.187 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_REMOTE },
[10011] = { config_id = 10011, gadget_id = 70320028, pos = { x = -87.322, y = 88.771, z = -100.187 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_REMOTE },
[10012] = { config_id = 10012, gadget_id = 70320028, pos = { x = -87.322, y = 88.771, z = -100.187 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_REMOTE },
[10013] = { config_id = 10013, gadget_id = 70320028, pos = { x = -87.322, y = 88.771, z = -100.187 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_REMOTE },
[10014] = { config_id = 10014, gadget_id = 70320028, pos = { x = -87.322, y = 88.771, z = -100.187 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_REMOTE },
[10016] = { config_id = 10016, gadget_id = 70320028, pos = { x = -87.322, y = 88.771, z = -100.187 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_REMOTE },
[10017] = { config_id = 10017, gadget_id = 70320028, pos = { x = -87.322, y = 88.771, z = -100.187 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_REMOTE },
[10018] = { config_id = 10018, gadget_id = 70320028, pos = { x = -87.322, y = 88.771, z = -100.187 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_REMOTE }
}
-- 区域
regions = {
[10019] = { config_id = 10019, shape = RegionShape.SPHERE, radius = 4, pos = { x = -33.308, y = 84.522, z = -59.910 } },
[10020] = { config_id = 10020, shape = RegionShape.SPHERE, radius = 5, pos = { x = -34.455, y = 83.743, z = -54.574 } },
-- play region
[10021] = { config_id = 10021, shape = RegionShape.SPHERE, radius = 100, pos = { x = -32.239, y = 91.104, z = -96.334 } }
}
-- 触发器
triggers = {
{ config_id = 1010009, name = "SELECT_OPTION_10009", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_10009", action = "action_EVENT_SELECT_OPTION_10009", trigger_count = 0 },
{ config_id = 1010020, name = "ENTER_REGION_10020", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10020", action = "action_EVENT_ENTER_REGION_10020" },
-- play region
{ config_id = 1010021, name = "ENTER_REGION_10021", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "" }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 10015, gadget_id = 70360002, pos = { x = -32.639, y = 92.647, z = -50.490 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 7, 613 } } }
},
triggers = {
{ config_id = 1010008, name = "GADGET_CREATE_10008", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_10008", action = "action_EVENT_GADGET_CREATE_10008", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 10001, 10002, 10003, 10007 },
regions = { 10019, 10020, 10021 },
triggers = { "SELECT_OPTION_10009", "ENTER_REGION_10020", "ENTER_REGION_10021" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_10009(context, evt)
-- 判断是gadgetid 10003 option_id 613
if 10003 ~= evt.param1 then
return false
end
if 613 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_10009(context, evt)
-- 触发镜头注目,注目位置为坐标(-31.8536190.16656-61.13972),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=-31.85361, y=90.16656, z=-61.13972}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_10020(context, evt)
if evt.param1 ~= 10020 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_10020(context, evt)
-- 将configid为 10003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
require "V3_2/MachineCarrier"
@@ -0,0 +1,291 @@
-- 基础信息
local base_info = {
group_id = 220163011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 11001, gadget_id = 70350464, pos = { x = 56.021, y = 76.427, z = -64.294 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 11005, gadget_id = 70220103, pos = { x = 89.534, y = 81.281, z = -64.292 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11006, gadget_id = 70220103, pos = { x = 93.457, y = 82.726, z = -40.682 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11012, gadget_id = 70900203, pos = { x = 59.578, y = 80.960, z = 3.318 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 11004, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = 62.959, y = 73.356, z = -63.170 } },
{ config_id = 11007, shape = RegionShape.SPHERE, radius = 5, pos = { x = 94.254, y = 80.773, z = -35.526 } },
{ config_id = 11010, shape = RegionShape.CUBIC, size = { x = 40.000, y = 10.000, z = 15.000 }, pos = { x = 77.512, y = 80.386, z = -63.999 } },
{ config_id = 11011, shape = RegionShape.SPHERE, radius = 5, pos = { x = 94.408, y = 81.688, z = -34.945 } },
{ config_id = 11013, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = 60.009, y = 84.782, z = 3.088 } }
}
-- 触发器
triggers = {
{ config_id = 1011002, name = "VARIABLE_CHANGE_11002", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_11002", action = "action_EVENT_VARIABLE_CHANGE_11002", trigger_count = 0 },
{ config_id = 1011003, name = "VARIABLE_CHANGE_11003", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_11003", action = "action_EVENT_VARIABLE_CHANGE_11003", trigger_count = 0 },
{ config_id = 1011004, name = "ENTER_REGION_11004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11004", action = "action_EVENT_ENTER_REGION_11004", trigger_count = 0 },
{ config_id = 1011007, name = "ENTER_REGION_11007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11007", action = "action_EVENT_ENTER_REGION_11007", trigger_count = 0 },
{ config_id = 1011010, name = "ENTER_REGION_11010", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11010", action = "action_EVENT_ENTER_REGION_11010", trigger_count = 0 },
{ config_id = 1011011, name = "ENTER_REGION_11011", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11011", action = "action_EVENT_ENTER_REGION_11011" },
{ config_id = 1011013, name = "ENTER_REGION_11013", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11013", action = "action_EVENT_ENTER_REGION_11013", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "discSuccess3", value = 0, no_refresh = false },
{ config_id = 2, name = "default", value = 0, no_refresh = false }
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 11009, gadget_id = 70350085, pos = { x = 55.252, y = 75.335, z = -64.041 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
},
triggers = {
{ config_id = 1011008, name = "GADGET_STATE_CHANGE_11008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_11008", action = "action_EVENT_GADGET_STATE_CHANGE_11008" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 11001 },
regions = { 11004, 11007, 11010, 11011, 11013 },
triggers = { "VARIABLE_CHANGE_11002", "VARIABLE_CHANGE_11003", "ENTER_REGION_11004", "ENTER_REGION_11007", "ENTER_REGION_11010", "ENTER_REGION_11011", "ENTER_REGION_11013" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 11005, 11006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_11002(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"discSuccess3"为1
if ScriptLib.GetGroupVariableValue(context, "discSuccess3") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_11002(context, evt)
-- 将configid为 11001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_11003(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"discSuccess3"为0
if ScriptLib.GetGroupVariableValue(context, "discSuccess3") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_11003(context, evt)
-- 将configid为 11001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11004(context, evt)
if evt.param1 ~= 11004 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_11004(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220163011, 2)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11007(context, evt)
if evt.param1 ~= 11007 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"default"为0
if ScriptLib.GetGroupVariableValue(context, "default") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11007(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220163011, 2)
-- 将本组内变量名为 "default" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "default", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11010(context, evt)
if evt.param1 ~= 11010 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"default"为1
if ScriptLib.GetGroupVariableValue(context, "default") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11010(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220163011, 2)
-- 将本组内变量名为 "default" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "default", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11011(context, evt)
if evt.param1 ~= 11011 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_11011(context, evt)
-- 创建id为11012的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 11012 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11013(context, evt)
if evt.param1 ~= 11013 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_11013(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220163011, EntityType.GADGET, 11012 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,160 @@
-- 基础信息
local base_info = {
group_id = 220163012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 12001, gadget_id = 70220103, pos = { x = -43.453, y = 77.092, z = -30.097 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1012003, name = "VARIABLE_CHANGE_12003", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_12003", action = "action_EVENT_VARIABLE_CHANGE_12003", trigger_count = 0 },
{ config_id = 1012004, name = "VARIABLE_CHANGE_12004", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_12004", action = "action_EVENT_VARIABLE_CHANGE_12004", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "discSuccess1", value = 0, no_refresh = true }
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 12006, gadget_id = 70900203, pos = { x = -47.005, y = 84.521, z = -37.983 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
{ config_id = 12008, gadget_id = 70350085, pos = { x = -43.966, y = 76.235, z = -27.568 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER }
},
regions = {
{ config_id = 12007, shape = RegionShape.SPHERE, radius = 5, pos = { x = -47.128, y = 83.657, z = -40.141 } },
{ config_id = 12009, shape = RegionShape.SPHERE, radius = 5, pos = { x = -43.900, y = 75.916, z = -31.571 } }
},
triggers = {
{ config_id = 1012002, name = "VARIABLE_CHANGE_12002", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_12002", action = "action_EVENT_VARIABLE_CHANGE_12002" },
{ config_id = 1012005, name = "GADGET_CREATE_12005", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_12005", action = "action_EVENT_GADGET_CREATE_12005", trigger_count = 0 },
{ config_id = 1012007, name = "ENTER_REGION_12007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_12007", action = "action_EVENT_ENTER_REGION_12007" },
{ config_id = 1012009, name = "ENTER_REGION_12009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_12009", action = "action_EVENT_ENTER_REGION_12009" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "VARIABLE_CHANGE_12003", "VARIABLE_CHANGE_12004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 12001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_12003(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"discSuccess1"为0
if ScriptLib.GetGroupVariableValue(context, "discSuccess1") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_12003(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220163012, 2)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_12004(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"discSuccess1"为1
if ScriptLib.GetGroupVariableValue(context, "discSuccess1") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_12004(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220163012, 2)
return 0
end
@@ -0,0 +1,138 @@
-- 基础信息
local base_info = {
group_id = 220163013
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 13003, gadget_id = 70900203, pos = { x = 2.566, y = 122.101, z = -14.946 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 13002, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = 1.753, y = 126.332, z = -19.106 } },
{ config_id = 13005, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2.672, y = 126.225, z = -10.982 } }
}
-- 触发器
triggers = {
{ config_id = 1013002, name = "ENTER_REGION_13002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13002", action = "action_EVENT_ENTER_REGION_13002" },
{ config_id = 1013005, name = "ENTER_REGION_13005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13005", action = "action_EVENT_ENTER_REGION_13005" }
}
-- 变量
variables = {
{ config_id = 1, name = "discSuccess4", value = 0, no_refresh = true },
{ config_id = 2, name = "default", value = 0, no_refresh = true }
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1013001, name = "VARIABLE_CHANGE_13001", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_13001", action = "" },
{ config_id = 1013004, name = "VARIABLE_CHANGE_13004", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_13004", action = "action_EVENT_VARIABLE_CHANGE_13004" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 13002, 13005 },
triggers = { "ENTER_REGION_13002", "ENTER_REGION_13005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_13002(context, evt)
if evt.param1 ~= 13002 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_13002(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220163013, EntityType.GADGET, 13003 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "302803") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_13005(context, evt)
if evt.param1 ~= 13005 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_13005(context, evt)
-- 创建id为13003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 13003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,696 @@
-- 基础信息
local base_info = {
group_id = 220163014
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 14001, gadget_id = 70320080, pos = { x = -24.715, y = 69.213, z = -10.527 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 14004, gadget_id = 70320080, pos = { x = -19.736, y = 83.643, z = -40.865 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 14007, gadget_id = 70290731, pos = { x = 35.920, y = 73.763, z = -59.873 }, rot = { x = 0.000, y = 145.597, z = 0.000 }, level = 1 },
{ config_id = 14010, gadget_id = 70320080, pos = { x = 25.792, y = 82.354, z = 3.062 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
-- 解锁完成1
{ config_id = 14021, gadget_id = 70900203, pos = { x = -47.378, y = 83.617, z = -38.297 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
-- 解锁完成2
{ config_id = 14022, gadget_id = 70900203, pos = { x = -33.352, y = 83.781, z = -54.744 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
-- 解锁完成3
{ config_id = 14023, gadget_id = 70900203, pos = { x = 61.484, y = 73.362, z = -64.109 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 14002, shape = RegionShape.SPHERE, radius = 3, pos = { x = -24.727, y = 69.116, z = -10.878 } },
{ config_id = 14003, shape = RegionShape.SPHERE, radius = 4, pos = { x = -24.727, y = 69.116, z = -10.878 } },
{ config_id = 14005, shape = RegionShape.SPHERE, radius = 3, pos = { x = -19.783, y = 83.930, z = -40.210 } },
{ config_id = 14006, shape = RegionShape.SPHERE, radius = 4, pos = { x = -19.783, y = 83.930, z = -40.210 } },
{ config_id = 14008, shape = RegionShape.SPHERE, radius = 2.5, pos = { x = 35.298, y = 73.763, z = -59.159 } },
{ config_id = 14009, shape = RegionShape.SPHERE, radius = 2.5, pos = { x = 35.298, y = 73.763, z = -59.159 } },
{ config_id = 14011, shape = RegionShape.SPHERE, radius = 3, pos = { x = 25.580, y = 82.354, z = 3.062 } },
{ config_id = 14012, shape = RegionShape.SPHERE, radius = 4, pos = { x = 25.580, y = 82.354, z = 3.062 } },
{ config_id = 14025, shape = RegionShape.SPHERE, radius = 5, pos = { x = -47.371, y = 83.621, z = -41.196 } },
{ config_id = 14026, shape = RegionShape.SPHERE, radius = 5, pos = { x = -32.685, y = 83.785, z = -55.251 } },
{ config_id = 14027, shape = RegionShape.SPHERE, radius = 5, pos = { x = 60.345, y = 73.362, z = -64.661 } }
}
-- 触发器
triggers = {
{ config_id = 1014002, name = "ENTER_REGION_14002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14002", action = "action_EVENT_ENTER_REGION_14002", trigger_count = 0 },
{ config_id = 1014003, name = "LEAVE_REGION_14003", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_14003", action = "action_EVENT_LEAVE_REGION_14003", trigger_count = 0 },
{ config_id = 1014005, name = "ENTER_REGION_14005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14005", action = "action_EVENT_ENTER_REGION_14005", trigger_count = 0 },
{ config_id = 1014006, name = "LEAVE_REGION_14006", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_14006", action = "action_EVENT_LEAVE_REGION_14006", trigger_count = 0 },
{ config_id = 1014008, name = "ENTER_REGION_14008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14008", action = "action_EVENT_ENTER_REGION_14008", trigger_count = 0 },
{ config_id = 1014009, name = "LEAVE_REGION_14009", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_14009", action = "action_EVENT_LEAVE_REGION_14009", trigger_count = 0 },
{ config_id = 1014011, name = "ENTER_REGION_14011", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14011", action = "action_EVENT_ENTER_REGION_14011", trigger_count = 0 },
{ config_id = 1014012, name = "LEAVE_REGION_14012", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_14012", action = "action_EVENT_LEAVE_REGION_14012", trigger_count = 0 },
{ config_id = 1014013, name = "VARIABLE_CHANGE_14013", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_14013", action = "action_EVENT_VARIABLE_CHANGE_14013" },
{ config_id = 1014014, name = "VARIABLE_CHANGE_14014", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_14014", action = "action_EVENT_VARIABLE_CHANGE_14014" },
{ config_id = 1014015, name = "VARIABLE_CHANGE_14015", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_14015", action = "action_EVENT_VARIABLE_CHANGE_14015" },
{ config_id = 1014016, name = "VARIABLE_CHANGE_14016", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_14016", action = "action_EVENT_VARIABLE_CHANGE_14016" },
{ config_id = 1014017, name = "TIME_AXIS_PASS_14017", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_14017", action = "action_EVENT_TIME_AXIS_PASS_14017" },
{ config_id = 1014018, name = "TIME_AXIS_PASS_14018", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_14018", action = "action_EVENT_TIME_AXIS_PASS_14018" },
{ config_id = 1014019, name = "TIME_AXIS_PASS_14019", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_14019", action = "action_EVENT_TIME_AXIS_PASS_14019" },
{ config_id = 1014020, name = "TIME_AXIS_PASS_14020", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_14020", action = "action_EVENT_TIME_AXIS_PASS_14020" },
{ config_id = 1014025, name = "ENTER_REGION_14025", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14025", action = "action_EVENT_ENTER_REGION_14025" },
{ config_id = 1014026, name = "ENTER_REGION_14026", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14026", action = "action_EVENT_ENTER_REGION_14026" },
{ config_id = 1014027, name = "ENTER_REGION_14027", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14027", action = "action_EVENT_ENTER_REGION_14027" }
}
-- 变量
variables = {
{ config_id = 1, name = "eleFinish1", value = 0, no_refresh = true },
{ config_id = 2, name = "eleFinish2", value = 0, no_refresh = true },
{ config_id = 3, name = "eleFinish3", value = 0, no_refresh = true },
{ config_id = 4, name = "eleFinish4", value = 0, no_refresh = true },
{ config_id = 5, name = "fightFinish1", value = 0, no_refresh = true },
{ config_id = 6, name = "fightFinish2", value = 0, no_refresh = true },
{ config_id = 7, name = "fightFinish3", value = 0, no_refresh = true },
{ config_id = 8, name = "fightFinish4", value = 0, no_refresh = true },
{ config_id = 9, name = "cam1", value = 0, no_refresh = true },
{ config_id = 10, name = "cam2", value = 0, no_refresh = true },
{ config_id = 11, name = "cam3", value = 0, no_refresh = true },
{ config_id = 12, name = "cam4", value = 0, no_refresh = true }
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 14024, gadget_id = 70900203, pos = { x = 2.622, y = 58.349, z = -10.229 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 14002, 14003, 14005, 14006, 14008, 14009, 14011, 14012, 14025, 14026, 14027 },
triggers = { "ENTER_REGION_14002", "LEAVE_REGION_14003", "ENTER_REGION_14005", "LEAVE_REGION_14006", "ENTER_REGION_14008", "LEAVE_REGION_14009", "ENTER_REGION_14011", "LEAVE_REGION_14012", "VARIABLE_CHANGE_14013", "VARIABLE_CHANGE_14014", "VARIABLE_CHANGE_14015", "VARIABLE_CHANGE_14016", "TIME_AXIS_PASS_14017", "TIME_AXIS_PASS_14018", "TIME_AXIS_PASS_14019", "TIME_AXIS_PASS_14020", "ENTER_REGION_14025", "ENTER_REGION_14026", "ENTER_REGION_14027" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 14001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 14004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 14007 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 14010 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_14002(context, evt)
if evt.param1 ~= 14002 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"fightFinish1"为1
if ScriptLib.GetGroupVariableValue(context, "fightFinish1") ~= 1 then
return false
end
-- 判断变量"cam1"为0
if ScriptLib.GetGroupVariableValue(context, "cam1") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_14002(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220163014, 2)
-- 将本组内变量名为 "cam1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "cam1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_14003(context, evt)
-- 判断变量"fightFinish1"为1
if ScriptLib.GetGroupVariableValue(context, "fightFinish1") ~= 1 then
return false
end
-- 判断变量"cam1"为1
if ScriptLib.GetGroupVariableValue(context, "cam1") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_14003(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220163014, 2)
-- 将本组内变量名为 "cam1" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "cam1", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_14005(context, evt)
if evt.param1 ~= 14005 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"fightFinish2"为0
if ScriptLib.GetGroupVariableValue(context, "fightFinish2") ~= 0 then
return false
end
-- 判断变量"cam2"为0
if ScriptLib.GetGroupVariableValue(context, "cam2") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_14005(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220163014, 3)
-- 将本组内变量名为 "cam2" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "cam2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_14006(context, evt)
-- 判断变量"fightFinish2"为0
if ScriptLib.GetGroupVariableValue(context, "fightFinish2") ~= 0 then
return false
end
-- 判断变量"cam2"为1
if ScriptLib.GetGroupVariableValue(context, "cam2") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_14006(context, evt)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220163014, 3)
-- 将本组内变量名为 "cam2" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "cam2", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_14008(context, evt)
if evt.param1 ~= 14008 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"fightFinish3"为1
if ScriptLib.GetGroupVariableValue(context, "fightFinish3") ~= 1 then
return false
end
-- 判断变量"cam3"为0
if ScriptLib.GetGroupVariableValue(context, "cam3") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_14008(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 220163014, 4)
-- 将本组内变量名为 "cam3" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "cam3", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_14009(context, evt)
-- 判断变量"cam3"为1
if ScriptLib.GetGroupVariableValue(context, "cam3") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_14009(context, evt)
-- 删除suite4的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220163014, 4)
-- 将本组内变量名为 "cam3" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "cam3", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_14011(context, evt)
if evt.param1 ~= 14011 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"fightFinish4"为0
if ScriptLib.GetGroupVariableValue(context, "fightFinish4") ~= 0 then
return false
end
-- 判断变量"cam4"为0
if ScriptLib.GetGroupVariableValue(context, "cam4") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_14011(context, evt)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 220163014, 5)
-- 将本组内变量名为 "cam4" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "cam4", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_14012(context, evt)
-- 判断变量"fightFinish4"为0
if ScriptLib.GetGroupVariableValue(context, "fightFinish4") ~= 0 then
return false
end
-- 判断变量"cam4"为1
if ScriptLib.GetGroupVariableValue(context, "cam4") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_14012(context, evt)
-- 删除suite5的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220163014, 5)
-- 将本组内变量名为 "cam4" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "cam4", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_14013(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"eleFinish1"为1
if ScriptLib.GetGroupVariableValue(context, "eleFinish1") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_14013(context, evt)
-- 创建标识为"f1",时间节点为{2}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "f1", {2}, false)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_14014(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"eleFinish2"为1
if ScriptLib.GetGroupVariableValue(context, "eleFinish2") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_14014(context, evt)
-- 创建标识为"f2",时间节点为{2}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "f2", {2}, false)
-- 将本组内变量名为 "fightFinish2" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "fightFinish2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_14015(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"eleFinish3"为1
if ScriptLib.GetGroupVariableValue(context, "eleFinish3") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_14015(context, evt)
-- 创建标识为"f3",时间节点为{2}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "f3", {2}, false)
-- 将本组内变量名为 "fightFinish3" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "fightFinish3", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_14016(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"eleFinish4"为1
if ScriptLib.GetGroupVariableValue(context, "eleFinish4") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_14016(context, evt)
-- 将本组内变量名为 "fightFinish4" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "fightFinish4", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 创建标识为"f4",时间节点为{2}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "f4", {2}, false)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_14017(context, evt)
if "f1" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_14017(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220163014, EntityType.GADGET, 14001 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 创建id为14021的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 14021 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 将本组内变量名为 "fightFinish1" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "fightFinish1", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_14018(context, evt)
if "f2" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_14018(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220163014, EntityType.GADGET, 14004 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 创建id为14022的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 14022 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_14019(context, evt)
if "f3" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_14019(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220163014, EntityType.GADGET, 14007 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 创建id为14023的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 14023 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_14020(context, evt)
if "f4" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_14020(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220163014, EntityType.GADGET, 14010 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_14025(context, evt)
if evt.param1 ~= 14025 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_14025(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220163014, EntityType.GADGET, 14021 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_14026(context, evt)
if evt.param1 ~= 14026 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_14026(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220163014, EntityType.GADGET, 14022 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_14027(context, evt)
if evt.param1 ~= 14027 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_14027(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220163014, EntityType.GADGET, 14023 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,101 @@
-- 基础信息
local base_info = {
group_id = 220163015
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 15002, monster_id = 23010601, pos = { x = 36.868, y = 73.756, z = -58.518 }, rot = { x = 0.000, y = 327.994, z = 0.000 }, level = 1, disableWander = true, pose_id = 9012 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 15001, gadget_id = 70211002, pos = { x = 38.857, y = 74.121, z = -64.422 }, rot = { x = 0.000, y = 319.825, z = 0.000 }, level = 1, drop_tag = "战斗低级须弥", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1015003, name = "ANY_MONSTER_DIE_15003", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_15003", action = "action_EVENT_ANY_MONSTER_DIE_15003" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 15002 },
gadgets = { 15001 },
regions = { },
triggers = { "ANY_MONSTER_DIE_15003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_15003(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_15003(context, evt)
-- 将本组内变量名为 "fightFinish3" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "fightFinish3", 1, 220163014) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将configid为 15001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 15001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,94 @@
-- 基础信息
local base_info = {
group_id = 220163016
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 16002, monster_id = 23010301, pos = { x = -25.059, y = 68.995, z = -7.930 }, rot = { x = 0.000, y = 72.850, z = 0.000 }, level = 1, disableWander = true, pose_id = 9001 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1016001, name = "ANY_MONSTER_DIE_16001", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_16001", action = "action_EVENT_ANY_MONSTER_DIE_16001" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 16002 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_16001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_16001(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_16001(context, evt)
-- 将本组内变量名为 "fightFinish1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "fightFinish1", 1, 220163014) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff