mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-23 14:32:27 +08:00
更新配置表
This commit is contained in:
24
gdconf/game_data_config/lua/scene/51019/scene51019.lua
Normal file
24
gdconf/game_data_config/lua/scene/51019/scene51019.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
-- 地图配置
|
||||
scene_config = {
|
||||
begin_pos = { x = -512.0, z = -512.0 },
|
||||
size = { x = 1024.0, z = 1024.0 },
|
||||
born_pos = { x = 46.282, y = 0.000, z = -68.704 },
|
||||
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
|
||||
die_y = -20,
|
||||
city_id = 4,
|
||||
vision_anchor = { x = -1000.0, z = -1000.0 }
|
||||
}
|
||||
|
||||
-- 所有的区块
|
||||
blocks = { 51019 }
|
||||
|
||||
-- 所有的区块范围坐标
|
||||
block_rects = {
|
||||
{ min = { x = -512.0, z = -512.0 }, max = { x = 512.0, z = 512.0 } }
|
||||
}
|
||||
|
||||
-- Dummy Points
|
||||
dummy_points = { }
|
||||
|
||||
-- Routes
|
||||
routes_config = { "routes" }
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"sceneId": 51019,
|
||||
"routes": [
|
||||
{
|
||||
"localId": 1,
|
||||
"name": "Route_001",
|
||||
"type": "OneWay",
|
||||
"rotType": "ROT_NONE",
|
||||
"rotAngleType": "ROT_ANGLE_Y",
|
||||
"arriveRange": 2.0,
|
||||
"isSimulateTempRouteByTime": true,
|
||||
"points": [
|
||||
{
|
||||
"pos": {
|
||||
"x": 46.2651558,
|
||||
"y": 0.06588578,
|
||||
"z": -41.1557579
|
||||
},
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 1
|
||||
},
|
||||
{
|
||||
"pos": {
|
||||
"x": 46.277977,
|
||||
"y": 0.06588578,
|
||||
"z": -31.2746181
|
||||
},
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 1
|
||||
},
|
||||
{
|
||||
"pos": {
|
||||
"x": -6.681779,
|
||||
"y": 0.06588578,
|
||||
"z": -31.2694054
|
||||
},
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
-- 所有的group
|
||||
groups = {
|
||||
{ id = 251019001, refresh_id = 1002, pos = { x = 46.420, y = 0.055, z = -45.880 } },
|
||||
{ id = 251019002, refresh_id = 1001, pos = { x = -43.769, y = 16.402, z = 40.452 } },
|
||||
{ id = 251019003, refresh_id = 1, pos = { x = 45.059, y = 26.738, z = 24.143 } }
|
||||
}
|
||||
@@ -0,0 +1,230 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 251019001
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 1001, monster_id = 21010101, pos = { x = 53.329, y = 0.066, z = -41.156 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 1002, monster_id = 21010101, pos = { x = 56.781, y = 0.067, z = -41.398 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 1010, monster_id = 21020201, pos = { x = -43.656, y = -0.001, z = 0.442 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 1004, gadget_id = 70350003, pos = { x = 16.224, y = 0.232, z = -16.646 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 1005, gadget_id = 70310108, pos = { x = -4.302, y = 2.460, z = -31.231 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 1007, gadget_id = 70310108, pos = { x = -30.639, y = 2.320, z = -31.240 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 1008, gadget_id = 70350003, pos = { x = -43.919, y = 0.232, z = -15.956 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
|
||||
{ config_id = 1011, gadget_id = 70350004, pos = { x = -43.727, y = 0.193, z = 13.660 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 1012, gadget_id = 70350003, pos = { x = -43.861, y = 12.192, z = 12.990 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 1003, shape = RegionShape.SPHERE, radius = 5, pos = { x = 46.420, y = 0.055, z = -60.174 } },
|
||||
{ config_id = 1006, shape = RegionShape.SPHERE, radius = 5, pos = { x = -5.899, y = 2.460, z = -31.231 } },
|
||||
{ config_id = 1009, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = -43.919, y = 2.755, z = -9.199 } },
|
||||
{ config_id = 1014, shape = RegionShape.SPHERE, radius = 5, pos = { x = -43.861, y = 14.396, z = 21.265 } },
|
||||
{ config_id = 1015, shape = RegionShape.CUBIC, size = { x = 5.000, y = 10.000, z = 10.000 }, pos = { x = -43.861, y = 2.159, z = 25.264 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ config_id = 1001003, name = "ENTER_REGION_1003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1003", action = "action_EVENT_ENTER_REGION_1003" },
|
||||
{ config_id = 1001006, name = "ENTER_REGION_1006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1006", action = "action_EVENT_ENTER_REGION_1006" },
|
||||
{ config_id = 1001009, name = "ENTER_REGION_1009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1009", action = "action_EVENT_ENTER_REGION_1009" },
|
||||
{ config_id = 1001013, name = "ANY_MONSTER_DIE_1013", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_1013", action = "action_EVENT_ANY_MONSTER_DIE_1013" },
|
||||
{ config_id = 1001014, name = "ENTER_REGION_1014", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1014", action = "action_EVENT_ENTER_REGION_1014" },
|
||||
{ config_id = 1001015, name = "ENTER_REGION_1015", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1015", action = "action_EVENT_ENTER_REGION_1015" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 1004, 1005, 1007, 1008, 1011, 1012 },
|
||||
regions = { 1003, 1006, 1009, 1014, 1015 },
|
||||
triggers = { "ENTER_REGION_1003", "ENTER_REGION_1006", "ENTER_REGION_1009", "ENTER_REGION_1014", "ENTER_REGION_1015" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 2,
|
||||
-- description = ,
|
||||
monsters = { 1001, 1002 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 3,
|
||||
-- description = ,
|
||||
monsters = { 1010 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { "ANY_MONSTER_DIE_1013" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_1003(context, evt)
|
||||
if evt.param1 ~= 1003 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_1003(context, evt)
|
||||
ScriptLib.AddExtraGroupSuite(context, 251019001, 2)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_1006(context, evt)
|
||||
if evt.param1 ~= 1006 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_1006(context, evt)
|
||||
ScriptLib.TransPlayerToPos(context, {uid_list = {evt.uid}, pos = {x=-33.64, y= 0.1, z=-31.24}, radius = 0.5, rot = {x=0, y=270, z=0}})
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_1009(context, evt)
|
||||
if evt.param1 ~= 1009 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_1009(context, evt)
|
||||
ScriptLib.SetGadgetStateByConfigId(context,1008, GadgetState.Default)
|
||||
|
||||
ScriptLib.AddExtraGroupSuite(context, 251019001, 3)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_1013(context, evt)
|
||||
--判断死亡怪物的configid是否为 1010
|
||||
if evt.param1 ~= 1010 then
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_1013(context, evt)
|
||||
ScriptLib.SetGadgetStateByConfigId(context,1011, GadgetState.GearStart)
|
||||
|
||||
ScriptLib.SetGadgetStateByConfigId(context,1012, GadgetState.GearStart)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_1014(context, evt)
|
||||
if evt.param1 ~= 1014 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_1014(context, evt)
|
||||
-- 将configid为 1012 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1012, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_1015(context, evt)
|
||||
if evt.param1 ~= 1015 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_1015(context, evt)
|
||||
ScriptLib.TransPlayerToPos(context, {uid_list = {evt.uid}, pos = {x=-32.83, y= 12.07, z=-1.23}, radius = 0.5, rot = {x=0, y=270, z=0}})
|
||||
|
||||
return 0
|
||||
end
|
||||
@@ -0,0 +1,172 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 251019002
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 2013, monster_id = 20010601, pos = { x = -47.410, y = 16.384, z = 51.392 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 2014, monster_id = 20010601, pos = { x = -40.313, y = 16.393, z = 51.200 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 2001, gadget_id = 70290141, pos = { x = -43.749, y = 16.402, z = 49.923 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 2002, gadget_id = 70310108, pos = { x = -43.519, y = 23.521, z = 72.044 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 2003, gadget_id = 70310108, pos = { x = -43.750, y = 38.857, z = 72.477 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 2004, gadget_id = 70310108, pos = { x = -58.589, y = 27.485, z = 34.418 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 2005, gadget_id = 70310108, pos = { x = -24.293, y = 27.876, z = 38.908 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 2008, gadget_id = 70290141, pos = { x = -28.049, y = 25.609, z = 51.731 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 2010, gadget_id = 70350004, pos = { x = -58.388, y = 25.858, z = 43.503 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 2011, gadget_id = 70350004, pos = { x = -27.956, y = 25.662, z = 58.355 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 2012, gadget_id = 70350004, pos = { x = -33.688, y = 25.664, z = 38.575 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 2015, gadget_id = 70360002, pos = { x = -59.798, y = 38.274, z = 58.227 }, rot = { x = 0.000, y = 0.000, z = 180.000 }, level = 1 },
|
||||
{ config_id = 2017, gadget_id = 70350003, pos = { x = 16.186, y = 0.232, z = 4.231 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 2018, gadget_id = 70290141, pos = { x = -51.128, y = 41.172, z = 69.534 }, rot = { x = 0.000, y = 180.000, z = 180.000 }, level = 1 },
|
||||
{ config_id = 2019, gadget_id = 70290141, pos = { x = 38.925, y = 31.581, z = 2.517 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 2006, shape = RegionShape.CUBIC, size = { x = 5.000, y = 10.000, z = 10.000 }, pos = { x = -58.589, y = 27.485, z = 32.143 } },
|
||||
{ config_id = 2007, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 5.000 }, pos = { x = -21.003, y = 27.876, z = 38.908 } },
|
||||
{ config_id = 2009, shape = RegionShape.CUBIC, size = { x = 5.000, y = 10.000, z = 5.000 }, pos = { x = -28.049, y = 27.159, z = 51.042 } },
|
||||
{ config_id = 2016, shape = RegionShape.CUBIC, size = { x = 5.000, y = 10.000, z = 5.000 }, pos = { x = -43.820, y = 22.305, z = 72.477 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ config_id = 1002006, name = "ENTER_REGION_2006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2006", action = "action_EVENT_ENTER_REGION_2006", trigger_count = 0 },
|
||||
{ config_id = 1002007, name = "ENTER_REGION_2007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2007", action = "action_EVENT_ENTER_REGION_2007", trigger_count = 0 },
|
||||
{ config_id = 1002009, name = "ENTER_REGION_2009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2009", action = "action_EVENT_ENTER_REGION_2009" },
|
||||
{ config_id = 1002016, name = "ENTER_REGION_2016", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2016", action = "action_EVENT_ENTER_REGION_2016", trigger_count = 0 }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { 2013, 2014 },
|
||||
gadgets = { 2001, 2008, 2010, 2011, 2012, 2015, 2017, 2018, 2019 },
|
||||
regions = { 2006, 2007, 2009, 2016 },
|
||||
triggers = { "ENTER_REGION_2006", "ENTER_REGION_2007", "ENTER_REGION_2009", "ENTER_REGION_2016" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_2006(context, evt)
|
||||
if evt.param1 ~= 2006 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_2006(context, evt)
|
||||
ScriptLib.TransPlayerToPos(context, {uid_list = {evt.uid}, pos = {x=-30.81, y= 25.65, z=38.848}, radius = 0.1, rot = {x=0, y=270, z=0}})
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_2007(context, evt)
|
||||
if evt.param1 ~= 2007 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_2007(context, evt)
|
||||
ScriptLib.TransPlayerToPos(context, {uid_list = {evt.uid}, pos = {x=-58.18, y= 25.63, z=39.37}, radius = 0.1, rot = {x=0, y=0, z=0}})
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_2009(context, evt)
|
||||
if evt.param1 ~= 2009 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_2009(context, evt)
|
||||
ScriptLib.SetGadgetStateByConfigId(context,2011, GadgetState.GearStart)
|
||||
|
||||
ScriptLib.SetGroupGadgetStateByConfigId(context, 251019003, 3005, GadgetState.GearStart)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_2016(context, evt)
|
||||
if evt.param1 ~= 2016 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_2016(context, evt)
|
||||
ScriptLib.TransPlayerToPos(context, {uid_list = {evt.uid}, pos = {x=46.19, y= 31.61, z=4.29}, radius = 0.1, rot = {x=0, y=0, z=0}})
|
||||
|
||||
return 0
|
||||
end
|
||||
@@ -0,0 +1,143 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 251019003
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 3001, gadget_id = 70350004, pos = { x = 45.204, y = 26.606, z = 16.155 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 3002, gadget_id = 70310108, pos = { x = 46.245, y = 33.864, z = -0.544 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 3004, gadget_id = 70350004, pos = { x = 31.523, y = 41.292, z = 28.141 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 3005, gadget_id = 70350004, pos = { x = 62.072, y = 41.178, z = 17.548 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 3006, gadget_id = 70350004, pos = { x = 56.556, y = 41.306, z = 33.408 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 3007, gadget_id = 70290141, pos = { x = 61.517, y = 47.135, z = 23.874 }, rot = { x = 0.000, y = 180.000, z = 180.000 }, level = 1 },
|
||||
{ config_id = 3008, gadget_id = 70360002, pos = { x = 29.807, y = 34.565, z = 13.183 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 3003, shape = RegionShape.CUBIC, size = { x = 5.000, y = 10.000, z = 10.000 }, pos = { x = 46.118, y = 33.864, z = -3.986 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ config_id = 1003003, name = "ENTER_REGION_3003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3003", action = "action_EVENT_ENTER_REGION_3003", trigger_count = 0 },
|
||||
{ config_id = 1003009, name = "GADGET_CREATE_3009", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_3009", action = "action_EVENT_GADGET_CREATE_3009" },
|
||||
{ config_id = 1003010, name = "SELECT_OPTION_3010", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3010", action = "action_EVENT_SELECT_OPTION_3010" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 3001, 3004, 3005, 3006, 3007, 3008 },
|
||||
regions = { 3003 },
|
||||
triggers = { "ENTER_REGION_3003", "GADGET_CREATE_3009", "SELECT_OPTION_3010" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_3003(context, evt)
|
||||
if evt.param1 ~= 3003 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_3003(context, evt)
|
||||
ScriptLib.TransPlayerToPos(context, {uid_list = {evt.uid}, pos = {x=-43.67, y= 20.71, z=68.10}, radius = 0.1, rot = {x=0, y=180, z=0}})
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_CREATE_3009(context, evt)
|
||||
if 3008 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_CREATE_3009(context, evt)
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 251019003, 3008, {1})
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_3010(context, evt)
|
||||
-- 判断是gadgetid 3008 option_id 1
|
||||
if 3008 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
if 1 ~= evt.param2 then
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_3010(context, evt)
|
||||
ScriptLib.SetGroupGadgetStateByConfigId(context, 251019003, 3004, GadgetState.GearStart)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 251019003, 3008, 1)
|
||||
|
||||
ScriptLib.SetGroupGadgetStateByConfigId(context, 251019002, 2010, GadgetState.GearStart)
|
||||
|
||||
return 0
|
||||
end
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"areas": {},
|
||||
"doors": {},
|
||||
"entities": {},
|
||||
"forces": {},
|
||||
"points": {},
|
||||
"transRadius": 0.0
|
||||
}
|
||||
Reference in New Issue
Block a user