添加配置表

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 = -265.6, z = -280.2 },
size = { x = 531.8, z = 560.4 },
born_pos = { x = -0.259, y = 0.028, z = 14.031 },
born_rot = { x = 0.000, y = 180.000, z = 0.000 },
born_point_list = {
{ pos = { x = 0.013, y = 0.000, z = 12.041 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = -4.015, y = 0.000, z = 12.065 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = 4.033, y = 0.000, z = 12.113 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = 0.005, y = 0.000, z = 16.092 }, rot = { x = 0.000, y = 180.000, z = 0.000 } }
},
die_y = -9,
city_id = 1,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 44012 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -265.6, z = -280.2 }, max = { x = 266.2, z = 280.2 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }
@@ -0,0 +1,4 @@
-- 所有的group
groups = {
{ id = 244012001, refresh_id = 1, pos = { x = 0.094, y = 0.028, z = 0.071 } }
}
@@ -0,0 +1,384 @@
-- 基础信息
local base_info = {
group_id = 244012001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70360010, pos = { x = 0.141, y = -0.110, z = 0.016 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1003, gadget_id = 70350077, pos = { x = 0.078, y = 0.028, z = -24.177 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1004, gadget_id = 70350077, pos = { x = 0.128, y = 0.041, z = 24.182 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1020, gadget_id = 44000006, pos = { x = -0.004, y = 0.028, z = 16.713 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
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 = 1001005, name = "SELECT_OPTION_1005", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1005", action = "action_EVENT_SELECT_OPTION_1005" },
{ config_id = 1001012, name = "POOL_MONSTER_TIDE_DIE_1012", event = EventType.EVENT_POOL_MONSTER_TIDE_DIE, source = "1", condition = "condition_EVENT_POOL_MONSTER_TIDE_DIE_1012", action = "action_EVENT_POOL_MONSTER_TIDE_DIE_1012" },
{ config_id = 1001014, name = "CHALLENGE_SUCCESS_1014", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "101", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_1014" },
{ config_id = 1001015, name = "CHALLENGE_FAIL_1015", event = EventType.EVENT_CHALLENGE_FAIL, source = "101", condition = "", action = "action_EVENT_CHALLENGE_FAIL_1015" },
{ config_id = 1001016, name = "CHALLENGE_SUCCESS_1016", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "202", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_1016" },
{ config_id = 1001017, name = "CHALLENGE_SUCCESS_1017", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "202", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_1017" },
{ config_id = 1001018, name = "CHALLENGE_SUCCESS_1018", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "201", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_1018" },
{ config_id = 1001019, name = "CHALLENGE_FAIL_1019", event = EventType.EVENT_CHALLENGE_FAIL, source = "202", condition = "", action = "action_EVENT_CHALLENGE_FAIL_1019" },
{ config_id = 1001021, name = "DUNGEON_ALL_AVATAR_DIE_1021", event = EventType.EVENT_DUNGEON_ALL_AVATAR_DIE, source = "", condition = "condition_EVENT_DUNGEON_ALL_AVATAR_DIE_1021", action = "action_EVENT_DUNGEON_ALL_AVATAR_DIE_1021", trigger_count = 0 },
{ config_id = 1001026, name = "TIMER_EVENT_1026", event = EventType.EVENT_TIMER_EVENT, source = "delay", condition = "", action = "action_EVENT_TIMER_EVENT_1026" }
}
-- 点位
points = {
{ config_id = 1006, pos = { x = -0.004, y = 0.028, z = -14.607 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, tag = 2 },
{ config_id = 1007, pos = { x = 7.328, y = 0.028, z = -9.677 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, tag = 2 },
{ config_id = 1008, pos = { x = -7.266, y = 0.028, z = -9.792 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, tag = 2 },
{ config_id = 1009, pos = { x = 4.895, y = 0.028, z = -12.227 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, tag = 2 },
{ config_id = 1010, pos = { x = -4.620, y = 0.028, z = -12.293 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, tag = 2 },
{ config_id = 1011, pos = { x = -4.646, y = 0.028, z = 12.329 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, tag = 4 },
{ config_id = 1022, pos = { x = 5.057, y = 0.028, z = 12.293 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, tag = 4 },
{ config_id = 1023, pos = { x = -9.595, y = 0.028, z = 12.316 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, tag = 4 },
{ config_id = 1024, pos = { x = 10.204, y = 0.028, z = 12.478 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, tag = 4 },
{ config_id = 1025, pos = { x = 0.091, y = 0.028, z = 17.075 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, tag = 4 }
}
-- 变量
variables = {
{ config_id = 1, name = "IS_IN_LIMIT_TIME", value = 0, no_refresh = false },
{ config_id = 2, name = "monster_count", value = 7, no_refresh = false },
{ config_id = 3, name = "wave1_count", value = 3, no_refresh = false },
{ config_id = 4, name = "wave2_count", value = 4, no_refresh = false }
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1001013, name = "POOL_MONSTER_TIDE_DIE_1013", event = EventType.EVENT_POOL_MONSTER_TIDE_DIE, source = "2", condition = "condition_EVENT_POOL_MONSTER_TIDE_DIE_1013", action = "action_EVENT_POOL_MONSTER_TIDE_DIE_1013" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001, 1003, 1004, 1020 },
regions = { },
triggers = { "GADGET_CREATE_1002", "SELECT_OPTION_1005", "POOL_MONSTER_TIDE_DIE_1012", "CHALLENGE_SUCCESS_1014", "CHALLENGE_FAIL_1015", "CHALLENGE_SUCCESS_1016", "CHALLENGE_SUCCESS_1017", "CHALLENGE_FAIL_1019", "DUNGEON_ALL_AVATAR_DIE_1021", "TIMER_EVENT_1026" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "CHALLENGE_SUCCESS_1018" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_1002(context, evt)
if 1001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 0, 1001, {175}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1005(context, evt)
-- 判断是gadgetid 1001 option_id 175
if 1001 ~= evt.param1 then
return false
end
if 175 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1005(context, evt)
-- 初始化时间变量
local challenge_time = 0
local monster_count = ScriptLib.GetGroupVariableValue(context, "monster_count")
local wave1_count = ScriptLib.GetGroupVariableValue(context, "wave1_count")
-- 判断玩家是否选择了时间挑战因子
if 0 ~= ScriptLib.GetChannellerSlabLoopDungeonLimitTime(context) then
challenge_time = ScriptLib.GetChannellerSlabLoopDungeonLimitTime(context)
end
-- 判断玩家是否选择了刷怪因子
if ScriptLib.IsChannellerSlabLoopDungeonConditionSelected(context, 313) == true then
monster_count =9
wave1_count = 4
ScriptLib.SetGroupVariableValue(context, "monster_count", 10)
ScriptLib.SetGroupVariableValue(context, "wave1_count", 4)
end
-- 创建编号为110180父挑战,indexID为101
if 0 ~= ScriptLib.CreateFatherChallenge(context, 101, 2003015, 999999, {success = 1, fail = 1, fail_on_wipe=false}) then
return -1
end
-- 创建编号为201的子挑战:杀怪挑战
if 0 ~= ScriptLib.AttachChildChallenge(context, 101, 201, 110181, {244012001,monster_count},{},{success=0,fail=0}) then
return -1
end
-- 创建编号为202的子挑战:限时积分.如果没有选择不会开启
if 0 ~= challenge_time then
ScriptLib.AttachChildChallenge(context, 101, 202, 110182, {challenge_time,244012001,monster_count},{},{success=0,fail=0})
else
ScriptLib.AddExtraGroupSuite(context, 244012001, 2)
end
-- 开始父挑战
if 0 ~= ScriptLib.StartFatherChallenge(context, 101) then
return -1
end
-- 判断是否选择雷光矩阵
if ScriptLib.IsChannellerSlabLoopDungeonConditionSelected(context, 314) == true then
ScriptLib.AutoPoolMonsterTide(context, 1, 244012001, {30010},0,{},{}, {total_count = wave1_count, min_count = 3, max_count = 3, tag = 2, fill_time= 0, fill_count = 0, is_ordered = true})
else
ScriptLib.AutoPoolMonsterTide(context, 1, 244012001, {30001},0,{},{}, {total_count = wave1_count, min_count = 3, max_count = 3, tag = 2, fill_time= 0, fill_count = 0, is_ordered = true})
end
-- 将configid为 1004 的物件更改为状态 GadgetState.ChestFrozen
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1004, GadgetState.Default) then
return -1
end
-- 将configid为 1001 的物件更改为状态 GadgetState.ChestFrozen
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1001, GadgetState.GearStop) then
return -1
end
-- 将configid为 1001 的物件的option删除
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 244012001, 1001, 175) then
return -1
end
-- 卸载回血gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 244012001, EntityType.GADGET, 1020 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_POOL_MONSTER_TIDE_DIE_1012(context, evt)
local wave1_count = ScriptLib.GetGroupVariableValue(context, "wave1_count")
if wave1_count ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_POOL_MONSTER_TIDE_DIE_1012(context, evt)
-- 延迟1秒后,向groupId为:244012001的对象,请求一次调用,并将string参数:"delay" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 244012001, "delay", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_1014(context, evt)
-- 将configid为 1001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 244012001 ;指定config1001;物件身上指定option175
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 244012001, 1001, 175) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_1015(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 244012001, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_1016(context, evt)
-- 将本组内变量名为 "IS_IN_LIMIT_TIME" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "IS_IN_LIMIT_TIME", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_1017(context, evt)
-- 终止识别id为101的挑战,并判定成功
ScriptLib.StopChallenge(context, 101, 1)
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_1018(context, evt)
-- 终止识别id为101的挑战,并判定成功
ScriptLib.StopChallenge(context, 101, 1)
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_1019(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 244012001, 2)
return 0
end
-- 触发条件
function condition_EVENT_DUNGEON_ALL_AVATAR_DIE_1021(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_1021(context, evt)
-- 终止识别id为101的挑战,并判定失败
ScriptLib.StopChallenge(context, 101, 0)
-- 地城失败结算
if 0 ~= ScriptLib.CauseDungeonFail(context) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cause_dungeonfail")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_1026(context, evt)
local wave2_count = 4
-- 判断玩家是否选择了刷怪因子
if ScriptLib.IsChannellerSlabLoopDungeonConditionSelected(context, 313) == true then
wave2_count = 5
end
-- 在Group244012001从怪物潮池{13002}中随机创建一个TideIndex为2的怪物潮,创建怪物总数为2,场上怪物最少2只,最多2只, pointTag 为 4 每0尝试填充一次,填充数量为0
if ScriptLib.IsChannellerSlabLoopDungeonConditionSelected(context, 314) == true then
ScriptLib.AutoPoolMonsterTide(context, 2, 244012001, {30011},0,{},{}, {total_count = wave2_count, min_count = 4, max_count = 4, tag = 4, fill_time= 0, fill_count = 0})
else
ScriptLib.AutoPoolMonsterTide(context, 2, 244012001, {30002},0,{},{}, {total_count = wave2_count, min_count = 4, max_count = 4, tag = 4, fill_time= 0, fill_count = 0})
end
return 0
end
@@ -0,0 +1,45 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 0.1672457,
"y": 0.02817614,
"z": -14.58436
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}