添加配置表

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,30 @@
-- 地图配置
scene_config = {
begin_pos = { x = -646.6, z = -1515.1 },
size = { x = 1182.6, z = 3046.6 },
born_pos = { x = 0.000, y = 0.000, z = 21.000 },
born_rot = { x = 0.000, y = 180.000, z = 0.000 },
born_point_list = {
{ pos = { x = 0.000, y = 0.000, z = 20.500 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = 5.000, y = 0.000, z = 21.000 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = -5.000, y = 0.000, z = 21.000 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = 0.000, y = 0.000, z = 23.000 }, rot = { x = 0.000, y = 180.000, z = 0.000 } }
},
die_y = -20,
city_id = 1,
vision_anchor = { x = -646.6, z = -1515.1 }
}
-- 所有的区块
blocks = { 40027 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -646.6, z = -1515.1 }, max = { x = 536.0, z = 1531.5 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }

View File

@@ -0,0 +1,5 @@
-- 所有的group
groups = {
{ id = 240027001, refresh_id = 1, pos = { x = 0.239, y = 0.073, z = 0.106 } },
{ id = 240027002, refresh_id = 1003, pos = { x = 0.006, y = 0.075, z = -3.808 } }
}

View File

@@ -0,0 +1,135 @@
-- 基础信息
local base_info = {
group_id = 240027001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70950042, pos = { x = 0.000, y = 0.000, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1002, gadget_id = 70360010, pos = { x = 0.199, y = 0.233, z = 13.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ 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 = "GADGET_CREATE_1004", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1004", action = "action_EVENT_GADGET_CREATE_1004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001, 1002 },
regions = { },
triggers = { "SELECT_OPTION_1003", "GADGET_CREATE_1004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_1003(context, evt)
-- 判断是gadgetid 1002 option_id 177
if 1002 ~= evt.param1 then
return false
end
if 177 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1003(context, evt)
local monster_level = 60
if -1 ~= ScriptLib.GetEffigyChallengeMonsterLevel(context) then
monster_level = ScriptLib.GetEffigyChallengeMonsterLevel(context)
end
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240027002, suite = 2, refresh_level_revise = monster_level, exclude_prev = true }) then
return -1
end
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240027001, 1002, GadgetState.GearStop) then
return -1
end
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240027001, 1002, 177) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_1004(context, evt)
if 1002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1004(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240027001, 1002, {177}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end

View File

@@ -0,0 +1,177 @@
-- 基础信息
local base_info = {
group_id = 240027002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2007, monster_id = 20040202, pos = { x = 0.000, y = 0.061, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, title_id = 10005, special_name_id = 10021 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2003, gadget_id = 44000006, pos = { x = 0.000, y = 0.000, z = 21.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2006, gadget_id = 70900205, pos = { x = -3.710, y = -3.786, z = 0.840 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1002001, name = "CHALLENGE_FAIL_2001", event = EventType.EVENT_CHALLENGE_FAIL, source = "1", condition = "", action = "action_EVENT_CHALLENGE_FAIL_2001", trigger_count = 0 },
{ config_id = 1002002, name = "DUNGEON_ALL_AVATAR_DIE_2002", event = EventType.EVENT_DUNGEON_ALL_AVATAR_DIE, source = "", condition = "condition_EVENT_DUNGEON_ALL_AVATAR_DIE_2002", action = "action_EVENT_DUNGEON_ALL_AVATAR_DIE_2002", trigger_count = 0 },
{ config_id = 1002008, name = "ANY_MONSTER_LIVE_2008", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_2008", action = "action_EVENT_ANY_MONSTER_LIVE_2008", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2003, 2006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 2007 },
gadgets = { 2006 },
regions = { },
triggers = { "CHALLENGE_FAIL_2001", "DUNGEON_ALL_AVATAR_DIE_2002", "ANY_MONSTER_LIVE_2008" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 2006 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_2001(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240027001, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240027002, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 地城失败结算
if 0 ~= ScriptLib.CauseDungeonFail(context) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cause_dungeonfail")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_DUNGEON_ALL_AVATAR_DIE_2002(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_2002(context, evt)
-- 终止识别id为1的挑战并判定失败
ScriptLib.StopChallenge(context, 1, 0)
-- 地城失败结算
if 0 ~= ScriptLib.CauseDungeonFail(context) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cause_dungeonfail")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_2008(context, evt)
if 2007 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_2008(context, evt)
local challenge_time = 420
if -1 ~= ScriptLib.GetEffigyChallengeLimitTime(context) then
challenge_time = 420 - ScriptLib.GetEffigyChallengeLimitTime(context)
end
if 0 ~= ScriptLib.ActiveChallenge(context, 1, 214, challenge_time, 240027002, 1, 0) then
return -1
end
return 0
end

View File

@@ -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.0,
"y": 0.0,
"z": -21.28166
},
"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
}