添加配置表

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 = -512.0, z = -512.0 },
size = { x = 1024.0, z = 1024.0 },
born_pos = { x = -3.848, y = -0.009, z = 6.361 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
die_y = -70,
city_id = 102,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 20143 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -512.0, z = -512.0 }, max = { x = 512.0, z = 512.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { }

View File

@@ -0,0 +1,4 @@
-- 所有的group
groups = {
{ id = 220143001, pos = { x = 6.198, y = 0.000, z = 1.385 } }
}

View File

@@ -0,0 +1,12 @@
dummy_points = {
["Q4007107_guide"] = { pos = { x = 6.605, y = 1.808, z = 1.383 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007114_N10011"] = { pos = { x = -3.123, y = 0.000, z = 2.725 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["Q4007114_N10095"] = { pos = { x = 0.374, y = 0.000, z = 3.648 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["Q4007114_N1032"] = { pos = { x = -0.241, y = 0.000, z = 2.916 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007114_N1042"] = { pos = { x = -0.999, y = 0.000, z = 3.501 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["Q4007114_N12627"] = { pos = { x = -3.160, y = 0.000, z = 1.719 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007114_N12628"] = { pos = { x = -3.152, y = 0.000, z = 2.687 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["Q4007115_N10095"] = { pos = { x = 561.619, y = 120.241, z = -369.355 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["T4007114_paimon"] = { pos = { x = -0.314, y = 0.000, z = 4.708 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["T4007114_player"] = { pos = { x = 0.337, y = 0.000, z = 4.715 }, rot = { x = 0.000, y = 180.000, z = 0.000 } }
}

View File

@@ -0,0 +1,135 @@
-- 基础信息
local base_info = {
group_id = 220143001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70360001, pos = { x = 6.288, y = 0.311, z = 1.427 }, 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", trigger_count = 0 },
{ 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 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 1001 },
regions = { },
triggers = { "GADGET_CREATE_1002", "SELECT_OPTION_1003" },
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, 220143001, 1001, {199}) 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 1001 option_id 199
if 1001 ~= evt.param1 then
return false
end
if 199 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1003(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4007107") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220143001, EntityType.GADGET, 1001 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
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": 6.834465,
"y": -1.433273E-07,
"z": 1.414299
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 3.0,
"y": 3.0,
"z": 3.0
},
"tranPos": {
"x": 6.02174139,
"y": -1.433273E-07,
"z": 1.41429925
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
}
},
"transRadius": 0.0
}