mirror of
https://gitlab.com/YuukiPS/GSServer-CBT.git
synced 2025-08-03 02:10:12 +03:00
melon
This commit is contained in:
22
soggy_resources/lua/Scene/1010/scene1010.lua
Normal file
22
soggy_resources/lua/Scene/1010/scene1010.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
-- 地图配置
|
||||
scene_config = {
|
||||
begin_pos = { x = 0.0, z = -6986.0 },
|
||||
size = { x = 3436.0, z = 6986.0 },
|
||||
born_pos = { x = 1499.3, y = 275.4, z = -5506.6 },
|
||||
born_rot = { x = 0.0, y = 230.1, z = 0.0 },
|
||||
die_y = -50
|
||||
}
|
||||
|
||||
-- 所有的区块
|
||||
blocks = { 1010 }
|
||||
|
||||
-- 所有的区块范围坐标
|
||||
block_rects = {
|
||||
{ min = { x = 0.0, z = -6986.0 }, max = { x = 3436.0, z = 0.0 } }
|
||||
}
|
||||
|
||||
-- Dummy Points
|
||||
dummy_points = { "dummy_points" }
|
||||
|
||||
-- Routes
|
||||
routes_config = { }
|
98
soggy_resources/lua/Scene/1010/scene1010_1010_routes.json
Normal file
98
soggy_resources/lua/Scene/1010/scene1010_1010_routes.json
Normal file
@@ -0,0 +1,98 @@
|
||||
{
|
||||
"sceneId": 1010,
|
||||
"routes": [
|
||||
{
|
||||
"localId": 1,
|
||||
"name": "Route_001",
|
||||
"type": "Reciprocate",
|
||||
"points": [
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": 1301.3927,
|
||||
"y": 263.603333,
|
||||
"z": -5613.39063
|
||||
}
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": 1291.09875,
|
||||
"y": 263.603333,
|
||||
"z": -5623.05127
|
||||
}
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": 1286.04907,
|
||||
"y": 263.843353,
|
||||
"z": -5633.03857
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"localId": 2,
|
||||
"name": "Route_002",
|
||||
"type": "OneWay",
|
||||
"points": [
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 2,
|
||||
"pos": {
|
||||
"x": 1254.9259,
|
||||
"y": 264.165161,
|
||||
"z": -5830.544
|
||||
}
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 2,
|
||||
"pos": {
|
||||
"x": 1264.7627,
|
||||
"y": 264.075,
|
||||
"z": -5788.758
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"localId": 3,
|
||||
"name": "Route_003",
|
||||
"type": "OneWay",
|
||||
"points": [
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 2,
|
||||
"pos": {
|
||||
"x": 1222.498,
|
||||
"y": 256.042175,
|
||||
"z": -5561.90039
|
||||
}
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 2,
|
||||
"pos": {
|
||||
"x": 1236.30212,
|
||||
"y": 256.1084,
|
||||
"z": -5577.07666
|
||||
}
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 2,
|
||||
"pos": {
|
||||
"x": 1247.38867,
|
||||
"y": 256.3302,
|
||||
"z": -5582.307
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
7
soggy_resources/lua/Scene/1010/scene1010_block1010.lua
Normal file
7
soggy_resources/lua/Scene/1010/scene1010_block1010.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
-- 所有的group
|
||||
groups = {
|
||||
{ id = 201010001, refresh_time = 0, pos = { x = 1522.4, y = 241.3, z = -5712.1 } },
|
||||
{ id = 201010002, refresh_time = 0, pos = { x = 1258.3, y = 262.2, z = -5593.0 } },
|
||||
{ id = 201010003, refresh_time = 0, pos = { x = 1265.7, y = 262.3, z = -5784.9 } },
|
||||
{ id = 201010004, refresh_time = 0, pos = { x = 1375.5, y = 235.5, z = -5663.2 } }
|
||||
}
|
@@ -0,0 +1,2 @@
|
||||
dummy_points = {
|
||||
}
|
120
soggy_resources/lua/Scene/1010/scene1010_group201010001.lua
Normal file
120
soggy_resources/lua/Scene/1010/scene1010_group201010001.lua
Normal file
@@ -0,0 +1,120 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 1, monster_id = 21010501, pos = { x = 1467.8, y = 255.0, z = -5676.6 }, rot = { x = 0.0, y = 285.1, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 2, monster_id = 21010501, pos = { x = 1480.9, y = 255.5, z = -5694.6 }, rot = { x = 0.0, y = 294.5, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 3, monster_id = 21010501, pos = { x = 1527.1, y = 249.0, z = -5681.6 }, rot = { x = 0.0, y = 203.4, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 4, monster_id = 21020201, pos = { x = 1591.5, y = 247.2, z = -5736.5 }, rot = { x = 0.0, y = 144.2, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 5, monster_id = 21010301, pos = { x = 1532.5, y = 241.5, z = -5727.3 }, rot = { x = 0.0, y = 187.5, z = 0.0 }, level = 0 },
|
||||
{ config_id = 9, monster_id = 21010201, pos = { x = 1491.8, y = 243.1, z = -5711.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 10, monster_id = 21010201, pos = { x = 1583.7, y = 243.8, z = -5733.9 }, rot = { x = 0.0, y = 114.1, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 12, monster_id = 21010201, pos = { x = 1589.1, y = 243.5, z = -5728.5 }, rot = { x = 0.0, y = 167.5, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 52, monster_id = 21020101, pos = { x = 1584.9, y = 243.7, z = -5654.4 }, rot = { x = 0.0, y = 209.6, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 53, monster_id = 21010301, pos = { x = 1218.5, y = 256.3, z = -5610.8 }, rot = { x = 0.0, y = 52.4, z = 0.0 }, level = 0, disableWander = true }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 4, gadget_id = 70210032, pos = { x = 1577.7, y = 244.1, z = -5666.5 }, rot = { x = 0.0, y = 227.8, z = 0.0 }, level = 1, chest_drop_id = 303122, state = GadgetState.ChestLocked }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 2, shape = RegionShape.SPHERE, radius = 15, pos = { x = 1577.6, y = 245.7, z = -5667.7 } },
|
||||
{ config_id = 3, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1564.1, y = 244.8, z = -5656.4 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ name = "ENTER_REGION_2", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2", action = "action_EVENT_ENTER_REGION_2" },
|
||||
{ name = "CHALLENGE_SUCCESS_3", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "1", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_3" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
rand_suite = true,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { 1, 4, 5, 9, 10, 12, 53 },
|
||||
gadgets = { 4 },
|
||||
regions = { 2, 3 },
|
||||
triggers = { "ENTER_REGION_2", "CHALLENGE_SUCCESS_3" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_2(context, evt)
|
||||
if evt.param1 ~= 2 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_2(context, evt)
|
||||
-- 创建编号为1(该挑战的识别id),挑战内容为110的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
|
||||
if 0 ~= ScriptLib.ActiveChallenge(context, 1, 110, 30, 201010001, 52, 0) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 延迟0秒刷怪
|
||||
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 52, delay_time = 0 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_CHALLENGE_SUCCESS_3(context, evt)
|
||||
-- 将configid为 4 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4, GadgetState.Default) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
107
soggy_resources/lua/Scene/1010/scene1010_group201010002.lua
Normal file
107
soggy_resources/lua/Scene/1010/scene1010_group201010002.lua
Normal file
@@ -0,0 +1,107 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 15, monster_id = 21010501, pos = { x = 1304.7, y = 270.8, z = -5610.9 }, rot = { x = 0.0, y = 145.8, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 16, monster_id = 21010501, pos = { x = 1284.4, y = 270.5, z = -5638.3 }, rot = { x = 0.0, y = 83.8, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 42, monster_id = 21010501, pos = { x = 1278.9, y = 262.5, z = -5575.5 }, rot = { x = 0.0, y = 183.0, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 43, monster_id = 21010501, pos = { x = 1257.5, y = 262.7, z = -5605.5 }, rot = { x = 0.0, y = 45.3, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 44, monster_id = 21010501, pos = { x = 1247.7, y = 262.7, z = -5615.2 }, rot = { x = 0.0, y = 153.1, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 45, monster_id = 21010501, pos = { x = 1214.2, y = 262.8, z = -5590.1 }, rot = { x = 0.0, y = 91.9, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 46, monster_id = 21010501, pos = { x = 1241.1, y = 264.4, z = -5586.8 }, rot = { x = 0.0, y = 138.6, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 47, monster_id = 21010501, pos = { x = 1212.6, y = 266.7, z = -5555.1 }, rot = { x = 0.0, y = 125.4, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 48, monster_id = 21010501, pos = { x = 1236.0, y = 262.5, z = -5557.4 }, rot = { x = 0.0, y = 153.2, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 49, monster_id = 21010501, pos = { x = 1254.2, y = 263.7, z = -5590.9 }, rot = { x = 0.0, y = 166.3, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 50, monster_id = 21010201, pos = { x = 1248.7, y = 256.4, z = -5529.9 }, rot = { x = 0.0, y = 197.7, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 51, monster_id = 21010301, pos = { x = 1275.5, y = 256.0, z = -5607.6 }, rot = { x = 0.0, y = 115.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 54, monster_id = 21010301, pos = { x = 1275.4, y = 255.7, z = -5605.6 }, rot = { x = 0.0, y = 101.1, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 55, monster_id = 21020201, pos = { x = 1219.8, y = 256.0, z = -5559.3 }, rot = { x = 0.0, y = 122.3, z = 0.0 }, level = 0 }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 2, gadget_id = 70210031, pos = { x = 1200.1, y = 271.7, z = -5558.3 }, rot = { x = 0.0, y = 117.1, z = 0.0 }, level = 1, chest_drop_id = 303122 },
|
||||
{ config_id = 7, gadget_id = 70350003, pos = { x = 1248.3, y = 255.7, z = -5578.6 }, rot = { x = 0.0, y = 22.2, z = 0.0 }, level = 1, state = GadgetState.GearStart },
|
||||
{ config_id = 8, gadget_id = 70210031, pos = { x = 1251.7, y = 256.0, z = -5571.1 }, rot = { x = 0.0, y = 206.0, z = 0.0 }, level = 1, chest_drop_id = 303122 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 5, shape = RegionShape.SPHERE, radius = 17.5, pos = { x = 1249.9, y = 256.1, z = -5577.8 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ name = "ENTER_REGION_5", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5", action = "action_EVENT_ENTER_REGION_5" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
rand_suite = true,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { 15, 16, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 54 },
|
||||
gadgets = { 2, 7, 8 },
|
||||
regions = { 5 },
|
||||
triggers = { "ENTER_REGION_5" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_5(context, evt)
|
||||
if evt.param1 ~= 5 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_5(context, evt)
|
||||
-- 延迟0秒刷怪
|
||||
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 55, delay_time = 0 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
99
soggy_resources/lua/Scene/1010/scene1010_group201010003.lua
Normal file
99
soggy_resources/lua/Scene/1010/scene1010_group201010003.lua
Normal file
@@ -0,0 +1,99 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 33, monster_id = 21010501, pos = { x = 1341.5, y = 278.3, z = -5731.0 }, rot = { x = 0.0, y = 15.7, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 34, monster_id = 21010501, pos = { x = 1302.7, y = 276.8, z = -5797.3 }, rot = { x = 0.0, y = 310.4, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 35, monster_id = 22010101, pos = { x = 1283.9, y = 263.5, z = -5794.1 }, rot = { x = 0.0, y = 310.9, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 36, monster_id = 21030201, pos = { x = 1241.5, y = 263.3, z = -5789.9 }, rot = { x = 0.0, y = 72.3, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 37, monster_id = 21030301, pos = { x = 1262.7, y = 262.3, z = -5751.5 }, rot = { x = 0.0, y = 133.1, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 38, monster_id = 21020201, pos = { x = 1254.4, y = 264.5, z = -5833.5 }, rot = { x = 0.0, y = 11.4, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 39, monster_id = 21010501, pos = { x = 1265.9, y = 277.8, z = -5729.6 }, rot = { x = 0.0, y = 150.6, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 40, monster_id = 21010501, pos = { x = 1226.7, y = 280.2, z = -5775.9 }, rot = { x = 0.0, y = 131.3, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 41, monster_id = 21010201, pos = { x = 1334.7, y = 251.9, z = -5767.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 1, gadget_id = 70210032, pos = { x = 1265.7, y = 263.0, z = -5780.4 }, rot = { x = 0.0, y = 58.2, z = 0.0 }, level = 1, chest_drop_id = 303122, state = GadgetState.ChestLocked }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 4, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1264.8, y = 262.7, z = -5782.2 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
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 = { 33, 34, 35, 36, 37, 38, 39, 40, 41 },
|
||||
gadgets = { 1 },
|
||||
regions = { 4 },
|
||||
triggers = { "ANY_MONSTER_DIE_4" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_4(context, evt)
|
||||
--判断死亡怪物的configid是否为 38
|
||||
if evt.param1 ~= 38 then
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_4(context, evt)
|
||||
-- 将configid为 1 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1, GadgetState.Default) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
211
soggy_resources/lua/Scene/1010/scene1010_group201010004.lua
Normal file
211
soggy_resources/lua/Scene/1010/scene1010_group201010004.lua
Normal file
@@ -0,0 +1,211 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 9, gadget_id = 70360002, pos = { x = 1393.3, y = 242.7, z = -5659.9 }, rot = { x = 0.0, y = 142.1, z = 0.0 }, level = 1 },
|
||||
{ config_id = 10, gadget_id = 70360002, pos = { x = 1361.3, y = 242.1, z = -5646.3 }, rot = { x = 0.0, y = 289.6, z = 0.0 }, level = 1 },
|
||||
{ config_id = 11, gadget_id = 70360002, pos = { x = 1378.4, y = 242.7, z = -5689.4 }, rot = { x = 0.0, y = 10.5, z = 0.0 }, level = 1 },
|
||||
{ config_id = 12, gadget_id = 70350003, pos = { x = 1377.6, y = 233.5, z = -5661.1 }, rot = { x = 0.0, y = 42.2, z = 0.0 }, level = 1 },
|
||||
{ config_id = 13, gadget_id = 70350003, pos = { x = 1377.3, y = 233.5, z = -5663.3 }, rot = { x = 0.0, y = 341.2, z = 0.0 }, level = 1 },
|
||||
{ config_id = 14, gadget_id = 70350003, pos = { x = 1375.9, y = 233.5, z = -5662.1 }, rot = { x = 355.7, y = 97.9, z = 359.7 }, level = 1 },
|
||||
{ config_id = 15, gadget_id = 70900202, pos = { x = 1373.3, y = 235.5, z = -5667.8 }, rot = { x = 0.0, y = 19.7, z = 0.0 }, level = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 6, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1394.1, y = 236.4, z = -5658.9 } },
|
||||
{ config_id = 7, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1361.9, y = 235.5, z = -5645.7 } },
|
||||
{ config_id = 8, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1378.3, y = 236.0, z = -5687.5 } },
|
||||
{ config_id = 9, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1392.2, y = 235.5, z = -5657.0 } },
|
||||
{ config_id = 10, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1377.2, y = 235.5, z = -5684.3 } },
|
||||
{ config_id = 11, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1366.6, y = 235.5, z = -5644.4 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ name = "GADGET_CREATE_6", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_6", action = "action_EVENT_GADGET_CREATE_6" },
|
||||
{ name = "GADGET_CREATE_7", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_7", action = "action_EVENT_GADGET_CREATE_7" },
|
||||
{ name = "GADGET_CREATE_8", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_8", action = "action_EVENT_GADGET_CREATE_8" },
|
||||
{ name = "SELECT_OPTION_9", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_9", action = "action_EVENT_SELECT_OPTION_9" },
|
||||
{ name = "SELECT_OPTION_10", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_10", action = "action_EVENT_SELECT_OPTION_10" },
|
||||
{ name = "SELECT_OPTION_11", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_11", action = "action_EVENT_SELECT_OPTION_11" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
rand_suite = true,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 9, 10, 11, 12, 13, 14, 15 },
|
||||
regions = { 6, 7, 8, 9, 10, 11 },
|
||||
triggers = { "GADGET_CREATE_6", "GADGET_CREATE_7", "GADGET_CREATE_8", "SELECT_OPTION_9", "SELECT_OPTION_10", "SELECT_OPTION_11" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_CREATE_6(context, evt)
|
||||
if 9 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_CREATE_6(context, evt)
|
||||
-- 设置操作台选项
|
||||
if 0 ~= ScriptLib.SetWorktopOptions(context, {24}) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_CREATE_7(context, evt)
|
||||
if 10 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_CREATE_7(context, evt)
|
||||
-- 设置操作台选项
|
||||
if 0 ~= ScriptLib.SetWorktopOptions(context, {24}) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_CREATE_8(context, evt)
|
||||
if 11 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_CREATE_8(context, evt)
|
||||
-- 设置操作台选项
|
||||
if 0 ~= ScriptLib.SetWorktopOptions(context, {24}) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_9(context, evt)
|
||||
-- 判断是gadgetid 9
|
||||
if 9 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_9(context, evt)
|
||||
-- 根据不同的选项做不同的操作
|
||||
if 24 == evt.param2 then
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 12, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_10(context, evt)
|
||||
-- 判断是gadgetid 10
|
||||
if 10 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_10(context, evt)
|
||||
-- 根据不同的选项做不同的操作
|
||||
if 24 == evt.param2 then
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 13, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_11(context, evt)
|
||||
-- 判断是gadgetid 11
|
||||
if 11 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_11(context, evt)
|
||||
-- 根据不同的选项做不同的操作
|
||||
if 24 == evt.param2 then
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 14, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
8
soggy_resources/lua/Scene/1010/scene1010_point.json
Normal file
8
soggy_resources/lua/Scene/1010/scene1010_point.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"radius": 100.0,
|
||||
"points": {},
|
||||
"areas": {},
|
||||
"forces": {},
|
||||
"entities": {},
|
||||
"doors": {}
|
||||
}
|
Reference in New Issue
Block a user