添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions
@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -512.0, z = -512.0 },
size = { x = 1024.0, z = 1024.0 },
born_pos = { x = 17.409, y = 40.660, z = 39.526 },
born_rot = { x = 0.000, y = 180.770, z = 0.000 },
die_y = -40,
city_id = 1,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 43013 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -512.0, z = -512.0 }, max = { x = 512.0, z = 512.0 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }
@@ -0,0 +1,15 @@
-- 所有的group
groups = {
{ id = 243013001, refresh_id = 1, pos = { x = 72.496, y = 40.000, z = -73.933 } },
{ id = 243013002, refresh_id = 1, pos = { x = 98.284, y = 40.002, z = -3.295 } },
{ id = 243013003, refresh_id = 1, pos = { x = 72.802, y = 40.000, z = -29.902 } },
{ id = 243013004, refresh_id = 1002, pos = { x = 32.776, y = -19.530, z = -56.961 } },
{ id = 243013005, refresh_id = 1, pos = { x = 30.590, y = 40.000, z = -62.128 } },
{ id = 243013006, pos = { x = 49.138, y = 40.000, z = -31.903 } },
{ id = 243013007, refresh_id = 1, pos = { x = -3.586, y = 40.002, z = -50.893 } },
{ id = 243013008, refresh_id = 1, pos = { x = -1.595, y = 40.000, z = -76.287 } },
{ id = 243013012, refresh_id = 1, pos = { x = -4.870, y = 38.889, z = -50.280 } },
{ id = 243013013, refresh_id = 1, pos = { x = 39.997, y = 40.376, z = -25.990 } },
{ id = 243013016, refresh_id = 1, pos = { x = 16.869, y = 39.999, z = -4.138 } },
{ id = 243013017, refresh_id = 1, pos = { x = -35.933, y = 40.000, z = -27.175 } }
}
@@ -0,0 +1,276 @@
-- 基础信息
local base_info = {
group_id = 243013001
}
-- Trigger变量
local defs = {
gadget_1 = 1003,
group_1 = 243013001,
Region1 = 1015,
challenge1 = 1,
challenge_father = 999,
group_core = 243013005,
gadget_rune = 5017,
MonsterCount = 4,
PoolList = 21055,
challenge_kill = 233,
total_count = 4,
min_count = 4,
max_count = 4,
tag = 0
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1003, gadget_id = 70360001, pos = { x = 74.600, y = 41.024, z = -71.300 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 1015, shape = RegionShape.CUBIC, size = { x = 60.000, y = 40.000, z = 50.000 }, pos = { x = 75.900, y = 40.000, z = -67.700 } }
}
-- 触发器
triggers = {
{ config_id = 1001001, name = "GADGET_CREATE_1001", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1001", action = "action_EVENT_GADGET_CREATE_1001" },
{ config_id = 1001002, name = "SELECT_OPTION_1002", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1002", action = "action_EVENT_SELECT_OPTION_1002", trigger_count = 0 },
{ config_id = 1001006, name = "ANY_MONSTER_DIE_1006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_1006", trigger_count = 0 },
{ config_id = 1001015, name = "LEAVE_REGION_1015", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_1015", action = "action_EVENT_LEAVE_REGION_1015", trigger_count = 0 },
{ config_id = 1001017, name = "VARIABLE_CHANGE_1017", event = EventType.EVENT_VARIABLE_CHANGE, source = "success", condition = "condition_EVENT_VARIABLE_CHANGE_1017", action = "action_EVENT_VARIABLE_CHANGE_1017" }
}
-- 点位
points = {
{ config_id = 1004, pos = { x = 80.292, y = 40.000, z = -67.649 }, rot = { x = 0.000, y = 213.111, z = 0.000 } },
{ config_id = 1005, pos = { x = 69.692, y = 40.010, z = -66.343 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
{ config_id = 1008, pos = { x = 64.738, y = 40.049, z = -73.876 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
{ config_id = 1011, pos = { x = 70.937, y = 39.998, z = -82.215 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
{ config_id = 1012, pos = { x = 84.390, y = 40.049, z = -80.095 }, rot = { x = 0.000, y = 321.537, z = 0.000 } }
}
-- 变量
variables = {
{ config_id = 1, name = "success", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1003 },
regions = { 1015 },
triggers = { "GADGET_CREATE_1001", "SELECT_OPTION_1002", "ANY_MONSTER_DIE_1006", "LEAVE_REGION_1015", "VARIABLE_CHANGE_1017" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_1001(context, evt)
if defs.gadget_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1001(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_1, defs.gadget_1, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1002(context, evt)
-- 判断是gadgetid 1003 option_id 177
if defs.gadget_1 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1002(context, evt)
--向编号999的父挑战挂接子挑战
ScriptLib.ExecuteGroupLua(context,defs.group_core,"SetKillMonsterTarget" ,{defs.group_1, defs.MonsterCount})
ScriptLib.ExecuteGroupLua(context,defs.group_core,"StartSubChallengeKillMonster" ,{defs.challenge1, defs.challenge_kill})
--开启怪物潮
ScriptLib.AutoPoolMonsterTide(context, 1, defs.group_1, {defs.PoolList}, 0, {}, {}, {total_count=defs.total_count, min_count=defs.min_count, max_count=defs.max_count, tag=defs.tag, fill_time=0, fill_count=0, is_ordered = true})
-- 切换符文状态
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_core, defs.gadget_rune, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
ScriptLib.PrintContextLog(context, "1号符文点亮!!!!!!!!")
-- 调用提示id为 43001009 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 删除指定group 243013001 ;指定config1003;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, defs.group_1, defs.gadget_1, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 切换隐形操作台状态
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_1, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_1006(context, evt)
--发送怪物死亡通知
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddMistTrialChildChallengeScore", {1})
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_1015(context, evt)
-- 判断区域
if ScriptLib.GetRegionConfigId(context, { region_eid = evt.source_eid }) ~= defs.Region1 then
return false
end
-- 判断变量"success"为0
if ScriptLib.GetGroupVariableValue(context, "success") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_1015(context, evt)
--离开区域 挑战失败
ScriptLib.ExecuteGroupLua(context, defs.group_core, "StopMistTrialChildChallenge", {defs.challenge1,0})
--清理怪物潮
ScriptLib.ClearPoolMonsterTide(context, defs.group_1, 1);
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = defs.group_1, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重置符文
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_core, defs.gadget_rune, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1017(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"success"为1
if ScriptLib.GetGroupVariableValue(context, "success") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1017(context, evt)
-- 将本组内变量名为 "success" 的变量设置为 99
if 0 ~= ScriptLib.SetGroupVariableValue(context, "success", 99) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
ScriptLib.ChangeGroupVariableValueByGroup(context, "runes", 1, defs.group_core)
ScriptLib.PrintContextLog(context, "符文计数+1")
-- 改变指定group组243013008中, configid为5000的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_core, defs.gadget_rune, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
ScriptLib.PrintContextLog(context, "1号符文射线!!!!!!!!")
--调用符文计数接口
ScriptLib.ExecuteGroupLua(context,defs.group_core,"AddMistTrialKeyProgress",{1})
return 0
end
@@ -0,0 +1,276 @@
-- 基础信息
local base_info = {
group_id = 243013002
}
-- Trigger变量
local defs = {
group_1 = 243013002,
challenge1 = 101,
Region1 = 2006,
challenge_father = 999,
group_core = 243013005,
galleryid = 7041,
gadget_1 = 2001,
PoolList = 21050,
MonsterCount = 8,
challenge_kill = 233,
total_count = 8,
min_count = 5,
max_count = 5,
tag = 0
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70360156, pos = { x = 98.200, y = 40.000, z = -4.140 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2002, gadget_id = 70900205, pos = { x = 159.114, y = 32.455, z = 22.040 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 2006, shape = RegionShape.CUBIC, size = { x = 50.000, y = 40.000, z = 45.000 }, pos = { x = 93.800, y = 40.000, z = -4.600 } }
}
-- 触发器
triggers = {
{ config_id = 1002003, name = "ANY_MONSTER_DIE_2003", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_2003", trigger_count = 0 },
{ config_id = 1002004, name = "SELECT_OPTION_2004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2004", action = "action_EVENT_SELECT_OPTION_2004", trigger_count = 0 },
{ config_id = 1002005, name = "GADGET_CREATE_2005", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_2005", action = "action_EVENT_GADGET_CREATE_2005", trigger_count = 0 },
{ config_id = 1002006, name = "LEAVE_REGION_2006", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_2006", action = "action_EVENT_LEAVE_REGION_2006", trigger_count = 0 },
{ config_id = 1002007, name = "VARIABLE_CHANGE_2007", event = EventType.EVENT_VARIABLE_CHANGE, source = "success", condition = "condition_EVENT_VARIABLE_CHANGE_2007", action = "action_EVENT_VARIABLE_CHANGE_2007" }
}
-- 点位
points = {
{ config_id = 2008, pos = { x = 103.099, y = 40.043, z = -11.569 }, rot = { x = 0.000, y = 336.139, z = 0.000 } },
{ config_id = 2009, pos = { x = 95.062, y = 40.001, z = -11.651 }, rot = { x = 0.000, y = 10.631, z = 0.000 } },
{ config_id = 2010, pos = { x = 91.200, y = 40.000, z = 1.960 }, rot = { x = 0.000, y = 116.679, z = 0.000 } },
{ config_id = 2011, pos = { x = 101.670, y = 40.049, z = 5.397 }, rot = { x = 0.000, y = 212.681, z = 0.000 } },
{ config_id = 2012, pos = { x = 105.105, y = 40.025, z = -0.878 }, rot = { x = 0.000, y = 265.064, z = 0.000 } },
{ config_id = 2013, pos = { x = 103.099, y = 40.043, z = -11.569 }, rot = { x = 0.000, y = 336.139, z = 0.000 } },
{ config_id = 2014, pos = { x = 95.062, y = 40.001, z = -11.651 }, rot = { x = 0.000, y = 10.631, z = 0.000 } },
{ config_id = 2015, pos = { x = 91.200, y = 40.000, z = 1.960 }, rot = { x = 0.000, y = 116.679, z = 0.000 } },
{ config_id = 2016, pos = { x = 101.670, y = 40.049, z = 5.397 }, rot = { x = 0.000, y = 212.681, z = 0.000 } },
{ config_id = 2017, pos = { x = 105.105, y = 40.025, z = -0.878 }, rot = { x = 0.000, y = 265.064, z = 0.000 } }
}
-- 变量
variables = {
{ config_id = 1, name = "success", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2002 },
regions = { 2006 },
triggers = { "ANY_MONSTER_DIE_2003", "SELECT_OPTION_2004", "GADGET_CREATE_2005", "LEAVE_REGION_2006", "VARIABLE_CHANGE_2007" },
rand_weight = 0
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_2003(context, evt)
--发送怪物死亡通知
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddMistTrialChildChallengeScore", {1})
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2004(context, evt)
-- 判断gadgetID和Option
if defs.gadget_1 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2004(context, evt)
--向编号999的父挑战挂接子挑战
ScriptLib.ExecuteGroupLua(context,defs.group_core,"SetKillMonsterTarget" ,{defs.group_1, defs.MonsterCount})
ScriptLib.ExecuteGroupLua(context,defs.group_core,"StartSubChallengeKillMonster" ,{defs.challenge1, defs.challenge_kill})
ScriptLib.PrintContextLog(context, "子挑战挂接完成!!!!!!!!")
--开启怪物潮
ScriptLib.AutoPoolMonsterTide(context, 1, defs.group_1, {defs.PoolList}, 0, {}, {}, {total_count=defs.total_count, min_count=defs.min_count, max_count=defs.max_count, tag=defs.tag, fill_time=0, fill_count=0, is_ordered = true})
ScriptLib.PrintContextLog(context, "怪物潮开启!!!!!!!!")
-- 调用提示id为 43001009 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 删除指定group 243008001 ;指定config1003;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, defs.group_1, defs.gadget_1, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
ScriptLib.PrintContextLog(context, "操作台切换到GearStart!!!!!!!!")
-- 切换隐形操作台状态
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_1, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
ScriptLib.PrintContextLog(context, "操作台切换到GearStop!!!!!!!!")
--尝试清除复活Ability
ScriptLib.ExecuteGroupLua(context, defs.group_core, "RemoveReviveAbility",{ })
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_2005(context, evt)
if defs.gadget_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_2005(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_1, defs.gadget_1, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_2006(context, evt)
-- 判断区域
if ScriptLib.GetRegionConfigId(context, { region_eid = evt.source_eid }) ~= defs.Region1 then
return false
end
-- 判断变量"success"为0
if ScriptLib.GetGroupVariableValue(context, "success") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_2006(context, evt)
--离开区域 挑战失败
ScriptLib.ExecuteGroupLua(context, defs.group_core, "StopMistTrialChildChallenge", {defs.challenge1,0})
--清理怪物潮
ScriptLib.ClearPoolMonsterTide(context, defs.group_1, 1);
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = defs.group_1, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_2007(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"success"为1
if ScriptLib.GetGroupVariableValue(context, "success") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_2007(context, evt)
-- 将本组内变量名为 "success" 的变量设置为 99
if 0 ~= ScriptLib.SetGroupVariableValue(context, "success", 99) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
--通知全队复活
ScriptLib.ExecuteGroupLua(context, defs.group_core, "ModifyMistTrialAbility",{ 1 })
ScriptLib.PrintContextLog(context, "复活!!!!!")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,275 @@
-- 基础信息
local base_info = {
group_id = 243013003
}
-- Trigger变量
local defs = {
group_1 = 243013003,
challenge1 = 201,
Region1 = 3006,
challenge_father = 999,
group_core = 243013005,
galleryid = 7041,
gadget_1 = 3001,
PoolList = 21050,
MonsterCount = 8,
challenge_kill = 233,
total_count = 8,
min_count = 5,
max_count = 5,
tag = 0
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70360156, pos = { x = 76.200, y = 40.000, z = -28.200 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3002, gadget_id = 70900205, pos = { x = 133.632, y = 32.453, z = -4.566 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 3006, shape = RegionShape.CUBIC, size = { x = 50.000, y = 40.000, z = 45.000 }, pos = { x = 64.000, y = 40.000, z = -32.200 } }
}
-- 触发器
triggers = {
{ config_id = 1003003, name = "ANY_MONSTER_DIE_3003", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_3003", trigger_count = 0 },
{ config_id = 1003004, name = "SELECT_OPTION_3004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3004", action = "action_EVENT_SELECT_OPTION_3004", trigger_count = 0 },
{ config_id = 1003005, name = "GADGET_CREATE_3005", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_3005", action = "action_EVENT_GADGET_CREATE_3005", trigger_count = 0 },
{ config_id = 1003006, name = "LEAVE_REGION_3006", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_3006", action = "action_EVENT_LEAVE_REGION_3006", trigger_count = 0 },
{ config_id = 1003007, name = "VARIABLE_CHANGE_3007", event = EventType.EVENT_VARIABLE_CHANGE, source = "success", condition = "condition_EVENT_VARIABLE_CHANGE_3007", action = "action_EVENT_VARIABLE_CHANGE_3007" }
}
-- 点位
points = {
{ config_id = 3008, pos = { x = 77.109, y = 40.070, z = -36.341 }, rot = { x = 0.000, y = 336.139, z = 0.000 } },
{ config_id = 3009, pos = { x = 65.513, y = 40.001, z = -35.672 }, rot = { x = 0.000, y = 10.631, z = 0.000 } },
{ config_id = 3010, pos = { x = 65.329, y = 40.000, z = -25.860 }, rot = { x = 0.000, y = 116.679, z = 0.000 } },
{ config_id = 3011, pos = { x = 75.569, y = 40.049, z = -21.254 }, rot = { x = 0.000, y = 212.681, z = 0.000 } },
{ config_id = 3012, pos = { x = 79.006, y = 40.001, z = -27.532 }, rot = { x = 0.000, y = 265.064, z = 0.000 } },
{ config_id = 3013, pos = { x = 77.109, y = 40.070, z = -36.341 }, rot = { x = 0.000, y = 336.139, z = 0.000 } },
{ config_id = 3014, pos = { x = 65.513, y = 40.001, z = -35.672 }, rot = { x = 0.000, y = 10.631, z = 0.000 } },
{ config_id = 3015, pos = { x = 65.329, y = 40.000, z = -25.860 }, rot = { x = 0.000, y = 116.679, z = 0.000 } },
{ config_id = 3016, pos = { x = 75.569, y = 40.049, z = -21.254 }, rot = { x = 0.000, y = 212.681, z = 0.000 } },
{ config_id = 3017, pos = { x = 79.006, y = 40.001, z = -27.532 }, rot = { x = 0.000, y = 265.064, z = 0.000 } }
}
-- 变量
variables = {
{ config_id = 1, name = "success", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001, 3002 },
regions = { 3006 },
triggers = { "ANY_MONSTER_DIE_3003", "SELECT_OPTION_3004", "GADGET_CREATE_3005", "LEAVE_REGION_3006", "VARIABLE_CHANGE_3007" },
rand_weight = 0
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3003(context, evt)
--发送怪物死亡通知
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddMistTrialChildChallengeScore", {1})
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3004(context, evt)
-- 判断gadgetID和Option
if defs.gadget_1 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3004(context, evt)
--向编号999的父挑战挂接子挑战
ScriptLib.ExecuteGroupLua(context,defs.group_core,"SetKillMonsterTarget" ,{defs.group_1, defs.MonsterCount})
ScriptLib.ExecuteGroupLua(context,defs.group_core,"StartSubChallengeKillMonster" ,{defs.challenge1, defs.challenge_kill})
ScriptLib.PrintContextLog(context, "子挑战挂接完成!!!!!!!!")
--开启怪物潮
ScriptLib.AutoPoolMonsterTide(context, 1, defs.group_1, {defs.PoolList}, 0, {}, {}, {total_count=defs.total_count, min_count=defs.min_count, max_count=defs.max_count, tag=defs.tag, fill_time=0, fill_count=0, is_ordered = true})
ScriptLib.PrintContextLog(context, "怪物潮开启!!!!!!!!")
-- 调用提示id为 43001009 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 删除指定group 243008001 ;指定config1003;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, defs.group_1, defs.gadget_1, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
ScriptLib.PrintContextLog(context, "操作台切换到GearStart!!!!!!!!")
-- 切换隐形操作台状态
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_1, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
ScriptLib.PrintContextLog(context, "操作台切换到GearStop!!!!!!!!")
--尝试清除复活Ability
ScriptLib.ExecuteGroupLua(context, defs.group_core, "RemoveReviveAbility",{ })
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_3005(context, evt)
if defs.gadget_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_3005(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_1, defs.gadget_1, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_3006(context, evt)
-- 判断区域
if ScriptLib.GetRegionConfigId(context, { region_eid = evt.source_eid }) ~= defs.Region1 then
return false
end
-- 判断变量"success"为0
if ScriptLib.GetGroupVariableValue(context, "success") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_3006(context, evt)
--离开区域 挑战失败
ScriptLib.ExecuteGroupLua(context, defs.group_core, "StopMistTrialChildChallenge", {defs.challenge1,0})
--清理怪物潮
ScriptLib.ClearPoolMonsterTide(context, defs.group_1, 1);
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = defs.group_1, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_3007(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"success"为1
if ScriptLib.GetGroupVariableValue(context, "success") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_3007(context, evt)
-- 将本组内变量名为 "success" 的变量设置为 99
if 0 ~= ScriptLib.SetGroupVariableValue(context, "success", 99) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
--通知全队复活
ScriptLib.ExecuteGroupLua(context, defs.group_core, "ModifyMistTrialAbility",{ 1 })
ScriptLib.PrintContextLog(context, "复活!!!!!")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,389 @@
-- 基础信息
local base_info = {
group_id = 243013004
}
-- Trigger变量
local defs = {
gadget_1 = 4001,
group_1 = 243013004,
group_core = 243013005,
challenge_father = 999,
challenge1 = 120,
PoolList = 21009,
MonsterCount = 25,
challenge_kill = 233,
total_count = 5,
min_count = 3,
max_count = 3,
tag = 0,
Region1 = 4042
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 4009, monster_id = 21010301, pos = { x = 25.986, y = -19.559, z = -48.107 }, rot = { x = 0.000, y = 154.975, z = 0.000 }, level = 11, disableWander = true, affix = { 4155 } },
{ config_id = 4016, monster_id = 21010301, pos = { x = 32.397, y = -19.559, z = -46.539 }, rot = { x = 0.000, y = 177.984, z = 0.000 }, level = 11, disableWander = true, affix = { 4155 } },
{ config_id = 4017, monster_id = 21010301, pos = { x = 38.816, y = -19.557, z = -48.353 }, rot = { x = 0.000, y = 234.713, z = 0.000 }, level = 11, disableWander = true, affix = { 4155 } },
{ config_id = 4018, monster_id = 20011201, pos = { x = 27.622, y = -19.498, z = -44.391 }, rot = { x = 0.000, y = 165.135, z = 0.000 }, level = 11, disableWander = true, affix = { 4155 } },
{ config_id = 4019, monster_id = 20011201, pos = { x = 37.412, y = -19.498, z = -44.409 }, rot = { x = 0.000, y = 204.028, z = 0.000 }, level = 11, disableWander = true, affix = { 4155 } },
{ config_id = 4020, monster_id = 21010201, pos = { x = 33.428, y = -19.498, z = -62.016 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 11, disableWander = true, affix = { 4155 } },
{ config_id = 4021, monster_id = 21010201, pos = { x = 26.727, y = -19.498, z = -59.669 }, rot = { x = 0.000, y = 33.495, z = 0.000 }, level = 11, disableWander = true, affix = { 4155 } },
{ config_id = 4022, monster_id = 21010201, pos = { x = 22.959, y = -19.498, z = -52.735 }, rot = { x = 0.000, y = 84.871, z = 0.000 }, level = 11, disableWander = true, affix = { 4155 } },
{ config_id = 4023, monster_id = 20010601, pos = { x = 30.024, y = -19.554, z = -63.619 }, rot = { x = 0.000, y = 4.355, z = 0.000 }, level = 11, disableWander = true, affix = { 4155 } },
{ config_id = 4024, monster_id = 20010701, pos = { x = 23.206, y = -19.498, z = -57.131 }, rot = { x = 0.000, y = 68.598, z = 0.000 }, level = 11, disableWander = true, affix = { 4155 } },
{ config_id = 4025, monster_id = 21010701, pos = { x = 39.416, y = -19.498, z = -58.002 }, rot = { x = 0.000, y = 302.374, z = 0.000 }, level = 11, disableWander = true, affix = { 4155 } },
{ config_id = 4026, monster_id = 21010701, pos = { x = 41.900, y = -19.498, z = -45.046 }, rot = { x = 0.000, y = 228.608, z = 0.000 }, level = 11, disableWander = true, affix = { 4155 } },
{ config_id = 4027, monster_id = 21010701, pos = { x = 24.165, y = -19.498, z = -60.724 }, rot = { x = 0.000, y = 47.284, z = 0.000 }, level = 11, disableWander = true, affix = { 4155 } },
{ config_id = 4028, monster_id = 21010901, pos = { x = 38.196, y = -19.543, z = -62.599 }, rot = { x = 0.000, y = 327.905, z = 0.000 }, level = 11, disableWander = true, affix = { 4155 } },
{ config_id = 4029, monster_id = 21010901, pos = { x = 42.905, y = -19.559, z = -52.821 }, rot = { x = 0.000, y = 267.277, z = 0.000 }, level = 11, disableWander = true, affix = { 4155 } },
{ config_id = 4030, monster_id = 21010501, pos = { x = 32.406, y = -19.498, z = -43.523 }, rot = { x = 0.000, y = 190.611, z = 0.000 }, level = 11, disableWander = true, affix = { 4155 } },
{ config_id = 4031, monster_id = 21010501, pos = { x = 22.653, y = -19.498, z = -47.708 }, rot = { x = 0.000, y = 107.204, z = 0.000 }, level = 11, disableWander = true, affix = { 4155 } },
{ config_id = 4032, monster_id = 22010101, pos = { x = 27.878, y = -19.498, z = -42.025 }, rot = { x = 0.000, y = 149.374, z = 0.000 }, level = 11, disableWander = true, affix = { 4155 } },
{ config_id = 4033, monster_id = 22010301, pos = { x = 35.916, y = -19.498, z = -42.422 }, rot = { x = 0.000, y = 223.409, z = 0.000 }, level = 11, disableWander = true, affix = { 4155 } },
{ config_id = 4035, monster_id = 21020701, pos = { x = 39.949, y = -19.498, z = -60.086 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 11, disableWander = true, affix = { 4155 } },
{ config_id = 4036, monster_id = 21020201, pos = { x = 32.714, y = -19.557, z = -63.034 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 11, disableWander = true, affix = { 4155 } },
{ config_id = 4037, monster_id = 21020701, pos = { x = 26.448, y = -19.498, z = -60.780 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 11, disableWander = true, affix = { 4155 } },
{ config_id = 4038, monster_id = 21030501, pos = { x = 40.879, y = -19.559, z = -40.384 }, rot = { x = 0.000, y = 180.064, z = 0.000 }, level = 11, disableWander = true, affix = { 4155 } },
{ config_id = 4039, monster_id = 21030501, pos = { x = 23.418, y = -19.559, z = -40.558 }, rot = { x = 0.000, y = 180.064, z = 0.000 }, level = 11, disableWander = true, affix = { 4155 } },
{ config_id = 4040, monster_id = 21020801, pos = { x = 32.578, y = -19.498, z = -42.851 }, rot = { x = 0.000, y = 180.064, z = 0.000 }, level = 11, disableWander = true, affix = { 4155 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70360010, pos = { x = 31.059, y = -19.662, z = -52.312 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 4042, shape = RegionShape.CUBIC, size = { x = 80.000, y = 50.000, z = 80.000 }, pos = { x = 31.059, y = -19.662, z = -52.312 } }
}
-- 触发器
triggers = {
{ config_id = 1004002, name = "GADGET_CREATE_4002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_4002", action = "action_EVENT_GADGET_CREATE_4002" },
{ config_id = 1004003, name = "SELECT_OPTION_4003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4003", action = "action_EVENT_SELECT_OPTION_4003", trigger_count = 0 },
{ config_id = 1004004, name = "VARIABLE_CHANGE_4004", event = EventType.EVENT_VARIABLE_CHANGE, source = "success", condition = "condition_EVENT_VARIABLE_CHANGE_4004", action = "action_EVENT_VARIABLE_CHANGE_4004", trigger_count = 0 },
--
{ config_id = 1004005, name = "CHALLENGE_SUCCESS_4005", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "120", condition = "", action = "" },
{ config_id = 1004006, name = "CHALLENGE_FAIL_4006", event = EventType.EVENT_CHALLENGE_FAIL, source = "120", condition = "", action = "action_EVENT_CHALLENGE_FAIL_4006" },
{ config_id = 1004008, name = "ANY_MONSTER_DIE_4008", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4008", action = "action_EVENT_ANY_MONSTER_DIE_4008", trigger_count = 0 },
{ config_id = 1004014, name = "ANY_MONSTER_LIVE_4014", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_4014", action = "action_EVENT_ANY_MONSTER_LIVE_4014", trigger_count = 0 },
{ config_id = 1004015, name = "ANY_MONSTER_DIE_4015", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_4015", trigger_count = 0 },
{ config_id = 1004034, name = "MONSTER_TIDE_DIE_4034", event = EventType.EVENT_MONSTER_TIDE_DIE, source = "1", condition = "condition_EVENT_MONSTER_TIDE_DIE_4034", action = "action_EVENT_MONSTER_TIDE_DIE_4034" },
{ config_id = 1004041, name = "ANY_MONSTER_DIE_4041", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4041", action = "action_EVENT_ANY_MONSTER_DIE_4041" },
{ config_id = 1004042, name = "LEAVE_REGION_4042", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_4042", action = "action_EVENT_LEAVE_REGION_4042", trigger_count = 0 }
}
-- 点位
points = {
{ config_id = 4007, pos = { x = 22.265, y = -19.498, z = -49.994 }, rot = { x = 0.000, y = 184.777, z = 0.000 } },
{ config_id = 4010, pos = { x = 25.594, y = -19.498, z = -43.814 }, rot = { x = 0.000, y = 184.777, z = 0.000 } },
{ config_id = 4011, pos = { x = 32.178, y = -19.559, z = -40.248 }, rot = { x = 0.000, y = 184.777, z = 0.000 } },
{ config_id = 4012, pos = { x = 40.846, y = -19.498, z = -43.500 }, rot = { x = 0.000, y = 184.777, z = 0.000 } },
{ config_id = 4013, pos = { x = 43.309, y = -19.558, z = -49.692 }, rot = { x = 0.000, y = 184.777, z = 0.000 } }
}
-- 变量
variables = {
{ config_id = 1, name = "success", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4001 },
regions = { 4042 },
triggers = { "GADGET_CREATE_4002", "SELECT_OPTION_4003", "VARIABLE_CHANGE_4004", "CHALLENGE_SUCCESS_4005", "CHALLENGE_FAIL_4006", "ANY_MONSTER_DIE_4015", "MONSTER_TIDE_DIE_4034", "LEAVE_REGION_4042" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 4035, 4036, 4037 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_4041" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 4038, 4039, 4040 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_4002(context, evt)
if defs.gadget_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_4002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_1, defs.gadget_1, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_4003(context, evt)
-- 判断是gadgetid 4001 option_id 7
if 4001 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4003(context, evt)
--向编号999的父挑战挂接子挑战
ScriptLib.ExecuteGroupLua(context,defs.group_core,"SetKillMonsterTarget" ,{defs.group_1, defs.MonsterCount})
ScriptLib.ExecuteGroupLua(context,defs.group_core,"StartSubChallengeKillMonster" ,{defs.challenge1, defs.challenge_kill})
--开启怪物潮
if 0 ~= ScriptLib.AutoMonsterTide(context, 1, defs.group_1, {4009,4016,4017,4018,4019,4020,4021,4022,4023,4024,4025,4026,4027,4028,4029,4030,4031,4032,4033}, 19, 5, 5) then
return -1
end
-- 删除指定group 243013004 ;指定config4001;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, defs.group_1, defs.gadget_1, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 4001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_1, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, defs.group_core, EntityType.GADGET, 5009 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_4004(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"success"为1
if ScriptLib.GetGroupVariableValue(context, "success") ~= 1 then
return false
end
-- 判断变量"success"为0
if ScriptLib.GetGroupVariableValueByGroup(context, "success", 243013005) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_4004(context, evt)
-- 针对当前group内变量名为 "f1" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "success", 1, defs.group_core) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_4006(context, evt)
-- 改变指定group组243013013中, configid为4001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_1, defs.gadget_1, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_1, defs.gadget_1, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = defs.group_1, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4008(context, evt)
--检查configeID是否大于0
if 0 >= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4008(context, evt)
-- 针对当前group内变量名为 "key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "key1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
--通知父挑战积分+1
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddChildChallengeScore", {1})
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_4014(context, evt)
if defs.monster_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_4014(context, evt)
--向编号999的父挑战挂接子挑战
ScriptLib.ExecuteGroupLua(context, defs.group_core, "DefineFatherIndex",{defs.challenge_father})
ScriptLib.ExecuteGroupLua(context, defs.group_core, "DefineChildChallengeScore",{ 1, 1})
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AttachChildChallengeFromDiffGroup",{defs.challenge1, 233, 2})
return 0
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4015(context, evt)
--发送怪物死亡通知
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddMistTrialChildChallengeScore", {1})
return 0
end
-- 触发条件
function condition_EVENT_MONSTER_TIDE_DIE_4034(context, evt)
if 19 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_MONSTER_TIDE_DIE_4034(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 243013004, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4041(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4041(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 243013004, 3)
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_4042(context, evt)
-- 判断是区域8011
if ScriptLib.GetRegionConfigId(context, { region_eid = evt.source_eid }) ~= defs.Region1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_4042(context, evt)
--离开区域 挑战失败
ScriptLib.ExecuteGroupLua(context, defs.group_core, "StopMistTrialChildChallenge", {defs.challenge1,0})
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = defs.group_1, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,668 @@
-- 基础信息
local base_info = {
group_id = 243013005
}
-- DEFS_MISCS
local defs = {
--galleryID
gallery_id = 7041,
--galley限时秒数
--迷城战线v2的限时用Gallery控制(excel表)此处用于保证FatherChallenge的时长不要小于Gallery
time_limit = 300,
--父挑战ChallengeId
challenge_id = 228,
--父挑战大RegionID,这个region用于地城中断线重连接续挑战
region_id = 5027,
--激活古代符文ChallengeId
key_challenge = 229,
--启动遗迹控制台ChallengeId
worktop_challenge = 230,
--最终挑战ChallengeId
final_challenge = 231,
--激活古代符文目标数量
key_target = 3,
--当前groupId
group_1 = 243013005,
--父机关接收器
gadget_switch = 5013,
--光桥地板
gadget_floor = 5016,
--父挑战识别ID
challenge_father = 999,
--随机球GroupID
buff_group = 243013012,
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5004, gadget_id = 70360159, pos = { x = 32.272, y = 69.000, z = -45.694 }, rot = { x = 0.000, y = 231.000, z = 0.000 }, level = 1, mark_flag = 2 },
{ config_id = 5008, gadget_id = 70900201, pos = { x = 32.091, y = 41.714, z = -45.585 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5009, gadget_id = 70900201, pos = { x = 31.059, y = -19.557, z = -52.312 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5013, gadget_id = 70360164, pos = { x = 32.272, y = 40.100, z = -45.694 }, rot = { x = 0.000, y = 31.000, z = 0.000 }, level = 1, mark_flag = 4 },
{ config_id = 5016, gadget_id = 70350244, pos = { x = 31.800, y = 39.380, z = -54.210 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 5017, gadget_id = 70360161, pos = { x = 74.600, y = 40.000, z = -71.300 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5018, gadget_id = 70360162, pos = { x = 18.500, y = 40.000, z = -2.700 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5019, gadget_id = 70360160, pos = { x = -36.300, y = 40.000, z = -28.300 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 5005, shape = RegionShape.SPHERE, radius = 5, pos = { x = 19.288, y = 39.992, z = -6.088 } },
-- 切换天气区域
{ config_id = 5010, shape = RegionShape.CUBIC, size = { x = 40.000, y = 1.000, z = 40.000 }, pos = { x = 32.594, y = 33.695, z = -52.932 } },
-- 全局启动trigger
{ config_id = 5014, shape = RegionShape.CUBIC, size = { x = 40.000, y = 20.000, z = 2.000 }, pos = { x = 17.218, y = 47.230, z = 11.808 } },
-- 断线重连保护大region
{ config_id = 5027, shape = RegionShape.CUBIC, size = { x = 300.000, y = 200.000, z = 300.000 }, pos = { x = 40.438, y = -13.000, z = -20.173 } }
}
-- 触发器
triggers = {
-- 全灭后重置
{ config_id = 1005001, name = "DUNGEON_ALL_AVATAR_DIE_5001", event = EventType.EVENT_DUNGEON_ALL_AVATAR_DIE, source = "", condition = "", action = "action_EVENT_DUNGEON_ALL_AVATAR_DIE_5001" },
-- 用于刷新随机球
{ config_id = 1005002, name = "TIME_AXIS_PASS_5002", event = EventType.EVENT_TIME_AXIS_PASS, source = "randball", condition = "", action = "action_EVENT_TIME_AXIS_PASS_5002", trigger_count = 0 },
-- 三个符文全亮之后,子挑战更新
{ 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", trigger_count = 0 },
{ config_id = 1005005, name = "ENTER_REGION_5005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "" },
-- 符文没亮时开机关
{ config_id = 1005006, name = "SELECT_OPTION_5006", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5006", action = "action_EVENT_SELECT_OPTION_5006", trigger_count = 0 },
-- 注目镜头延迟后,删掉光桥地板
{ config_id = 1005007, name = "TIMER_EVENT_5007", event = EventType.EVENT_TIMER_EVENT, source = "floor", condition = "", action = "action_EVENT_TIMER_EVENT_5007" },
-- 切换天气区域
{ config_id = 1005010, name = "ENTER_REGION_5010", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5010", action = "action_EVENT_ENTER_REGION_5010" },
-- 用于刷新场上随机球
{ config_id = 1005011, name = "GADGET_CREATE_5011", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_5011", action = "action_EVENT_GADGET_CREATE_5011" },
-- 符文全亮后开机关
{ config_id = 1005012, name = "SELECT_OPTION_5012", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5012", action = "action_EVENT_SELECT_OPTION_5012", trigger_count = 0 },
-- 全局启动trigger
{ config_id = 1005014, name = "ENTER_REGION_5014", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5014", action = "action_EVENT_ENTER_REGION_5014" },
-- 判断符文点亮 调试用
{ config_id = 1005015, name = "VARIABLE_CHANGE_5015", event = EventType.EVENT_VARIABLE_CHANGE, source = "runes", condition = "", action = "action_EVENT_VARIABLE_CHANGE_5015", trigger_count = 0, tag = "901" },
-- 地城结算时把gallery停掉
{ config_id = 1005020, name = "DUNGEON_SETTLE_5020", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "", action = "action_EVENT_DUNGEON_SETTLE_5020" },
-- 符文激活1
{ config_id = 1005021, name = "VARIABLE_CHANGE_5021", event = EventType.EVENT_VARIABLE_CHANGE, source = "runes", condition = "condition_EVENT_VARIABLE_CHANGE_5021", action = "action_EVENT_VARIABLE_CHANGE_5021" },
-- 符文激活3
{ config_id = 1005022, name = "VARIABLE_CHANGE_5022", event = EventType.EVENT_VARIABLE_CHANGE, source = "runes", condition = "condition_EVENT_VARIABLE_CHANGE_5022", action = "action_EVENT_VARIABLE_CHANGE_5022" },
-- 符文激活2
{ config_id = 1005023, name = "VARIABLE_CHANGE_5023", event = EventType.EVENT_VARIABLE_CHANGE, source = "runes", condition = "condition_EVENT_VARIABLE_CHANGE_5023", action = "action_EVENT_VARIABLE_CHANGE_5023" },
-- 用于判断打开地板的子挑战是否完成
{ config_id = 1005024, name = "GADGET_STATE_CHANGE_5024", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_5024", action = "", tag = "902" },
-- BOSS挑战完成 地城结算
{ config_id = 1005025, name = "VARIABLE_CHANGE_5025", event = EventType.EVENT_VARIABLE_CHANGE, source = "success", condition = "condition_EVENT_VARIABLE_CHANGE_5025", action = "action_EVENT_VARIABLE_CHANGE_5025", tag = "903" }
}
-- 变量
variables = {
{ config_id = 1, name = "runes", value = 0, no_refresh = false },
{ config_id = 2, name = "AddTime", value = 0, no_refresh = false },
{ config_id = 3, name = "success", value = 0, no_refresh = false }
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1005026, name = "DUNGEON_ALL_AVATAR_DIE_5026", event = EventType.EVENT_DUNGEON_ALL_AVATAR_DIE, source = "", condition = "", action = "action_EVENT_DUNGEON_ALL_AVATAR_DIE_5026" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5004, 5013, 5016, 5017, 5018, 5019 },
regions = { 5010, 5014, 5027 },
triggers = { "DUNGEON_ALL_AVATAR_DIE_5001", "TIME_AXIS_PASS_5002", "VARIABLE_CHANGE_5003", "SELECT_OPTION_5006", "TIMER_EVENT_5007", "ENTER_REGION_5010", "GADGET_CREATE_5011", "SELECT_OPTION_5012", "ENTER_REGION_5014", "VARIABLE_CHANGE_5015", "DUNGEON_SETTLE_5020", "VARIABLE_CHANGE_5021", "VARIABLE_CHANGE_5022", "VARIABLE_CHANGE_5023", "GADGET_STATE_CHANGE_5024", "VARIABLE_CHANGE_5025" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 5013, 5016 },
regions = { },
triggers = { "SELECT_OPTION_5012" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_DUNGEON_ALL_AVATAR_DIE_5001(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243013004, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243013001, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243013016, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243013017, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243013002, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243013003, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243013007, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243013008, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 挑战失败触发结算
if 0 ~= ScriptLib.FailMistTrialDungeonChallenge(context, 999) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : 结束挑战失败!!!!")
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_TIME_AXIS_PASS_5002(context, evt)
-- 重新生成指定group,默认为独立随机
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243013012 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_randall")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_5003(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 == evt.param2 then return false end
-- 判断变量"runes"为3
if ScriptLib.GetGroupVariableValue(context, "runes") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5003(context, evt)
-- 删除指定group 243013005 ;指定config5013;物件身上指定option30
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, defs.group_1, defs.gadget_switch, 58) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将本组内变量名为 "runes" 的变量设置为 99
if 0 ~= ScriptLib.SetGroupVariableValue(context, "runes", 99) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_1, defs.gadget_switch, {59}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 创建id为5008的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5008 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
--子挑战 打开地板
ScriptLib.AttachChildChallenge(context, 999, 902, 230, {7,902,1,1},{},{success=1,fail=1})
ScriptLib.PrintContextLog(context, "操作台子挑战挂载!!!!!!!!")
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5006(context, evt)
-- 判断是gadgetid 5013 option_id 30
if defs.gadget_switch ~= evt.param1 then
return false
end
if 58 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5006(context, evt)
-- 调用提示id为 31040202 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_5007(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 243013005, EntityType.GADGET, 5016 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_5010(context, evt)
if evt.param1 ~= 5010 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_5010(context, evt)
--修改天气为boss区域
--ScriptLib.SetWeatherAreaState(context, 10017 ,1)
--ScriptLib.PrintContextLog(context, "修改天气成功!!!!!!!!")
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_5011(context, evt)
if defs.gadget_switch ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_5011(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_1, defs.gadget_switch, {58}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
ScriptLib.PrintContextLog(context, "操作台选项!!!!!!!!")
-- 创建标识为"randball",时间节点为{30}的时间轴,true用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "randball", {30}, true)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5012(context, evt)
-- 判断是gadgetid 5013 option_id 7
if defs.gadget_switch ~= evt.param1 then
return false
end
if 59 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5012(context, evt)
-- 将configid为 5016 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5016, 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 = 5008 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 创建id为5009的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5009 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 延迟2秒后,向groupId为:243013005的对象,请求一次调用,并将string参数:"floor" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 243013005, "floor", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 删除指定group 243013005 ;指定config5013;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 243013005, 5013, 59) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
--子挑战 完成最终试练
ScriptLib.AttachChildChallenge(context, 999, 903, 231, {3,903,1,1},{},{success=99999,fail=1})
ScriptLib.PrintContextLog(context, "操作台子挑战挂载!!!!!!!!")
-- 调用提示id为 43001011 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001011) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_5014(context, evt)
if evt.param1 ~= 5014 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_5014(context, evt)
ScriptLib.CreateFatherChallenge(context, 999, 228, 1800, {success = 99999, fail = 99999, fail_on_wipe=true})
ScriptLib.AttachChildChallenge(context, 999, 901, 229, {3,901,3,1},{},{success=0,fail=0})
ScriptLib.PrintContextLog(context, "挂载符文子挑战!!!!!!!!")
ScriptLib.StartFatherChallenge(context, 999)
ScriptLib.PrintContextLog(context, "父挑战开始!!!!!!!!")
ScriptLib.StartGallery(context, 7041)
ScriptLib.PrintContextLog(context, "游廊启动!!!!!!!!")
return 0
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5015(context, evt)
if evt.param1 == evt.param2 then return -1 end
ScriptLib.PrintContextLog(context, "符文计数改变了!!!!!!!!!!!!")
return 0
end
-- 触发操作
function action_EVENT_DUNGEON_SETTLE_5020(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243013004, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243013001, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243013016, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243013017, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243013002, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243013003, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243013007, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243013008, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
--判断gallery状态
if 1 ~= evt.param1 then
ScriptLib.StopGallery(context, defs.gallery_id, true)
ScriptLib.PrintContextLog(context, "gallery失败结算!!!!!!!!")
else
ScriptLib.StopGallery(context, defs.gallery_id, false)
ScriptLib.PrintContextLog(context, "galllery胜利结算!!!!!!!!")
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_5021(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"runes"为1
if ScriptLib.GetGroupVariableValue(context, "runes") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5021(context, evt)
-- 调用提示id为 43001002 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_5022(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"runes"为3
if ScriptLib.GetGroupVariableValue(context, "runes") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5022(context, evt)
-- 调用提示id为 43001004 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_5023(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"runes"为2
if ScriptLib.GetGroupVariableValue(context, "runes") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5023(context, evt)
-- 调用提示id为 43001003 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001003) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_5024(context, evt)
if 5016 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_5025(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"success"为1
if ScriptLib.GetGroupVariableValue(context, "success") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5025(context, evt)
ScriptLib.PrintContextLog(context, "BOSS挑战完成!!!!!!!!")
return 0
end
require "V2_3/MistTrialV2"
@@ -0,0 +1,84 @@
-- 基础信息
local base_info = {
group_id = 243013006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 6001, gadget_id = 70350215, pos = { x = 72.166, y = 40.049, z = -37.860 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 6002, gadget_id = 70350216, pos = { x = -3.620, y = 40.049, z = -69.258 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6003, gadget_id = 70350218, pos = { x = -24.411, y = 40.029, z = -28.806 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 6004, gadget_id = 70350216, pos = { x = 11.289, y = 40.001, z = -35.640 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 6006, gadget_id = 70350218, pos = { x = -25.722, y = 40.003, z = -70.592 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 6007, gadget_id = 70350216, pos = { x = 100.702, y = 40.089, z = -52.620 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 6008, gadget_id = 70350215, pos = { x = -27.956, y = 39.999, z = -0.766 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,275 @@
-- 基础信息
local base_info = {
group_id = 243013007
}
-- Trigger变量
local defs = {
group_1 = 243013007,
challenge1 = 301,
Region1 = 7006,
challenge_father = 999,
group_core = 243013005,
galleryid = 7041,
gadget_1 = 7001,
PoolList = 21050,
MonsterCount = 8,
challenge_kill = 233,
total_count = 8,
min_count = 5,
max_count = 5,
tag = 0
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7001, gadget_id = 70360156, pos = { x = -3.000, y = 40.000, z = -50.200 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7002, gadget_id = 70900205, pos = { x = 57.244, y = 32.455, z = -25.558 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 7006, shape = RegionShape.CUBIC, size = { x = 65.000, y = 40.000, z = 50.000 }, pos = { x = -5.100, y = 40.000, z = -46.400 } }
}
-- 触发器
triggers = {
{ config_id = 1007003, name = "ANY_MONSTER_DIE_7003", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_7003", trigger_count = 0 },
{ config_id = 1007004, name = "SELECT_OPTION_7004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_7004", action = "action_EVENT_SELECT_OPTION_7004", trigger_count = 0 },
{ config_id = 1007005, name = "GADGET_CREATE_7005", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_7005", action = "action_EVENT_GADGET_CREATE_7005", trigger_count = 0 },
{ config_id = 1007006, name = "LEAVE_REGION_7006", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_7006", action = "action_EVENT_LEAVE_REGION_7006", trigger_count = 0 },
{ config_id = 1007007, name = "VARIABLE_CHANGE_7007", event = EventType.EVENT_VARIABLE_CHANGE, source = "success", condition = "condition_EVENT_VARIABLE_CHANGE_7007", action = "action_EVENT_VARIABLE_CHANGE_7007" }
}
-- 点位
points = {
{ config_id = 7008, pos = { x = 1.231, y = 40.049, z = -57.069 }, rot = { x = 0.000, y = 336.139, z = 0.000 } },
{ config_id = 7009, pos = { x = -8.795, y = 40.049, z = -56.949 }, rot = { x = 0.000, y = 10.631, z = 0.000 } },
{ config_id = 7010, pos = { x = -8.747, y = 40.002, z = -44.334 }, rot = { x = 0.000, y = 116.679, z = 0.000 } },
{ config_id = 7011, pos = { x = 0.368, y = 40.004, z = -42.168 }, rot = { x = 0.000, y = 212.681, z = 0.000 } },
{ config_id = 7012, pos = { x = 6.087, y = 40.049, z = -49.705 }, rot = { x = 0.000, y = 265.064, z = 0.000 } },
{ config_id = 7013, pos = { x = 1.231, y = 40.049, z = -57.069 }, rot = { x = 0.000, y = 336.139, z = 0.000 } },
{ config_id = 7014, pos = { x = -8.795, y = 40.049, z = -56.949 }, rot = { x = 0.000, y = 10.631, z = 0.000 } },
{ config_id = 7015, pos = { x = -8.747, y = 40.002, z = -44.334 }, rot = { x = 0.000, y = 116.679, z = 0.000 } },
{ config_id = 7016, pos = { x = 0.368, y = 40.004, z = -42.168 }, rot = { x = 0.000, y = 212.681, z = 0.000 } },
{ config_id = 7017, pos = { x = 6.087, y = 40.049, z = -49.705 }, rot = { x = 0.000, y = 265.064, z = 0.000 } }
}
-- 变量
variables = {
{ config_id = 1, name = "success", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7001, 7002 },
regions = { 7006 },
triggers = { "ANY_MONSTER_DIE_7003", "SELECT_OPTION_7004", "GADGET_CREATE_7005", "LEAVE_REGION_7006", "VARIABLE_CHANGE_7007" },
rand_weight = 0
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_7003(context, evt)
--发送怪物死亡通知
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddMistTrialChildChallengeScore", {1})
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_7004(context, evt)
-- 判断gadgetID和Option
if defs.gadget_1 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_7004(context, evt)
--向编号999的父挑战挂接子挑战
ScriptLib.ExecuteGroupLua(context,defs.group_core,"SetKillMonsterTarget" ,{defs.group_1, defs.MonsterCount})
ScriptLib.ExecuteGroupLua(context,defs.group_core,"StartSubChallengeKillMonster" ,{defs.challenge1, defs.challenge_kill})
ScriptLib.PrintContextLog(context, "子挑战挂接完成!!!!!!!!")
--开启怪物潮
ScriptLib.AutoPoolMonsterTide(context, 1, defs.group_1, {defs.PoolList}, 0, {}, {}, {total_count=defs.total_count, min_count=defs.min_count, max_count=defs.max_count, tag=defs.tag, fill_time=0, fill_count=0, is_ordered = true})
ScriptLib.PrintContextLog(context, "怪物潮开启!!!!!!!!")
-- 调用提示id为 43001009 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 删除指定group 243008001 ;指定config1003;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, defs.group_1, defs.gadget_1, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
ScriptLib.PrintContextLog(context, "操作台切换到GearStart!!!!!!!!")
-- 切换隐形操作台状态
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_1, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
ScriptLib.PrintContextLog(context, "操作台切换到GearStop!!!!!!!!")
--尝试清除复活Ability
ScriptLib.ExecuteGroupLua(context, defs.group_core, "RemoveReviveAbility",{ })
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_7005(context, evt)
if defs.gadget_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_7005(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_1, defs.gadget_1, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_7006(context, evt)
-- 判断区域
if ScriptLib.GetRegionConfigId(context, { region_eid = evt.source_eid }) ~= defs.Region1 then
return false
end
-- 判断变量"success"为0
if ScriptLib.GetGroupVariableValue(context, "success") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_7006(context, evt)
--离开区域 挑战失败
ScriptLib.ExecuteGroupLua(context, defs.group_core, "StopMistTrialChildChallenge", {defs.challenge1,0})
--清理怪物潮
ScriptLib.ClearPoolMonsterTide(context, defs.group_1, 1);
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = defs.group_1, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_7007(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"success"为1
if ScriptLib.GetGroupVariableValue(context, "success") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_7007(context, evt)
-- 将本组内变量名为 "success" 的变量设置为 99
if 0 ~= ScriptLib.SetGroupVariableValue(context, "success", 99) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
--通知全队复活
ScriptLib.ExecuteGroupLua(context, defs.group_core, "ModifyMistTrialAbility",{ 1 })
ScriptLib.PrintContextLog(context, "复活!!!!!")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,277 @@
-- 基础信息
local base_info = {
group_id = 243013008
}
-- Trigger变量
local defs = {
group_1 = 243013008,
challenge1 = 401,
Region1 = 8006,
challenge_father = 999,
group_core = 243013005,
galleryid = 7041,
gadget_1 = 8001,
PoolList = 21050,
MonsterCount = 8,
challenge_kill = 233,
total_count = 8,
min_count = 5,
max_count = 5,
tag = 0
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8001, gadget_id = 70360156, pos = { x = -3.930, y = 40.000, z = -80.600 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8002, gadget_id = 70900205, pos = { x = 59.235, y = 32.453, z = -50.952 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 8006, shape = RegionShape.CUBIC, size = { x = 80.000, y = 40.000, z = 35.000 }, pos = { x = -2.900, y = 40.000, z = -77.600 } }
}
-- 触发器
triggers = {
{ config_id = 1008003, name = "ANY_MONSTER_DIE_8003", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_8003", trigger_count = 0 },
{ config_id = 1008004, name = "SELECT_OPTION_8004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_8004", action = "action_EVENT_SELECT_OPTION_8004", trigger_count = 0 },
{ config_id = 1008005, name = "GADGET_CREATE_8005", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_8005", action = "action_EVENT_GADGET_CREATE_8005", trigger_count = 0 },
{ config_id = 1008006, name = "LEAVE_REGION_8006", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_8006", action = "action_EVENT_LEAVE_REGION_8006", trigger_count = 0 },
{ config_id = 1008007, name = "VARIABLE_CHANGE_8007", event = EventType.EVENT_VARIABLE_CHANGE, source = "success", condition = "condition_EVENT_VARIABLE_CHANGE_8007", action = "action_EVENT_VARIABLE_CHANGE_8007" }
}
-- 点位
points = {
{ config_id = 8008, pos = { x = 2.542, y = 40.049, z = -81.895 }, rot = { x = 0.000, y = 336.139, z = 0.000 } },
{ config_id = 8009, pos = { x = -6.493, y = 40.002, z = -81.153 }, rot = { x = 0.000, y = 10.631, z = 0.000 } },
{ config_id = 8010, pos = { x = -9.572, y = 40.000, z = -71.814 }, rot = { x = 0.000, y = 116.679, z = 0.000 } },
{ config_id = 8011, pos = { x = 1.350, y = 40.072, z = -70.831 }, rot = { x = 0.000, y = 212.681, z = 0.000 } },
{ config_id = 8012, pos = { x = 6.464, y = 40.000, z = -76.077 }, rot = { x = 0.000, y = 265.064, z = 0.000 } },
{ config_id = 8013, pos = { x = 2.542, y = 40.049, z = -81.895 }, rot = { x = 0.000, y = 336.139, z = 0.000 } },
{ config_id = 8014, pos = { x = -6.493, y = 40.002, z = -81.153 }, rot = { x = 0.000, y = 10.631, z = 0.000 } },
{ config_id = 8015, pos = { x = -9.572, y = 40.000, z = -71.814 }, rot = { x = 0.000, y = 116.679, z = 0.000 } },
{ config_id = 8016, pos = { x = 1.350, y = 40.072, z = -70.831 }, rot = { x = 0.000, y = 212.681, z = 0.000 } },
{ config_id = 8017, pos = { x = 6.464, y = 40.000, z = -76.077 }, rot = { x = 0.000, y = 265.064, z = 0.000 } }
}
-- 变量
variables = {
{ config_id = 1, name = "success", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8001, 8002 },
regions = { 8006 },
triggers = { "ANY_MONSTER_DIE_8003", "SELECT_OPTION_8004", "GADGET_CREATE_8005", "LEAVE_REGION_8006", "VARIABLE_CHANGE_8007" },
rand_weight = 0
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_8003(context, evt)
--发送怪物死亡通知
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddMistTrialChildChallengeScore", {1})
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_8004(context, evt)
-- 判断gadgetID和Option
if defs.gadget_1 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_8004(context, evt)
--向编号999的父挑战挂接子挑战
ScriptLib.ExecuteGroupLua(context,defs.group_core,"SetKillMonsterTarget" ,{defs.group_1, defs.MonsterCount})
ScriptLib.ExecuteGroupLua(context,defs.group_core,"StartSubChallengeKillMonster" ,{defs.challenge1, defs.challenge_kill})
ScriptLib.PrintContextLog(context, "子挑战挂接完成!!!!!!!!")
--开启怪物潮
ScriptLib.AutoPoolMonsterTide(context, 1, defs.group_1, {defs.PoolList}, 0, {}, {}, {total_count=defs.total_count, min_count=defs.min_count, max_count=defs.max_count, tag=defs.tag, fill_time=0, fill_count=0, is_ordered = true})
ScriptLib.PrintContextLog(context, "怪物潮开启!!!!!!!!")
-- 调用提示id为 43001009 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 删除指定group 243008001 ;指定config1003;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, defs.group_1, defs.gadget_1, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
ScriptLib.PrintContextLog(context, "操作台切换到GearStart!!!!!!!!")
-- 切换隐形操作台状态
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_1, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
ScriptLib.PrintContextLog(context, "操作台切换到GearStop!!!!!!!!")
--尝试清除复活Ability
ScriptLib.ExecuteGroupLua(context, defs.group_core, "RemoveReviveAbility",{ })
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_8005(context, evt)
if defs.gadget_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_8005(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_1, defs.gadget_1, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_8006(context, evt)
-- 判断区域
if ScriptLib.GetRegionConfigId(context, { region_eid = evt.source_eid }) ~= defs.Region1 then
return false
end
-- 判断变量"success"为0
if ScriptLib.GetGroupVariableValue(context, "success") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_8006(context, evt)
--离开区域 挑战失败
ScriptLib.ExecuteGroupLua(context, defs.group_core, "StopMistTrialChildChallenge", {defs.challenge1,0})
--清理怪物潮
ScriptLib.ClearPoolMonsterTide(context, defs.group_1, 1);
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = defs.group_1, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_8007(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"success"为1
if ScriptLib.GetGroupVariableValue(context, "success") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_8007(context, evt)
-- 将本组内变量名为 "success" 的变量设置为 99
if 0 ~= ScriptLib.SetGroupVariableValue(context, "success", 99) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
--通知全队复活
ScriptLib.ExecuteGroupLua(context, defs.group_core, "ModifyMistTrialAbility",{ 1 })
ScriptLib.PrintContextLog(context, "复活!!!!!")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,110 @@
-- 基础信息
local base_info = {
group_id = 243013012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 12001, gadget_id = 70350245, pos = { x = 96.503, y = 40.544, z = -33.461 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12002, gadget_id = 70350245, pos = { x = 39.501, y = 40.544, z = 1.824 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12003, gadget_id = 70350246, pos = { x = 50.019, y = 40.544, z = -63.448 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12004, gadget_id = 70350246, pos = { x = -32.656, y = 40.544, z = -82.380 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12005, gadget_id = 70350247, pos = { x = -2.960, y = 40.544, z = -31.532 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12006, gadget_id = 70350247, pos = { x = -41.833, y = 40.544, z = -4.759 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12007, gadget_id = 70350245, pos = { x = 63.595, y = 40.544, z = -49.749 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12008, gadget_id = 70350245, pos = { x = 96.067, y = 40.544, z = -33.605 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12009, gadget_id = 70350246, pos = { x = 93.272, y = 40.544, z = -77.143 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12010, gadget_id = 70350246, pos = { x = -10.272, y = 40.544, z = -9.166 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12011, gadget_id = 70350247, pos = { x = -40.302, y = 40.544, z = -58.944 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12012, gadget_id = 70350247, pos = { x = 11.332, y = 40.544, z = -51.823 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12013, gadget_id = 70350245, pos = { x = -39.763, y = 40.544, z = -42.082 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12014, gadget_id = 70350245, pos = { x = 16.015, y = 40.544, z = -27.942 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12015, gadget_id = 70350246, pos = { x = 98.382, y = 40.544, z = -25.359 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12016, gadget_id = 70350246, pos = { x = 22.332, y = 40.544, z = -77.622 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12017, gadget_id = 70350247, pos = { x = -10.900, y = 40.544, z = -7.997 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12018, gadget_id = 70350247, pos = { x = 51.081, y = 40.544, z = 0.412 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12019, gadget_id = 70900205, pos = { x = -6.284, y = 38.818, z = -49.793 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 12001, 12002, 12003, 12004, 12005, 12006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 12007, 12008, 12009, 12010, 12011, 12012 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 12013, 12014, 12015, 12016, 12017, 12018 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V2_3/MistTrialV2_BuffLog"
@@ -0,0 +1,81 @@
-- 基础信息
local base_info = {
group_id = 243013013
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 13001, gadget_id = 70900205, pos = { x = 39.997, y = 39.978, z = -27.990 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 13002, shape = RegionShape.CUBIC, size = { x = 40.000, y = 20.000, z = 35.000 }, pos = { x = 17.667, y = 48.639, z = -1.610 } },
{ config_id = 13003, shape = RegionShape.CUBIC, size = { x = 35.000, y = 20.000, z = 35.000 }, pos = { x = -37.096, y = 48.639, z = -26.500 } },
{ config_id = 13004, shape = RegionShape.CUBIC, size = { x = 40.000, y = 20.000, z = 27.000 }, pos = { x = 0.727, y = 49.103, z = -48.023 } },
{ config_id = 13005, shape = RegionShape.CUBIC, size = { x = 40.000, y = 20.000, z = 27.000 }, pos = { x = -2.807, y = 49.103, z = -75.399 } },
{ config_id = 13006, shape = RegionShape.CUBIC, size = { x = 35.000, y = 20.000, z = 38.000 }, pos = { x = 74.380, y = 49.103, z = -72.616 } },
{ config_id = 13007, shape = RegionShape.CUBIC, size = { x = 35.000, y = 20.000, z = 32.000 }, pos = { x = 68.119, y = 49.103, z = -29.100 } },
{ config_id = 13008, shape = RegionShape.CUBIC, size = { x = 40.000, y = 20.000, z = 35.000 }, pos = { x = 99.627, y = 49.103, z = 5.188 } }
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 13001 },
regions = { 13002, 13003, 13004, 13005, 13006, 13007, 13008 },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V1_5/Challenge_SetEyePoint"
@@ -0,0 +1,276 @@
-- 基础信息
local base_info = {
group_id = 243013016
}
-- Trigger变量
local defs = {
gadget_1 = 16006,
group_1 = 243013016,
Region1 = 16015,
challenge1 = 2,
challenge_father = 999,
gadget_rune = 5018,
group_core = 243013005,
MonsterCount = 2,
PoolList = 21056,
challenge_kill = 233,
total_count = 2,
min_count = 2,
max_count = 2,
tag = 0
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 16006, gadget_id = 70360001, pos = { x = 18.500, y = 40.000, z = -2.700 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 16015, shape = RegionShape.CUBIC, size = { x = 70.000, y = 40.000, z = 60.000 }, pos = { x = 17.700, y = 40.000, z = -5.500 } }
}
-- 触发器
triggers = {
{ config_id = 1016001, name = "VARIABLE_CHANGE_16001", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_16001", action = "action_EVENT_VARIABLE_CHANGE_16001", trigger_count = 0 },
{ config_id = 1016002, name = "ANY_MONSTER_DIE_16002", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_16002", trigger_count = 0 },
{ config_id = 1016007, name = "GADGET_CREATE_16007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_16007", action = "action_EVENT_GADGET_CREATE_16007" },
{ config_id = 1016008, name = "SELECT_OPTION_16008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_16008", action = "action_EVENT_SELECT_OPTION_16008", trigger_count = 0 },
{ config_id = 1016015, name = "LEAVE_REGION_16015", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_16015", action = "action_EVENT_LEAVE_REGION_16015", trigger_count = 0 }
}
-- 点位
points = {
{ config_id = 16003, pos = { x = 24.171, y = 40.000, z = -8.112 }, rot = { x = 0.000, y = 313.018, z = 0.000 } },
{ config_id = 16004, pos = { x = 29.193, y = 40.029, z = -1.267 }, rot = { x = 0.000, y = 243.269, z = 0.000 } },
{ config_id = 16005, pos = { x = 22.655, y = 40.001, z = 4.244 }, rot = { x = 0.000, y = 213.064, z = 0.000 } },
{ config_id = 16012, pos = { x = 8.849, y = 40.029, z = 2.075 }, rot = { x = 0.000, y = 123.863, z = 0.000 } },
{ config_id = 16013, pos = { x = 7.223, y = 40.049, z = -7.823 }, rot = { x = 0.000, y = 60.213, z = 0.000 } }
}
-- 变量
variables = {
{ config_id = 1, name = "success", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 16006 },
regions = { 16015 },
triggers = { "VARIABLE_CHANGE_16001", "ANY_MONSTER_DIE_16002", "GADGET_CREATE_16007", "SELECT_OPTION_16008", "LEAVE_REGION_16015" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_16001(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"success"为1
if ScriptLib.GetGroupVariableValue(context, "success") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_16001(context, evt)
-- 将本组内变量名为 "success" 的变量设置为 99
if 0 ~= ScriptLib.SetGroupVariableValue(context, "success", 99) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
ScriptLib.ChangeGroupVariableValueByGroup(context, "runes", 1, defs.group_core)
ScriptLib.PrintContextLog(context, "符文计数+1")
-- 改变指定group组243013008中, configid为5000的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_core, defs.gadget_rune, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
ScriptLib.PrintContextLog(context, "1号符文射线!!!!!!!!")
--调用符文计数接口
ScriptLib.ExecuteGroupLua(context,defs.group_core,"AddMistTrialKeyProgress",{1})
return 0
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_16002(context, evt)
--发送怪物死亡通知
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddMistTrialChildChallengeScore", {1})
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_16007(context, evt)
if defs.gadget_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_16007(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_1, defs.gadget_1, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_16008(context, evt)
-- 判断是gadgetid 1003 option_id 177
if defs.gadget_1 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_16008(context, evt)
--向编号999的父挑战挂接子挑战
ScriptLib.ExecuteGroupLua(context,defs.group_core,"SetKillMonsterTarget" ,{defs.group_1, defs.MonsterCount})
ScriptLib.ExecuteGroupLua(context,defs.group_core,"StartSubChallengeKillMonster" ,{defs.challenge1, defs.challenge_kill})
--开启怪物潮
ScriptLib.AutoPoolMonsterTide(context, 1, defs.group_1, {defs.PoolList}, 0, {}, {}, {total_count=defs.total_count, min_count=defs.min_count, max_count=defs.max_count, tag=defs.tag, fill_time=0, fill_count=0, is_ordered = true})
-- 切换符文状态
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_core, defs.gadget_rune, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
ScriptLib.PrintContextLog(context, "1号符文点亮!!!!!!!!")
-- 调用提示id为 43001009 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 删除指定group 243013001 ;指定config1003;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, defs.group_1, defs.gadget_1, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 切换隐形操作台状态
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_1, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_16015(context, evt)
-- 判断是区域
if ScriptLib.GetRegionConfigId(context, { region_eid = evt.source_eid }) ~= defs.Region1 then
return false
end
-- 判断变量"success"为0
if ScriptLib.GetGroupVariableValue(context, "success") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_16015(context, evt)
--离开区域 挑战失败
ScriptLib.ExecuteGroupLua(context, defs.group_core, "StopMistTrialChildChallenge", {defs.challenge1,0})
--清理怪物潮
ScriptLib.ClearPoolMonsterTide(context, defs.group_1, 1);
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = defs.group_1, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重置符文
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_core, defs.gadget_rune, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,277 @@
-- 基础信息
local base_info = {
group_id = 243013017
}
-- Trigger变量
local defs = {
gadget_1 = 17006,
group_1 = 243013017,
Region1 = 17015,
challenge1 = 3,
challenge_father = 999,
gadget_rune = 5019,
group_core = 243013005,
MonsterCount = 2,
PoolList = 21057,
challenge_kill = 233,
total_count = 2,
min_count = 2,
max_count = 2,
tag = 0
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 17006, gadget_id = 70360001, pos = { x = -36.431, y = 41.004, z = -28.367 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 17015, shape = RegionShape.CUBIC, size = { x = 50.000, y = 40.000, z = 60.000 }, pos = { x = -26.500, y = 40.000, z = -29.500 } }
}
-- 触发器
triggers = {
{ config_id = 1017001, name = "VARIABLE_CHANGE_17001", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_17001", action = "action_EVENT_VARIABLE_CHANGE_17001", trigger_count = 0 },
{ config_id = 1017002, name = "ANY_MONSTER_DIE_17002", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_17002", trigger_count = 0 },
{ config_id = 1017007, name = "GADGET_CREATE_17007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_17007", action = "action_EVENT_GADGET_CREATE_17007" },
{ config_id = 1017008, name = "SELECT_OPTION_17008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_17008", action = "action_EVENT_SELECT_OPTION_17008", trigger_count = 0 },
{ config_id = 1017015, name = "LEAVE_REGION_17015", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_17015", action = "action_EVENT_LEAVE_REGION_17015", trigger_count = 0 }
}
-- 点位
points = {
{ config_id = 17003, pos = { x = -29.948, y = 40.049, z = -36.636 }, rot = { x = 0.000, y = 336.139, z = 0.000 } },
{ config_id = 17004, pos = { x = -37.985, y = 40.000, z = -36.718 }, rot = { x = 0.000, y = 10.631, z = 0.000 } },
{ config_id = 17005, pos = { x = -41.844, y = 40.000, z = -23.107 }, rot = { x = 0.000, y = 116.679, z = 0.000 } },
{ config_id = 17012, pos = { x = -31.378, y = 40.002, z = -19.670 }, rot = { x = 0.000, y = 212.681, z = 0.000 } },
{ config_id = 17013, pos = { x = -27.942, y = 40.000, z = -25.945 }, rot = { x = 0.000, y = 265.064, z = 0.000 } }
}
-- 变量
variables = {
{ config_id = 1, name = "success", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 17006 },
regions = { 17015 },
triggers = { "VARIABLE_CHANGE_17001", "ANY_MONSTER_DIE_17002", "GADGET_CREATE_17007", "SELECT_OPTION_17008", "LEAVE_REGION_17015" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_17001(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"success"为1
if ScriptLib.GetGroupVariableValue(context, "success") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_17001(context, evt)
-- 将本组内变量名为 "success" 的变量设置为 99
if 0 ~= ScriptLib.SetGroupVariableValue(context, "success", 99) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
ScriptLib.ChangeGroupVariableValueByGroup(context, "runes", 1, defs.group_core)
ScriptLib.PrintContextLog(context, "符文计数+1")
-- 改变指定group组243013008中, configid为5000的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_core, defs.gadget_rune, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
ScriptLib.PrintContextLog(context, "1号符文射线!!!!!!!!")
--调用符文计数接口
ScriptLib.ExecuteGroupLua(context,defs.group_core,"AddMistTrialKeyProgress",{1})
return 0
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_17002(context, evt)
--发送怪物死亡通知
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddMistTrialChildChallengeScore", {1})
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_17007(context, evt)
if defs.gadget_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_17007(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_1, defs.gadget_1, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_17008(context, evt)
-- 判断是gadgetid 1003 option_id 177
if defs.gadget_1 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_17008(context, evt)
--向编号999的父挑战挂接子挑战
ScriptLib.ExecuteGroupLua(context,defs.group_core,"SetKillMonsterTarget" ,{defs.group_1, defs.MonsterCount})
ScriptLib.ExecuteGroupLua(context,defs.group_core,"StartSubChallengeKillMonster" ,{defs.challenge1, defs.challenge_kill})
--开启怪物潮
ScriptLib.AutoPoolMonsterTide(context, 1, defs.group_1, {defs.PoolList}, 0, {}, {}, {total_count=defs.total_count, min_count=defs.min_count, max_count=defs.max_count, tag=defs.tag, fill_time=0, fill_count=0, is_ordered = true})
-- 切换符文状态
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_core, defs.gadget_rune, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
ScriptLib.PrintContextLog(context, "1号符文点亮!!!!!!!!")
-- 调用提示id为 43001009 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 删除指定group 243013001 ;指定config1003;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, defs.group_1, defs.gadget_1, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 切换隐形操作台状态
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_1, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_17015(context, evt)
-- 判断区域
if ScriptLib.GetRegionConfigId(context, { region_eid = evt.source_eid }) ~= defs.Region1 then
return false
end
-- 判断变量"success"为0
if ScriptLib.GetGroupVariableValue(context, "success") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_17015(context, evt)
--离开区域 挑战失败
ScriptLib.ExecuteGroupLua(context, defs.group_core, "StopMistTrialChildChallenge", {defs.challenge1,0})
--清理怪物潮
ScriptLib.ClearPoolMonsterTide(context, defs.group_1, 1);
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = defs.group_1, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重置符文
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_core, defs.gadget_rune, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,8 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {},
"transRadius": 0.0
}
@@ -0,0 +1,23 @@
[
{
"area_id": 10024,
"points": [
{
"x": -68.50976,
"y": -136.7609
},
{
"x": -81.53466,
"y": 101.673447
},
{
"x": 179.74437,
"y": 91.02684
},
{
"x": 176.920288,
"y": -136.5556
}
]
}
]