添加配置表

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

View File

@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -4187.4, z = -4215.8 },
size = { x = 7682.4, z = 10279.2 },
born_pos = { x = 12.796, y = 256.755, z = 11.634 },
born_rot = { x = 0.000, y = 180.417, z = 0.000 },
die_y = -772.8866,
city_id = 2,
vision_anchor = { x = -4187.4, z = -4215.8 }
}
-- 所有的区块
blocks = { 1032 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -4187.4, z = -4215.8 }, max = { x = 3495.0, z = 6063.4 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { }

View File

@@ -0,0 +1,10 @@
-- 所有的group
groups = {
{ id = 201032001, refresh_id = 1, pos = { x = 12.455, y = 254.022, z = 1.352 } },
{ id = 201032002, refresh_id = 1001, pos = { x = 17.011, y = 246.100, z = -42.127 } },
{ id = 201032003, refresh_id = 1002, pos = { x = -54.549, y = 251.938, z = -79.325 } },
{ id = 201032005, refresh_id = 1001, pos = { x = -68.159, y = 279.689, z = -185.394 } },
{ id = 201032006, refresh_id = 1002, pos = { x = -56.521, y = 279.565, z = -180.464 } },
{ id = 201032007, refresh_id = 1002, pos = { x = -71.375, y = 279.579, z = -178.968 } },
{ id = 201032010, refresh_id = 1, pos = { x = 12.419, y = 256.750, z = 11.589 } }
}

View File

@@ -0,0 +1,8 @@
dummy_points = {
["Q1110204Born1"] = { pos = { x = 12.930, y = 256.745, z = 11.248 }, rot = { x = 0.000, y = 195.300, z = 0.000 } },
["Q1110204Paimon1"] = { pos = { x = 12.653, y = 256.748, z = 11.204 }, rot = { x = 0.000, y = 159.350, z = 0.000 } },
["Q1110204Xiao1"] = { pos = { x = 12.272, y = 256.734, z = 11.144 }, rot = { x = 0.000, y = 165.720, z = 0.000 } },
["Q1110206Born1"] = { pos = { x = -74.794, y = 279.560, z = -186.623 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q1110206Paimon1"] = { pos = { x = -75.711, y = 279.559, z = -186.709 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q1110206Xiao1"] = { pos = { x = -76.744, y = 279.560, z = -186.550 }, rot = { x = 0.000, y = 0.000, z = 0.000 } }
}

View File

@@ -0,0 +1,141 @@
-- 基础信息
local base_info = {
group_id = 201032001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70350106, pos = { x = -28.760, y = 246.100, z = -63.081 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1001002, name = "QUEST_FINISH_1002", event = EventType.EVENT_QUEST_FINISH, source = "1110204", condition = "", action = "action_EVENT_QUEST_FINISH_1002" },
{ config_id = 1001004, name = "TIMER_EVENT_1004", event = EventType.EVENT_TIMER_EVENT, source = "xiao_skill", condition = "", action = "action_EVENT_TIMER_EVENT_1004" },
{ config_id = 1001005, name = "TIMER_EVENT_1005", event = EventType.EVENT_TIMER_EVENT, source = "tutorial", condition = "", action = "action_EVENT_TIMER_EVENT_1005" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001 },
regions = { },
triggers = { "QUEST_FINISH_1002", "TIMER_EVENT_1004", "TIMER_EVENT_1005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_QUEST_FINISH_1002(context, evt)
-- 屏蔽战斗主界面UI模块,参数传字符串,参数内容为"bool 屏蔽ui组key"
if 0 ~= ScriptLib.SetPlayerInteractOption(context, "false DisableXiaoDungeon") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_player_interact_option")
return -1
end
-- 延迟2秒后,向groupId为201032001的对象,请求一次调用,并将string参数"xiao_skill" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201032001, "xiao_skill", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_1004(context, evt)
-- 将configid为 1001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 延迟2秒后,向groupId为201032001的对象,请求一次调用,并将string参数"tutorial" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201032001, "tutorial", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 将本组内变量名为 "isFirstEntry" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "isFirstEntry", 0, 201032010) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_1005(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "1110207") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 屏蔽战斗主界面UI模块,参数传字符串,参数内容为"bool 屏蔽ui组key"
if 0 ~= ScriptLib.SetPlayerInteractOption(context, "true DisableXiaoDungeon") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_player_interact_option")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 201032002, 4)
-- 将本组内变量名为 "test_re" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "test_re", 1, 201032010) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end

View File

@@ -0,0 +1,222 @@
-- 基础信息
local base_info = {
group_id = 201032002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2001, monster_id = 21010601, pos = { x = 20.756, y = 246.238, z = -50.013 }, rot = { x = 0.000, y = 334.043, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 2004, monster_id = 21010601, pos = { x = 9.770, y = 246.230, z = -48.314 }, rot = { x = 0.000, y = 46.076, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 2011, monster_id = 21010201, pos = { x = 14.037, y = 246.100, z = -45.834 }, rot = { x = 0.000, y = 19.381, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 2012, monster_id = 21010201, pos = { x = 23.187, y = 246.100, z = -41.145 }, rot = { x = 0.000, y = 275.413, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 2013, monster_id = 21010201, pos = { x = 9.951, y = 246.100, z = -41.025 }, rot = { x = 0.000, y = 58.549, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 2014, monster_id = 21010201, pos = { x = 19.525, y = 246.100, z = -35.832 }, rot = { x = 0.000, y = 207.968, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 2015, monster_id = 21010301, pos = { x = 25.756, y = 246.268, z = -44.506 }, rot = { x = 0.000, y = 308.583, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 2016, monster_id = 21010301, pos = { x = 13.983, y = 246.100, z = -35.363 }, rot = { x = 0.000, y = 152.581, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 2017, monster_id = 21010301, pos = { x = 17.826, y = 246.100, z = -46.610 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 2018, monster_id = 21010301, pos = { x = 20.910, y = 246.100, z = -44.729 }, rot = { x = 0.000, y = 335.568, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 2019, monster_id = 20011201, pos = { x = 18.483, y = 246.100, z = -43.493 }, rot = { x = 0.000, y = 317.584, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 2020, monster_id = 20011201, pos = { x = 20.476, y = 246.100, z = -42.046 }, rot = { x = 0.000, y = 313.629, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 2021, monster_id = 20010801, pos = { x = 16.266, y = 246.100, z = -45.184 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 2022, monster_id = 20010801, pos = { x = 11.073, y = 246.100, z = -42.593 }, rot = { x = 0.000, y = 72.028, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 2023, monster_id = 20011001, pos = { x = 13.726, y = 246.100, z = -43.032 }, rot = { x = 0.000, y = 38.708, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 2024, monster_id = 20011001, pos = { x = 11.543, y = 246.100, z = -44.676 }, rot = { x = 0.000, y = 63.496, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 2025, monster_id = 20010501, pos = { x = 6.262, y = 246.256, z = -37.462 }, rot = { x = 0.000, y = 139.844, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 2026, monster_id = 20010501, pos = { x = 11.748, y = 246.100, z = -39.392 }, rot = { x = 0.000, y = 152.085, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 2028, monster_id = 20010701, pos = { x = 20.863, y = 246.100, z = -38.632 }, rot = { x = 0.000, y = 237.852, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 2029, monster_id = 20010601, pos = { x = 21.542, y = 246.100, z = -40.194 }, rot = { x = 0.000, y = 260.066, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 2037, monster_id = 21010501, pos = { x = 7.961, y = 246.268, z = -36.074 }, rot = { x = 0.000, y = 109.471, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 2038, monster_id = 21011001, pos = { x = 25.897, y = 246.275, z = -40.932 }, rot = { x = 0.000, y = 267.107, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 2039, monster_id = 20011101, pos = { x = 13.759, y = 246.100, z = -38.018 }, rot = { x = 0.000, y = 151.626, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 2040, monster_id = 20011301, pos = { x = 16.860, y = 246.100, z = -36.946 }, rot = { x = 0.000, y = 185.057, z = 0.000 }, level = 1, affix = { 1101 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2002, gadget_id = 70900039, pos = { x = 17.389, y = 246.100, z = -38.835 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2010, gadget_id = 70900201, pos = { x = 17.379, y = 247.910, z = -38.836 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2041, gadget_id = 70211112, pos = { x = -0.219, y = 246.237, z = -48.757 }, rot = { x = 0.000, y = 62.361, z = 0.000 }, level = 11, drop_tag = "解谜中级璃月", state = GadgetState.ChestLocked, showcutscene = true, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1002003, name = "GADGET_STATE_CHANGE_2003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2003", action = "action_EVENT_GADGET_STATE_CHANGE_2003", trigger_count = 0 },
{ config_id = 1002008, name = "CHALLENGE_FAIL_2008", event = EventType.EVENT_CHALLENGE_FAIL, source = "101", condition = "", action = "action_EVENT_CHALLENGE_FAIL_2008", trigger_count = 0 },
{ config_id = 1002009, name = "CHALLENGE_SUCCESS_2009", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "101", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_2009", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2002, 2041 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_2003", "CHALLENGE_FAIL_2008", "CHALLENGE_SUCCESS_2009" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 2001, 2004, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026, 2028, 2029, 2037, 2038, 2039, 2040 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 2010 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2003(context, evt)
if 2002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2003(context, evt)
-- 创建编号为201该怪物潮的识别id)的怪物潮创建怪物总数为15场上怪物最少3只最多3只
if 0 ~= ScriptLib.AutoMonsterTide(context, 201, 201032002, {2019,2020,2021,2022,2023,2024,2025,2026,2028,2029,2039,2040}, 15, 3, 3) then
return -1
end
-- 创建编号为202该怪物潮的识别id)的怪物潮创建怪物总数为15场上怪物最少3只最多3只
if 0 ~= ScriptLib.AutoMonsterTide(context, 202, 201032002, {2011,2012,2013,2014,2015,2016,2037,2038,2017,2018,2001,2004}, 15, 3, 3) then
return -1
end
-- 创建编号为101该挑战的识别id),挑战内容为5的区域挑战具体参数填写方式见DungeonChallengeData表中的注释所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 101, 5, 30, 201032002, 30, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 2010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_2008(context, evt)
-- 将configid为 2002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
end
--销毁编号为201该怪物潮的识别id)的怪物潮
if 0 ~= ScriptLib.KillMonsterTide(context, 201032002, 201) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_tide")
end
--销毁编号为202该怪物潮的识别id)的怪物潮
if 0 ~= ScriptLib.KillMonsterTide(context, 201032002, 202) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_tide")
end
-- 创建id为2010的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_2009(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 201032003, 4)
-- 调用提示id为 10320101 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 10320101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "stageFlag" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stageFlag", 1, 201032003) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 改变指定group组201032003中 configid为3004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201032003, 3004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 将configid为 2041 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2041, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,210 @@
-- 基础信息
local base_info = {
group_id = 201032003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3012, monster_id = 21020201, pos = { x = -59.988, y = 251.942, z = -82.195 }, rot = { x = 0.000, y = 61.802, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 3013, monster_id = 21020201, pos = { x = -60.325, y = 251.915, z = -77.274 }, rot = { x = 0.000, y = 133.069, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 3014, monster_id = 21030401, pos = { x = -54.389, y = 251.910, z = -79.499 }, rot = { x = 0.000, y = 269.795, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 } },
{ config_id = 3015, monster_id = 21010501, pos = { x = -55.559, y = 251.901, z = -81.862 }, rot = { x = 0.000, y = 334.841, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 }, pose_id = 32 },
{ config_id = 3016, monster_id = 21011001, pos = { x = -55.829, y = 251.893, z = -76.919 }, rot = { x = 0.000, y = 220.196, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 }, pose_id = 32 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70360097, pos = { x = -57.995, y = 255.107, z = -68.107 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3002, gadget_id = 70360097, pos = { x = -67.898, y = 260.254, z = -79.839 }, rot = { x = 0.257, y = 0.001, z = 0.359 }, level = 1 },
{ config_id = 3003, gadget_id = 70360097, pos = { x = -65.167, y = 258.345, z = -70.931 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3004, gadget_id = 70900039, pos = { x = -67.840, y = 261.094, z = -80.017 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 3006, gadget_id = 70900201, pos = { x = -24.823, y = 265.139, z = -120.866 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3019, gadget_id = 70211012, pos = { x = -24.653, y = 262.985, z = -121.028 }, rot = { x = 0.000, y = 148.451, z = 0.000 }, level = 11, drop_tag = "战斗中级璃月", state = GadgetState.ChestLocked, showcutscene = true, isOneoff = true, persistent = true },
{ config_id = 3020, gadget_id = 70900201, pos = { x = -67.563, y = 263.061, z = -80.119 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 3007, shape = RegionShape.SPHERE, radius = 7, pos = { x = -24.946, y = 263.021, z = -120.870 } }
}
-- 触发器
triggers = {
{ config_id = 1003005, name = "GADGET_STATE_CHANGE_3005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_3005", action = "action_EVENT_GADGET_STATE_CHANGE_3005" },
{ config_id = 1003007, name = "ENTER_REGION_3007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3007", action = "action_EVENT_ENTER_REGION_3007" },
{ config_id = 1003017, name = "ANY_MONSTER_DIE_3017", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3017", action = "action_EVENT_ANY_MONSTER_DIE_3017", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "stageFlag", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001, 3002, 3003, 3004, 3019 },
regions = { 3007 },
triggers = { "GADGET_STATE_CHANGE_3005", "ENTER_REGION_3007", "ANY_MONSTER_DIE_3017" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 3006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 3012, 3013, 3014, 3015, 3016 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 3020 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_3005(context, evt)
if 3004 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_3005(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 201032003, 3)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 3020 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3007(context, evt)
if evt.param1 ~= 3007 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_3007(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 3006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201032005, 2)
-- 改变指定group组201032005中 configid为5002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201032005, 5002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3017(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 201032003) ~= 0 then
return false
end
-- 判断变量"stageFlag"为1
if ScriptLib.GetGroupVariableValue(context, "stageFlag") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3017(context, evt)
-- 将本组内变量名为 "stageFlag" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stageFlag", 2, 201032003) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201032003, 2)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 201032005, 3)
-- 将configid为 3019 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3019, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,227 @@
-- 基础信息
local base_info = {
group_id = 201032005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 5003, monster_id = 21010901, pos = { x = -85.155, y = 284.335, z = -191.417 }, rot = { x = 0.000, y = 53.049, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 }, pose_id = 32 },
{ config_id = 5004, monster_id = 21011001, pos = { x = -87.024, y = 284.344, z = -188.325 }, rot = { x = 0.000, y = 58.746, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 }, pose_id = 32 },
{ config_id = 5005, monster_id = 20011301, pos = { x = -68.544, y = 279.587, z = -192.423 }, rot = { x = 0.000, y = 26.834, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 } },
{ config_id = 5006, monster_id = 20011301, pos = { x = -78.151, y = 279.559, z = -184.335 }, rot = { x = 0.000, y = 71.554, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 } },
{ config_id = 5015, monster_id = 21010301, pos = { x = -72.370, y = 279.565, z = -192.545 }, rot = { x = 0.000, y = 21.909, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 }, pose_id = 9003 },
{ config_id = 5016, monster_id = 21010301, pos = { x = -76.725, y = 279.563, z = -189.171 }, rot = { x = 0.000, y = 52.414, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 }, pose_id = 9003 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5001, gadget_id = 70360046, pos = { x = -39.827, y = 252.882, z = -101.229 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5002, gadget_id = 70350071, pos = { x = -35.010, y = 269.400, z = -137.560 }, rot = { x = 274.869, y = 227.496, z = 163.660 }, level = 1 },
{ config_id = 5007, gadget_id = 70900201, pos = { x = -45.675, y = 276.684, z = -155.150 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5010, gadget_id = 70360046, pos = { x = -34.161, y = 256.760, z = -106.938 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5011, gadget_id = 70360046, pos = { x = -31.662, y = 260.915, z = -113.362 }, rot = { x = 0.000, y = 267.672, z = 0.000 }, level = 1 },
{ config_id = 5017, gadget_id = 70900201, pos = { x = -65.214, y = 280.710, z = -179.303 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 5018, shape = RegionShape.SPHERE, radius = 7, pos = { x = -45.823, y = 276.861, z = -155.165 } },
{ config_id = 5019, shape = RegionShape.SPHERE, radius = 8, pos = { x = -55.365, y = 283.491, z = -168.631 } }
}
-- 触发器
triggers = {
{ config_id = 1005008, name = "ANY_MONSTER_DIE_5008", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_5008", action = "action_EVENT_ANY_MONSTER_DIE_5008" },
{ config_id = 1005009, name = "VARIABLE_CHANGE_5009", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_5009", action = "action_EVENT_VARIABLE_CHANGE_5009" },
{ config_id = 1005018, name = "ENTER_REGION_5018", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5018", action = "action_EVENT_ENTER_REGION_5018" },
{ config_id = 1005019, name = "ENTER_REGION_5019", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5019", action = "action_EVENT_ENTER_REGION_5019" }
}
-- 变量
variables = {
{ config_id = 1, name = "taskCount", value = 0, no_refresh = false }
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 5012, gadget_id = 70310013, pos = { x = -32.083, y = 264.931, z = -131.390 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5013, gadget_id = 70310013, pos = { x = -35.933, y = 269.259, z = -137.596 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5014, gadget_id = 70310013, pos = { x = -38.453, y = 273.904, z = -144.315 }, 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 = { 5003, 5004, 5005, 5006, 5015, 5016 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_5008", "VARIABLE_CHANGE_5009" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 5007 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 5001, 5002, 5010, 5011 },
regions = { 5018, 5019 },
triggers = { "ENTER_REGION_5018", "ENTER_REGION_5019" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 5017 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_5008(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_5008(context, evt)
-- 调用提示id为 400002 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 400002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201032006, 2)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_5009(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"taskCount"为2
if ScriptLib.GetGroupVariableValue(context, "taskCount") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5009(context, evt)
-- 创建id为5007的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 201032005, 3)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_5018(context, evt)
if evt.param1 ~= 5018 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_5018(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 5007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 201032005, 4)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_5019(context, evt)
if evt.param1 ~= 5019 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_5019(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 5017 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,111 @@
-- 基础信息
local base_info = {
group_id = 201032006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 6001, monster_id = 21020201, pos = { x = -66.260, y = 279.688, z = -181.093 }, rot = { x = 0.000, y = 223.177, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 6002, monster_id = 21010501, pos = { x = -68.620, y = 279.604, z = -195.472 }, rot = { x = 0.000, y = 21.789, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 } },
{ config_id = 6003, monster_id = 21011001, pos = { x = -81.528, y = 279.688, z = -183.963 }, rot = { x = 0.000, y = 96.529, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 } },
{ config_id = 6004, monster_id = 21010701, pos = { x = -61.793, y = 279.579, z = -188.255 }, rot = { x = 0.000, y = 257.466, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 6005, monster_id = 21010701, pos = { x = -73.452, y = 279.579, z = -177.348 }, rot = { x = 0.000, y = 201.716, z = 0.000 }, level = 1, affix = { 1101 } },
{ config_id = 6007, monster_id = 21030201, pos = { x = -73.859, y = 279.579, z = -190.188 }, rot = { x = 0.000, y = 28.508, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1006006, name = "ANY_MONSTER_DIE_6006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6006", action = "action_EVENT_ANY_MONSTER_DIE_6006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 6001, 6002, 6003, 6004, 6005, 6007 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_6006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6006(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6006(context, evt)
-- 调用提示id为 400003 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 400003) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201032007, 2)
return 0
end

View File

@@ -0,0 +1,132 @@
-- 基础信息
local base_info = {
group_id = 201032007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 7001, monster_id = 22010101, pos = { x = -74.093, y = 279.579, z = -190.496 }, rot = { x = 0.000, y = 39.640, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 } },
{ config_id = 7002, monster_id = 20011101, pos = { x = -62.437, y = 279.579, z = -185.596 }, rot = { x = 0.000, y = 292.639, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 } },
{ config_id = 7003, monster_id = 20011101, pos = { x = -71.238, y = 279.579, z = -177.732 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 } },
{ config_id = 7004, monster_id = 21030301, pos = { x = -64.344, y = 279.565, z = -192.037 }, rot = { x = 0.000, y = 285.525, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 } },
{ config_id = 7005, monster_id = 21030101, pos = { x = -78.737, y = 279.559, z = -180.342 }, rot = { x = 0.000, y = 114.861, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7006, gadget_id = 70211022, pos = { x = -72.072, y = 279.579, z = -187.875 }, rot = { x = 0.000, y = 38.901, z = 0.000 }, level = 11, drop_tag = "战斗高级璃月", showcutscene = true, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ 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 = "QUEST_FINISH_7008", event = EventType.EVENT_QUEST_FINISH, source = "1110205", condition = "", action = "action_EVENT_QUEST_FINISH_7008" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 7001, 7002, 7003, 7004, 7005 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_7007", "QUEST_FINISH_7008" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 7006 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_7007(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_7007(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "1110206") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 将configid为 7006 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_FINISH_7008(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 201032007, 3)
return 0
end

View File

@@ -0,0 +1,230 @@
-- 基础信息
local base_info = {
group_id = 201032010
}
-- DEFS_MISCS
function stage_ready(context)
local flag = ScriptLib.GetGroupVariableValue(context, "isFirstEntry")
if flag == 1 then
ScriptLib.SetPlayerInteractOption(context, "false DisableXiaoDungeon")
end
return 0
end
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10003, gadget_id = 70900205, pos = { x = -57.642, y = 250.328, z = -79.853 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10007, gadget_id = 70350106, pos = { x = -28.760, y = 246.100, z = -63.081 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 10005, shape = RegionShape.SPHERE, radius = 400, pos = { x = 12.212, y = 256.747, z = 11.591 } }
}
-- 触发器
triggers = {
{ config_id = 1010001, name = "DUNGEON_ALL_AVATAR_DIE_10001", event = EventType.EVENT_DUNGEON_ALL_AVATAR_DIE, source = "", condition = "", action = "action_EVENT_DUNGEON_ALL_AVATAR_DIE_10001", trigger_count = 0 },
{ config_id = 1010002, name = "DUNGEON_REVIVE_10002", event = EventType.EVENT_DUNGEON_REVIVE, source = "", condition = "", action = "action_EVENT_DUNGEON_REVIVE_10002", trigger_count = 0 },
{ config_id = 1010004, name = "TIMER_EVENT_10004", event = EventType.EVENT_TIMER_EVENT, source = "xiao_skill", condition = "", action = "action_EVENT_TIMER_EVENT_10004", trigger_count = 0 },
{ config_id = 1010005, name = "ENTER_REGION_10005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10005", action = "action_EVENT_ENTER_REGION_10005", trigger_count = 0 },
{ config_id = 1010006, name = "TIMER_EVENT_10006", event = EventType.EVENT_TIMER_EVENT, source = "xiao_skill_re", condition = "", action = "action_EVENT_TIMER_EVENT_10006", trigger_count = 0 },
{ config_id = 1010008, name = "DUNGEON_AVATAR_SLIP_DIE_10008", event = EventType.EVENT_DUNGEON_AVATAR_SLIP_DIE, source = "", condition = "", action = "action_EVENT_DUNGEON_AVATAR_SLIP_DIE_10008", trigger_count = 0 },
{ config_id = 1010009, name = "TIMER_EVENT_10009", event = EventType.EVENT_TIMER_EVENT, source = "unlock_input", condition = "", action = "action_EVENT_TIMER_EVENT_10009", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "test", value = 0, no_refresh = false },
{ config_id = 2, name = "isFirstEntry", value = 1, no_refresh = false },
{ config_id = 3, name = "test_re", value = 0, no_refresh = false },
{ config_id = 4, name = "test_enter_region", value = 0, no_refresh = false },
{ config_id = 5, name = "isSlipDie", value = 0, no_refresh = false },
{ config_id = 6, name = "test_slip_enter_region", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 10003 },
regions = { 10005 },
triggers = { "DUNGEON_ALL_AVATAR_DIE_10001", "DUNGEON_REVIVE_10002", "TIMER_EVENT_10004", "ENTER_REGION_10005", "TIMER_EVENT_10006", "DUNGEON_AVATAR_SLIP_DIE_10008", "TIMER_EVENT_10009" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_DUNGEON_ALL_AVATAR_DIE_10001(context, evt)
-- 屏蔽战斗主界面UI模块,参数传字符串,参数内容为"bool 屏蔽ui组key"
if 0 ~= ScriptLib.SetPlayerInteractOption(context, "false DisableXiaoDungeon") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_player_interact_option")
return -1
end
-- 将本组内变量名为 "test_re" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "test_re", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_DUNGEON_REVIVE_10002(context, evt)
-- 延迟4秒后,向groupId为201032010的对象,请求一次调用,并将string参数"xiao_skill" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201032010, "xiao_skill", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_10004(context, evt)
-- 改变指定group组201032001中 configid为1001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201032001, 1001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为201032010的对象,请求一次调用,并将string参数"unlock_input" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201032010, "unlock_input", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 将本组内变量名为 "test_re" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "test_re", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_10005(context, evt)
if evt.param1 ~= 10005 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_10005(context, evt)
--断线重连后重放大招
local flag_re = ScriptLib.GetGroupVariableValue(context, "test_re")
local slip_die = ScriptLib.GetGroupVariableValue(context, "isSlipDie")
if flag_re == 1 and slip_die == 0 then
ScriptLib.SetPlayerInteractOption(context, "false DisableXiaoDungeon")
ScriptLib.CreateGroupTimerEvent(context, 201032010, "xiao_skill_re", 1)
ScriptLib.ChangeGroupVariableValue(context, "test_enter_region", 1)
elseif flag_re == 1 and slip_die == 1 then
ScriptLib.SetPlayerInteractOption(context, "false DisableXiaoDungeon")
ScriptLib.CreateGroupTimerEvent(context, 201032010, "xiao_skill_re", 1)
ScriptLib.SetGroupVariableValue(context, "isSlipDie", 0)
ScriptLib.ChangeGroupVariableValue(context, "test_slip_enter_region", 1)
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_10006(context, evt)
-- 改变指定group组201032001中 configid为1001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201032001, 1001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为201032010的对象,请求一次调用,并将string参数"unlock_input" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201032010, "unlock_input", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 针对当前group内变量名为 "test" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "test", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_DUNGEON_AVATAR_SLIP_DIE_10008(context, evt)
-- 将本组内变量名为 "isSlipDie" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "isSlipDie", 1, 201032010) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 屏蔽战斗主界面UI模块,参数传字符串,参数内容为"bool 屏蔽ui组key"
if 0 ~= ScriptLib.SetPlayerInteractOption(context, "false DisableXiaoDungeon") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_player_interact_option")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_10009(context, evt)
-- 屏蔽战斗主界面UI模块,参数传字符串,参数内容为"bool 屏蔽ui组key"
if 0 ~= ScriptLib.SetPlayerInteractOption(context, "true DisableXiaoDungeon") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_player_interact_option")
return -1
end
return 0
end

View File

@@ -0,0 +1,165 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {
"2": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": -76.44441,
"y": 279.6115,
"z": -193.1086
},
"rot": {
"x": 0.0,
"y": 40.4854,
"z": 0.0
},
"size": {
"x": 3.0,
"y": 3.0,
"z": 3.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"3": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 12.18488,
"y": 246.1,
"z": -36.66079
},
"rot": {
"x": 0.0,
"y": 111.4687,
"z": 0.0
},
"size": {
"x": 50.0,
"y": 50.0,
"z": 50.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"4": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": -23.00493,
"y": 246.1356,
"z": -56.56771
},
"rot": {
"x": 0.0,
"y": 212.983,
"z": 0.0
},
"size": {
"x": 50.0,
"y": 50.0,
"z": 50.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"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": -43.37117,
"y": 276.6768,
"z": -151.4506
},
"rot": {
"x": 0.0,
"y": 214.8175,
"z": 0.0
},
"size": {
"x": 30.0,
"y": 30.0,
"z": 30.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}