添加配置表

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,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -100.0, z = -100.0 },
size = { x = 1024.0, z = 1024.0 },
born_pos = { x = 502.498, y = 100.542, z = 498.351 },
born_rot = { x = 0.000, y = 220.000, z = 0.000 },
die_y = -10,
city_id = 3,
vision_anchor = { x = -100.0, z = -100.0 }
}
-- 所有的区块
blocks = { 20117 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -100.0, z = -100.0 }, max = { x = 924.0, z = 924.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { }
@@ -0,0 +1,4 @@
-- 所有的group
groups = {
{ id = 220117001, refresh_id = 1004, pos = { x = 514.828, y = 100.854, z = 487.741 } }
}
@@ -0,0 +1,5 @@
dummy_points = {
["Q202003Player"] = { pos = { x = 493.472, y = 100.542, z = 489.555 }, rot = { x = 0.000, y = 226.240, z = 0.000 } },
["Q202003Yaeko"] = { pos = { x = 491.768, y = 100.542, z = 490.548 }, rot = { x = 0.000, y = 195.200, z = 0.000 } },
["Q202003Ying"] = { pos = { x = 490.690, y = 100.542, z = 486.750 }, rot = { x = 0.000, y = 46.640, z = 0.000 } }
}
@@ -0,0 +1,185 @@
-- 基础信息
local base_info = {
group_id = 220117001
}
-- DEFS_MISCS
local defs = {
BossConfigID = 1002,
EnvConfigID = 1001,
GroupID = 220117001,
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
[1002] = { config_id = 1002, monster_id = 29060102, pos = { x = 492.258, y = 100.542, z = 488.200 }, rot = { x = 0.000, y = 30.000, z = 0.000 }, level = 1, title_id = 152, special_name_id = 9 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[1001] = { config_id = 1001, gadget_id = 70290109, pos = { x = 0.000, y = 0.000, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1001003, name = "GADGET_STATE_CHANGE_1003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_1003", action = "action_EVENT_GADGET_STATE_CHANGE_1003" },
{ config_id = 1001004, name = "GADGET_STATE_CHANGE_1004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_1004", action = "action_EVENT_GADGET_STATE_CHANGE_1004" },
{ config_id = 1001005, name = "QUEST_START_1005", event = EventType.EVENT_QUEST_START, source = "202004", condition = "", action = "action_EVENT_QUEST_START_1005" },
{ config_id = 1001007, name = "TIMER_EVENT_1007", event = EventType.EVENT_TIMER_EVENT, source = "timer", condition = "", action = "action_EVENT_TIMER_EVENT_1007" },
{ config_id = 1001008, name = "VARIABLE_CHANGE_1008", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_1008", action = "action_EVENT_VARIABLE_CHANGE_1008" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_1003", "GADGET_STATE_CHANGE_1004", "QUEST_START_1005", "TIMER_EVENT_1007", "VARIABLE_CHANGE_1008" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 1002 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_1003(context, evt)
-- 检测config_id为1001的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 1001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_1003(context, evt)
ScriptLib.SetWeatherAreaState(context,10060,0)
ScriptLib.SetWeatherAreaState(context,10061,1)
ScriptLib.PrintContextLog(context,"环境物件1001切到201,进入Weather10061")
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_1004(context, evt)
-- 检测config_id为1001的gadget是否从GadgetState.GearStart变为GadgetState.GearStop
if 1001 ~= evt.param2 or GadgetState.GearStop ~= evt.param1 or GadgetState.GearStart ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_1004(context, evt)
ScriptLib.SetWeatherAreaState(context,10061,0)
ScriptLib.SetWeatherAreaState(context,10062,1)
ScriptLib.PrintContextLog(context,"环境物件1001切到202,进入Weather10062")
return 0
end
-- 触发操作
function action_EVENT_QUEST_START_1005(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220117001, 2)
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_1007(context, evt)
-- 移除指定monster
ScriptLib.RemoveEntityByConfigId(context, 220117001, EntityType.MONSTER, 1002)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1008(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"PhaseStep"为3
if ScriptLib.GetGroupVariableValue(context, "PhaseStep") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1008(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "202011") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 延迟0.5秒后,向groupId为:220117001的对象,请求一次调用,并将string参数:"timer" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220117001, "timer", 0.5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
require "V2_1/Boss_Shougun"
@@ -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": 492.3886,
"y": 100.5415,
"z": 488.4556
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 3.0,
"y": 3.0,
"z": 3.0
},
"tranPos": {
"x": 492.044922,
"y": 100.541504,
"z": 487.979523
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
}
},
"transRadius": 0.0
}
@@ -0,0 +1,65 @@
[
{
"area_id": 10060,
"points": [
{
"x": 477.197021,
"y": 405.795227
},
{
"x": 580.011963,
"y": 465.075745
},
{
"x": 512.682739,
"y": 546.1424
},
{
"x": 420.46048,
"y": 492.145782
}
]
},
{
"area_id": 10061,
"points": [
{
"x": 424.207062,
"y": 496.939331
},
{
"x": 508.471039,
"y": 540.6412
},
{
"x": 581.632935,
"y": 470.60202
},
{
"x": 480.586517,
"y": 415.8052
}
]
},
{
"area_id": 10062,
"points": [
{
"x": 482.182465,
"y": 428.054321
},
{
"x": 573.13916,
"y": 470.892151
},
{
"x": 502.7142,
"y": 556.447937
},
{
"x": 427.582947,
"y": 493.367371
}
]
}
]