添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions
@@ -0,0 +1,30 @@
-- 地图配置
scene_config = {
begin_pos = { x = -5000.0, z = -5000.0 },
size = { x = 10000.0, z = 10000.0 },
born_pos = { x = 0.072, y = -0.102, z = 14.067 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
born_point_list = {
{ pos = { x = 0.072, y = -0.102, z = 14.067 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = 2.014, y = -0.102, z = 15.945 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = -2.047, y = -0.102, z = 15.976 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = 0.015, y = -0.102, z = 17.975 }, rot = { x = 0.000, y = 180.000, z = 0.000 } }
},
die_y = -25,
city_id = 3,
vision_anchor = { x = -5000.0, z = -5000.0 }
}
-- 所有的区块
blocks = { 46001 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -5000.0, z = -5000.0 }, max = { x = 5000.0, z = 5000.0 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }
@@ -0,0 +1,6 @@
-- 所有的group
groups = {
{ id = 246001001, refresh_id = 1003, pos = { x = -0.095, y = -0.102, z = 0.057 } },
{ id = 246001002, refresh_id = 1, pos = { x = 2.689, y = -0.102, z = -1.518 } },
{ id = 246001003, pos = { x = -0.084, y = -0.102, z = -5.349 } }
}
@@ -0,0 +1,213 @@
-- 基础信息
local base_info = {
group_id = 246001001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1001, monster_id = 24021102, pos = { x = -0.104, y = -0.102, z = -5.281 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, isElite = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1002, gadget_id = 70330064, pos = { x = 19.000, y = -0.102, z = 3.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, interact_id = 35 },
{ config_id = 1003, gadget_id = 70330064, pos = { x = -19.000, y = -0.102, z = 3.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, interact_id = 35 },
{ config_id = 1006, gadget_id = 70360010, pos = { x = -0.020, y = -0.102, z = -0.055 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 1005, shape = RegionShape.SPHERE, radius = 35, pos = { x = 0.139, y = -0.102, z = 0.713 }, team_ability_group_list = { "RoleElectricPowerSource_Play_TeamBuff" } }
}
-- 触发器
triggers = {
{ config_id = 1001004, name = "DUNGEON_ALL_AVATAR_DIE_1004", event = EventType.EVENT_DUNGEON_ALL_AVATAR_DIE, source = "", condition = "condition_EVENT_DUNGEON_ALL_AVATAR_DIE_1004", action = "action_EVENT_DUNGEON_ALL_AVATAR_DIE_1004" },
{ config_id = 1001007, name = "GADGET_CREATE_1007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1007", action = "action_EVENT_GADGET_CREATE_1007" },
{ config_id = 1001008, name = "SELECT_OPTION_1008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1008", action = "action_EVENT_SELECT_OPTION_1008" },
{ config_id = 1001009, name = "CHALLENGE_FAIL_1009", event = EventType.EVENT_CHALLENGE_FAIL, source = "101", condition = "", action = "action_EVENT_CHALLENGE_FAIL_1009", trigger_count = 0 },
{ config_id = 1001010, name = "CHALLENGE_SUCCESS_1010", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "101", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_1010" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1002, 1003, 1006 },
regions = { 1005 },
triggers = { "DUNGEON_ALL_AVATAR_DIE_1004", "GADGET_CREATE_1007", "SELECT_OPTION_1008", "CHALLENGE_FAIL_1009", "CHALLENGE_SUCCESS_1010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 1001 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_DUNGEON_ALL_AVATAR_DIE_1004(context, evt)
local uid_list = ScriptLib.GetSceneUidList(context)
local ret = 0
for i,v in ipairs(uid_list) do
local is_all_dead = ScriptLib.IsPlayerAllAvatarDie(context, v)
if true ~= is_all_dead then
ret = -1
break
end
end
if ret ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_DUNGEON_ALL_AVATAR_DIE_1004(context, evt)
-- 地城失败结算
if 0 ~= ScriptLib.CauseDungeonFail(context) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cause_dungeonfail")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_1007(context, evt)
if 1006 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1007(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 246001001, 1006, {175}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1008(context, evt)
-- 判断是gadgetid 1006 option_id 175
if 1006 ~= evt.param1 then
return false
end
if 175 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1008(context, evt)
-- 删除指定group 246001001 ;指定config1006;物件身上指定option175
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 246001001, 1006, 175) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 1006 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1006, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 246001001, 2)
-- 创建编号为101(该挑战的识别id),挑战内容为111176的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 101, 111176, 246001001, 1, 0, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_1009(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 246001002, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 246001001, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_1010(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 246001002, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
require "V2_0/BlitzRush_Watcher"
@@ -0,0 +1,280 @@
-- 基础信息
local base_info = {
group_id = 246001002
}
-- DEFS_MISCS
-- 随机创建雷爆石/充电桩
function ElectricPowerSource_ElectricBomb_Creation (context)
-- 随机一个suite出雷爆石或充电桩
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 246001002, suite = 0, refresh_level_revise = 0, exclude_prev = false , is_force_random_suite = true}) then
return -1
end
return 0
end
-- 移除雷爆石/充电桩
function ElectricPowerSource_ElectricBomb_Removal (context)
-- 杀死充电桩/雷爆石所在Group内所有实体
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 246001002, kill_policy = GroupKillPolicy.GROUP_KILL_ALL }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_group")
return -1
end
-- 重新生成充电桩/雷爆石所在group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 246001002, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70330062, pos = { x = 16.000, y = -0.102, z = 5.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2002, gadget_id = 70330062, pos = { x = 16.000, y = -0.102, z = -5.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2003, gadget_id = 70330062, pos = { x = 21.000, y = -0.102, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2004, gadget_id = 70330063, pos = { x = 14.000, y = -0.102, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2005, gadget_id = 70330062, pos = { x = -16.000, y = -0.102, z = 5.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2006, gadget_id = 70330062, pos = { x = -16.000, y = -0.102, z = -5.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2007, gadget_id = 70330062, pos = { x = -21.000, y = -0.102, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2008, gadget_id = 70330063, pos = { x = -14.000, y = -0.102, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2009, gadget_id = 70900205, pos = { x = -0.332, y = -3.089, z = -5.981 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1002010, name = "TIMER_EVENT_2010", event = EventType.EVENT_TIMER_EVENT, source = "T1", condition = "", action = "action_EVENT_TIMER_EVENT_2010" },
{ config_id = 1002011, name = "GADGET_CREATE_2011", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_2011", action = "action_EVENT_GADGET_CREATE_2011" },
{ config_id = 1002012, name = "TIMER_EVENT_2012", event = EventType.EVENT_TIMER_EVENT, source = "T2", condition = "", action = "action_EVENT_TIMER_EVENT_2012", trigger_count = 0 },
{ config_id = 1002013, name = "GROUP_LOAD_2013", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_2013", trigger_count = 0 },
{ config_id = 1002014, name = "GADGET_CREATE_2014", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_2014", action = "action_EVENT_GADGET_CREATE_2014" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2009 },
regions = { },
triggers = { },
rand_weight = 0
},
{
-- suite_id = 2,
-- description = 充电桩,
monsters = { },
gadgets = { 2001, 2002, 2003, 2005, 2006, 2007 },
regions = { },
triggers = { "TIMER_EVENT_2010", "GADGET_CREATE_2011" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = 雷爆石,
monsters = { },
gadgets = { 2004, 2008 },
regions = { },
triggers = { "GADGET_CREATE_2014" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "TIMER_EVENT_2012", "GROUP_LOAD_2013" },
rand_weight = 0
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_TIMER_EVENT_2010(context, evt)
-- 将configid为 2001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2005 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2005, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2006 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2007 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2007, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_2011(context, evt)
if 2001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_2011(context, evt)
-- 延迟2秒后,向groupId为:246001002的对象,请求一次调用,并将string参数:"T1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 246001002, "T1", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 246001002, 4)
-- 调用提示id为 460010102 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 460010102) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_2012(context, evt)
-- 将configid为 2001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2005 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2005, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2006 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2007 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2007, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_2013(context, evt)
-- 延迟2秒后,向groupId为:246001002的对象,请求一次调用,并将string参数:"T2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 246001002, "T2", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_2014(context, evt)
if 2004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_2014(context, evt)
-- 调用提示id为 460010101 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 460010101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,73 @@
-- 基础信息
local base_info = {
group_id = 246001003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 3003, shape = RegionShape.SPHERE, radius = 5, pos = { x = -6.550, y = -0.102, z = 6.670 } }
}
-- 触发器
triggers = {
{ config_id = 1003003, name = "ENTER_REGION_3003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 3003 },
triggers = { "ENTER_REGION_3003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,8 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {},
"transRadius": 0.0
}