添加配置表

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,30 @@
-- 地图配置
scene_config = {
begin_pos = { x = -973.0, z = -1515.1 },
size = { x = 1891.5, z = 3046.6 },
born_pos = { x = -0.485, y = 0.046, z = 14.149 },
born_rot = { x = 0.000, y = 180.000, z = 0.000 },
born_point_list = {
{ pos = { x = -0.485, y = 0.046, z = 14.149 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = -3.243, y = 0.046, z = 17.550 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = 2.386, y = 0.046, z = 17.641 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = -0.449, y = 0.046, z = 20.332 }, rot = { x = 0.000, y = 180.000, z = 0.000 } }
},
die_y = -10,
city_id = 1,
vision_anchor = { x = -973.0, z = -1515.1 }
}
-- 所有的区块
blocks = { 44006 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -973.0, z = -1515.1 }, max = { x = 918.4, z = 1531.5 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }
@@ -0,0 +1,12 @@
-- 所有的group
groups = {
{ id = 244006001, refresh_id = 1, pos = { x = -0.077, y = -5.038, z = 45.541 } },
{ id = 244006002, refresh_id = 1, pos = { x = -0.042, y = 0.047, z = 0.190 } },
{ id = 244006003, pos = { x = 0.199, y = 0.047, z = -7.334 } },
{ id = 244006004, refresh_id = 1, pos = { x = 0.429, y = 0.066, z = -0.097 } },
{ id = 244006005, refresh_id = 1, pos = { x = 1.000, y = 0.066, z = -0.938 } },
{ id = 244006006, refresh_id = 1, pos = { x = 1.810, y = 0.047, z = 0.030 } },
{ id = 244006007, refresh_id = 1, pos = { x = 0.347, y = 0.067, z = 1.267 } },
{ id = 244006008, refresh_id = 1, pos = { x = 5.534, y = 0.047, z = -1.222 } },
{ id = 244006009, refresh_id = 1, pos = { x = -7.810, y = 0.047, z = -1.502 } }
}
@@ -0,0 +1,73 @@
-- 基础信息
local base_info = {
group_id = 244006001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70350013, pos = { x = 0.018, y = 0.045, z = 23.966 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1002, gadget_id = 70350013, pos = { x = 0.211, y = 0.045, z = -23.990 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001, 1002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,899 @@
-- 基础信息
local base_info = {
group_id = 244006002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70360010, pos = { x = -0.021, y = 0.047, z = -0.085 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2006, gadget_id = 44000006, pos = { x = -0.271, y = 0.046, z = 13.765 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1002002, name = "GADGET_CREATE_2002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_2002", action = "action_EVENT_GADGET_CREATE_2002" },
-- 进入第一波
{ config_id = 1002003, name = "SELECT_OPTION_2003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2003", action = "action_EVENT_SELECT_OPTION_2003" },
-- 开始第二波招怪
{ config_id = 1002012, name = "VARIABLE_CHANGE_2012", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_2012", action = "action_EVENT_VARIABLE_CHANGE_2012" },
-- 开始第三波招怪
{ config_id = 1002013, name = "VARIABLE_CHANGE_2013", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_2013", action = "action_EVENT_VARIABLE_CHANGE_2013" },
{ config_id = 1002014, name = "POOL_MONSTER_TIDE_DIE_2014", event = EventType.EVENT_POOL_MONSTER_TIDE_DIE, source = "1", condition = "condition_EVENT_POOL_MONSTER_TIDE_DIE_2014", action = "action_EVENT_POOL_MONSTER_TIDE_DIE_2014" },
{ config_id = 1002015, name = "POOL_MONSTER_TIDE_DIE_2015", event = EventType.EVENT_POOL_MONSTER_TIDE_DIE, source = "2", condition = "condition_EVENT_POOL_MONSTER_TIDE_DIE_2015", action = "action_EVENT_POOL_MONSTER_TIDE_DIE_2015" },
{ config_id = 1002016, name = "POOL_MONSTER_TIDE_DIE_2016", event = EventType.EVENT_POOL_MONSTER_TIDE_DIE, source = "3", condition = "condition_EVENT_POOL_MONSTER_TIDE_DIE_2016", action = "action_EVENT_POOL_MONSTER_TIDE_DIE_2016" },
{ config_id = 1002017, name = "POOL_MONSTER_TIDE_DIE_2017", event = EventType.EVENT_POOL_MONSTER_TIDE_DIE, source = "4", condition = "condition_EVENT_POOL_MONSTER_TIDE_DIE_2017", action = "action_EVENT_POOL_MONSTER_TIDE_DIE_2017" },
{ config_id = 1002018, name = "CHALLENGE_SUCCESS_2018", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "201", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_2018" },
-- 开始第二波招怪
{ config_id = 1002019, name = "VARIABLE_CHANGE_2019", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_2019", action = "action_EVENT_VARIABLE_CHANGE_2019" },
-- 开始第三波招怪
{ config_id = 1002020, name = "VARIABLE_CHANGE_2020", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_2020", action = "action_EVENT_VARIABLE_CHANGE_2020" },
{ config_id = 1002021, name = "CHALLENGE_FAIL_2021", event = EventType.EVENT_CHALLENGE_FAIL, source = "202", condition = "", action = "action_EVENT_CHALLENGE_FAIL_2021" },
{ config_id = 1002022, name = "CHALLENGE_SUCCESS_2022", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "202", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_2022" },
{ config_id = 1002023, name = "DUNGEON_ALL_AVATAR_DIE_2023", event = EventType.EVENT_DUNGEON_ALL_AVATAR_DIE, source = "", condition = "condition_EVENT_DUNGEON_ALL_AVATAR_DIE_2023", action = "action_EVENT_DUNGEON_ALL_AVATAR_DIE_2023", trigger_count = 0 },
{ config_id = 1002024, name = "CHALLENGE_FAIL_2024", event = EventType.EVENT_CHALLENGE_FAIL, source = "101", condition = "", action = "action_EVENT_CHALLENGE_FAIL_2024" },
{ config_id = 1002025, name = "CHALLENGE_FAIL_2025", event = EventType.EVENT_CHALLENGE_FAIL, source = "201", condition = "", action = "action_EVENT_CHALLENGE_FAIL_2025" },
{ config_id = 1002026, name = "CHALLENGE_FAIL_2026", event = EventType.EVENT_CHALLENGE_FAIL, source = "201", condition = "", action = "action_EVENT_CHALLENGE_FAIL_2026" },
{ config_id = 1002027, name = "CHALLENGE_FAIL_2027", event = EventType.EVENT_CHALLENGE_FAIL, source = "201", condition = "", action = "action_EVENT_CHALLENGE_FAIL_2027" },
{ config_id = 1002028, name = "CHALLENGE_FAIL_2028", event = EventType.EVENT_CHALLENGE_FAIL, source = "201", condition = "", action = "action_EVENT_CHALLENGE_FAIL_2028" }
}
-- 点位
points = {
-- 外围点
{ config_id = 2004, pos = { x = -9.574, y = 0.046, z = -14.344 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, tag = 2 },
-- 外围点
{ config_id = 2005, pos = { x = 0.061, y = 0.046, z = -16.714 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, tag = 2 },
-- 外围点
{ config_id = 2007, pos = { x = 9.847, y = 0.046, z = -14.713 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, tag = 2 },
-- 内部点
{ config_id = 2008, pos = { x = -4.148, y = 0.047, z = -6.747 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, tag = 4 },
-- 内部点
{ config_id = 2009, pos = { x = -7.136, y = 0.047, z = -2.358 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, tag = 4 },
-- 内部点
{ config_id = 2010, pos = { x = 4.451, y = 0.047, z = -6.898 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, tag = 4 },
-- 内部点
{ config_id = 2011, pos = { x = 6.908, y = 0.047, z = -2.431 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, tag = 4 }
}
-- 变量
variables = {
{ config_id = 1, name = "ROUND", value = 0, no_refresh = false },
{ config_id = 2, name = "IS_IN_LIMIT_TIME", value = 0, no_refresh = false },
{ config_id = 3, name = "FIRST_WAVE_MONSTER_AFFIX", value = 0, no_refresh = false },
{ config_id = 4, name = "SECOND_WAVE_MONSTER_AFFIX", value = 0, no_refresh = false },
{ config_id = 5, name = "THIRD_WAVE_MONSTER_AFFIX", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2006 },
regions = { },
triggers = { "GADGET_CREATE_2002", "SELECT_OPTION_2003", "VARIABLE_CHANGE_2012", "VARIABLE_CHANGE_2013", "POOL_MONSTER_TIDE_DIE_2014", "POOL_MONSTER_TIDE_DIE_2015", "POOL_MONSTER_TIDE_DIE_2016", "POOL_MONSTER_TIDE_DIE_2017", "VARIABLE_CHANGE_2019", "VARIABLE_CHANGE_2020", "CHALLENGE_FAIL_2021", "CHALLENGE_SUCCESS_2022", "DUNGEON_ALL_AVATAR_DIE_2023", "CHALLENGE_FAIL_2024" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "CHALLENGE_SUCCESS_2018" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_2002(context, evt)
if 2001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_2002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 244006002, 2001, {175}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2003(context, evt)
-- 判断是gadgetid 2001 option_id 175
if 2001 ~= evt.param1 then
return false
end
if 175 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2003(context, evt)
-- 初始化时间变量
local challenge_time = 0
-- 初始化雷圈变量
local thunder_energy_reduction = 0
local thunder_second_stage = 0
-- 初始化怪物词缀变量
local monster_affix_first = 0
local monster_affix_second = 0
local monster_affix_third = 0
-------------------------------------------------------------------------------
-- 判断选择时间因子
--[[
for i = 1,3 do
if 0 ~= ScriptLib.IsChannellerSlabLoopDungeonConditionSelected(context, i) then
challenge_time = ScriptLib.GetChannellerSlabLoopDungeonLimitTime(context)
end
end
]]--
--------------------------------------------------------------------------------
if (0 or -1) ~= ScriptLib.GetChannellerSlabLoopDungeonLimitTime(context) then
challenge_time = ScriptLib.GetChannellerSlabLoopDungeonLimitTime(context)
end
--------------------------------------------------------------------------------
-- 判断是否选择雷圈外损失能量
if false ~= ScriptLib.IsChannellerSlabLoopDungeonConditionSelected(context, 101) then
thunder_energy_reduction = 1
end
-- 判断是否选择雷圈从第二个阶段开始
if false ~= ScriptLib.IsChannellerSlabLoopDungeonConditionSelected(context, 102) then
thunder_second_stage = 1
end
------------------------------------------------------------
-- 判断怪物词缀变量1
if false ~= ScriptLib.IsChannellerSlabLoopDungeonConditionSelected(context, 103) then
monster_affix_first = 1
end
-- 判断怪物词缀变量2
if false ~= ScriptLib.IsChannellerSlabLoopDungeonConditionSelected(context, 104) then
monster_affix_second = 1
end
-- 判断怪物词缀变量3
if false ~= ScriptLib.IsChannellerSlabLoopDungeonConditionSelected(context, 105) then
monster_affix_third = 1
end
-- 在Group244006002从怪物潮池{13021}中随机创建一个TideIndex为1的怪物潮,创建怪物总数为2,场上怪物最少2只,最多2只, pointTag 为 2 每0尝试填充一次,填充数量为0
if 0 ~= ScriptLib.AutoPoolMonsterTide(context, 1, 244006002, {13021},0,{},{}, {total_count = 2, min_count = 2, max_count = 2, tag = 2, fill_time= 0, fill_count = 0}) then
return -1
end
-- 在Group244006002从怪物潮池{13022}中随机创建一个TideIndex为2的怪物潮,创建怪物总数为4,场上怪物最少4只,最多4只, pointTag 为 4 每0尝试填充一次,填充数量为0
if 0 ~= monster_affix_first then
ScriptLib.AutoPoolMonsterTide(context, 2, 244006002, {13027},0,{},{}, {total_count = 4, min_count = 4, max_count = 4, tag = 4, fill_time= 0, fill_count = 0})
else
ScriptLib.AutoPoolMonsterTide(context, 2, 244006002, {13022},0,{},{}, {total_count = 4, min_count = 4, max_count = 4, tag = 4, fill_time= 0, fill_count = 0})
end
-- 将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
-- 删除指定group 244006002 ;指定config2001;物件身上指定option175
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 244006002, 2001, 175) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将本组内变量名为 "round" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "ROUND", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
----------------------------------------------------------------------------------------------------------------------------
-- 创建编号为110180父挑战,indexID为101
if 0 ~= ScriptLib.CreateFatherChallenge(context, 101, 110180, 999999, {success = 1, fail = 1, fail_on_wipe=false}) then
return -1
end
-- 创建编号为201的子挑战:杀怪挑战,消灭16个怪
if 0 ~= ScriptLib.AttachChildChallenge(context, 101, 201, 110181, {244006002,16},{},{success=0,fail=0}) then
return -1
end
-- 创建编号为202的子挑战:限时积分.如果没有选择不会开启,会直接加载suite2的内容
if 0 ~= challenge_time then
ScriptLib.AttachChildChallenge(context, 101, 202, 110182, {challenge_time,244006002,16},{},{success=0,fail=0})
else
ScriptLib.AddExtraGroupSuite(context, 244006002, 2)
end
-- 开始父挑战
if 0 ~= ScriptLib.StartFatherChallenge(context, 101) then
return -1
end
-----------------------------------------------------------------------------------------------------------------
-- 将第2波怪参数改为1
if 0 ~= monster_affix_second then
ScriptLib.SetGroupVariableValue(context, "SECOND_WAVE_MONSTER_AFFIX", 1)
end
-- 将第3波怪参数改为1
if 0 ~= monster_affix_third then
ScriptLib.SetGroupVariableValue(context, "THIRD_WAVE_MONSTER_AFFIX", 1)
end
-----------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------
-- 激活对应的雷圈group
if 0 ~= thunder_second_stage then
if 0 ~= thunder_energy_reduction then
ScriptLib.AddExtraGroupSuite(context, 244006007, 2)
else
ScriptLib.AddExtraGroupSuite(context, 244006006, 2)
end
else
if 0 ~= thunder_energy_reduction then
ScriptLib.AddExtraGroupSuite(context, 244006005, 2)
else
ScriptLib.AddExtraGroupSuite(context, 244006004, 2)
end
end
-------------------------------------------------------------------------------------
-- 卸载回血gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 244006002, EntityType.GADGET, 2006 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_2012(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"ROUND"为2
if ScriptLib.GetGroupVariableValue(context, "ROUND") ~= 2 then
return false
end
-- 判断变量"SECOND_WAVE_MONSTER_AFFIX"为0
if ScriptLib.GetGroupVariableValue(context, "SECOND_WAVE_MONSTER_AFFIX") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_2012(context, evt)
-- 在Group244006002从怪物潮池{13023}中随机创建一个TideIndex为3的怪物潮,创建怪物总数为3,场上怪物最少3只,最多3只, pointTag 为 2 每0尝试填充一次,填充数量为0
if 0 ~= ScriptLib.AutoPoolMonsterTide(context, 3, 244006002, {13023},0,{},{}, {total_count = 3, min_count = 3, max_count = 3, tag = 2, fill_time= 0, fill_count = 0}) then
return -1
end
-- 在Group244006002从怪物潮池{13024}中随机创建一个TideIndex为4的怪物潮,创建怪物总数为4,场上怪物最少4只,最多4只, pointTag 为 4 每0尝试填充一次,填充数量为0
if 0 ~= ScriptLib.AutoPoolMonsterTide(context, 4, 244006002, {13024},0,{},{}, {total_count = 4, min_count = 4, max_count = 4, tag = 4, fill_time= 0, fill_count = 0}) then
return -1
end
-- 将本组内变量名为 "ROUND" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "ROUND", 2, 244006004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "ROUND" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "ROUND", 2, 244006005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_2013(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"ROUND"为4
if ScriptLib.GetGroupVariableValue(context, "ROUND") ~= 4 then
return false
end
-- 判断变量"THIRD_WAVE_MONSTER_AFFIX"为0
if ScriptLib.GetGroupVariableValue(context, "THIRD_WAVE_MONSTER_AFFIX") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_2013(context, evt)
-- 在Group244006002从怪物潮池{13025}中随机创建一个TideIndex为5的怪物潮,创建怪物总数为2,场上怪物最少2只,最多2只, pointTag 为 2 每0尝试填充一次,填充数量为0
if 0 ~= ScriptLib.AutoPoolMonsterTide(context, 5, 244006002, {13025},0,{},{}, {total_count = 2, min_count = 2, max_count = 2, tag = 2, fill_time= 0, fill_count = 0}) then
return -1
end
-- 在Group244006002从怪物潮池{13026}中随机创建一个TideIndex为6的怪物潮,创建怪物总数为1,场上怪物最少1只,最多1只, pointTag 为 4 每0尝试填充一次,填充数量为0
if 0 ~= ScriptLib.AutoPoolMonsterTide(context, 6, 244006002, {13026},0,{},{}, {total_count = 1, min_count = 1, max_count = 1, tag = 4, fill_time= 0, fill_count = 0}) then
return -1
end
-- 将本组内变量名为 "ROUND" 的变量设置为 4
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "ROUND", 4, 244006004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "ROUND" 的变量设置为 4
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "ROUND", 4, 244006005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "ROUND" 的变量设置为 4
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "ROUND", 4, 244006006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "ROUND" 的变量设置为 4
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "ROUND", 4, 244006007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_POOL_MONSTER_TIDE_DIE_2014(context, evt)
if 2 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_POOL_MONSTER_TIDE_DIE_2014(context, evt)
-- 针对当前group内变量名为 "ROUND" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "ROUND", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_POOL_MONSTER_TIDE_DIE_2015(context, evt)
if 4 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_POOL_MONSTER_TIDE_DIE_2015(context, evt)
-- 针对当前group内变量名为 "ROUND" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "ROUND", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_POOL_MONSTER_TIDE_DIE_2016(context, evt)
if 3 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_POOL_MONSTER_TIDE_DIE_2016(context, evt)
-- 针对当前group内变量名为 "ROUND" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "ROUND", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_POOL_MONSTER_TIDE_DIE_2017(context, evt)
if 4 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_POOL_MONSTER_TIDE_DIE_2017(context, evt)
-- 针对当前group内变量名为 "ROUND" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "ROUND", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_2018(context, evt)
-- 将本组内变量名为 "ROUND" 的变量设置为 6
if 0 ~= ScriptLib.SetGroupVariableValue(context, "ROUND", 6) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "ROUND" 的变量设置为 6
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "ROUND", 6, 244006004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "ROUND" 的变量设置为 6
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "ROUND", 6, 244006005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "ROUND" 的变量设置为 6
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "ROUND", 6, 244006006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "ROUND" 的变量设置为 6
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "ROUND", 6, 244006007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 终止识别id为101的挑战,并判定成功
ScriptLib.StopChallenge(context, 101, 1)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_2019(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"ROUND"为2
if ScriptLib.GetGroupVariableValue(context, "ROUND") ~= 2 then
return false
end
-- 判断变量"SECOND_WAVE_MONSTER_AFFIX"为1
if ScriptLib.GetGroupVariableValue(context, "SECOND_WAVE_MONSTER_AFFIX") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_2019(context, evt)
-- 在Group244006002从怪物潮池{13023}中随机创建一个TideIndex为3的怪物潮,创建怪物总数为3,场上怪物最少3只,最多3只, pointTag 为 2 每0尝试填充一次,填充数量为0
if 0 ~= ScriptLib.AutoPoolMonsterTide(context, 3, 244006002, {13023},0,{},{}, {total_count = 3, min_count = 3, max_count = 3, tag = 2, fill_time= 0, fill_count = 0}) then
return -1
end
-- 在Group244006002从怪物潮池{13028}中随机创建一个TideIndex为4的怪物潮,创建怪物总数为4,场上怪物最少4只,最多4只, pointTag 为 4 每0尝试填充一次,填充数量为0
if 0 ~= ScriptLib.AutoPoolMonsterTide(context, 4, 244006002, {13028},0,{},{}, {total_count = 4, min_count = 4, max_count = 4, tag = 4, fill_time= 0, fill_count = 0}) then
return -1
end
-- 将本组内变量名为 "ROUND" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "ROUND", 2, 244006004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "ROUND" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "ROUND", 2, 244006005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_2020(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"ROUND"为4
if ScriptLib.GetGroupVariableValue(context, "ROUND") ~= 4 then
return false
end
-- 判断变量"THIRD_WAVE_MONSTER_AFFIX"为1
if ScriptLib.GetGroupVariableValue(context, "THIRD_WAVE_MONSTER_AFFIX") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_2020(context, evt)
-- 在Group244006002从怪物潮池{13025}中随机创建一个TideIndex为5的怪物潮,创建怪物总数为2,场上怪物最少2只,最多2只, pointTag 为 2 每0尝试填充一次,填充数量为0
if 0 ~= ScriptLib.AutoPoolMonsterTide(context, 5, 244006002, {13025},0,{},{}, {total_count = 2, min_count = 2, max_count = 2, tag = 2, fill_time= 0, fill_count = 0}) then
return -1
end
-- 在Group244006002从怪物潮池{13029}中随机创建一个TideIndex为6的怪物潮,创建怪物总数为1,场上怪物最少1只,最多1只, pointTag 为 4 每0尝试填充一次,填充数量为0
if 0 ~= ScriptLib.AutoPoolMonsterTide(context, 6, 244006002, {13029},0,{},{}, {total_count = 1, min_count = 1, max_count = 1, tag = 4, fill_time= 0, fill_count = 0}) then
return -1
end
-- 将本组内变量名为 "ROUND" 的变量设置为 4
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "ROUND", 4, 244006004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "ROUND" 的变量设置为 4
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "ROUND", 4, 244006005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "ROUND" 的变量设置为 4
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "ROUND", 4, 244006006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "ROUND" 的变量设置为 4
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "ROUND", 4, 244006007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_2021(context, evt)
-- 将本组内变量名为 "IS_IN_LIMIT_TIME" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "IS_IN_LIMIT_TIME", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 244006002, 2)
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_2022(context, evt)
-- 将本组内变量名为 "IS_IN_LIMIT_TIME" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "IS_IN_LIMIT_TIME", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 终止识别id为101的挑战,并判定成功
ScriptLib.StopChallenge(context, 101, 1)
-- 将本组内变量名为 "ROUND" 的变量设置为 6
if 0 ~= ScriptLib.SetGroupVariableValue(context, "ROUND", 6) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "ROUND" 的变量设置为 6
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "ROUND", 6, 244006004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "ROUND" 的变量设置为 6
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "ROUND", 6, 244006005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "ROUND" 的变量设置为 6
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "ROUND", 6, 244006006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "ROUND" 的变量设置为 6
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "ROUND", 6, 244006007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_DUNGEON_ALL_AVATAR_DIE_2023(context, evt)
local uid_list = ScriptLib.GetSceneUidList(context)
local ret = 0
for i,v in ipairs(uid_list) do
local is_all_dead = ScriptLib.IsPlayerAllAvatarDie(context, v)
if true ~= is_all_dead then
ret = -1
break
end
end
if ret ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_DUNGEON_ALL_AVATAR_DIE_2023(context, evt)
-- 终止识别id为101的挑战,并判定失败
ScriptLib.StopChallenge(context, 101, 0)
-- 地城失败结算
if 0 ~= ScriptLib.CauseDungeonFail(context) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cause_dungeonfail")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_2024(context, evt)
-- 杀死Group内所有实体
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 244006004, kill_policy = GroupKillPolicy.GROUP_KILL_ALL }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_group")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 244006004, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 杀死Group内所有实体
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 244006005, kill_policy = GroupKillPolicy.GROUP_KILL_ALL }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_group")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 244006005, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 杀死Group内所有实体
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 244006006, kill_policy = GroupKillPolicy.GROUP_KILL_ALL }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_group")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 244006006, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 杀死Group内所有实体
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 244006007, kill_policy = GroupKillPolicy.GROUP_KILL_ALL }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_group")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 244006007, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 244006002, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_2025(context, evt)
-- 改变指定group组244006004中, configid为4001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 244006004, 4001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 杀死Group内所有实体
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 244006004, kill_policy = GroupKillPolicy.GROUP_KILL_ALL }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_group")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 244006004, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_2026(context, evt)
-- 改变指定group组244006005中, configid为5001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 244006005, 5001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 杀死Group内所有实体
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 244006005, kill_policy = GroupKillPolicy.GROUP_KILL_ALL }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_group")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 244006005, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_2027(context, evt)
-- 改变指定group组244006006中, configid为6001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 244006006, 6001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 杀死Group内所有实体
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 244006006, kill_policy = GroupKillPolicy.GROUP_KILL_ALL }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_group")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 244006006, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_2028(context, evt)
-- 改变指定group组244006007中, configid为7001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 244006007, 7001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 杀死Group内所有实体
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 244006007, kill_policy = GroupKillPolicy.GROUP_KILL_ALL }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_group")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 244006007, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,110 @@
-- 基础信息
local base_info = {
group_id = 244006003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 3008, shape = RegionShape.SPHERE, radius = 30, pos = { x = 0.084, y = 0.066, z = -0.110 } }
}
-- 触发器
triggers = {
{ config_id = 1003008, name = "ENTER_REGION_3008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_3008" }
}
-- 点位
points = {
{ config_id = 3001, pos = { x = 9.506, y = 0.046, z = -14.459 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, tag = 2 },
{ config_id = 3002, pos = { x = -0.139, y = 0.046, z = -16.627 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, tag = 2 },
{ config_id = 3003, pos = { x = -9.325, y = 0.046, z = -14.130 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, tag = 2 },
{ config_id = 3004, pos = { x = 0.081, y = 0.047, z = -8.707 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, tag = 4 },
{ config_id = 3005, pos = { x = 5.987, y = 0.047, z = -6.135 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, tag = 4 },
{ config_id = 3006, pos = { x = -6.494, y = 0.047, z = -5.939 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, tag = 4 },
{ config_id = 3007, pos = { x = 0.212, y = 0.047, z = -4.877 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, tag = 4 }
}
-- 变量
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 = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ENTER_REGION_3008(context, evt)
-- 在Group244006003从怪物潮池{13025}中随机创建一个TideIndex为5的怪物潮,创建怪物总数为2,场上怪物最少2只,最多2只, pointTag 为 2 每0尝试填充一次,填充数量为0
if 0 ~= ScriptLib.AutoPoolMonsterTide(context, 5, 244006003, {13025},0,{},{}, {total_count = 2, min_count = 2, max_count = 2, tag = 2, fill_time= 0, fill_count = 0}) then
return -1
end
-- 在Group244006003从怪物潮池{13026}中随机创建一个TideIndex为6的怪物潮,创建怪物总数为1,场上怪物最少1只,最多1只, pointTag 为 4 每0尝试填充一次,填充数量为0
if 0 ~= ScriptLib.AutoPoolMonsterTide(context, 6, 244006003, {13026},0,{},{}, {total_count = 1, min_count = 1, max_count = 1, tag = 4, fill_time= 0, fill_count = 0}) then
return -1
end
return 0
end
@@ -0,0 +1,194 @@
-- 基础信息
local base_info = {
group_id = 244006004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70330057, pos = { x = 0.473, y = 0.066, z = -0.097 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1004002, name = "VARIABLE_CHANGE_4002", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_4002", action = "action_EVENT_VARIABLE_CHANGE_4002" },
{ config_id = 1004003, name = "VARIABLE_CHANGE_4003", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_4003", action = "action_EVENT_VARIABLE_CHANGE_4003" },
{ config_id = 1004004, name = "VARIABLE_CHANGE_4004", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_4004", action = "action_EVENT_VARIABLE_CHANGE_4004" },
{ config_id = 1004005, name = "GADGET_CREATE_4005", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_4005", action = "action_EVENT_GADGET_CREATE_4005" }
}
-- 变量
variables = {
{ config_id = 1, name = "ROUND", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
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 = { },
gadgets = { 4001 },
regions = { },
triggers = { "VARIABLE_CHANGE_4002", "VARIABLE_CHANGE_4003", "VARIABLE_CHANGE_4004", "GADGET_CREATE_4005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_4002(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"ROUND"为2
if ScriptLib.GetGroupVariableValue(context, "ROUND") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_4002(context, evt)
-- 将configid为 4001 的物件更改为状态 GadgetState.Action01
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4001, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 调用提示id为 400028 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 400028) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_4003(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"ROUND"为4
if ScriptLib.GetGroupVariableValue(context, "ROUND") ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_4003(context, evt)
-- 将configid为 4001 的物件更改为状态 GadgetState.Action02
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4001, GadgetState.Action02) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 调用提示id为 400028 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 400028) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_4004(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"ROUND"为6
if ScriptLib.GetGroupVariableValue(context, "ROUND") ~= 6 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_4004(context, evt)
-- 将configid为 4001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 4001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_4005(context, evt)
if 4001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_4005(context, evt)
-- 将configid为 4001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,194 @@
-- 基础信息
local base_info = {
group_id = 244006005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5001, gadget_id = 70330057, pos = { x = 0.473, y = 0.066, z = -0.097 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1005002, name = "VARIABLE_CHANGE_5002", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_5002", action = "action_EVENT_VARIABLE_CHANGE_5002" },
{ config_id = 1005003, name = "VARIABLE_CHANGE_5003", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_5003", action = "action_EVENT_VARIABLE_CHANGE_5003" },
{ config_id = 1005004, name = "VARIABLE_CHANGE_5004", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_5004", action = "action_EVENT_VARIABLE_CHANGE_5004" },
{ config_id = 1005005, name = "GADGET_CREATE_5005", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_5005", action = "action_EVENT_GADGET_CREATE_5005" }
}
-- 变量
variables = {
{ config_id = 1, name = "ROUND", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
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 = { },
gadgets = { 5001 },
regions = { },
triggers = { "VARIABLE_CHANGE_5002", "VARIABLE_CHANGE_5003", "VARIABLE_CHANGE_5004", "GADGET_CREATE_5005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_5002(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"ROUND"为2
if ScriptLib.GetGroupVariableValue(context, "ROUND") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5002(context, evt)
-- 将configid为 5001 的物件更改为状态 GadgetState.Action01
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5001, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 调用提示id为 400028 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 400028) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_5003(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"ROUND"为4
if ScriptLib.GetGroupVariableValue(context, "ROUND") ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5003(context, evt)
-- 将configid为 5001 的物件更改为状态 GadgetState.Action02
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5001, GadgetState.Action02) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 调用提示id为 400028 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 400028) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_5004(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"ROUND"为6
if ScriptLib.GetGroupVariableValue(context, "ROUND") ~= 6 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5004(context, evt)
-- 将configid为 5001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 5001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_5005(context, evt)
if 5001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_5005(context, evt)
-- 将configid为 5001 的物件更改为状态 GadgetState.GearAction1
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5001, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,164 @@
-- 基础信息
local base_info = {
group_id = 244006006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6001, gadget_id = 70330057, pos = { x = 0.088, y = 0.066, z = -0.087 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1006002, name = "VARIABLE_CHANGE_6002", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_6002", action = "action_EVENT_VARIABLE_CHANGE_6002" },
{ config_id = 1006003, name = "VARIABLE_CHANGE_6003", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_6003", action = "action_EVENT_VARIABLE_CHANGE_6003" },
{ config_id = 1006004, name = "GADGET_CREATE_6004", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_6004", action = "action_EVENT_GADGET_CREATE_6004" }
}
-- 变量
variables = {
{ config_id = 1, name = "ROUND", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
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 = { },
gadgets = { 6001 },
regions = { },
triggers = { "VARIABLE_CHANGE_6002", "VARIABLE_CHANGE_6003", "GADGET_CREATE_6004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_6002(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"ROUND"为4
if ScriptLib.GetGroupVariableValue(context, "ROUND") ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_6002(context, evt)
-- 将configid为 6001 的物件更改为状态 GadgetState.Action02
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6001, GadgetState.Action02) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 调用提示id为 400028 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 400028) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_6003(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"ROUND"为6
if ScriptLib.GetGroupVariableValue(context, "ROUND") ~= 6 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_6003(context, evt)
-- 将configid为 6001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 6001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_6004(context, evt)
if 6001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_6004(context, evt)
-- 将configid为 6001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,164 @@
-- 基础信息
local base_info = {
group_id = 244006007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7001, gadget_id = 70330057, pos = { x = 0.088, y = 0.066, z = -0.087 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1007002, name = "VARIABLE_CHANGE_7002", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_7002", action = "action_EVENT_VARIABLE_CHANGE_7002" },
{ config_id = 1007003, name = "VARIABLE_CHANGE_7003", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_7003", action = "action_EVENT_VARIABLE_CHANGE_7003" },
{ config_id = 1007004, name = "GADGET_CREATE_7004", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_7004", action = "action_EVENT_GADGET_CREATE_7004" }
}
-- 变量
variables = {
{ config_id = 1, name = "ROUND", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
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 = { },
gadgets = { 7001 },
regions = { },
triggers = { "VARIABLE_CHANGE_7002", "VARIABLE_CHANGE_7003", "GADGET_CREATE_7004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_7002(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"ROUND"为4
if ScriptLib.GetGroupVariableValue(context, "ROUND") ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_7002(context, evt)
-- 将configid为 7001 的物件更改为状态 GadgetState.Action02
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7001, GadgetState.Action02) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 调用提示id为 400028 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 400028) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_7003(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"ROUND"为6
if ScriptLib.GetGroupVariableValue(context, "ROUND") ~= 6 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_7003(context, evt)
-- 将configid为 7001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 7001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_7004(context, evt)
if 7001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_7004(context, evt)
-- 将configid为 7001 的物件更改为状态 GadgetState.GearAction2
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7001, GadgetState.GearAction2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,166 @@
-- 基础信息
local base_info = {
group_id = 244006008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8001, gadget_id = 70330057, pos = { x = 0.473, y = 0.066, z = -0.097 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
{ config_id = 8005, shape = RegionShape.SPHERE, radius = 50, pos = { x = 1.057, y = 0.066, z = -1.187 } }
}
-- 触发器
triggers = {
{ config_id = 1008002, name = "VARIABLE_CHANGE_8002", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_8002", action = "action_EVENT_VARIABLE_CHANGE_8002" },
{ config_id = 1008003, name = "VARIABLE_CHANGE_8003", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_8003", action = "action_EVENT_VARIABLE_CHANGE_8003" },
{ config_id = 1008004, name = "VARIABLE_CHANGE_8004", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_8004", action = "action_EVENT_VARIABLE_CHANGE_8004" },
{ config_id = 1008005, name = "ENTER_REGION_8005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_8005" }
}
-- 变量
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 = { },
gadgets = { },
regions = { 8005 },
triggers = { "VARIABLE_CHANGE_8002", "VARIABLE_CHANGE_8003", "VARIABLE_CHANGE_8004", "ENTER_REGION_8005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_8002(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"round"为2
if ScriptLib.GetGroupVariableValueByGroup(context, "round", 244006002) ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_8002(context, evt)
-- 将configid为 8001 的物件更改为状态 GadgetState.Action01
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8001, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_8003(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"round"为4
if ScriptLib.GetGroupVariableValueByGroup(context, "round", 244006002) ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_8003(context, evt)
-- 将configid为 8001 的物件更改为状态 GadgetState.Action02
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8001, GadgetState.Action02) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_8004(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"round"为6
if ScriptLib.GetGroupVariableValueByGroup(context, "round", 244006002) ~= 6 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_8004(context, evt)
-- 将configid为 8001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_ENTER_REGION_8005(context, evt)
-- 创建id为8001的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 8001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,166 @@
-- 基础信息
local base_info = {
group_id = 244006009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9001, gadget_id = 70330057, pos = { x = 0.473, y = 0.066, z = -0.097 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop }
}
-- 区域
regions = {
{ config_id = 9005, shape = RegionShape.SPHERE, radius = 50, pos = { x = 2.029, y = 0.047, z = -1.875 } }
}
-- 触发器
triggers = {
{ config_id = 1009002, name = "VARIABLE_CHANGE_9002", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_9002", action = "action_EVENT_VARIABLE_CHANGE_9002" },
{ config_id = 1009003, name = "VARIABLE_CHANGE_9003", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_9003", action = "action_EVENT_VARIABLE_CHANGE_9003" },
{ config_id = 1009004, name = "VARIABLE_CHANGE_9004", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_9004", action = "action_EVENT_VARIABLE_CHANGE_9004" },
{ config_id = 1009005, name = "ENTER_REGION_9005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_9005" }
}
-- 变量
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 = { },
gadgets = { },
regions = { 9005 },
triggers = { "VARIABLE_CHANGE_9002", "VARIABLE_CHANGE_9003", "VARIABLE_CHANGE_9004", "ENTER_REGION_9005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_9002(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"round"为2
if ScriptLib.GetGroupVariableValueByGroup(context, "round", 244006002) ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_9002(context, evt)
-- 将configid为 9001 的物件更改为状态 GadgetState.Action01
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9001, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_9003(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"round"为4
if ScriptLib.GetGroupVariableValueByGroup(context, "round", 244006002) ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_9003(context, evt)
-- 将configid为 9001 的物件更改为状态 GadgetState.Action02
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9001, GadgetState.Action02) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_9004(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"round"为6
if ScriptLib.GetGroupVariableValueByGroup(context, "round", 244006002) ~= 6 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_9004(context, evt)
-- 将configid为 9001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_ENTER_REGION_9005(context, evt)
-- 创建id为9001的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 9001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
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": 12.45049,
"y": 7.318362,
"z": -64.49384
},
"rot": {
"x": 0.0,
"y": 0.0,
"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
}
},
"transRadius": 0.0
}