更新配置表

This commit is contained in:
flswld
2023-01-29 13:00:55 +08:00
parent 0ab4fd1d18
commit 5fbe66113e
3108 changed files with 587829 additions and 26766 deletions

View File

@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -309.9, z = -291.9 },
size = { x = 616.2, z = 641.6 },
born_pos = { x = -57.809, y = 14.709, z = 0.475 },
born_rot = { x = 0.000, y = 90.000, z = 0.000 },
die_y = -30,
city_id = 1,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 51010 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -309.9, z = -291.9 }, max = { x = 306.3, z = 349.6 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { "routes" }

View File

@@ -0,0 +1,163 @@
{
"sceneId": 51010,
"routes": [
{
"localId": 1,
"name": "Platform_001",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -47.53104,
"y": -1.56404877,
"z": 44.3390427
},
"waitTime": 2.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": -56.7427,
"y": 14.3336859,
"z": 10.5442476
},
"waitTime": 2.0,
"targetVelocity": 5.0
}
]
},
{
"localId": 2,
"name": "Platform_002",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 20.3712082,
"y": 8.461939,
"z": 89.57153
},
"waitTime": 5.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 10.2765942,
"y": 8.0,
"z": 90.97708
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 5.83229828,
"y": 7.66322,
"z": 83.8994446
},
"waitTime": 1.0,
"targetVelocity": 3.0
}
]
},
{
"localId": 3,
"name": "Platform_003",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 26.6701374,
"y": 9.06007,
"z": 88.16066
},
"waitTime": 3.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 36.290062,
"y": 9.06007,
"z": 77.2007141
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 37.54306,
"y": 9.06007,
"z": 65.3693848
},
"waitTime": 1.0,
"targetVelocity": 4.0
}
]
},
{
"localId": 4,
"name": "Platform_004",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 13.9718237,
"y": 10.21108,
"z": 50.65754
},
"waitTime": 2.0,
"targetVelocity": 4.0
},
{
"pos": {
"x": 8.285298,
"y": 10.21108,
"z": 46.36332
},
"waitTime": 2.0,
"targetVelocity": 4.0
}
]
},
{
"localId": 5,
"name": "Platform_005",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 1.8121798,
"y": 11.24406,
"z": 35.0328026
},
"waitTime": 2.0,
"targetVelocity": 4.0
},
{
"pos": {
"x": 5.14195347,
"y": 11.24406,
"z": 42.1653175
},
"waitTime": 2.0,
"targetVelocity": 4.0
}
]
}
]
}

View File

@@ -0,0 +1,8 @@
-- 所有的group
groups = {
{ id = 251010001, pos = { x = -22.534, y = -3.691, z = 87.737 } },
{ id = 251010002, pos = { x = 39.712, y = 9.072, z = 44.761 } },
{ id = 251010003, pos = { x = 36.177, y = 21.612, z = -28.555 } },
{ id = 251010004, refresh_id = 1003, pos = { x = -14.228, y = 12.939, z = 2.208 } },
{ id = 251010005, pos = { x = 42.906, y = -5.288, z = 53.265 } }
}

View File

@@ -0,0 +1,151 @@
-- 基础信息
local base_info = {
group_id = 251010001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1004, monster_id = 21010101, pos = { x = -35.104, y = -3.691, z = 77.914 }, rot = { x = 0.000, y = 30.150, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 1006, monster_id = 21020401, pos = { x = -38.830, y = -3.691, z = 93.324 }, rot = { x = 0.000, y = 149.911, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 1007, monster_id = 21020101, pos = { x = -14.731, y = -3.691, z = 93.650 }, rot = { x = 0.000, y = 234.591, z = 0.000 }, level = 1, drop_id = 1000100 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70310020, pos = { x = -47.531, y = -1.564, z = 44.339 }, rot = { x = 0.000, y = 311.320, z = 0.000 }, level = 1, route_id = 1, start_route = false },
{ config_id = 1003, gadget_id = 70211002, pos = { x = -17.730, y = 7.784, z = 74.144 }, rot = { x = 0.000, y = 322.275, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", state = GadgetState.ChestLocked, isOneoff = true }
}
-- 区域
regions = {
{ config_id = 1002, shape = RegionShape.SPHERE, radius = 15, pos = { x = -23.311, y = -3.691, z = 75.376 } }
}
-- 触发器
triggers = {
{ config_id = 1001002, name = "ENTER_REGION_1002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1002", action = "action_EVENT_ENTER_REGION_1002" },
{ config_id = 1001005, name = "ANY_MONSTER_DIE_1005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_1005", action = "action_EVENT_ANY_MONSTER_DIE_1005" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001, 1003 },
regions = { 1002 },
triggers = { "ENTER_REGION_1002" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 1004, 1006, 1007 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_1005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_1002(context, evt)
if evt.param1 ~= 1002 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_1002(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 251010001, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_1005(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_1005(context, evt)
-- 将configid为 1003 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 改变指定group组251010004中 configid为4001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 251010004, 4001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 1001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 触发镜头注目注目位置为坐标{x=-25.37517, y=12.95371, z=19.27309}持续时间为4秒并且为强制注目形式不广播其他玩家
local pos = {x=-25.37517, y=12.95371, z=19.27309}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 4, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 2,
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

View File

@@ -0,0 +1,197 @@
-- 基础信息
local base_info = {
group_id = 251010002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2005, monster_id = 21010101, pos = { x = 33.175, y = 9.072, z = 51.488 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 2009, monster_id = 21020101, pos = { x = 46.668, y = 9.072, z = 56.742 }, rot = { x = 0.000, y = 209.025, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 2010, monster_id = 20010601, pos = { x = 48.108, y = 9.072, z = 41.354 }, rot = { x = 0.000, y = 301.706, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 2011, monster_id = 20010901, pos = { x = 50.316, y = 9.072, z = 49.723 }, rot = { x = 0.000, y = 269.864, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 2012, monster_id = 22010102, pos = { x = 30.001, y = 9.072, z = 36.928 }, rot = { x = 0.000, y = 228.311, z = 0.000 }, level = 1, drop_id = 1000100 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70350082, pos = { x = 39.534, y = 9.072, z = 45.751 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 2002, gadget_id = 70360001, pos = { x = 39.534, y = 10.096, z = 45.751 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2006, gadget_id = 70211011, pos = { x = 50.207, y = 10.395, z = 28.453 }, rot = { x = 0.000, y = 309.430, z = 0.000 }, level = 1, drop_tag = "战斗中级蒙德", isOneoff = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1002003, name = "GADGET_CREATE_2003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_2003", action = "action_EVENT_GADGET_CREATE_2003", trigger_count = 0 },
{ config_id = 1002004, name = "SELECT_OPTION_2004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2004", action = "action_EVENT_SELECT_OPTION_2004", trigger_count = 0 },
{ config_id = 1002007, name = "CHALLENGE_SUCCESS_2007", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "111", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_2007", trigger_count = 0 },
{ config_id = 1002008, name = "CHALLENGE_FAIL_2008", event = EventType.EVENT_CHALLENGE_FAIL, source = "111", condition = "", action = "action_EVENT_CHALLENGE_FAIL_2008", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2002 },
regions = { },
triggers = { "GADGET_CREATE_2003", "SELECT_OPTION_2004", "CHALLENGE_SUCCESS_2007", "CHALLENGE_FAIL_2008" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 2005, 2009, 2010, 2011, 2012 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_2003(context, evt)
if 2002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_2003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 251010002, 2002, {177}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2004(context, evt)
-- 判断是gadgetid 2002 option_id 177
if 2002 ~= evt.param1 then
return false
end
if 177 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2004(context, evt)
-- 创建编号为111该挑战的识别id),挑战内容为2的区域挑战具体参数填写方式见DungeonChallengeData表中的注释所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 111, 2, 60, 251010002, 5, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 251010002, 2)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 2002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 将configid为 2001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_2007(context, evt)
-- 将configid为 2001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为2006的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 改变指定group组251010004中 configid为4002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 251010004, 4002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_2008(context, evt)
-- 将configid为 2001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为2002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 251010002, 2)
return 0
end

View File

@@ -0,0 +1,135 @@
-- 基础信息
local base_info = {
group_id = 251010003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3003, monster_id = 21010101, pos = { x = 42.268, y = 21.612, z = -35.015 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 3005, monster_id = 20011001, pos = { x = 25.334, y = 21.612, z = -32.686 }, rot = { x = 0.000, y = 42.378, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 3006, monster_id = 22010302, pos = { x = 25.603, y = 21.612, z = -20.187 }, rot = { x = 0.000, y = 133.596, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 3007, monster_id = 22010404, pos = { x = 25.224, y = 21.612, z = -24.393 }, rot = { x = 0.000, y = 47.783, z = 0.000 }, level = 1, drop_id = 1000100 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70211002, pos = { x = 15.136, y = 21.612, z = -32.315 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", state = GadgetState.ChestLocked, isOneoff = true }
}
-- 区域
regions = {
{ config_id = 3002, shape = RegionShape.SPHERE, radius = 10, pos = { x = 32.150, y = 21.612, z = -27.467 } }
}
-- 触发器
triggers = {
{ config_id = 1003002, name = "ENTER_REGION_3002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3002", action = "action_EVENT_ENTER_REGION_3002" },
{ config_id = 1003004, name = "ANY_MONSTER_DIE_3004", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3004", action = "action_EVENT_ANY_MONSTER_DIE_3004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001 },
regions = { 3002 },
triggers = { "ENTER_REGION_3002" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 3003, 3005, 3006, 3007 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_3004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_3002(context, evt)
if evt.param1 ~= 3002 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_3002(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 251010003, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3004(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3004(context, evt)
-- 将configid为 3001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 改变指定group组251010004中 configid为4003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 251010004, 4003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end

View File

@@ -0,0 +1,243 @@
-- 基础信息
local base_info = {
group_id = 251010004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 4008, monster_id = 21010101, pos = { x = -29.485, y = 12.941, z = 7.547 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 4009, monster_id = 21010101, pos = { x = -7.660, y = 12.944, z = 17.558 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 4014, monster_id = 21010901, pos = { x = -19.521, y = 12.940, z = 17.054 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 4015, monster_id = 21010502, pos = { x = -25.994, y = 12.961, z = -7.610 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 4016, monster_id = 20040101, pos = { x = -16.589, y = 14.981, z = 4.451 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70900039, pos = { x = -25.375, y = 12.954, z = 19.273 }, rot = { x = 0.228, y = 0.000, z = 0.123 }, level = 1, state = GadgetState.GearStop },
{ config_id = 4002, gadget_id = 70900039, pos = { x = 0.922, y = 12.938, z = 10.240 }, rot = { x = 359.956, y = 0.000, z = 0.279 }, level = 1, state = GadgetState.GearStop },
{ config_id = 4003, gadget_id = 70900039, pos = { x = -17.352, y = 12.923, z = -13.503 }, rot = { x = 359.783, y = 0.001, z = 359.749 }, level = 1, state = GadgetState.GearStop },
{ config_id = 4013, gadget_id = 70211021, pos = { x = -16.887, y = 12.928, z = 5.198 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, drop_tag = "战斗高级蒙德", isOneoff = true, persistent = true },
{ config_id = 4017, gadget_id = 70800195, pos = { x = -12.754, y = 12.911, z = 3.672 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1004004, name = "GADGET_STATE_CHANGE_4004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_4004", action = "action_EVENT_GADGET_STATE_CHANGE_4004" },
{ config_id = 1004005, name = "GADGET_STATE_CHANGE_4005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_4005", action = "action_EVENT_GADGET_STATE_CHANGE_4005" },
{ config_id = 1004006, name = "GADGET_STATE_CHANGE_4006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_4006", action = "action_EVENT_GADGET_STATE_CHANGE_4006" },
{ config_id = 1004007, name = "VARIABLE_CHANGE_4007", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_4007", action = "action_EVENT_VARIABLE_CHANGE_4007" },
{ config_id = 1004011, name = "ANY_MONSTER_DIE_4011", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4011", action = "action_EVENT_ANY_MONSTER_DIE_4011" },
{ config_id = 1004012, name = "ANY_MONSTER_DIE_4012", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4012", action = "action_EVENT_ANY_MONSTER_DIE_4012" }
}
-- 变量
variables = {
{ config_id = 1, name = "方碑count", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4001, 4002, 4003 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_4004", "GADGET_STATE_CHANGE_4005", "GADGET_STATE_CHANGE_4006", "VARIABLE_CHANGE_4007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 4008, 4009, 4014, 4015 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_4011" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 4016 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_4012" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 4017 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_4004(context, evt)
if 4001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_4004(context, evt)
-- 针对当前group内变量名为 "方碑count" 的变量进行修改变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "方碑count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_4005(context, evt)
if 4002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_4005(context, evt)
-- 针对当前group内变量名为 "方碑count" 的变量进行修改变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "方碑count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_4006(context, evt)
if 4003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_4006(context, evt)
-- 针对当前group内变量名为 "方碑count" 的变量进行修改变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "方碑count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_4007(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"方碑count"为3
if ScriptLib.GetGroupVariableValue(context, "方碑count") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_4007(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 251010004, 2)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 251010004, 4)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4011(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4011(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 251010004, 3)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4012(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4012(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 251010004, EntityType.GADGET, 4017 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
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

View File

@@ -0,0 +1,83 @@
-- 基础信息
local base_info = {
group_id = 251010005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5001, gadget_id = 70310020, pos = { x = -43.145, y = -3.538, z = 60.270 }, rot = { x = 0.000, y = 275.931, z = 0.000 }, level = 1, start_route = false },
{ config_id = 5002, gadget_id = 70310020, pos = { x = -44.967, y = -2.717, z = 55.001 }, rot = { x = 0.000, y = 285.573, z = 0.000 }, level = 1, start_route = false },
{ config_id = 5003, gadget_id = 70310020, pos = { x = -45.824, y = -2.235, z = 49.757 }, rot = { x = 0.000, y = 302.210, z = 0.000 }, level = 1, start_route = false },
{ config_id = 5004, gadget_id = 70310020, pos = { x = -45.397, y = 12.970, z = 0.211 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, start_route = false },
{ config_id = 5005, gadget_id = 70310020, pos = { x = -0.156, y = 11.696, z = 30.245 }, rot = { x = 0.000, y = 317.621, z = 0.000 }, level = 1, start_route = false },
{ config_id = 5006, gadget_id = 70310020, pos = { x = -4.281, y = 6.256, z = 74.477 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, start_route = false },
{ config_id = 5007, gadget_id = 70310020, pos = { x = 0.314, y = 6.794, z = 79.617 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, route_id = 2, start_route = false },
{ config_id = 5008, gadget_id = 70310020, pos = { x = 20.371, y = 8.462, z = 89.572 }, rot = { x = 0.000, y = 84.622, z = 0.000 }, level = 1, route_id = 2 },
{ config_id = 5011, gadget_id = 70310020, pos = { x = 18.322, y = 9.022, z = 54.333 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false },
{ config_id = 5012, gadget_id = 70310020, pos = { x = 13.972, y = 10.211, z = 50.658 }, rot = { x = 0.000, y = 321.539, z = 0.000 }, level = 1, route_id = 4 },
{ config_id = 5013, gadget_id = 70310020, pos = { x = 1.812, y = 11.244, z = 35.033 }, rot = { x = 0.000, y = 316.842, z = 0.000 }, level = 1, route_id = 5 },
{ config_id = 5015, gadget_id = 70310020, pos = { x = 26.670, y = 9.060, z = 88.161 }, rot = { x = 0.000, y = 105.141, z = 0.000 }, level = 1, route_id = 3 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5001, 5002, 5003, 5004, 5005, 5006, 5007, 5008, 5011, 5012, 5013, 5015 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,45 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": -14.20336,
"y": 12.93776,
"z": 5.116169
},
"rot": {
"x": 0.6341,
"y": 270.1249,
"z": 0.1577
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.0
},
"tranPos": {
"x": -1.02169228,
"y": 13.0820236,
"z": 4.49304628
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
}
},
"transRadius": 0.0
}