添加配置表

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 = -285.6, z = -285.6 },
size = { x = 571.3, z = 571.3 },
born_pos = { x = -0.469, y = -4.966, z = 42.049 },
born_rot = { x = 0.000, y = 180.000, z = 0.000 },
die_y = -20,
city_id = 1,
vision_anchor = { x = -285.6, z = -285.6 }
}
-- 所有的区块
blocks = { 34402 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -285.6, z = -285.6 }, max = { x = 285.6, z = 285.6 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }
@@ -0,0 +1,9 @@
-- 所有的group
groups = {
{ id = 234402001, refresh_id = 1, pos = { x = 1.398, y = -0.046, z = 10.851 }, forbid_monster_die_types = { "CHANGE_HP_SUB_DRAWN", "CHANGE_HP_SUB_ABYSS" } },
{ id = 234402010, refresh_id = 1, pos = { x = 1.318, y = -0.046, z = 8.315 }, forbid_monster_die_types = { "CHANGE_HP_SUB_DRAWN", "CHANGE_HP_SUB_ABYSS" } },
{ id = 234402011, refresh_id = 1, pos = { x = 0.041, y = -0.046, z = -9.636 }, forbid_monster_die_types = { "CHANGE_HP_SUB_DRAWN", "CHANGE_HP_SUB_ABYSS" } },
{ id = 234402012, refresh_id = 1002, pos = { x = 5.573, y = -0.046, z = 1.120 }, forbid_monster_die_types = { "CHANGE_HP_SUB_DRAWN", "CHANGE_HP_SUB_ABYSS" } },
{ id = 234402013, refresh_id = 1, pos = { x = -1.771, y = 0.003, z = -0.820 }, forbid_monster_die_types = { "CHANGE_HP_SUB_DRAWN", "CHANGE_HP_SUB_ABYSS" } },
{ id = 234402014, refresh_id = 1001, pos = { x = 5.563, y = 0.082, z = 1.165 }, forbid_monster_die_types = { "CHANGE_HP_SUB_DRAWN", "CHANGE_HP_SUB_ABYSS" } }
}
@@ -0,0 +1,77 @@
-- 基础信息
local base_info = {
group_id = 234402001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70900205, pos = { x = 0.302, y = -17.285, z = 19.787 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 1002, gadget_id = 70900205, pos = { x = 0.302, y = -17.285, z = -9.790 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1003, gadget_id = 70350077, pos = { x = 0.080, y = 0.000, z = 24.150 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 1004, gadget_id = 70350077, pos = { x = 0.040, y = 0.000, z = -23.740 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
{ config_id = 1, name = "stage", value = 0, no_refresh = false },
{ config_id = 2, name = "TPL_TIME", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001, 1002, 1003, 1004 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,75 @@
-- 基础信息
local base_info = {
group_id = 234402010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10001, gadget_id = 70900205, pos = { x = 0.222, y = -17.285, z = 17.252 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 10002, gadget_id = 70900205, pos = { x = 0.222, y = -17.285, z = -12.325 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
{ config_id = 1, name = "stage", value = 0, no_refresh = false },
{ config_id = 2, name = "TPL_TIME", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 10001, 10002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,239 @@
-- 基础信息
local base_info = {
group_id = 234402011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 11001, gadget_id = 70360010, pos = { x = 0.156, y = -0.256, z = -0.019 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1011002, name = "GADGET_CREATE_11002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_11002", action = "action_EVENT_GADGET_CREATE_11002" },
{ config_id = 1011003, name = "SELECT_OPTION_11003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_11003", action = "action_EVENT_SELECT_OPTION_11003", trigger_count = 0 },
{ config_id = 1011004, name = "SELECT_OPTION_11004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_11004", action = "action_EVENT_SELECT_OPTION_11004", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 11001 },
regions = { },
triggers = { "GADGET_CREATE_11002", "SELECT_OPTION_11003", "SELECT_OPTION_11004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_11002(context, evt)
if 11001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_11002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 234402011, 11001, {175}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_11003(context, evt)
-- 判断是gadgetid 11001 option_id 175
if 11001 ~= evt.param1 then
return false
end
if 175 ~= evt.param2 then
return false
end
-- 判断变量"stage"为0
if ScriptLib.GetGroupVariableValueByGroup(context, "stage", 234402010) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_11003(context, evt)
-- 爬塔是否允许使用技能( is_allow_use_skill=0或1,表示不允许或允许使用主动技能)
if 0 ~= ScriptLib.SetIsAllowUseSkill(context, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : tower_allow_use_skill")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 234402012, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 创建编号为1(该怪物潮的识别id)的怪物潮,创建怪物总数为26,场上怪物最少5只,最多5只
if 0 ~= ScriptLib.AutoMonsterTide(context, 1, 234402012, {12007,12013,12014,12003,12005,12001,12002,12004,12006,12009,12011,12012,12018,12019,12020,12024,12025,12023,12022,12021,12026,12027,12030,12028,12029,12031}, 26, 5, 5) then
return -1
end
-- 删除指定group 234402011 ;指定config11001;物件身上指定option175
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 234402011, 11001, 175) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 改变指定group组234402011中, configid为11001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 234402011, 11001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组234402013中, configid为13001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 234402013, 13001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组234402013中, configid为13002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 234402013, 13002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组234402001中, configid为1003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 234402001, 1003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_11004(context, evt)
-- 判断是gadgetid 11001 option_id 176
if 11001 ~= evt.param1 then
return false
end
if 176 ~= evt.param2 then
return false
end
-- 判断变量"stage"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "stage", 234402010) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_11004(context, evt)
-- 爬塔是否允许使用技能( is_allow_use_skill=0或1,表示不允许或允许使用主动技能)
if 0 ~= ScriptLib.SetIsAllowUseSkill(context, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : tower_allow_use_skill")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 234402014, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 创建编号为8(该怪物潮的识别id)的怪物潮,创建怪物总数为27,场上怪物最少6只,最多6只
if 0 ~= ScriptLib.AutoMonsterTide(context, 8, 234402014, {14001,14002,14003,14004,14005,14006,14007,14008,14009,14010,14011,14012,14013,14014,14015,14016,14017,14018,14019,14020,14021,14022,14023,14024,14025,14034,14035}, 27, 6, 6) then
return -1
end
-- 删除指定group 234402011 ;指定config11001;物件身上指定option176
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 234402011, 11001, 176) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 改变指定group组234402011中, configid为11001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 234402011, 11001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组234402013中, configid为13001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 234402013, 13001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组234402013中, configid为13002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 234402013, 13002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组234402001中, configid为1003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 234402001, 1003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,226 @@
-- 基础信息
local base_info = {
group_id = 234402012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 12001, monster_id = 21010901, pos = { x = 9.315, y = 0.028, z = -4.584 }, rot = { x = 0.000, y = 299.025, z = 0.000 }, level = 1 },
{ config_id = 12002, monster_id = 21010901, pos = { x = 10.693, y = 0.028, z = -1.312 }, rot = { x = 0.000, y = 275.467, z = 0.000 }, level = 1 },
{ config_id = 12003, monster_id = 21010601, pos = { x = 5.144, y = -0.046, z = -9.888 }, rot = { x = 0.000, y = 331.130, z = 0.000 }, level = 1 },
{ config_id = 12004, monster_id = 21010301, pos = { x = 10.631, y = 0.028, z = 2.788 }, rot = { x = 0.000, y = 259.511, z = 0.000 }, level = 1 },
{ config_id = 12005, monster_id = 21010601, pos = { x = -4.695, y = -0.046, z = -9.917 }, rot = { x = 0.000, y = 22.350, z = 0.000 }, level = 1 },
{ config_id = 12006, monster_id = 21010301, pos = { x = 8.785, y = 0.028, z = 5.461 }, rot = { x = 0.000, y = 248.814, z = 0.000 }, level = 1 },
{ config_id = 12007, monster_id = 21020201, pos = { x = 0.368, y = -0.046, z = -12.041 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12009, monster_id = 21020101, pos = { x = 6.232, y = 0.028, z = 8.063 }, rot = { x = 0.000, y = 211.207, z = 0.000 }, level = 1 },
{ config_id = 12011, monster_id = 21030101, pos = { x = -9.369, y = 0.028, z = -5.048 }, rot = { x = 0.000, y = 63.948, z = 0.000 }, level = 1 },
{ config_id = 12012, monster_id = 21010501, pos = { x = -10.246, y = 0.028, z = -1.019 }, rot = { x = 0.000, y = 80.435, z = 0.000 }, level = 1 },
{ config_id = 12013, monster_id = 21011001, pos = { x = 7.666, y = 0.028, z = -7.428 }, rot = { x = 0.000, y = 314.412, z = 0.000 }, level = 1 },
{ config_id = 12014, monster_id = 21011001, pos = { x = -7.248, y = 0.028, z = -7.306 }, rot = { x = 0.000, y = 48.285, z = 0.000 }, level = 1 },
{ config_id = 12018, monster_id = 21010501, pos = { x = -9.613, y = 0.028, z = 4.076 }, rot = { x = 0.000, y = 106.274, z = 0.000 }, level = 1 },
{ config_id = 12019, monster_id = 21030101, pos = { x = -7.258, y = 0.028, z = 7.112 }, rot = { x = 0.000, y = 137.088, z = 0.000 }, level = 1 },
{ config_id = 12020, monster_id = 22010201, pos = { x = -3.430, y = 0.028, z = 9.721 }, rot = { x = 0.000, y = 165.208, z = 0.000 }, level = 1 },
{ config_id = 12021, monster_id = 21020301, pos = { x = 0.127, y = 0.028, z = 8.040 }, rot = { x = 0.000, y = 181.797, z = 0.000 }, level = 1 },
{ config_id = 12022, monster_id = 21010902, pos = { x = -2.059, y = 0.028, z = -11.283 }, rot = { x = 0.000, y = 11.336, z = 0.000 }, level = 1 },
{ config_id = 12023, monster_id = 21011002, pos = { x = 2.794, y = 0.028, z = -11.329 }, rot = { x = 0.000, y = 344.815, z = 0.000 }, level = 1 },
{ config_id = 12024, monster_id = 21010701, pos = { x = 6.021, y = 0.028, z = 5.351 }, rot = { x = 0.000, y = 222.896, z = 0.000 }, level = 1 },
{ config_id = 12025, monster_id = 21010701, pos = { x = -6.758, y = 0.028, z = 5.263 }, rot = { x = 0.000, y = 130.345, z = 0.000 }, level = 1 },
{ config_id = 12026, monster_id = 21010603, pos = { x = 9.635, y = 0.028, z = 0.882 }, rot = { x = 0.000, y = 267.757, z = 0.000 }, level = 1 },
{ config_id = 12027, monster_id = 21010603, pos = { x = 7.170, y = 0.028, z = -4.614 }, rot = { x = 0.000, y = 306.018, z = 0.000 }, level = 1 },
{ config_id = 12028, monster_id = 21011201, pos = { x = 2.630, y = 0.028, z = -8.468 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12029, monster_id = 21011201, pos = { x = -2.304, y = 0.028, z = -8.509 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12030, monster_id = 21020201, pos = { x = -6.495, y = 0.028, z = -5.569 }, rot = { x = 0.000, y = 59.730, z = 0.000 }, level = 1 },
{ config_id = 12031, monster_id = 21020202, pos = { x = -8.564, y = 0.028, z = 0.643 }, rot = { x = 0.000, y = 87.436, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 12008, gadget_id = 70900205, pos = { x = 6.400, y = -1.256, z = 3.243 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1012010, name = "ANY_MONSTER_DIE_12010", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_12010", action = "action_EVENT_ANY_MONSTER_DIE_12010" },
{ config_id = 1012015, name = "ANY_MONSTER_LIVE_12015", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_LIVE_12015" },
{ config_id = 1012016, name = "CHALLENGE_FAIL_12016", event = EventType.EVENT_CHALLENGE_FAIL, source = "1", condition = "", action = "action_EVENT_CHALLENGE_FAIL_12016" },
{ config_id = 1012017, name = "CHALLENGE_SUCCESS_12017", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "1", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_12017" }
}
-- 变量
variables = {
{ config_id = 1, name = "monster_wave", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 12008 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 12008 },
regions = { },
triggers = { "ANY_MONSTER_LIVE_12015", "CHALLENGE_FAIL_12016", "CHALLENGE_SUCCESS_12017" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { 12008 },
regions = { },
triggers = { "CHALLENGE_FAIL_12016", "CHALLENGE_SUCCESS_12017" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_12010(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 234402012) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_12010(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 234402012, 3)
return 0
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_12015(context, evt)
-- 创建编号为1(该挑战的识别id),挑战内容为197的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 1, 197, 600, 234402012, 26, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_12016(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 234402012, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 地城失败结算
if 0 ~= ScriptLib.CauseDungeonFail(context) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cause_dungeonfail")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_12017(context, evt)
-- 将剩余时间记录在触发此challenge的group变量TPL_TIME中
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "TPL_TIME", evt.param2, 234402010) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : save_challenge_remainTime")
return -1
end
-- 将本组内变量名为 "stage" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage", 1, 234402010) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 爬塔更换队伍2
if 0 ~= ScriptLib.TowerMirrorTeamSetUp(context, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : tower_team_setup")
return -1
end
-- 改变指定group组234402011中, configid为11001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 234402011, 11001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 234402011, 11001, {176}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 改变指定group组234402013中, configid为13001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 234402013, 13001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组234402013中, configid为13002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 234402013, 13002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 爬塔是否允许使用技能( is_allow_use_skill=0或1,表示不允许或允许使用主动技能)
if 0 ~= ScriptLib.SetIsAllowUseSkill(context, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : tower_allow_use_skill")
return -1
end
-- 改变指定group组234402001中, configid为1003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 234402001, 1003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,91 @@
-- 基础信息
local base_info = {
group_id = 234402013
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 13001, gadget_id = 70350053, pos = { x = 0.156, y = 0.042, z = -0.019 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13002, gadget_id = 70350054, pos = { x = 0.156, y = 0.042, z = -0.019 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1013003, name = "DUNGEON_SETTLE_13003", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "", action = "action_EVENT_DUNGEON_SETTLE_13003" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 13001, 13002 },
regions = { },
triggers = { "DUNGEON_SETTLE_13003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_DUNGEON_SETTLE_13003(context, evt)
-- 改变指定group组234402013中, configid为13001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 234402013, 13001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组234402013中, configid为13002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 234402013, 13002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,315 @@
-- 基础信息
local base_info = {
group_id = 234402014
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 14001, monster_id = 20011301, pos = { x = -1.368, y = 0.082, z = -11.573 }, rot = { x = 0.000, y = 13.195, z = 0.000 }, level = 1 },
{ config_id = 14002, monster_id = 20011202, pos = { x = -4.579, y = 0.082, z = -9.298 }, rot = { x = 0.000, y = 34.386, z = 0.000 }, level = 1 },
{ config_id = 14003, monster_id = 20011202, pos = { x = -6.692, y = 0.082, z = -7.605 }, rot = { x = 0.000, y = 55.802, z = 0.000 }, level = 1 },
{ config_id = 14004, monster_id = 20011202, pos = { x = 5.178, y = 0.082, z = -9.656 }, rot = { x = 0.000, y = 327.818, z = 0.000 }, level = 1 },
{ config_id = 14005, monster_id = 20011202, pos = { x = 7.972, y = 0.082, z = -7.537 }, rot = { x = 0.000, y = 303.832, z = 0.000 }, level = 1 },
{ config_id = 14006, monster_id = 20011301, pos = { x = 2.943, y = 0.082, z = -11.477 }, rot = { x = 0.000, y = 344.828, z = 0.000 }, level = 1 },
{ config_id = 14007, monster_id = 21030301, pos = { x = 5.281, y = 0.082, z = -12.058 }, rot = { x = 0.000, y = 332.583, z = 0.000 }, level = 1 },
{ config_id = 14008, monster_id = 21030301, pos = { x = -4.350, y = 0.082, z = -12.376 }, rot = { x = 0.000, y = 21.812, z = 0.000 }, level = 1 },
{ config_id = 14009, monster_id = 21011001, pos = { x = -6.793, y = 0.140, z = -9.778 }, rot = { x = 0.000, y = 54.563, z = 0.000 }, level = 1 },
{ config_id = 14010, monster_id = 21011001, pos = { x = 7.138, y = 0.082, z = -9.599 }, rot = { x = 0.000, y = 307.380, z = 0.000 }, level = 1 },
{ config_id = 14011, monster_id = 20011304, pos = { x = 0.225, y = 0.278, z = -13.502 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 14012, monster_id = 20011202, pos = { x = 4.698, y = 0.082, z = -7.437 }, rot = { x = 0.000, y = 330.382, z = 0.000 }, level = 1 },
{ config_id = 14013, monster_id = 20011202, pos = { x = -4.627, y = 0.082, z = -7.161 }, rot = { x = 0.000, y = 27.385, z = 0.000 }, level = 1 },
{ config_id = 14014, monster_id = 21011001, pos = { x = 9.914, y = 0.082, z = -3.447 }, rot = { x = 0.000, y = 290.326, z = 0.000 }, level = 1 },
{ config_id = 14015, monster_id = 21010502, pos = { x = 9.110, y = 0.082, z = -6.294 }, rot = { x = 0.000, y = 297.778, z = 0.000 }, level = 1 },
{ config_id = 14016, monster_id = 20011301, pos = { x = 9.931, y = 0.082, z = -0.956 }, rot = { x = 0.000, y = 273.917, z = 0.000 }, level = 1 },
{ config_id = 14017, monster_id = 21030303, pos = { x = -9.162, y = 0.082, z = -3.778 }, rot = { x = 0.000, y = 63.358, z = 0.000 }, level = 1 },
{ config_id = 14018, monster_id = 21030201, pos = { x = -9.682, y = 0.082, z = -0.017 }, rot = { x = 0.000, y = 87.800, z = 0.000 }, level = 1 },
{ config_id = 14019, monster_id = 20011202, pos = { x = 7.986, y = 0.082, z = -2.667 }, rot = { x = 0.000, y = 284.917, z = 0.000 }, level = 1 },
{ config_id = 14020, monster_id = 20011202, pos = { x = 8.207, y = 0.082, z = 0.211 }, rot = { x = 0.000, y = 262.335, z = 0.000 }, level = 1 },
{ config_id = 14021, monster_id = 21010902, pos = { x = -9.044, y = 0.082, z = 3.163 }, rot = { x = 0.000, y = 112.749, z = 0.000 }, level = 1 },
{ config_id = 14022, monster_id = 21011001, pos = { x = -7.326, y = 0.082, z = 6.002 }, rot = { x = 0.000, y = 133.548, z = 0.000 }, level = 1 },
{ config_id = 14023, monster_id = 20011304, pos = { x = 0.010, y = 0.082, z = -10.026 }, rot = { x = 0.000, y = 8.339, z = 0.000 }, level = 1 },
{ config_id = 14024, monster_id = 20011202, pos = { x = -2.287, y = 0.082, z = -8.036 }, rot = { x = 0.000, y = 20.994, z = 0.000 }, level = 1 },
{ config_id = 14025, monster_id = 20011202, pos = { x = 2.037, y = 0.082, z = -8.082 }, rot = { x = 0.000, y = 358.791, z = 0.000 }, level = 1 },
{ config_id = 14034, monster_id = 21030203, pos = { x = 6.692, y = 0.028, z = -5.615 }, rot = { x = 0.000, y = 316.762, z = 0.000 }, level = 1 },
{ config_id = 14035, monster_id = 20011304, pos = { x = 7.652, y = 0.028, z = 2.892 }, rot = { x = 0.000, y = 242.716, z = 0.000 }, level = 1, affix = { 1028 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 14026, gadget_id = 70900205, pos = { x = 0.213, y = -3.342, z = 0.152 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1014027, name = "ANY_MONSTER_DIE_14027", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_14027", action = "action_EVENT_ANY_MONSTER_DIE_14027" },
{ config_id = 1014028, name = "ANY_MONSTER_DIE_14028", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_14028", action = "action_EVENT_ANY_MONSTER_DIE_14028" },
{ config_id = 1014029, name = "ANY_MONSTER_DIE_14029", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_14029", action = "action_EVENT_ANY_MONSTER_DIE_14029" },
{ config_id = 1014030, name = "ANY_MONSTER_LIVE_14030", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_LIVE_14030" },
{ config_id = 1014031, name = "ANY_MONSTER_DIE_14031", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_14031", action = "action_EVENT_ANY_MONSTER_DIE_14031" },
{ config_id = 1014032, name = "CHALLENGE_SUCCESS_14032", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "2", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_14032" },
{ config_id = 1014033, name = "CHALLENGE_FAIL_14033", event = EventType.EVENT_CHALLENGE_FAIL, source = "2", condition = "", action = "action_EVENT_CHALLENGE_FAIL_14033" }
}
-- 变量
variables = {
{ config_id = 1, name = "monster_wave", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 14026 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 14026 },
regions = { },
triggers = { "ANY_MONSTER_LIVE_14030", "CHALLENGE_SUCCESS_14032", "CHALLENGE_FAIL_14033" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { 14026 },
regions = { },
triggers = { "ANY_MONSTER_DIE_14028" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = suite_4,
monsters = { },
gadgets = { 14026 },
regions = { },
triggers = { "ANY_MONSTER_DIE_14029" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = suite_5,
monsters = { },
gadgets = { 14026 },
regions = { },
triggers = { "ANY_MONSTER_DIE_14031" },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = suite_6,
monsters = { },
gadgets = { 14026 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_14027(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 234402014) ~= 0 then
return false
end
-- 判断变量"monster_wave"为1
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_14027(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 234402014, 3)
-- 针对当前group内变量名为 "monster_wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_14028(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 234402014) ~= 0 then
return false
end
-- 判断变量"monster_wave"为2
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_14028(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 234402014, 4)
-- 针对当前group内变量名为 "monster_wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_14029(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 234402014) ~= 0 then
return false
end
-- 判断变量"monster_wave"为3
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_14029(context, evt)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 234402014, 5)
-- 针对当前group内变量名为 "monster_wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_14030(context, evt)
-- 创建编号为2(该挑战的识别id),挑战内容为198的区域挑战,param1必须为时间
-- 从234402010的变量TPL_TIME中取出对应值并开启挑战
local tpl_time = ScriptLib.GetGroupVariableValueByGroup(context, "TPL_TIME", 234402010)
if tpl_time == nil or tpl_time < 0 then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge_by_remainTime")
return -1
elseif tpl_time < 1 then
tpl_time = 0
end
if 0 ~= ScriptLib.ActiveChallenge(context, 2, 198, tpl_time, 234402014, 27, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge_by_remainTime")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_14031(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 234402014) ~= 0 then
return false
end
-- 判断变量"monster_wave"为4
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_14031(context, evt)
-- 添加suite6的新内容
ScriptLib.AddExtraGroupSuite(context, 234402014, 6)
-- 针对当前group内变量名为 "monster_wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_14032(context, evt)
-- 将本组内变量名为 "stage" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage", 2, 234402010) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_14033(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 234402012, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 地城失败结算
if 0 ~= ScriptLib.CauseDungeonFail(context) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cause_dungeonfail")
return -1
end
return 0
end
@@ -0,0 +1,45 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 11.89413,
"y": 7.302863,
"z": -64.37035
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.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
}