This commit is contained in:
Akbar Yahya
2022-11-21 16:30:31 +08:00
commit e0d4d8040c
3326 changed files with 683000 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
-- 地图配置
scene_config = {
begin_pos = { x = -10000.0, z = -10000.0 },
size = { x = 20000.0, z = 20000.0 },
born_pos = { x = 0.0, y = 50.0, z = -80.0 },
born_rot = { x = 0.0, y = 0.0, z = 0.0 },
die_y = -500
}
-- 所有的区块
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 = { }

View File

@@ -0,0 +1,4 @@
-- 所有的group
groups = {
{ id = 220020001, refresh_time = 0, pos = { x = 0.0, y = 0.0, z = 0.0 } }
}

View File

@@ -0,0 +1,89 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1, monster_id = 29010103, pos = { x = 0.0, y = 0.0, z = 0.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 1, shape = RegionShape.SPHERE, radius = 5, pos = { x = 9.0, y = 3.1, z = 1.7 } }
}
-- 触发器
triggers = {
{ name = "SPECIFIC_MONSTER_HP_CHANGE_1", event = EventType.EVENT_SPECIFIC_MONSTER_HP_CHANGE, source = "1", condition = "condition_EVENT_SPECIFIC_MONSTER_HP_CHANGE_1", action = "action_EVENT_SPECIFIC_MONSTER_HP_CHANGE_1" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { 1 },
gadgets = { },
regions = { 1 },
triggers = { "SPECIFIC_MONSTER_HP_CHANGE_1" },
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
return -1
end
return 0
end

View File

@@ -0,0 +1,8 @@
{
"radius": 100.0,
"points": {},
"areas": {},
"forces": {},
"entities": {},
"doors": {}
}