添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions
@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -512.0, z = -512.0 },
size = { x = 1024.0, z = 1024.0 },
born_pos = { x = 0.844, y = 49.198, z = 127.597 },
born_rot = { x = 0.000, y = 90.000, z = 0.000 },
die_y = -20,
city_id = 2,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 20127 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -512.0, z = -512.0 }, max = { x = 512.0, z = 512.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { }
@@ -0,0 +1,11 @@
-- 所有的group
groups = {
{ id = 220127002, pos = { x = 13.154, y = 49.257, z = 117.329 } },
{ id = 220127003, pos = { x = 14.733, y = 52.176, z = 87.977 } },
{ id = 220127006, pos = { x = 58.538, y = 51.924, z = 127.057 } },
{ id = 220127007, pos = { x = 11.719, y = 49.237, z = 120.945 } },
{ id = 220127008, pos = { x = 11.737, y = 54.191, z = 80.749 } },
{ id = 220127010, pos = { x = 61.122, y = 52.001, z = 29.592 } },
{ id = 220127011, pos = { x = 61.791, y = 61.572, z = 79.906 } },
{ id = 220127012, refresh_id = 1, pos = { x = 60.948, y = 42.010, z = 28.894 } }
}
@@ -0,0 +1,3 @@
dummy_points = {
["Q102802_N1030"] = { pos = { x = 12.003, y = 49.106, z = 41.316 }, rot = { x = 0.000, y = 152.537, z = 0.000 } }
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,81 @@
-- 基础信息
local base_info = {
group_id = 220127003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70800168, pos = { x = 11.980, y = 43.920, z = 101.410 }, rot = { x = 358.299, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 3002, gadget_id = 70800168, pos = { x = 33.690, y = 44.100, z = 79.530 }, rot = { x = 1.714, y = 90.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 3003, gadget_id = 70800168, pos = { x = 60.820, y = 43.890, z = 52.610 }, rot = { x = 0.975, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 3004, gadget_id = 70800168, pos = { x = 60.480, y = 51.530, z = 101.062 }, rot = { x = 358.887, y = 0.442, z = 0.215 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
{ config_id = 1, name = "isUnlock1", value = 0, no_refresh = true },
{ config_id = 2, name = "isUnlock2", value = 0, no_refresh = true },
{ config_id = 3, name = "isUnlock3", value = 0, no_refresh = true },
{ config_id = 4, name = "isUnlock4", value = 0, no_refresh = true },
{ config_id = 5, name = "isUnlock5", value = 0, no_refresh = true },
{ config_id = 6, name = "BridgeState", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001, 3002, 3003, 3004 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,280 @@
-- 基础信息
local base_info = {
group_id = 220127006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 6010, monster_id = 26040102, pos = { x = 54.530, y = 56.622, z = 128.525 }, rot = { x = 0.000, y = 163.446, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 6012, monster_id = 26040102, pos = { x = 65.108, y = 56.589, z = 128.659 }, rot = { x = 0.000, y = 222.456, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6005, gadget_id = 70710749, pos = { x = 60.610, y = 60.490, z = 141.810 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 6006, gadget_id = 70211021, pos = { x = 59.935, y = 56.708, z = 131.003 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗高级璃月", isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 6001, shape = RegionShape.CUBIC, size = { x = 20.000, y = 10.000, z = 20.000 }, pos = { x = 60.013, y = 61.266, z = 128.094 } },
-- 判断玩家不在战斗区域
{ config_id = 6007, shape = RegionShape.CUBIC, size = { x = 70.000, y = 30.000, z = 40.000 }, pos = { x = 38.891, y = 53.856, z = 90.760 } },
-- 判断玩家不在战斗区域
{ config_id = 6008, shape = RegionShape.CUBIC, size = { x = 20.000, y = 20.000, z = 20.000 }, pos = { x = 11.734, y = 52.387, z = 130.390 } }
}
-- 触发器
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", trigger_count = 0 },
{ config_id = 1006002, name = "ANY_MONSTER_DIE_6002", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6002", action = "action_EVENT_ANY_MONSTER_DIE_6002" },
{ config_id = 1006003, name = "TIMER_EVENT_6003", event = EventType.EVENT_TIMER_EVENT, source = "success", condition = "", action = "action_EVENT_TIMER_EVENT_6003" },
{ config_id = 1006004, name = "TIMER_EVENT_6004", event = EventType.EVENT_TIMER_EVENT, source = "finish", condition = "", action = "action_EVENT_TIMER_EVENT_6004" },
-- 判断玩家不在战斗区域
{ config_id = 1006007, name = "ENTER_REGION_6007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6007", action = "action_EVENT_ENTER_REGION_6007", trigger_count = 0 },
-- 判断玩家不在战斗区域
{ config_id = 1006008, name = "ENTER_REGION_6008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6008", action = "action_EVENT_ENTER_REGION_6008", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 6001 },
triggers = { "ENTER_REGION_6001" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 6010, 6012 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_6002", "TIMER_EVENT_6003", "TIMER_EVENT_6004" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { 6007, 6008 },
triggers = { "ENTER_REGION_6007", "ENTER_REGION_6008" },
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)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220127006, 2)
ScriptLib.AddExtraGroupSuite(context, 220127006, 3)
ScriptLib.RemoveExtraGroupSuite(context, 220127006, 1)
-- 改变指定group组220127002中, configid为2071的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220127002, 2071, 302) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6002(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6002(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "102808") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 延迟2秒后,向groupId为:220127006的对象,请求一次调用,并将string参数:"success" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220127006, "success", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220127006, 3)
-- 将本组内变量名为 "levelFinished" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "levelFinished", 1, 220127002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_6003(context, evt)
-- 创建id为6005的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 6005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 触发镜头注目,注目位置为坐标(60,60,141),持续时间为3秒,并且为强制注目形式,不广播其他玩家
local pos = {x=60, y=60, z=141}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 3, 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
-- 调用提示id为 201270401 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201270401) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 延迟1秒后,向groupId为:220127006的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220127006, "finish", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_6004(context, evt)
-- 创建id为6006的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 6006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_6007(context, evt)
if evt.param1 ~= 6007 then return false end
-- 判断角色数量不少于0
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 0 then
return false
end
if 302 ~= ScriptLib.GetGadgetStateByConfigId(context, 220127002, 2071) then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_6007(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220127006, 2)
-- 改变指定group组220127002中, configid为2071的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220127002, 2071, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 220127006, 1)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_6008(context, evt)
if evt.param1 ~= 6007 then return false end
-- 判断角色数量不少于0
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 0 then
return false
end
if 302 ~= ScriptLib.GetGadgetStateByConfigId(context, 220127002, 2071) then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_6008(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220127006, 2)
-- 改变指定group组220127002中, configid为2071的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220127002, 2071, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 220127006, 1)
return 0
end
@@ -0,0 +1,99 @@
-- 基础信息
local base_info = {
group_id = 220127007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
{ config_id = 1, name = "state", value = 0, no_refresh = true }
}
-- 废弃数据
garbages = {
monsters = {
{ config_id = 7001, monster_id = 24010101, pos = { x = 22.179, y = 48.976, z = 137.692 }, rot = { x = 0.000, y = 207.406, z = 0.000 }, level = 1, disableWander = true, affix = { 5009 }, pose_id = 101 },
{ config_id = 7002, monster_id = 24010101, pos = { x = 22.470, y = 49.477, z = 116.994 }, rot = { x = 0.000, y = 290.319, z = 0.000 }, level = 1, disableWander = true, affix = { 5009 }, pose_id = 101 }
},
gadgets = {
{ config_id = 7009, gadget_id = 70900049, pos = { x = 18.033, y = 49.130, z = 121.362 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7010, gadget_id = 70900049, pos = { x = 0.529, y = 49.133, z = 118.811 }, rot = { x = 348.281, y = 10.935, z = 347.411 }, level = 1, persistent = true },
{ config_id = 7011, gadget_id = 70900049, pos = { x = 22.283, y = 49.270, z = 139.037 }, rot = { x = 4.438, y = 5.589, z = 343.742 }, level = 1, persistent = true },
{ config_id = 7012, gadget_id = 70900049, pos = { x = 22.477, y = 49.494, z = 118.023 }, rot = { x = 5.113, y = 359.101, z = 5.701 }, level = 1, persistent = true }
},
regions = {
{ config_id = 7008, shape = RegionShape.SPHERE, radius = 10, pos = { x = 12.790, y = 49.139, z = 119.072 } }
},
triggers = {
{ config_id = 1007006, name = "ANY_MONSTER_DIE_7006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_7006", action = "action_EVENT_ANY_MONSTER_DIE_7006" },
{ config_id = 1007007, name = "ANY_MONSTER_DIE_7007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_7007", action = "action_EVENT_ANY_MONSTER_DIE_7007" },
{ config_id = 1007008, name = "ENTER_REGION_7008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_7008" },
{ config_id = 1007013, name = "GADGET_STATE_CHANGE_7013", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7013", action = "action_EVENT_GADGET_STATE_CHANGE_7013" },
{ config_id = 1007014, name = "GADGET_STATE_CHANGE_7014", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7014", action = "action_EVENT_GADGET_STATE_CHANGE_7014" },
{ config_id = 1007015, name = "GADGET_STATE_CHANGE_7015", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7015", action = "action_EVENT_GADGET_STATE_CHANGE_7015" },
{ config_id = 1007016, name = "GADGET_STATE_CHANGE_7016", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7016", action = "action_EVENT_GADGET_STATE_CHANGE_7016" },
{ config_id = 1007017, name = "VARIABLE_CHANGE_7017", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_7017", action = "action_EVENT_VARIABLE_CHANGE_7017" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,367 @@
-- 基础信息
local base_info = {
group_id = 220127008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 8005, monster_id = 20011201, pos = { x = 6.849, y = 41.678, z = 80.404 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 8006, monster_id = 20011201, pos = { x = 14.978, y = 41.627, z = 80.626 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 8007, monster_id = 20011301, pos = { x = 11.200, y = 41.611, z = 75.890 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8012, gadget_id = 70900201, pos = { x = 11.892, y = 50.688, z = 117.664 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
-- 关1号门
{ config_id = 8001, shape = RegionShape.SPHERE, radius = 10, pos = { x = 17.323, y = 42.426, z = 77.053 } },
-- 关2号门
{ config_id = 8003, shape = RegionShape.SPHERE, radius = 10, pos = { x = 17.323, y = 42.426, z = 77.053 } },
-- 判断玩家不在战斗区域
{ config_id = 8010, shape = RegionShape.CUBIC, size = { x = 20.000, y = 20.000, z = 40.000 }, pos = { x = 12.070, y = 49.594, z = 116.273 } },
-- 判断玩家不在战斗区域
{ config_id = 8011, shape = RegionShape.CUBIC, size = { x = 20.000, y = 20.000, z = 40.000 }, pos = { x = 12.070, y = 49.594, z = 116.273 } }
}
-- 触发器
triggers = {
-- 关1号门
{ config_id = 1008001, name = "ENTER_REGION_8001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8001", action = "action_EVENT_ENTER_REGION_8001", trigger_count = 0 },
-- 1号门-开操作台
{ config_id = 1008002, name = "ANY_MONSTER_DIE_8002", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_8002", action = "action_EVENT_ANY_MONSTER_DIE_8002" },
-- 关2号门
{ config_id = 1008003, name = "ENTER_REGION_8003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8003", action = "action_EVENT_ENTER_REGION_8003", trigger_count = 0 },
-- 延迟1s开注目和解锁
{ config_id = 1008004, name = "TIMER_EVENT_8004", event = EventType.EVENT_TIMER_EVENT, source = "_timer_door", condition = "condition_EVENT_TIMER_EVENT_8004", action = "action_EVENT_TIMER_EVENT_8004" },
-- 2号门-不开操作台
{ config_id = 1008008, name = "ANY_MONSTER_DIE_8008", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_8008", action = "action_EVENT_ANY_MONSTER_DIE_8008" },
-- 判断玩家不在战斗区域
{ config_id = 1008010, name = "ENTER_REGION_8010", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8010", action = "action_EVENT_ENTER_REGION_8010", trigger_count = 0 },
-- 判断玩家不在战斗区域
{ config_id = 1008011, name = "ENTER_REGION_8011", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8011", action = "action_EVENT_ENTER_REGION_8011", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "_doorOpen", value = 0, no_refresh = true },
{ config_id = 2, name = "addGuide", value = 0, no_refresh = true }
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1008009, name = "TIMER_EVENT_8009", event = EventType.EVENT_TIMER_EVENT, source = "_timer_door1", condition = "", action = "action_EVENT_TIMER_EVENT_8009" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 3,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 8001, 8003 },
triggers = { "ENTER_REGION_8001", "ENTER_REGION_8003" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 8005, 8006, 8007 },
gadgets = { },
regions = { 8010, 8011 },
triggers = { "ANY_MONSTER_DIE_8002", "TIMER_EVENT_8004", "ANY_MONSTER_DIE_8008", "ENTER_REGION_8010", "ENTER_REGION_8011" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_8001(context, evt)
if evt.param1 ~= 8001 then return false end
-- 判断变量"platform1"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "platform1", 220127002) ~= 1 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_8001(context, evt)
-- 添加suite2 3的新内容
ScriptLib.AddExtraGroupSuite(context, 220127008, 2)
ScriptLib.RemoveExtraGroupSuite(context, 220127008, 1)
-- 改变指定group组220127002中, configid为2067的gadget的state
ScriptLib.SetGroupGadgetStateByConfigId(context, 220127002, 2067, 301)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_8002(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220127008) ~= 0 then
return false
end
if 301 ~= ScriptLib.GetGadgetStateByConfigId(context, 220127002, 2067) then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_8002(context, evt)
-- 延迟1秒后,向groupId为:220127008的对象,请求一次调用,并将string参数:"_timer_door" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220127008, "_timer_door", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组220127002中, configid为2067的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220127002, 2067, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_8003(context, evt)
if evt.param1 ~= 8003 then return false end
-- 判断变量"platform1"为2
if ScriptLib.GetGroupVariableValueByGroup(context, "platform1", 220127002) ~= 2 then
return false
end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_8003(context, evt)
-- 添加suite2 4的新内容
ScriptLib.AddExtraGroupSuite(context, 220127008, 2)
ScriptLib.RemoveExtraGroupSuite(context, 220127008, 1)
-- 改变指定group组220127002中, configid为2067的gadget的state
ScriptLib.SetGroupGadgetStateByConfigId(context, 220127002, 2067, 302)
return 0
end
-- 触发条件
function condition_EVENT_TIMER_EVENT_8004(context, evt)
-- 判断变量"platform1"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "platform1", 220127002) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIMER_EVENT_8004(context, evt)
-- 将本组内变量名为 "_gearOpen" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "_gearOpen", 1, 220127002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 触发镜头注目,注目位置为坐标(21,41,79),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=21, y=41, z=79}
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
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220127008, 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_8008(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220127008) ~= 0 then
return false
end
if 302 ~= ScriptLib.GetGadgetStateByConfigId(context, 220127002, 2067) then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_8008(context, evt)
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220127008, 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
-- 改变指定group组220127002中, configid为2067的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220127002, 2067, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 将本组内变量名为 "_gearOpen" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "_gearOpen", 1, 220127002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "addGuide" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "addGuide", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 创建id为8012的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 8012 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_8010(context, evt)
if evt.param1 ~= 8010 then return false end
-- 判断角色数量不少于0
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 0 then
return false
end
if 301 ~= ScriptLib.GetGadgetStateByConfigId(context, 220127002, 2067) then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_8010(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220127008, 2)
-- 改变指定group组220127002中, configid为2067的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220127002, 2067, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 220127008, 1)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_8011(context, evt)
if evt.param1 ~= 8010 then return false end
-- 判断角色数量不少于0
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 0 then
return false
end
if 302 ~= ScriptLib.GetGadgetStateByConfigId(context, 220127002, 2067) then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_8011(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220127008, 2)
-- 改变指定group组220127002中, configid为2067的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220127002, 2067, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 220127008, 1)
return 0
end
@@ -0,0 +1,236 @@
-- 基础信息
local base_info = {
group_id = 220127010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 10001, monster_id = 21020201, pos = { x = 61.197, y = 42.023, z = 27.109 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 401 },
{ config_id = 10002, monster_id = 21010701, pos = { x = 56.725, y = 42.028, z = 32.204 }, rot = { x = 0.000, y = 125.094, z = 0.000 }, level = 1, disableWander = true, pose_id = 9013 },
{ config_id = 10003, monster_id = 21010701, pos = { x = 65.373, y = 42.035, z = 31.835 }, rot = { x = 0.000, y = 270.180, z = 0.000 }, level = 1, disableWander = true, pose_id = 9013 },
{ config_id = 10017, monster_id = 21010501, pos = { x = 67.068, y = 42.053, z = 24.148 }, rot = { x = 0.000, y = 341.286, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10014, gadget_id = 70211011, pos = { x = 61.159, y = 41.962, z = 39.674 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, drop_tag = "战斗中级璃月", isOneoff = true, persistent = true }
}
-- 区域
regions = {
-- 进入战斗区域关门
{ config_id = 10006, shape = RegionShape.CUBIC, size = { x = 25.000, y = 10.000, z = 25.000 }, pos = { x = 60.045, y = 41.907, z = 32.457 } },
-- 判断玩家在不在战斗区域
{ config_id = 10015, shape = RegionShape.CUBIC, size = { x = 15.000, y = 20.000, z = 10.000 }, pos = { x = 61.293, y = 50.236, z = 52.282 } },
-- 判断玩家在不在战斗区域
{ config_id = 10016, shape = RegionShape.CUBIC, size = { x = 30.000, y = 20.000, z = 30.000 }, pos = { x = 10.914, y = 54.764, z = 127.059 } }
}
-- 触发器
triggers = {
-- 进入战斗区域关门
{ config_id = 1010006, name = "ENTER_REGION_10006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10006", action = "action_EVENT_ENTER_REGION_10006", trigger_count = 0 },
{ config_id = 1010007, name = "ANY_MONSTER_DIE_10007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_10007", action = "action_EVENT_ANY_MONSTER_DIE_10007" },
-- 判断玩家在不在战斗区域
{ config_id = 1010015, name = "ENTER_REGION_10015", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10015", action = "action_EVENT_ENTER_REGION_10015", trigger_count = 0 },
-- 判断玩家在不在战斗区域
{ config_id = 1010016, name = "ENTER_REGION_10016", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10016", action = "action_EVENT_ENTER_REGION_10016", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
monsters = {
{ config_id = 10004, monster_id = 21030301, pos = { x = 52.594, y = 41.988, z = 24.114 }, rot = { x = 0.000, y = 29.715, z = 0.000 }, level = 1, disableWander = true, pose_id = 9012 }
},
gadgets = {
{ config_id = 10005, gadget_id = 70310001, pos = { x = 53.900, y = 41.886, z = 40.197 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 10008, gadget_id = 70310001, pos = { x = 66.347, y = 42.032, z = 40.099 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 10009, gadget_id = 70300107, pos = { x = 60.935, y = 42.010, z = 28.400 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 10010, gadget_id = 70220014, pos = { x = 71.084, y = 41.958, z = 31.553 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10011, gadget_id = 70220014, pos = { x = 70.257, y = 41.898, z = 32.683 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10012, gadget_id = 70220067, pos = { x = 49.738, y = 41.944, z = 26.982 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10013, gadget_id = 70220067, pos = { x = 50.307, y = 42.045, z = 28.397 }, 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 = { 10001, 10002, 10003, 10017 },
gadgets = { },
regions = { 10006 },
triggers = { "ENTER_REGION_10006", "ANY_MONSTER_DIE_10007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 10014 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { 10015, 10016 },
triggers = { "ENTER_REGION_10015", "ENTER_REGION_10016" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_10006(context, evt)
if evt.param1 ~= 10006 then return false end
-- 判断角色数量不少于0
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_10006(context, evt)
ScriptLib.SetGroupGadgetStateByConfigId(context, 220127002, 2069, 301)
ScriptLib.AddExtraGroupSuite(context, 220127010, 3)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_10007(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220127010) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_10007(context, evt)
-- 改变指定group组220127002中, configid为2010的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220127002, 2010, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 创建id为10014的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 10014 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 改变指定group组220127002中, configid为2069的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220127002, 2069, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220127010, 3)
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220127010, 1)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_10015(context, evt)
if evt.param1 ~= 10015 then return false end
-- 判断角色数量不少于0
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 0 then
return false
end
if 301 ~= ScriptLib.GetGadgetStateByConfigId(context, 220127002, 2069) then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_10015(context, evt)
-- 改变指定group组220127002中, configid为2069的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220127002, 2069, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_10016(context, evt)
if evt.param1 ~= 10016 then return false end
-- 判断角色数量不少于0
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 0 then
return false
end
if 301 ~= ScriptLib.GetGadgetStateByConfigId(context, 220127002, 2069) then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_10016(context, evt)
-- 改变指定group组220127002中, configid为2069的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220127002, 2069, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,278 @@
-- 基础信息
local base_info = {
group_id = 220127011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 11001, monster_id = 21020201, pos = { x = 60.826, y = 48.923, z = 79.841 }, rot = { x = 0.000, y = 251.496, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 11002, monster_id = 21010601, pos = { x = 62.406, y = 48.927, z = 85.466 }, rot = { x = 0.000, y = 256.393, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 11003, monster_id = 21010601, pos = { x = 63.453, y = 48.839, z = 76.678 }, rot = { x = 0.000, y = 300.461, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 11008, monster_id = 20011301, pos = { x = 64.324, y = 48.817, z = 75.719 }, rot = { x = 0.000, y = 287.595, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 11009, monster_id = 20011301, pos = { x = 63.196, y = 48.966, z = 83.348 }, rot = { x = 0.000, y = 218.940, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 11004, shape = RegionShape.SPHERE, radius = 12, pos = { x = 61.940, y = 48.935, z = 81.456 } },
-- 判断玩家不在房间C
{ config_id = 11011, shape = RegionShape.CUBIC, size = { x = 50.000, y = 20.000, z = 60.000 }, pos = { x = 19.444, y = 49.403, z = 106.428 } }
}
-- 触发器
triggers = {
{ config_id = 1011004, name = "ENTER_REGION_11004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_11004", trigger_count = 0 },
{ config_id = 1011005, name = "ANY_MONSTER_DIE_11005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_11005", action = "action_EVENT_ANY_MONSTER_DIE_11005" },
{ config_id = 1011006, name = "VARIABLE_CHANGE_11006", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_11006", action = "action_EVENT_VARIABLE_CHANGE_11006", trigger_count = 0 },
{ config_id = 1011007, name = "VARIABLE_CHANGE_11007", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_11007", action = "action_EVENT_VARIABLE_CHANGE_11007", trigger_count = 0 },
{ config_id = 1011010, name = "ANY_MONSTER_DIE_11010", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_11010", action = "action_EVENT_ANY_MONSTER_DIE_11010" },
-- 判断玩家不在房间C
{ 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", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "gameState", value = 0, no_refresh = true },
{ config_id = 2, name = "isClear", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 5,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "VARIABLE_CHANGE_11006", "VARIABLE_CHANGE_11007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { 11004 },
triggers = { "ENTER_REGION_11004" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 11001, 11002, 11003 },
gadgets = { },
regions = { 11011 },
triggers = { "ANY_MONSTER_DIE_11010", "ENTER_REGION_11011" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 11008, 11009 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_11005" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ENTER_REGION_11004(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220127011, 3)
ScriptLib.RemoveExtraGroupSuite(context, 220127011, 2)
ScriptLib.SetGroupVariableValue(context, "gameState", 2)
-- 改变指定group组220127002中, configid为2068的gadget的state
ScriptLib.SetGroupGadgetStateByConfigId(context, 220127002, 2068, 301)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_11005(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220127011) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_11005(context, evt)
-- 改变指定group组220127002中, configid为2014的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220127002, 2014, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220127002中, configid为2068的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220127002, 2068, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220127011, 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
-- 将本组内变量名为 "gameState" 的变量设置为 3
if 0 ~= ScriptLib.SetGroupVariableValue(context, "gameState", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "isClear" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isClear", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_11006(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"gameState"为1
if ScriptLib.GetGroupVariableValue(context, "gameState") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_11006(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220127011, 2)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_11007(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"gameState"为0
if ScriptLib.GetGroupVariableValue(context, "gameState") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_11007(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220127011, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_11010(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220127011) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_11010(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 220127011, 4)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11011(context, evt)
if evt.param1 ~= 11011 then return false end
-- 判断变量"gameState"为2
if ScriptLib.GetGroupVariableValue(context, "gameState") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11011(context, evt)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220127011, 3)
-- 删除suite4的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220127011, 4)
-- 改变指定group组220127002中, configid为2068的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220127002, 2068, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 添加suite1的新内容
ScriptLib.AddExtraGroupSuite(context, 220127011, 1)
-- 将本组内变量名为 "gameState" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "gameState", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
@@ -0,0 +1,77 @@
-- 基础信息
local base_info = {
group_id = 220127012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 12001, gadget_id = 70310004, pos = { x = 61.008, y = 42.010, z = 31.159 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 12002, gadget_id = 70220065, pos = { x = 55.552, y = 41.961, z = 21.611 }, rot = { x = 0.000, y = 354.788, z = 0.000 }, level = 1 },
{ config_id = 12003, gadget_id = 70220065, pos = { x = 53.515, y = 42.012, z = 22.578 }, rot = { x = 0.000, y = 18.290, z = 0.000 }, level = 1 },
{ config_id = 12004, gadget_id = 70220066, pos = { x = 69.484, y = 41.925, z = 30.556 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12005, gadget_id = 70310001, pos = { x = 48.942, y = 42.067, z = 28.615 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 12006, gadget_id = 70310001, pos = { x = 69.118, y = 42.047, z = 28.353 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 12001, 12002, 12003, 12004, 12005, 12006 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,627 @@
{
"areas": {},
"doors": {},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 100.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": {
"floatParam": 0.0,
"stringParam": "",
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
}
},
"pointType": "Other",
"pos": {
"x": 41.55859,
"y": 34.46576,
"z": 120.0645
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 1.0,
"heightType": "Center",
"length": 100.0,
"useHeight": true,
"width": 100.0
},
"stringParam": "",
"tranPos": {
"x": -0.346372366,
"y": 41.5813179,
"z": 71.09978
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
},
"2": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 100.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": {
"floatParam": 0.0,
"stringParam": "",
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
}
},
"pointType": "Other",
"pos": {
"x": 41.55859,
"y": 34.46576,
"z": 32.47214
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 1.0,
"heightType": "Center",
"length": 100.0,
"useHeight": true,
"width": 100.0
},
"stringParam": "",
"tranPos": {
"x": 11.7156229,
"y": 41.6112823,
"z": 72.06534
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
},
"3": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 100.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": {
"floatParam": 0.0,
"stringParam": "",
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
}
},
"pointType": "Other",
"pos": {
"x": 35.98546,
"y": 61.86607,
"z": -0.6958618
},
"rot": {
"x": 90.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 1.0,
"heightType": "Center",
"length": 100.0,
"useHeight": true,
"width": 100.0
},
"stringParam": "",
"tranPos": {
"x": 94.09417,
"y": 3.47896576,
"z": -21.0616264
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
},
"4": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 100.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": {
"floatParam": 0.0,
"stringParam": "",
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
}
},
"pointType": "Other",
"pos": {
"x": 83.57884,
"y": 76.42889,
"z": 165.9349
},
"rot": {
"x": 90.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 1.0,
"heightType": "Center",
"length": 100.0,
"useHeight": true,
"width": 100.0
},
"stringParam": "",
"tranPos": {
"x": -27.2347565,
"y": -93.56357,
"z": 205.953415
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
},
"5": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 100.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": {
"floatParam": 0.0,
"stringParam": "",
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
}
},
"pointType": "Other",
"pos": {
"x": 128.0427,
"y": 76.42889,
"z": 123.7916
},
"rot": {
"x": 90.0,
"y": 90.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 1.0,
"heightType": "Center",
"length": 100.0,
"useHeight": true,
"width": 100.0
},
"stringParam": "",
"tranPos": {
"x": -80.77832,
"y": -74.51242,
"z": 161.21759
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
}
},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70350085,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 60.28145,
"y": 55.01914,
"z": 138.8785
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.0
},
"tranPos": {
"x": -8.521086,
"y": 1.0,
"z": -15.2279
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"10": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": 21.31089,
"y": 46.03282,
"z": 79.12653
},
"rot": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"size": {
"x": 10.0,
"y": 10.0,
"z": 20.0
},
"tranPos": {
"x": 17.16589,
"y": 41.62997,
"z": 79.12653
},
"tranRot": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"11": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 11.34848,
"y": 45.70102,
"z": 80.32197
},
"rot": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"size": {
"x": 26.0,
"y": 10.0,
"z": 26.0
},
"tranPos": {
"x": 11.4165,
"y": 49.24999,
"z": 127.9563
},
"tranRot": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"12": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 60.79237,
"y": 46.48767,
"z": 40.20586
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 10.0,
"z": 10.0
},
"tranPos": {
"x": 60.79237,
"y": 41.7913628,
"z": 40.937
},
"tranRot": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"3": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": 11.14053,
"y": 41.6553,
"z": 90.69305
},
"rot": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"size": {
"x": 15.0,
"y": 5.0,
"z": 8.0
},
"tranPos": {
"x": 11.14053,
"y": 41.6553,
"z": 90.69305
},
"tranRot": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"4": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": 60.95135,
"y": 41.81617,
"z": 40.75801
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 15.0,
"y": 5.0,
"z": 10.0
},
"tranPos": {
"x": 60.95135,
"y": 41.81617,
"z": 40.75801
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"5": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 11.4165,
"y": 49.24999,
"z": 127.9563
},
"rot": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"size": {
"x": 30.0,
"y": 20.0,
"z": 30.0
},
"tranPos": {
"x": 11.4165,
"y": 49.24999,
"z": 127.9563
},
"tranRot": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"7": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": 12.61788,
"y": 51.03328,
"z": 115.9723
},
"rot": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"size": {
"x": 15.0,
"y": 5.0,
"z": 8.0
},
"tranPos": {
"x": 12.617877,
"y": 49.15159,
"z": 120.7649
},
"tranRot": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}