添加配置表

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 = -10000.0, z = -10000.0 },
size = { x = 20000.0, z = 20000.0 },
born_pos = { x = 0.000, y = 50.000, z = -80.000 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
die_y = -500,
city_id = 1,
vision_anchor = { x = -10000.0, z = -10000.0 }
}
-- 所有的区块
blocks = { 20020 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -10000.0, z = -10000.0 }, max = { x = 10000.0, z = 10000.0 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }
@@ -0,0 +1,4 @@
-- 所有的group
groups = {
{ id = 220020001, refresh_id = 1004, pos = { x = 0.000, y = 0.000, z = 0.000 } }
}
@@ -0,0 +1,121 @@
-- 基础信息
local base_info = {
group_id = 220020001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1001, monster_id = 29010103, pos = { x = 0.000, y = 0.000, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, title_id = 101, special_name_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000001, name = "SPECIFIC_MONSTER_HP_CHANGE_1", event = EventType.EVENT_SPECIFIC_MONSTER_HP_CHANGE, source = "1001", condition = "condition_EVENT_SPECIFIC_MONSTER_HP_CHANGE_1", action = "action_EVENT_SPECIFIC_MONSTER_HP_CHANGE_1" },
{ config_id = 1001002, name = "TIMER_EVENT_1002", event = EventType.EVENT_TIMER_EVENT, source = "1", condition = "", action = "action_EVENT_TIMER_EVENT_1002" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 1001 },
gadgets = { },
regions = { },
triggers = { "SPECIFIC_MONSTER_HP_CHANGE_1", "TIMER_EVENT_1002" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SPECIFIC_MONSTER_HP_CHANGE_1(context, evt)
--[[判断指定configid的怪物的血量小于%20时触发指定后续操作]]--
if evt.type ~= EventType.EVENT_SPECIFIC_MONSTER_HP_CHANGE or evt.param3 > 20 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SPECIFIC_MONSTER_HP_CHANGE_1(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "220020001") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 延迟1秒后,向groupId为:220020001的对象,请求一次调用,并将string参数:"1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220020001, "1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_1002(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220020001, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,8 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {},
"transRadius": 0.0
}