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 = -4429.4, z = -4478.5 },
size = { x = 8940.5, z = 8940.5 },
born_pos = { x = 184.8, y = 43.6, z = 13.1 },
born_rot = { x = 0.0, y = 179.2, z = 0.0 },
die_y = -970
}
-- 所有的区块
blocks = { 20021 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -4429.4, z = -4478.5 }, max = { x = 4511.0, z = 4461.9 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { }

View File

@@ -0,0 +1,106 @@
{
"sceneId": 20021,
"routes": [
{
"localId": 20021001,
"name": "Platform_20021001",
"type": "OneWay",
"points": [
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 184.482269,
"y": 44.1277046,
"z": -1.18071115
},
"targetVelocity": 2.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 184.485657,
"y": 42.0178375,
"z": -1.37106419
},
"targetVelocity": 2.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 189.4942,
"y": 41.9901047,
"z": -1.228431
},
"targetVelocity": 2.0
}
]
},
{
"localId": 20021002,
"name": "Platform_20021002",
"type": "OneWay",
"points": [
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 184.390915,
"y": 44.1277046,
"z": -4.19361
},
"targetVelocity": 2.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 184.358551,
"y": 42.292263,
"z": -3.92227983
},
"targetVelocity": 2.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 180.7593,
"y": 41.8514977,
"z": -4.895134
},
"targetVelocity": 2.0
}
]
},
{
"localId": 20021003,
"name": "111",
"type": "Reciprocate",
"points": [
{
"waitTime": 2.0,
"speedLevel": 1,
"pos": {
"x": 191.652451,
"y": 29.2279282,
"z": 15.395546
},
"targetVelocity": 3.0
},
{
"waitTime": 2.0,
"speedLevel": 1,
"pos": {
"x": 191.777145,
"y": 29.1761971,
"z": 9.512328
},
"targetVelocity": 3.0
}
]
}
]
}

View File

@@ -0,0 +1,6 @@
-- 所有的group
groups = {
{ id = 220021001, refresh_time = 0, pos = { x = 183.6, y = 40.0, z = -7.2 } },
{ id = 220021002, refresh_time = 0, pos = { x = 184.0, y = 37.5, z = -1.2 } },
{ id = 220021003, refresh_time = 0, pos = { x = 181.3, y = -31.3, z = 1.0 } }
}

View File

@@ -0,0 +1,145 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1, gadget_id = 70380003, pos = { x = 184.6, y = 42.5, z = -1.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 20021001, start_route = false },
{ config_id = 2, gadget_id = 70380003, pos = { x = 184.5, y = 42.5, z = -4.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 20021002, start_route = false },
{ config_id = 3, gadget_id = 70900207, pos = { x = 181.9, y = 44.1, z = 1.0 }, rot = { x = 0.0, y = 323.5, z = 0.0 }, level = 1 },
{ config_id = 4, gadget_id = 70900207, pos = { x = 187.5, y = 44.1, z = 1.2 }, rot = { x = 0.0, y = 5.0, z = 0.0 }, level = 1 },
{ config_id = 9, gadget_id = 70900227, pos = { x = 191.8, y = 28.1, z = 15.1 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 1 },
{ config_id = 10, gadget_id = 70900227, pos = { x = 191.9, y = 27.7, z = 12.4 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 1 },
{ config_id = 11, gadget_id = 70900227, pos = { x = 192.1, y = 22.1, z = 4.5 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 1 },
{ config_id = 12, gadget_id = 70900227, pos = { x = 192.3, y = 22.3, z = 0.9 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 1 },
{ config_id = 13, gadget_id = 70900228, pos = { x = 191.8, y = 30.0, z = 15.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 20021003 }
}
-- 区域
regions = {
{ config_id = 1, shape = RegionShape.SPHERE, radius = 5, pos = { x = 184.5, y = 44.1, z = 1.3 } },
{ config_id = 2, shape = RegionShape.SPHERE, radius = 5, pos = { x = 181.3, y = 44.1, z = 2.2 } },
{ config_id = 3, shape = RegionShape.SPHERE, radius = 5, pos = { x = 180.0, y = 44.1, z = 1.4 } }
}
-- 触发器
triggers = {
{ name = "CLIENT_EXECUTE_1", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricPile", condition = "condition_EVENT_CLIENT_EXECUTE_1", action = "action_EVENT_CLIENT_EXECUTE_1" },
{ name = "CLIENT_EXECUTE_2", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricPile", condition = "condition_EVENT_CLIENT_EXECUTE_2", action = "action_EVENT_CLIENT_EXECUTE_2" },
{ name = "VARIABLE_CHANGE_3", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_3", action = "action_EVENT_VARIABLE_CHANGE_3" }
}
-- 变量
variables = {
{ name = "Door", value = 0, persistent = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 1, 2, 3, 4, 9, 10, 11, 12 },
regions = { 1, 2, 3 },
triggers = { "CLIENT_EXECUTE_1", "CLIENT_EXECUTE_2", "VARIABLE_CHANGE_3" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_CLIENT_EXECUTE_1(context, evt)
if 3 ~= ScriptLib.GetGadgetConfig(context, { gadget_eid = evt.source_eid }) then
return false
end
return true
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_1(context, evt)
-- 针对当前group内变量名为 "Door" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Door", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_CLIENT_EXECUTE_2(context, evt)
if 4 ~= ScriptLib.GetGadgetConfig(context, { gadget_eid = evt.source_eid }) then
return false
end
return true
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_2(context, evt)
-- 针对当前group内变量名为 "Door" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Door", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_3(context, evt)
-- 判断变量"Door"为2
if ScriptLib.GetGroupVariableValue(context, "Door") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_3(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 1) then
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 2) then
return -1
end
return 0
end

View File

@@ -0,0 +1,97 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2, monster_id = 21010101, pos = { x = 189.7, y = 37.5, z = -4.2 }, rot = { x = 0.0, y = 311.0, z = 0.0 }, level = 0, pose_id = 9003 },
{ config_id = 3, monster_id = 21010101, pos = { x = 190.2, y = 37.5, z = 1.6 }, rot = { x = 0.0, y = 274.7, z = 0.0 }, level = 0, pose_id = 9003 },
{ config_id = 4, monster_id = 20011202, pos = { x = 186.7, y = 37.5, z = 2.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
{ config_id = 5, monster_id = 20011202, pos = { x = 186.5, y = 37.5, z = -0.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
{ config_id = 6, monster_id = 20011202, pos = { x = 187.7, y = 37.5, z = 4.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5, gadget_id = 70220010, pos = { x = 177.3, y = 37.5, z = -5.1 }, rot = { x = 0.0, y = 148.1, z = 0.0 }, level = 1 },
{ config_id = 6, gadget_id = 70220010, pos = { x = 176.9, y = 37.5, z = 0.9 }, rot = { x = 0.0, y = 155.7, z = 0.0 }, level = 1 },
{ config_id = 7, gadget_id = 70350006, pos = { x = 183.6, y = 37.5, z = 8.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 8, gadget_id = 70210034, pos = { x = 177.0, y = 30.3, z = 18.9 }, rot = { x = 0.0, y = 171.0, z = 0.0 }, level = 1, chest_drop_id = 1000104, type = GadgetType.GADGET_DUNGEON_SECRET_CHEST }
}
-- 区域
regions = {
{ config_id = 4, shape = RegionShape.SPHERE, radius = 5, pos = { x = 179.8, y = 37.5, z = 1.5 } }
}
-- 触发器
triggers = {
{ name = "ANY_MONSTER_DIE_4", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4", action = "action_EVENT_ANY_MONSTER_DIE_4" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { 2, 3, 4, 5, 6 },
gadgets = { 5, 6, 7 },
regions = { 4 },
triggers = { "ANY_MONSTER_DIE_4" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4(context, evt)
-- 将configid为 7 的物件更改为状态 GadgetState.GearAction1
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7, GadgetState.GearAction1) then
return -1
end
return 0
end

View File

@@ -0,0 +1,66 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,33 @@
{
"radius": 100.0,
"points": {
"1": {
"type": "NORMAL",
"$type": "DungeonQuitPoint",
"gadgetId": 70120004,
"pos": {
"x": 182.613083,
"y": 43.70011,
"z": 16.8685932
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"areaId": 0,
"unlocked": true,
"cutsceneList": [],
"size": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"titleTextID": ""
}
},
"areas": {},
"forces": {},
"entities": {},
"doors": {}
}