添加配置表

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

View File

@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -295.2, z = -343.9 },
size = { x = 781.8, z = 611.9 },
born_pos = { x = 17.499, y = 40.660, z = 37.712 },
born_rot = { x = 0.000, y = 180.000, z = 0.000 },
die_y = -40,
city_id = 1,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 43011 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -295.2, z = -343.9 }, max = { x = 486.6, z = 268.0 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }

View File

@@ -0,0 +1,15 @@
-- 所有的group
groups = {
{ id = 243011001, refresh_id = 1, pos = { x = 72.418, y = 40.000, z = -73.278 } },
{ id = 243011002, refresh_id = 1, pos = { x = 34.556, y = -19.633, z = -56.395 } },
{ id = 243011003, refresh_id = 1, pos = { x = 30.717, y = 40.235, z = -62.135 } },
{ id = 243011004, refresh_id = 1, pos = { x = 30.913, y = 13.571, z = -30.252 } },
{ id = 243011005, refresh_id = 1, pos = { x = 70.674, y = 40.000, z = -27.583 } },
{ id = 243011006, refresh_id = 1, pos = { x = 16.248, y = 39.999, z = -4.165 } },
{ id = 243011007, refresh_id = 1, pos = { x = -1.284, y = 40.000, z = -77.627 } },
{ id = 243011008, refresh_id = 1, pos = { x = -2.459, y = 40.014, z = -51.498 } },
{ id = 243011009, refresh_id = 1, pos = { x = 48.172, y = 40.600, z = -45.035 } },
{ id = 243011010, refresh_id = 1, pos = { x = 44.146, y = 40.042, z = -26.347 } },
{ id = 243011011, refresh_id = 1, pos = { x = -33.990, y = 40.000, z = -28.261 } },
{ id = 243011012, refresh_id = 1, pos = { x = 96.770, y = 40.003, z = -3.551 } }
}

View File

@@ -0,0 +1,276 @@
-- 基础信息
local base_info = {
group_id = 243011001
}
-- Trigger变量
local defs = {
gadget_1 = 1001,
group_1 = 243011001,
Region1 = 1005,
challenge1 = 1,
challenge_father = 999,
group_core = 243011003,
gadget_rune = 3004,
MonsterCount = 5,
PoolList = 21011,
challenge_kill = 233,
total_count = 5,
min_count = 5,
max_count = 5,
tag = 0
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70360001, pos = { x = 73.240, y = 40.000, z = -73.412 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 1005, shape = RegionShape.CUBIC, size = { x = 50.000, y = 40.000, z = 45.000 }, pos = { x = 73.275, y = 43.066, z = -72.966 } }
}
-- 触发器
triggers = {
{ config_id = 1001002, name = "GADGET_CREATE_1002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1002", action = "action_EVENT_GADGET_CREATE_1002" },
{ config_id = 1001003, name = "SELECT_OPTION_1003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1003", action = "action_EVENT_SELECT_OPTION_1003", trigger_count = 0 },
{ config_id = 1001004, name = "ANY_MONSTER_DIE_1004", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_1004", trigger_count = 0 },
{ config_id = 1001005, name = "LEAVE_REGION_1005", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_1005", action = "action_EVENT_LEAVE_REGION_1005", trigger_count = 0 },
{ config_id = 1001006, name = "VARIABLE_CHANGE_1006", event = EventType.EVENT_VARIABLE_CHANGE, source = "success", condition = "condition_EVENT_VARIABLE_CHANGE_1006", action = "action_EVENT_VARIABLE_CHANGE_1006" }
}
-- 点位
points = {
{ config_id = 1007, pos = { x = 78.889, y = 40.000, z = -69.027 }, rot = { x = 0.000, y = 213.111, z = 0.000 } },
{ config_id = 1008, pos = { x = 69.611, y = 40.001, z = -68.587 }, rot = { x = 0.000, y = 152.599, z = 0.000 } },
{ config_id = 1009, pos = { x = 66.958, y = 40.049, z = -73.279 }, rot = { x = 0.000, y = 86.366, z = 0.000 } },
{ config_id = 1010, pos = { x = 70.855, y = 39.999, z = -80.484 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
{ config_id = 1011, pos = { x = 78.296, y = 39.982, z = -76.760 }, 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 = { 1001 },
regions = { 1005 },
triggers = { "GADGET_CREATE_1002", "SELECT_OPTION_1003", "ANY_MONSTER_DIE_1004", "LEAVE_REGION_1005", "VARIABLE_CHANGE_1006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_1002(context, evt)
if defs.gadget_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1002(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_1003(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_1003(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 243007001 指定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_1004(context, evt)
--发送怪物死亡通知
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddMistTrialChildChallengeScore", {1})
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_1005(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_1005(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_1006(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_1006(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组243007008中 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

View File

@@ -0,0 +1,319 @@
-- 基础信息
local base_info = {
group_id = 243011002
}
-- Trigger变量
local defs = {
gadget_1 = 2001,
group_1 = 243011002,
group_core = 243011003,
challenge_father = 999,
challenge1 = 120,
PoolList = 21018,
MonsterCount = 2,
challenge_kill = 233,
total_count = 2,
min_count = 2,
max_count = 2,
tag = 0,
Region1 = 2008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70360010, pos = { x = 32.838, y = -19.765, z = -51.746 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 2008, shape = RegionShape.CUBIC, size = { x = 80.000, y = 50.000, z = 80.000 }, pos = { x = 32.838, y = -19.765, z = -51.746 } }
}
-- 触发器
triggers = {
{ config_id = 1002002, name = "GADGET_CREATE_2002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_2002", action = "action_EVENT_GADGET_CREATE_2002" },
{ config_id = 1002003, name = "SELECT_OPTION_2003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2003", action = "action_EVENT_SELECT_OPTION_2003", trigger_count = 0 },
{ config_id = 1002004, name = "VARIABLE_CHANGE_2004", event = EventType.EVENT_VARIABLE_CHANGE, source = "success", condition = "condition_EVENT_VARIABLE_CHANGE_2004", action = "action_EVENT_VARIABLE_CHANGE_2004", trigger_count = 0 },
--
{ config_id = 1002005, name = "CHALLENGE_SUCCESS_2005", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "120", condition = "", action = "" },
{ config_id = 1002006, name = "CHALLENGE_FAIL_2006", event = EventType.EVENT_CHALLENGE_FAIL, source = "120", condition = "", action = "action_EVENT_CHALLENGE_FAIL_2006" },
{ config_id = 1002007, name = "ANY_MONSTER_DIE_2007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_2007", action = "action_EVENT_ANY_MONSTER_DIE_2007", trigger_count = 0 },
{ config_id = 1002008, name = "LEAVE_REGION_2008", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_2008", action = "action_EVENT_LEAVE_REGION_2008", trigger_count = 0 },
{ config_id = 1002009, name = "ANY_MONSTER_LIVE_2009", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_2009", action = "action_EVENT_ANY_MONSTER_LIVE_2009", trigger_count = 0 },
{ config_id = 1002010, name = "ANY_MONSTER_DIE_2010", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_2010", trigger_count = 0 }
}
-- 点位
points = {
{ config_id = 2011, pos = { x = 26.340, y = -19.601, z = -49.620 }, rot = { x = 0.000, y = 105.986, z = 0.000 } },
{ config_id = 2012, pos = { x = 29.413, y = -19.601, z = -44.592 }, rot = { x = 0.000, y = 142.338, z = 0.000 } },
{ config_id = 2013, pos = { x = 33.718, y = -19.662, z = -42.554 }, rot = { x = 0.000, y = 184.777, z = 0.000 } },
{ config_id = 2014, pos = { x = 40.186, y = -19.601, z = -42.719 }, rot = { x = 0.000, y = 203.653, z = 0.000 } },
{ config_id = 2015, pos = { x = 42.568, y = -19.661, z = -48.915 }, rot = { x = 0.000, y = 213.179, 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 },
regions = { 2008 },
triggers = { "GADGET_CREATE_2002", "SELECT_OPTION_2003", "VARIABLE_CHANGE_2004", "CHALLENGE_SUCCESS_2005", "CHALLENGE_FAIL_2006", "LEAVE_REGION_2008", "ANY_MONSTER_DIE_2010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "CHALLENGE_SUCCESS_2005", "CHALLENGE_FAIL_2006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_2002(context, evt)
if defs.gadget_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_2002(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_2003(context, evt)
-- 判断是gadgetid 2001 option_id 7
if 2001 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2003(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})
-- 删除指定group 243007004 指定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, 3008 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_2004(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", 243011003) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_2004(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_2006(context, evt)
-- 改变指定group组243007013中 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_2007(context, evt)
--检查configeID是否大于0
if 0 >= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_2007(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_LEAVE_REGION_2008(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_2008(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_ANY_MONSTER_LIVE_2009(context, evt)
if defs.monster_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_2009(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_2010(context, evt)
--发送怪物死亡通知
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddMistTrialChildChallengeScore", {1})
return 0
end

View File

@@ -0,0 +1,670 @@
-- 基础信息
local base_info = {
group_id = 243011003
}
-- DEFS_MISCS
local defs = {
--galleryID
gallery_id = 7039,
--galley限时秒数
--迷城战线v2的限时用Gallery控制excel表此处用于保证FatherChallenge的时长不要小于Gallery
time_limit = 300,
--父挑战ChallengeId
challenge_id = 228,
--父挑战大RegionID,这个region用于地城中断线重连接续挑战
region_id = 3025,
--激活古代符文ChallengeId
key_challenge = 229,
--启动遗迹控制台ChallengeId
worktop_challenge = 230,
--最终挑战ChallengeId
final_challenge = 231,
--激活古代符文目标数量
key_target = 3,
--当前groupId
group_1 = 243011003,
--父机关接收器
gadget_switch = 3001,
--光桥地板
gadget_floor = 3002,
--父挑战识别ID
challenge_father = 999,
--随机球GroupID
buff_group = 243011009,
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70360164, pos = { x = 32.399, y = 40.335, z = -45.701 }, rot = { x = 0.000, y = 31.000, z = 0.000 }, level = 1, mark_flag = 4 },
{ config_id = 3002, gadget_id = 70350244, pos = { x = 31.927, y = 39.583, z = -54.217 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 3003, gadget_id = 70360161, pos = { x = 97.183, y = 40.000, z = -3.594 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3004, gadget_id = 70360160, pos = { x = 73.240, y = 40.000, z = -73.412 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3005, gadget_id = 70360162, pos = { x = -34.007, y = 40.000, z = -28.196 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3006, gadget_id = 70360159, pos = { x = 32.398, y = 69.200, z = -45.701 }, rot = { x = 0.000, y = 130.720, z = 0.000 }, level = 1, mark_flag = 2 },
{ config_id = 3007, gadget_id = 70900201, pos = { x = 32.218, y = 41.950, z = -45.592 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3008, gadget_id = 70900201, pos = { x = 32.838, y = -18.907, z = -51.746 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 3012, shape = RegionShape.SPHERE, radius = 5, pos = { x = 19.415, y = 40.227, z = -6.095 } },
-- 切换天气区域
{ config_id = 3015, shape = RegionShape.CUBIC, size = { x = 40.000, y = 1.000, z = 40.000 }, pos = { x = 32.720, y = 33.930, z = -52.939 } },
-- 全局启动trigger
{ config_id = 3018, shape = RegionShape.CUBIC, size = { x = 40.000, y = 20.000, z = 2.000 }, pos = { x = 17.345, y = 47.465, z = 11.801 } },
-- 断线重连保护大region
{ config_id = 3025, shape = RegionShape.CUBIC, size = { x = 300.000, y = 200.000, z = 300.000 }, pos = { x = 40.565, y = -13.000, z = -20.180 } }
}
-- 触发器
triggers = {
-- 全灭后重置
{ config_id = 1003009, name = "DUNGEON_ALL_AVATAR_DIE_3009", event = EventType.EVENT_DUNGEON_ALL_AVATAR_DIE, source = "", condition = "", action = "action_EVENT_DUNGEON_ALL_AVATAR_DIE_3009" },
-- 用于刷新随机球
{ config_id = 1003010, name = "TIME_AXIS_PASS_3010", event = EventType.EVENT_TIME_AXIS_PASS, source = "randball", condition = "", action = "action_EVENT_TIME_AXIS_PASS_3010", trigger_count = 0 },
-- 三个符文全亮之后,子挑战更新
{ config_id = 1003011, name = "VARIABLE_CHANGE_3011", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_3011", action = "action_EVENT_VARIABLE_CHANGE_3011", trigger_count = 0 },
{ config_id = 1003012, name = "ENTER_REGION_3012", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "" },
-- 符文没亮时开机关
{ config_id = 1003013, name = "SELECT_OPTION_3013", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3013", action = "action_EVENT_SELECT_OPTION_3013", trigger_count = 0 },
-- 注目镜头延迟后,删掉光桥地板
{ config_id = 1003014, name = "TIMER_EVENT_3014", event = EventType.EVENT_TIMER_EVENT, source = "floor", condition = "", action = "action_EVENT_TIMER_EVENT_3014" },
-- 切换天气区域
{ config_id = 1003015, name = "ENTER_REGION_3015", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3015", action = "action_EVENT_ENTER_REGION_3015" },
-- 用于刷新场上随机球
{ config_id = 1003016, name = "GADGET_CREATE_3016", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_3016", action = "action_EVENT_GADGET_CREATE_3016" },
-- 符文全亮后开机关
{ config_id = 1003017, name = "SELECT_OPTION_3017", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3017", action = "action_EVENT_SELECT_OPTION_3017", trigger_count = 0 },
-- 全局启动trigger
{ config_id = 1003018, name = "ENTER_REGION_3018", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3018", action = "action_EVENT_ENTER_REGION_3018" },
-- 判断符文点亮 调试用
{ config_id = 1003019, name = "VARIABLE_CHANGE_3019", event = EventType.EVENT_VARIABLE_CHANGE, source = "runes", condition = "", action = "action_EVENT_VARIABLE_CHANGE_3019", trigger_count = 0, tag = "901" },
-- 符文激活1
{ config_id = 1003020, name = "VARIABLE_CHANGE_3020", event = EventType.EVENT_VARIABLE_CHANGE, source = "runes", condition = "condition_EVENT_VARIABLE_CHANGE_3020", action = "action_EVENT_VARIABLE_CHANGE_3020" },
-- 符文激活3
{ config_id = 1003021, name = "VARIABLE_CHANGE_3021", event = EventType.EVENT_VARIABLE_CHANGE, source = "runes", condition = "condition_EVENT_VARIABLE_CHANGE_3021", action = "action_EVENT_VARIABLE_CHANGE_3021" },
-- 符文激活2
{ config_id = 1003022, name = "VARIABLE_CHANGE_3022", event = EventType.EVENT_VARIABLE_CHANGE, source = "runes", condition = "condition_EVENT_VARIABLE_CHANGE_3022", action = "action_EVENT_VARIABLE_CHANGE_3022" },
-- 用于判断打开地板的子挑战是否完成
{ config_id = 1003023, name = "GADGET_STATE_CHANGE_3023", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_3023", action = "", tag = "902" },
-- BOSS挑战完成 地城结算
{ config_id = 1003024, name = "VARIABLE_CHANGE_3024", event = EventType.EVENT_VARIABLE_CHANGE, source = "success", condition = "condition_EVENT_VARIABLE_CHANGE_3024", action = "action_EVENT_VARIABLE_CHANGE_3024", tag = "903" },
-- 结算时停掉gallery
{ config_id = 1003026, name = "DUNGEON_SETTLE_3026", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "", action = "action_EVENT_DUNGEON_SETTLE_3026" }
}
-- 变量
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 = 1003027, name = "DUNGEON_ALL_AVATAR_DIE_3027", event = EventType.EVENT_DUNGEON_ALL_AVATAR_DIE, source = "", condition = "", action = "action_EVENT_DUNGEON_ALL_AVATAR_DIE_3027" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001, 3002, 3003, 3004, 3005, 3006 },
regions = { 3015, 3018, 3025 },
triggers = { "DUNGEON_ALL_AVATAR_DIE_3009", "TIME_AXIS_PASS_3010", "VARIABLE_CHANGE_3011", "SELECT_OPTION_3013", "TIMER_EVENT_3014", "ENTER_REGION_3015", "GADGET_CREATE_3016", "SELECT_OPTION_3017", "ENTER_REGION_3018", "VARIABLE_CHANGE_3019", "VARIABLE_CHANGE_3020", "VARIABLE_CHANGE_3021", "VARIABLE_CHANGE_3022", "GADGET_STATE_CHANGE_3023", "VARIABLE_CHANGE_3024", "DUNGEON_SETTLE_3026" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 3001, 3002 },
regions = { },
triggers = { "SELECT_OPTION_3017" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_DUNGEON_ALL_AVATAR_DIE_3009(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243011001, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243011002, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243011005, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243011006, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243011007, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243011008, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243011011, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243011012, 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_3010(context, evt)
-- 重新生成指定group默认为独立随机
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243011009 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_randall")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_3011(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_3011(context, evt)
-- 删除指定group 243007005 指定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 = 3007 }) 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_3013(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_3013(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_3014(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 243011003, EntityType.GADGET, 3002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3015(context, evt)
if evt.param1 ~= 3015 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_3015(context, evt)
--修改天气为boss区域
--ScriptLib.SetWeatherAreaState(context, 10017 ,1)
--ScriptLib.PrintContextLog(context, "修改天气成功!!!!!!!!")
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_3016(context, evt)
if defs.gadget_switch ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_3016(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_3017(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_3017(context, evt)
-- 将configid为 5016 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3002, 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 = 3007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 创建id为5009的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3008 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 延迟2秒后,向groupId为243007005的对象,请求一次调用,并将string参数"floor" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 243011003, "floor", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 删除指定group 243007005 指定config5013物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 243011003, 3001, 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_3018(context, evt)
if evt.param1 ~= 3018 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_3018(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, 7039)
ScriptLib.PrintContextLog(context, "游廊启动!!!!!!!!")
return 0
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_3019(context, evt)
if evt.param1 == evt.param2 then return -1 end
ScriptLib.PrintContextLog(context, "符文计数改变了!!!!!!!!!!!!")
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_3020(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_3020(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_3021(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_3021(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_3022(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_3022(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_3023(context, evt)
if 3002 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_3024(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_3024(context, evt)
ScriptLib.PrintContextLog(context, "BOSS挑战完成!!!!!!!!")
return 0
end
-- 触发操作
function action_EVENT_DUNGEON_SETTLE_3026(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243011001, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243011002, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243011005, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243011006, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243011007, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243011008, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243011011, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243011012, 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
--判断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
require "V2_3/MistTrialV2"

View File

@@ -0,0 +1,78 @@
-- 基础信息
local base_info = {
group_id = 243011004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70350215, pos = { x = 71.239, y = 40.049, z = -37.415 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 4002, gadget_id = 70350216, pos = { x = -3.159, y = 40.049, z = -84.585 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 4003, gadget_id = 70350217, pos = { x = -43.871, y = 40.049, z = -5.471 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 4004, gadget_id = 70350216, pos = { x = -4.213, y = 40.049, z = -59.169 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 4005, gadget_id = 70350217, pos = { x = 52.471, y = 40.049, z = -39.738 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 4006, gadget_id = 70350216, pos = { x = 96.917, y = 40.049, z = 5.446 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4007, gadget_id = 70350215, pos = { x = 18.556, y = 40.049, z = -15.132 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4001, 4002, 4003, 4004, 4005, 4006, 4007 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,272 @@
-- 基础信息
local base_info = {
group_id = 243011005
}
-- Trigger变量
local defs = {
group_1 = 243011005,
challenge1 = 101,
Region1 = 5006,
challenge_father = 999,
group_core = 243011003,
galleryid = 7039,
gadget_1 = 5001,
PoolList = 21014,
MonsterCount = 10,
challenge_kill = 233,
total_count = 10,
min_count = 5,
max_count = 5,
tag = 0
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5001, gadget_id = 70360157, pos = { x = 72.260, y = 40.001, z = -27.914 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5002, gadget_id = 70900205, pos = { x = 79.294, y = 39.464, z = -28.297 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 5006, shape = RegionShape.CUBIC, size = { x = 70.000, y = 40.000, z = 60.000 }, pos = { x = 71.496, y = 40.000, z = -30.736 } }
}
-- 触发器
triggers = {
{ config_id = 1005003, name = "ANY_MONSTER_DIE_5003", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_5003", trigger_count = 0 },
{ config_id = 1005004, name = "SELECT_OPTION_5004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5004", action = "action_EVENT_SELECT_OPTION_5004", trigger_count = 0 },
{ config_id = 1005005, name = "GADGET_CREATE_5005", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_5005", action = "action_EVENT_GADGET_CREATE_5005", trigger_count = 0 },
{ config_id = 1005006, name = "LEAVE_REGION_5006", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_5006", action = "action_EVENT_LEAVE_REGION_5006", trigger_count = 0 },
{ config_id = 1005007, name = "VARIABLE_CHANGE_5007", event = EventType.EVENT_VARIABLE_CHANGE, source = "success", condition = "condition_EVENT_VARIABLE_CHANGE_5007", action = "action_EVENT_VARIABLE_CHANGE_5007" }
}
-- 点位
points = {
{ config_id = 5008, pos = { x = 75.288, y = 40.070, z = -22.404 }, rot = { x = 0.000, y = 208.030, z = 0.000 } },
{ config_id = 5009, pos = { x = 77.178, y = 39.985, z = -32.719 }, rot = { x = 0.000, y = 307.222, z = 0.000 } },
{ config_id = 5010, pos = { x = 69.784, y = 40.049, z = -34.235 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
{ config_id = 5011, pos = { x = 65.097, y = 40.049, z = -29.171 }, rot = { x = 0.000, y = 78.629, z = 0.000 } },
{ config_id = 5012, pos = { x = 68.180, y = 40.049, z = -22.745 }, rot = { x = 0.000, y = 151.304, z = 0.000 } },
{ config_id = 5013, pos = { x = 75.288, y = 40.070, z = -22.404 }, rot = { x = 0.000, y = 208.030, z = 0.000 } },
{ config_id = 5014, pos = { x = 77.178, y = 39.985, z = -32.719 }, rot = { x = 0.000, y = 307.222, z = 0.000 } },
{ config_id = 5015, pos = { x = 69.784, y = 40.049, z = -34.235 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
{ config_id = 5016, pos = { x = 65.097, y = 40.049, z = -29.171 }, rot = { x = 0.000, y = 78.629, z = 0.000 } },
{ config_id = 5017, pos = { x = 68.180, y = 40.049, z = -22.745 }, rot = { x = 0.000, y = 151.304, 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 = { 5001, 5002 },
regions = { 5006 },
triggers = { "ANY_MONSTER_DIE_5003", "SELECT_OPTION_5004", "GADGET_CREATE_5005", "LEAVE_REGION_5006", "VARIABLE_CHANGE_5007" },
rand_weight = 0
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_5003(context, evt)
--发送怪物死亡通知
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddMistTrialChildChallengeScore", {1})
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5004(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_5004(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 243007001 指定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!!!!!!!!")
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_5005(context, evt)
if defs.gadget_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_5005(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_5006(context, evt)
-- 判断是区域8011
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_5006(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_5007(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_5007(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",{ 0 })
ScriptLib.PrintContextLog(context, "地脉异常档位提升")
-- 调用提示id为 400021 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001012) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end

View File

@@ -0,0 +1,272 @@
-- 基础信息
local base_info = {
group_id = 243011006
}
-- Trigger变量
local defs = {
group_1 = 243011006,
challenge1 = 201,
Region1 = 6007,
challenge_father = 999,
group_core = 243011003,
galleryid = 7039,
gadget_1 = 6001,
PoolList = 21015,
MonsterCount = 8,
challenge_kill = 233,
total_count = 8,
min_count = 5,
max_count = 5,
tag = 0
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6001, gadget_id = 70360157, pos = { x = 17.430, y = 40.000, z = -2.858 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6002, gadget_id = 70900205, pos = { x = 24.160, y = 39.012, z = -10.080 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 6007, shape = RegionShape.CUBIC, size = { x = 60.000, y = 40.000, z = 50.000 }, pos = { x = 20.450, y = 40.029, z = 5.111 } }
}
-- 触发器
triggers = {
{ config_id = 1006003, name = "VARIABLE_CHANGE_6003", event = EventType.EVENT_VARIABLE_CHANGE, source = "success", condition = "condition_EVENT_VARIABLE_CHANGE_6003", action = "action_EVENT_VARIABLE_CHANGE_6003", trigger_count = 0 },
{ config_id = 1006004, name = "ANY_MONSTER_DIE_6004", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_6004", trigger_count = 0 },
{ config_id = 1006005, name = "GADGET_CREATE_6005", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_6005", action = "action_EVENT_GADGET_CREATE_6005", trigger_count = 0 },
{ config_id = 1006006, name = "SELECT_OPTION_6006", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6006", action = "action_EVENT_SELECT_OPTION_6006", trigger_count = 0 },
{ config_id = 1006007, name = "LEAVE_REGION_6007", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_6007", action = "action_EVENT_LEAVE_REGION_6007", trigger_count = 0 }
}
-- 点位
points = {
{ config_id = 6008, pos = { x = 11.939, y = 40.001, z = -9.361 }, rot = { x = 0.000, y = 35.453, z = 0.000 } },
{ config_id = 6009, pos = { x = 18.470, y = 40.049, z = -10.458 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
{ config_id = 6010, pos = { x = 24.233, y = 40.049, z = -2.164 }, rot = { x = 0.000, y = 265.229, z = 0.000 } },
{ config_id = 6011, pos = { x = 21.192, y = 40.049, z = 3.806 }, rot = { x = 0.000, y = 218.638, z = 0.000 } },
{ config_id = 6012, pos = { x = 11.272, y = 40.029, z = 0.893 }, rot = { x = 0.000, y = 117.311, z = 0.000 } },
{ config_id = 6013, pos = { x = 11.939, y = 40.001, z = -9.361 }, rot = { x = 0.000, y = 35.453, z = 0.000 } },
{ config_id = 6014, pos = { x = 18.470, y = 40.049, z = -10.458 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
{ config_id = 6015, pos = { x = 24.233, y = 40.049, z = -2.164 }, rot = { x = 0.000, y = 265.229, z = 0.000 } },
{ config_id = 6016, pos = { x = 21.192, y = 40.049, z = 3.806 }, rot = { x = 0.000, y = 218.638, z = 0.000 } },
{ config_id = 6017, pos = { x = 11.272, y = 40.029, z = 0.893 }, rot = { x = 0.000, y = 117.311, 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 = { 6001, 6002 },
regions = { 6007 },
triggers = { "VARIABLE_CHANGE_6003", "ANY_MONSTER_DIE_6004", "GADGET_CREATE_6005", "SELECT_OPTION_6006", "LEAVE_REGION_6007" },
rand_weight = 0
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_6003(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_6003(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",{ 0 })
ScriptLib.PrintContextLog(context, "地脉异常档位提升")
-- 调用提示id为 400021 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001012) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6004(context, evt)
--发送怪物死亡通知
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddMistTrialChildChallengeScore", {1})
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_6005(context, evt)
if defs.gadget_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_6005(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_6006(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_6006(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 243007001 指定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!!!!!!!!")
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_6007(context, evt)
-- 判断是区域8011
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_6007(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

View File

@@ -0,0 +1,267 @@
-- 基础信息
local base_info = {
group_id = 243011007
}
-- Trigger变量
local defs = {
group_1 = 243011007,
challenge1 = 301,
Region1 = 7007,
challenge_father = 999,
group_core = 243011003,
galleryid = 7039,
gadget_1 = 7001,
PoolList = 21016,
MonsterCount = 5,
challenge_kill = 233,
total_count = 5,
min_count = 3,
max_count = 3,
tag = 0
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7001, gadget_id = 70360156, pos = { x = -2.251, y = 40.001, z = -77.514 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7002, gadget_id = 70900205, pos = { x = -7.164, y = 38.853, z = -82.895 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 7007, shape = RegionShape.CUBIC, size = { x = 65.000, y = 40.000, z = 50.000 }, pos = { x = -2.941, y = 40.000, z = -73.783 } }
}
-- 触发器
triggers = {
{ config_id = 1007003, name = "VARIABLE_CHANGE_7003", event = EventType.EVENT_VARIABLE_CHANGE, source = "success", condition = "condition_EVENT_VARIABLE_CHANGE_7003", action = "action_EVENT_VARIABLE_CHANGE_7003", trigger_count = 0 },
{ config_id = 1007004, name = "ANY_MONSTER_DIE_7004", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_7004", trigger_count = 0 },
{ config_id = 1007005, name = "SELECT_OPTION_7005", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_7005", action = "action_EVENT_SELECT_OPTION_7005", trigger_count = 0 },
{ config_id = 1007006, name = "GADGET_CREATE_7006", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_7006", action = "action_EVENT_GADGET_CREATE_7006", trigger_count = 0 },
{ config_id = 1007007, name = "LEAVE_REGION_7007", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_7007", action = "action_EVENT_LEAVE_REGION_7007", trigger_count = 0 }
}
-- 点位
points = {
{ config_id = 7008, pos = { x = -7.798, y = 40.049, z = -74.371 }, rot = { x = 0.000, y = 130.978, z = 0.000 } },
{ config_id = 7009, pos = { x = -2.195, y = 40.001, z = -71.906 }, rot = { x = 0.000, y = 183.993, z = 0.000 } },
{ config_id = 7010, pos = { x = 4.085, y = 40.000, z = -74.955 }, rot = { x = 0.000, y = 247.001, z = 0.000 } },
{ config_id = 7011, pos = { x = 1.885, y = 40.000, z = -81.788 }, rot = { x = 0.000, y = 328.623, z = 0.000 } },
{ config_id = 7012, pos = { x = -7.685, y = 40.065, z = -83.099 }, rot = { x = 0.000, y = 47.362, 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 = { 7007 },
triggers = { "VARIABLE_CHANGE_7003", "ANY_MONSTER_DIE_7004", "SELECT_OPTION_7005", "GADGET_CREATE_7006", "LEAVE_REGION_7007" },
rand_weight = 0
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_7003(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_7003(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
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_7004(context, evt)
--发送怪物死亡通知
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddMistTrialChildChallengeScore", {1})
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_7005(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_7005(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 243007001 指定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!!!!!!!!")
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_7006(context, evt)
if defs.gadget_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_7006(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_7007(context, evt)
-- 判断是区域8011
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_7007(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

View File

@@ -0,0 +1,273 @@
-- 基础信息
local base_info = {
group_id = 243011008
}
-- Trigger变量
local defs = {
group_1 = 243011008,
challenge1 = 401,
Region1 = 8007,
challenge_father = 999,
group_core = 243011003,
galleryid = 7039,
gadget_1 = 8001,
PoolList = 21017,
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 = 70360157, pos = { x = -2.312, y = 40.026, z = -49.388 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8002, gadget_id = 70900205, pos = { x = -2.504, y = 36.943, z = -41.894 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 8007, shape = RegionShape.CUBIC, size = { x = 50.000, y = 40.000, z = 45.000 }, pos = { x = -6.745, y = 40.000, z = -52.893 } }
}
-- 触发器
triggers = {
{ config_id = 1008003, name = "VARIABLE_CHANGE_8003", event = EventType.EVENT_VARIABLE_CHANGE, source = "success", condition = "condition_EVENT_VARIABLE_CHANGE_8003", action = "action_EVENT_VARIABLE_CHANGE_8003", trigger_count = 0 },
{ config_id = 1008004, name = "ANY_MONSTER_DIE_8004", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_8004", trigger_count = 0 },
{ config_id = 1008005, name = "SELECT_OPTION_8005", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_8005", action = "action_EVENT_SELECT_OPTION_8005", trigger_count = 0 },
{ config_id = 1008006, name = "GADGET_CREATE_8006", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_8006", action = "action_EVENT_GADGET_CREATE_8006", trigger_count = 0 },
{ config_id = 1008007, name = "LEAVE_REGION_8007", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_8007", action = "action_EVENT_LEAVE_REGION_8007", trigger_count = 0 }
}
-- 点位
points = {
{ config_id = 8008, pos = { x = -2.924, y = 40.065, z = -44.647 }, rot = { x = 0.000, y = 178.335, z = 0.000 } },
{ config_id = 8009, pos = { x = -9.983, y = 40.000, z = -47.148 }, rot = { x = 0.000, y = 109.555, z = 0.000 } },
{ config_id = 8010, pos = { x = -9.854, y = 40.049, z = -52.733 }, rot = { x = 0.000, y = 65.176, z = 0.000 } },
{ config_id = 8011, pos = { x = 1.144, y = 40.049, z = -54.859 }, rot = { x = 0.000, y = 320.033, z = 0.000 } },
{ config_id = 8012, pos = { x = 3.102, y = 40.049, z = -47.164 }, rot = { x = 0.000, y = 269.377, z = 0.000 } },
{ config_id = 8013, pos = { x = -2.924, y = 40.065, z = -44.647 }, rot = { x = 0.000, y = 178.335, z = 0.000 } },
{ config_id = 8014, pos = { x = -9.983, y = 40.000, z = -47.148 }, rot = { x = 0.000, y = 109.555, z = 0.000 } },
{ config_id = 8015, pos = { x = -9.854, y = 40.049, z = -52.733 }, rot = { x = 0.000, y = 65.176, z = 0.000 } },
{ config_id = 8016, pos = { x = 1.144, y = 40.049, z = -54.859 }, rot = { x = 0.000, y = 320.033, z = 0.000 } },
{ config_id = 8017, pos = { x = 3.102, y = 40.049, z = -47.164 }, rot = { x = 0.000, y = 269.377, 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 = { 8007 },
triggers = { "VARIABLE_CHANGE_8003", "ANY_MONSTER_DIE_8004", "SELECT_OPTION_8005", "GADGET_CREATE_8006", "LEAVE_REGION_8007" },
rand_weight = 0
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_8003(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_8003(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",{ 0 })
ScriptLib.PrintContextLog(context, "地脉异常档位提升")
-- 调用提示id为 400021 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001012) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_8004(context, evt)
--发送怪物死亡通知
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddMistTrialChildChallengeScore", {1})
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_8005(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_8005(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 243007001 指定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!!!!!!!!")
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_8006(context, evt)
if defs.gadget_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_8006(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_8007(context, evt)
-- 判断是区域8011
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_8007(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

View File

@@ -0,0 +1,110 @@
-- 基础信息
local base_info = {
group_id = 243011009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9001, gadget_id = 70350245, pos = { x = 96.494, y = 40.349, z = -50.372 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9002, gadget_id = 70350245, pos = { x = 41.656, y = 40.349, z = -15.095 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9003, gadget_id = 70350246, pos = { x = 51.732, y = 40.349, z = -80.365 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9004, gadget_id = 70350246, pos = { x = -30.485, y = 40.350, z = -80.201 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9005, gadget_id = 70350247, pos = { x = 15.457, y = 40.349, z = -28.715 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9006, gadget_id = 70350247, pos = { x = -39.659, y = 40.371, z = -6.137 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9007, gadget_id = 70350245, pos = { x = 96.603, y = 40.349, z = -72.168 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9008, gadget_id = 70350245, pos = { x = 67.840, y = 40.349, z = -1.986 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9009, gadget_id = 70350246, pos = { x = 48.502, y = 40.349, z = -51.755 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9010, gadget_id = 70350246, pos = { x = 39.181, y = 40.349, z = -27.902 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9011, gadget_id = 70350247, pos = { x = -31.355, y = 40.349, z = -61.405 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9012, gadget_id = 70350247, pos = { x = -25.740, y = 40.349, z = -5.357 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9013, gadget_id = 70350245, pos = { x = -32.919, y = 40.349, z = -55.124 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9014, gadget_id = 70350245, pos = { x = 14.174, y = 40.349, z = -28.015 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9015, gadget_id = 70350246, pos = { x = -32.919, y = 40.373, z = -4.061 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9016, gadget_id = 70350246, pos = { x = 32.826, y = 40.349, z = -77.200 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9017, gadget_id = 70350247, pos = { x = 71.260, y = 40.350, z = -48.103 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9018, gadget_id = 70350247, pos = { x = 98.054, y = 40.349, z = -26.259 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9019, gadget_id = 70900205, pos = { x = 56.970, y = -14.122, z = -44.548 }, 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 = { 9001, 9002, 9003, 9004, 9005, 9006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 9007, 9008, 9009, 9010, 9011, 9012 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 9013, 9014, 9015, 9016, 9017, 9018 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V2_3/MistTrialV2_BuffLog"

View File

@@ -0,0 +1,81 @@
-- 基础信息
local base_info = {
group_id = 243011010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10001, gadget_id = 70900205, pos = { x = 44.149, y = 39.627, z = -28.354 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 10002, shape = RegionShape.CUBIC, size = { x = 40.000, y = 20.000, z = 35.000 }, pos = { x = 21.816, y = 54.008, z = -1.976 } },
{ config_id = 10003, shape = RegionShape.CUBIC, size = { x = 35.000, y = 20.000, z = 35.000 }, pos = { x = -32.932, y = 51.143, z = -26.867 } },
{ config_id = 10004, shape = RegionShape.CUBIC, size = { x = 40.000, y = 20.000, z = 27.000 }, pos = { x = 4.881, y = 51.373, z = -48.396 } },
{ config_id = 10005, shape = RegionShape.CUBIC, size = { x = 40.000, y = 20.000, z = 27.000 }, pos = { x = 1.361, y = 47.600, z = -75.763 } },
{ config_id = 10006, shape = RegionShape.CUBIC, size = { x = 35.000, y = 20.000, z = 38.000 }, pos = { x = 78.535, y = 48.880, z = -72.964 } },
{ config_id = 10007, shape = RegionShape.CUBIC, size = { x = 35.000, y = 20.000, z = 32.000 }, pos = { x = 72.266, y = 47.350, z = -29.466 } },
{ config_id = 10008, shape = RegionShape.CUBIC, size = { x = 40.000, y = 20.000, z = 35.000 }, pos = { x = 103.769, y = 57.039, z = 4.828 } }
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 10001 },
regions = { 10002, 10003, 10004, 10005, 10006, 10007, 10008 },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V1_5/Challenge_SetEyePoint"

View File

@@ -0,0 +1,276 @@
-- 基础信息
local base_info = {
group_id = 243011011
}
-- Trigger变量
local defs = {
gadget_1 = 11001,
group_1 = 243011011,
Region1 = 11006,
challenge1 = 2,
challenge_father = 999,
gadget_rune = 3005,
group_core = 243011003,
MonsterCount = 2,
PoolList = 21012,
challenge_kill = 233,
total_count = 2,
min_count = 2,
max_count = 2,
tag = 0
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 11001, gadget_id = 70360001, pos = { x = -34.007, y = 40.000, z = -28.196 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 11006, shape = RegionShape.CUBIC, size = { x = 50.000, y = 40.000, z = 50.000 }, pos = { x = -34.405, y = 43.780, z = -26.804 } }
}
-- 触发器
triggers = {
{ config_id = 1011002, name = "VARIABLE_CHANGE_11002", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_11002", action = "action_EVENT_VARIABLE_CHANGE_11002", trigger_count = 0 },
{ config_id = 1011003, name = "ANY_MONSTER_DIE_11003", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_11003", trigger_count = 0 },
{ config_id = 1011004, name = "GADGET_CREATE_11004", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_11004", action = "action_EVENT_GADGET_CREATE_11004" },
{ config_id = 1011005, name = "SELECT_OPTION_11005", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_11005", action = "action_EVENT_SELECT_OPTION_11005", trigger_count = 0 },
{ config_id = 1011006, name = "LEAVE_REGION_11006", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_11006", action = "action_EVENT_LEAVE_REGION_11006", trigger_count = 0 }
}
-- 点位
points = {
{ config_id = 11007, pos = { x = -29.661, y = 40.049, z = -31.983 }, rot = { x = 0.000, y = 313.018, z = 0.000 } },
{ config_id = 11008, pos = { x = -28.271, y = 40.029, z = -26.620 }, rot = { x = 0.000, y = 263.432, z = 0.000 } },
{ config_id = 11009, pos = { x = -32.910, y = 40.070, z = -21.533 }, rot = { x = 0.000, y = 202.233, z = 0.000 } },
{ config_id = 11010, pos = { x = -38.671, y = 40.000, z = -24.305 }, rot = { x = 0.000, y = 123.863, z = 0.000 } },
{ config_id = 11011, pos = { x = -38.375, y = 40.000, z = -32.674 }, 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 = { 11001 },
regions = { 11006 },
triggers = { "VARIABLE_CHANGE_11002", "ANY_MONSTER_DIE_11003", "GADGET_CREATE_11004", "SELECT_OPTION_11005", "LEAVE_REGION_11006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_11002(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_11002(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组243007008中 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_11003(context, evt)
--发送怪物死亡通知
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddMistTrialChildChallengeScore", {1})
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_11004(context, evt)
if defs.gadget_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_11004(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_11005(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_11005(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 243007001 指定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_11006(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_11006(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

View File

@@ -0,0 +1,282 @@
-- 基础信息
local base_info = {
group_id = 243011012
}
-- Trigger变量
local defs = {
gadget_1 = 12001,
group_1 = 243011012,
Region1 = 12006,
challenge1 = 3,
challenge_father = 999,
gadget_rune = 3003,
group_core = 243011003,
MonsterCount = 8,
PoolList = 21013,
challenge_kill = 233,
total_count = 8,
min_count = 5,
max_count = 5,
tag = 0
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 12001, gadget_id = 70360001, pos = { x = 96.695, y = 40.003, z = -3.577 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 12006, shape = RegionShape.CUBIC, size = { x = 60.000, y = 40.000, z = 60.000 }, pos = { x = 96.530, y = 52.924, z = -1.377 } }
}
-- 触发器
triggers = {
{ config_id = 1012002, name = "VARIABLE_CHANGE_12002", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_12002", action = "action_EVENT_VARIABLE_CHANGE_12002", trigger_count = 0 },
{ config_id = 1012003, name = "ANY_MONSTER_DIE_12003", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_12003", trigger_count = 0 },
{ config_id = 1012004, name = "GADGET_CREATE_12004", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_12004", action = "action_EVENT_GADGET_CREATE_12004" },
{ config_id = 1012005, name = "SELECT_OPTION_12005", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_12005", action = "action_EVENT_SELECT_OPTION_12005", trigger_count = 0 },
{ config_id = 1012006, name = "LEAVE_REGION_12006", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_12006", action = "action_EVENT_LEAVE_REGION_12006", trigger_count = 0 }
}
-- 点位
points = {
{ config_id = 12007, pos = { x = 101.191, y = 40.049, z = -9.482 }, rot = { x = 0.000, y = 336.139, z = 0.000 } },
{ config_id = 12008, pos = { x = 94.096, y = 40.049, z = -10.137 }, rot = { x = 0.000, y = 10.631, z = 0.000 } },
{ config_id = 12009, pos = { x = 91.236, y = 39.994, z = -1.123 }, rot = { x = 0.000, y = 116.679, z = 0.000 } },
{ config_id = 12010, pos = { x = 99.844, y = 40.001, z = 1.650 }, rot = { x = 0.000, y = 212.681, z = 0.000 } },
{ config_id = 12011, pos = { x = 102.869, y = 40.000, z = -3.495 }, rot = { x = 0.000, y = 265.064, z = 0.000 } },
{ config_id = 12012, pos = { x = 101.191, y = 40.049, z = -9.482 }, rot = { x = 0.000, y = 336.139, z = 0.000 } },
{ config_id = 12013, pos = { x = 94.096, y = 40.049, z = -10.137 }, rot = { x = 0.000, y = 10.631, z = 0.000 } },
{ config_id = 12014, pos = { x = 91.236, y = 39.994, z = -1.123 }, rot = { x = 0.000, y = 116.679, z = 0.000 } },
{ config_id = 12015, pos = { x = 99.844, y = 40.001, z = 1.650 }, rot = { x = 0.000, y = 212.681, z = 0.000 } },
{ config_id = 12016, pos = { x = 102.869, y = 40.000, z = -3.495 }, 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 = { 12001 },
regions = { 12006 },
triggers = { "VARIABLE_CHANGE_12002", "ANY_MONSTER_DIE_12003", "GADGET_CREATE_12004", "SELECT_OPTION_12005", "LEAVE_REGION_12006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_12002(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_12002(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组243007008中 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_12003(context, evt)
--发送怪物死亡通知
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddMistTrialChildChallengeScore", {1})
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_12004(context, evt)
if defs.gadget_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_12004(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_12005(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_12005(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 243007001 指定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_12006(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_12006(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

View File

@@ -0,0 +1,8 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {},
"transRadius": 0.0
}