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 = -1000.0, z = -1000.0 },
size = { x = 2000.0, z = 2000.0 },
born_pos = { x = 0.0, y = 0.0, z = 80.0 },
born_rot = { x = 0.0, y = 180.0, z = 0.0 },
die_y = -1000
}
-- 所有的区块
blocks = { 20018 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -1000.0, z = -1000.0 }, max = { x = 1000.0, z = 1000.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { }

View File

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

View File

@@ -0,0 +1,128 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1, monster_id = 29010102, pos = { x = 0.0, y = -40.0, z = 0.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 10 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1, gadget_id = 42901021, pos = { x = 0.0, y = 0.0, z = 0.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 2, gadget_id = 42901022, pos = { x = 0.0, y = 0.0, z = 0.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 3, gadget_id = 42901023, pos = { x = 0.0, y = 0.0, z = 0.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 4, gadget_id = 42901024, pos = { x = 0.0, y = 0.0, z = 0.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 5, gadget_id = 42901025, pos = { x = 0.0, y = 0.0, z = 0.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 6, gadget_id = 42901026, pos = { x = 0.0, y = 0.0, z = 0.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 7, gadget_id = 42901027, pos = { x = 0.0, y = 0.0, z = 0.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 8, gadget_id = 42901028, pos = { x = 0.0, y = 0.0, z = 0.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 9, gadget_id = 42901029, pos = { x = 0.0, y = 0.0, z = 0.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 1, shape = RegionShape.SPHERE, radius = 5, pos = { x = 0.0, y = 0.0, z = 0.0 } },
{ config_id = 2, shape = RegionShape.SPHERE, radius = 20, pos = { x = 0.0, y = -10.0, z = 75.0 } },
{ config_id = 3, shape = RegionShape.SPHERE, radius = 12, pos = { x = 0.0, y = -9.5, z = 80.0 } }
}
-- 触发器
triggers = {
{ name = "CUTSCENE_END_1", event = EventType.EVENT_CUTSCENE_END, source = "", condition = "", action = "action_EVENT_CUTSCENE_END_1" },
{ name = "ENTER_REGION_2", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_2" },
{ name = "ENTER_REGION_3", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3", action = "action_EVENT_ENTER_REGION_3" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 1, 2, 3, 4, 5, 6, 7, 8, 9 },
regions = { 1, 2, 3 },
triggers = { "CUTSCENE_END_1", "ENTER_REGION_2", "ENTER_REGION_3" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
-- 触发操作
function action_EVENT_CUTSCENE_END_1(context, evt)
-- 延迟1秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 1, delay_time = 1 }) then
return -1
end
return 0
end
-- 触发条件
-- 触发操作
function action_EVENT_ENTER_REGION_2(context, evt)
-- 通知场景上的所有玩家播放名字为200201 的cutscene
if 0 ~= ScriptLib.PlayCutScene(context, 200201, 60) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3(context, evt)
if evt.param1 ~= 3 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_3(context, evt)
-- 调用提示id为 20020101 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 20020101) then
return -1
end
return 0
end

View File

@@ -0,0 +1,44 @@
{
"radius": 100.0,
"points": {},
"areas": {},
"forces": {},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"gadgetId": 70010006,
"pos": {
"x": -0.485409141,
"y": -21.92318,
"z": -5.20052338
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"areaId": 0,
"unlocked": true,
"checkDist": 100.0,
"withGO": false,
"triggerFlag": "LevelAbility",
"shape": {
"$type": "ConfigShapeRect",
"useHeight": true,
"height": 10.0,
"centerType": "Center",
"width": 240.0,
"length": 240.0
},
"checkCount": 0,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"floatParam": 0.0,
"stringParam": "Dvalin_S04_DeadRegion"
}
},
"doors": {}
}

View File

@@ -0,0 +1,24 @@
[
{
"groupId": 220018001,
"configID": 1,
"position": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tlog_tag": "",
"comment": "Spawn Dvalin after CutScene finished"
},
{
"groupId": 220018001,
"configID": 2,
"position": {
"x": 0.0,
"y": -10.0,
"z": 75.0
},
"tlog_tag": "",
"comment": "Player CutScene"
}
]