添加配置表

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 = -3767.5, z = -3015.0 },
size = { x = 8247.4, z = 7459.5 },
born_pos = { x = -142.639, y = 14.517, z = 72.735 },
born_rot = { x = 0.000, y = 226.345, z = 0.000 },
die_y = -970,
city_id = 1,
vision_anchor = { x = -3767.5, z = -3015.0 }
}
-- 所有的区块
blocks = { 40010 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -3767.5, z = -3015.0 }, max = { x = 4479.9, z = 4444.5 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,61 @@
{
"sceneId": 40010,
"routes": [
{
"localId": 1,
"name": "Route_001",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -127.0,
"y": -13.6,
"z": 99.0
},
"waitTime": 3.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": -144.3,
"y": 13.3,
"z": 79.5
},
"waitTime": 3.0,
"targetVelocity": 3.0
}
]
},
{
"localId": 2,
"name": "Route_002",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -143.9351,
"y": 17.96167,
"z": 42.7598152
},
"waitTime": 2.0,
"speedLevel": 1
},
{
"pos": {
"x": -151.128433,
"y": 18.0163536,
"z": 42.4781227
},
"waitTime": 2.0,
"speedLevel": 1
}
]
}
]
}
@@ -0,0 +1,6 @@
-- 所有的group
groups = {
{ id = 240010005, refresh_id = 1001, pos = { x = -146.671, y = 18.016, z = 46.572 } },
{ id = 240010006, refresh_id = 1, pos = { x = -145.391, y = 18.017, z = 43.706 } },
{ id = 240010007, refresh_id = 1001, pos = { x = -148.825, y = 18.016, z = 43.923 } }
}
@@ -0,0 +1,106 @@
-- 基础信息
local base_info = {
group_id = 240010005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 14, monster_id = 21010201, pos = { x = -151.525, y = 18.016, z = 41.103 }, rot = { x = 0.000, y = 36.367, z = 0.000 }, level = 1, pose_id = 9003 },
{ config_id = 15, monster_id = 21010201, pos = { x = -142.639, y = 17.888, z = 41.314 }, rot = { x = 0.000, y = 319.844, z = 0.000 }, level = 1, pose_id = 9003 },
{ config_id = 16, monster_id = 21010201, pos = { x = -147.222, y = 18.017, z = 42.522 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000021, name = "ANY_MONSTER_DIE_21", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_21", action = "action_EVENT_ANY_MONSTER_DIE_21" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 14, 15, 16 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_21" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_21(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 240010005) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_21(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240010007, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 触发镜头注目,注目位置为坐标(-147,21,36),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=-147, y=21, z=36}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end
@@ -0,0 +1,80 @@
-- 基础信息
local base_info = {
group_id = 240010006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 49, gadget_id = 70220005, pos = { x = -152.651, y = 18.017, z = 41.055 }, rot = { x = 0.000, y = 40.543, z = 0.000 }, level = 1 },
{ config_id = 50, gadget_id = 70220005, pos = { x = -143.596, y = 17.939, z = 40.297 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 51, gadget_id = 70220005, pos = { x = -140.972, y = 17.900, z = 41.469 }, rot = { x = 0.000, y = 353.901, z = 0.000 }, level = 1 },
{ config_id = 52, gadget_id = 70211103, pos = { x = -137.579, y = 19.016, z = 45.837 }, rot = { x = 0.000, y = 270.147, z = 0.000 }, level = 1, drop_tag = "解谜低级蒙德", state = GadgetState.ChestBramble, isOneoff = true },
{ config_id = 53, gadget_id = 70211103, pos = { x = -156.192, y = 19.016, z = 45.896 }, rot = { x = 0.000, y = 88.781, z = 0.000 }, level = 1, drop_tag = "解谜低级蒙德", state = GadgetState.ChestBramble, isOneoff = true },
{ config_id = 54, gadget_id = 70220014, pos = { x = -151.968, y = 18.016, z = 39.404 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 55, gadget_id = 70220014, pos = { x = -141.830, y = 17.947, z = 39.548 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 56, gadget_id = 70220014, pos = { x = -140.917, y = 17.922, z = 40.299 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 57, gadget_id = 70211012, pos = { x = -147.036, y = 18.016, z = 46.078 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, chest_drop_id = 18000000, drop_count = 1, state = GadgetState.ChestLocked, isOneoff = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 49, 50, 51, 52, 53, 54, 55, 56, 57 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,104 @@
-- 基础信息
local base_info = {
group_id = 240010007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 17, monster_id = 20010401, pos = { x = -147.129, y = 22.000, z = 36.591 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1007, 1009 }, isElite = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000022, name = "ANY_MONSTER_DIE_22", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_22", action = "action_EVENT_ANY_MONSTER_DIE_22" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 17 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_22" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_22" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_22(context, evt)
--判断死亡怪物的configid是否为 17
if evt.param1 ~= 17 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_22(context, evt)
-- 改变指定group组240010006中, configid为57的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240010006, 57, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,232 @@
{
"areas": {},
"doors": {},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": -116.6155,
"y": -30.01376,
"z": 90.33643
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 10.0,
"heightType": "Center",
"length": 300.0,
"useHeight": true,
"width": 300.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": true
},
"2": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": -139.2548,
"y": 6.829313,
"z": 65.16128
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 10.0,
"heightType": "Center",
"length": 300.0,
"useHeight": true,
"width": 300.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "NoReviveRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": true
}
},
"forces": {},
"points": {
"1": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70120003,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": -151.9109,
"y": 14.26057,
"z": 67.59293
},
"rot": {
"x": 0.0,
"y": 92.1265,
"z": 0.0
},
"size": {
"x": 30.0,
"y": 10.0,
"z": 30.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"2": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": -147.178,
"y": 19.01648,
"z": 35.73881
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 3.0,
"y": 3.0,
"z": 3.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"3": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70120003,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": -110.1086,
"y": -12.62836,
"z": 116.9518
},
"rot": {
"x": 0.0,
"y": 92.1265,
"z": 0.0
},
"size": {
"x": 30.0,
"y": 10.0,
"z": 30.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}