添加配置表

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

View File

@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -392.1, z = -38.4 },
size = { x = 444.1, z = 301.0 },
born_pos = { x = 24.791, y = 1.112, z = -0.287 },
born_rot = { x = 0.000, y = 270.000, z = 0.000 },
die_y = -10,
city_id = 1,
vision_anchor = { x = -392.1, z = -38.4 }
}
-- 所有的区块
blocks = { 20005 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -392.1, z = -38.4 }, max = { x = 52.0, z = 262.6 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }

View File

@@ -0,0 +1,259 @@
{
"sceneId": 20005,
"routes": [
{
"localId": 1,
"name": "Route_001",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -177.765427,
"y": 22.0351181,
"z": 51.8262672
},
"waitTime": 0.0,
"speedLevel": 2
},
{
"pos": {
"x": -169.039749,
"y": 22.0351181,
"z": 44.6228447
},
"waitTime": 0.0,
"speedLevel": 2
}
]
},
{
"localId": 2,
"name": "Route_002",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -178.630112,
"y": 22.0351181,
"z": 34.5966721
},
"waitTime": 0.0,
"speedLevel": 2
},
{
"pos": {
"x": -169.5689,
"y": 22.03512,
"z": 41.18659
},
"waitTime": 0.0,
"speedLevel": 2
}
]
},
{
"localId": 3,
"name": "Route_003",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -190.0198,
"y": 22.0351181,
"z": 41.3672447
},
"waitTime": 0.0,
"speedLevel": 2
},
{
"pos": {
"x": -192.359756,
"y": 22.0351181,
"z": 41.45446
},
"waitTime": 0.0,
"speedLevel": 2
},
{
"pos": {
"x": -190.310974,
"y": 22.0351181,
"z": 54.9546661
},
"waitTime": 0.0,
"speedLevel": 2
},
{
"pos": {
"x": -195.050217,
"y": 22.0351181,
"z": 73.4584
},
"waitTime": 0.0,
"speedLevel": 2
},
{
"pos": {
"x": -192.906662,
"y": 22.0351181,
"z": 100.3242
},
"waitTime": 0.0,
"speedLevel": 2
},
{
"pos": {
"x": -191.5101,
"y": 25.7851181,
"z": 127.537468
},
"waitTime": 0.0,
"speedLevel": 2
}
]
},
{
"localId": 4,
"name": "Route_004",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -298.174469,
"y": 32.53512,
"z": 144.261368
},
"waitTime": 0.0,
"speedLevel": 2
},
{
"pos": {
"x": -280.513519,
"y": 32.53512,
"z": 159.65329
},
"waitTime": 0.0,
"speedLevel": 2
}
]
},
{
"localId": 5,
"name": "Route_005",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -293.829376,
"y": 32.53512,
"z": 194.476074
},
"waitTime": 0.0,
"speedLevel": 2
},
{
"pos": {
"x": -278.404419,
"y": 32.53512,
"z": 178.062119
},
"waitTime": 0.0,
"speedLevel": 2
}
]
},
{
"localId": 6,
"name": "Route_006",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -249.0408,
"y": 32.53512,
"z": 188.868866
},
"waitTime": 0.0,
"speedLevel": 2
},
{
"pos": {
"x": -265.827,
"y": 32.53512,
"z": 177.675888
},
"waitTime": 0.0,
"speedLevel": 2
}
]
},
{
"localId": 7,
"name": "Route_007",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -250.21077,
"y": 32.53512,
"z": 150.048569
},
"waitTime": 0.0,
"speedLevel": 2
},
{
"pos": {
"x": -264.817566,
"y": 32.53512,
"z": 162.541412
},
"waitTime": 0.0,
"speedLevel": 2
}
]
},
{
"localId": 8,
"name": "Route_008",
"type": "Loop",
"rotType": "ROT_ANGLE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -230.9205,
"y": 27.37835,
"z": 171.3397
},
"waitTime": 1.0,
"targetVelocity": 9.0,
"rotAngleMoveSpeed": 30.0,
"rotAngleWaitSpeed": 45.0,
"rotAngleSameStop": false
}
]
}
]
}

View File

@@ -0,0 +1,13 @@
-- 所有的group
groups = {
{ id = 220005001, refresh_id = 1001, pos = { x = -7.773, y = 4.285, z = 1.195 } },
{ id = 220005002, refresh_id = 1002, pos = { x = -51.282, y = 4.285, z = 1.363 } },
{ id = 220005003, refresh_id = 1, pos = { x = -114.092, y = 22.035, z = 42.264 } },
{ id = 220005004, refresh_id = 999999, pos = { x = -155.123, y = 22.035, z = 42.764 } },
{ id = 220005005, refresh_id = 1001, pos = { x = -174.156, y = 22.035, z = 41.447 } },
{ id = 220005006, refresh_id = 1001, pos = { x = -190.625, y = 25.785, z = 124.296 } },
{ id = 220005008, refresh_id = 999999, pos = { x = -209.359, y = 25.785, z = 156.519 } },
{ id = 220005009, refresh_id = 1003, pos = { x = -289.145, y = 33.145, z = 168.356 } },
{ id = 220005010, refresh_id = 1, pos = { x = -230.583, y = 25.143, z = 172.556 } },
{ id = 220005011, refresh_id = 1, pos = { x = -282.762, y = 31.535, z = 177.166 } }
}

View File

@@ -0,0 +1,9 @@
dummy_points = {
["Q1100403FreezeBoar"] = { pos = { x = -293.566, y = 31.767, z = 172.299 }, rot = { x = 0.000, y = 148.687, z = 0.000 } },
["Q1100403Paimon"] = { pos = { x = -292.570, y = 31.760, z = 171.541 }, rot = { x = 0.000, y = 241.974, z = 0.000 } },
["Q1100403PlayerPos"] = { pos = { x = -292.901, y = 31.747, z = 170.159 }, rot = { x = 0.000, y = 317.137, z = 0.000 } },
["Q1100403XL"] = { pos = { x = -294.330, y = 31.756, z = 171.002 }, rot = { x = 0.000, y = 95.001, z = 0.000 } },
["Q1100498FB"] = { pos = { x = -290.104, y = 31.749, z = 172.124 }, rot = { x = 0.000, y = 144.803, z = 0.000 } },
["Q1100498FreezeBoar"] = { pos = { x = -293.578, y = 31.767, z = 172.303 }, rot = { x = 0.000, y = 147.141, z = 0.000 } },
["Q1100498Trigger"] = { pos = { x = -268.690, y = 31.480, z = 172.309 }, rot = { x = 0.000, y = 0.000, z = 0.000 } }
}

View File

@@ -0,0 +1,155 @@
-- 基础信息
local base_info = {
group_id = 220005001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1005, monster_id = 21010301, pos = { x = -5.467, y = 4.613, z = 3.862 }, rot = { x = 0.330, y = 181.830, z = 0.010 }, level = 1, disableWander = true, pose_id = 9003 },
{ config_id = 1006, monster_id = 21010201, pos = { x = -11.963, y = 4.465, z = -0.559 }, rot = { x = 0.000, y = 41.696, z = 0.000 }, level = 1 },
{ config_id = 1007, monster_id = 21010201, pos = { x = -7.644, y = 4.465, z = -3.020 }, rot = { x = 0.000, y = 176.644, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70900007, pos = { x = -8.031, y = 4.606, z = 0.816 }, rot = { x = 0.000, y = 91.701, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 1002, gadget_id = 70350005, pos = { x = -27.151, y = 4.307, z = 0.491 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1001003, name = "GADGET_STATE_CHANGE_1003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_1003", action = "action_EVENT_GADGET_STATE_CHANGE_1003", trigger_count = 0 },
{ config_id = 1001004, name = "TIMER_EVENT_1004", event = EventType.EVENT_TIMER_EVENT, source = "delay", condition = "", action = "action_EVENT_TIMER_EVENT_1004", trigger_count = 0 },
{ config_id = 1001008, name = "ANY_MONSTER_DIE_1008", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_1008", action = "action_EVENT_ANY_MONSTER_DIE_1008" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 1005, 1006, 1007 },
gadgets = { 1001, 1002 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_1003", "TIMER_EVENT_1004", "ANY_MONSTER_DIE_1008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_1003(context, evt)
if 1001 ~= evt.param2 or GadgetState.Action02 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_1003(context, evt)
-- 将configid为 1002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 延迟1秒后,向groupId为220005001的对象,请求一次调用,并将string参数"delay" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220005001, "delay", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_1004(context, evt)
-- 将configid为 1001 的物件更改为状态 GadgetState.Action01
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1001, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_1008(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_1008(context, evt)
-- 将configid为 1001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1001 的物件更改为状态 GadgetState.Action01
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1001, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "22000502") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end

View File

@@ -0,0 +1,146 @@
-- 基础信息
local base_info = {
group_id = 220005002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2002, monster_id = 21010601, pos = { x = -56.332, y = 4.285, z = 0.635 }, rot = { x = 359.819, y = 89.555, z = 1.185 }, level = 1, pose_id = 9012 },
{ config_id = 2003, monster_id = 21010601, pos = { x = -51.859, y = 4.285, z = -3.455 }, rot = { x = 359.819, y = 1.642, z = 1.185 }, level = 1, pose_id = 9012 },
{ config_id = 2004, monster_id = 21010601, pos = { x = -51.766, y = 4.285, z = 4.056 }, rot = { x = 359.819, y = 179.621, z = 1.185 }, level = 1, pose_id = 9012 },
{ config_id = 2005, monster_id = 21020101, pos = { x = -56.632, y = 4.285, z = 9.983 }, rot = { x = 0.000, y = 157.501, z = 0.000 }, level = 1, disableWander = true, pose_id = 401 },
{ config_id = 2009, monster_id = 21010901, pos = { x = -69.714, y = 10.638, z = 11.160 }, rot = { x = 0.000, y = 131.936, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 2017, monster_id = 20010801, pos = { x = -64.738, y = 4.578, z = 7.185 }, rot = { x = 0.000, y = 43.541, z = 0.000 }, level = 1 },
{ config_id = 2022, monster_id = 20010801, pos = { x = -63.311, y = 4.473, z = 10.924 }, rot = { x = 0.000, y = 91.052, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70300099, pos = { x = -52.121, y = 4.285, z = 0.515 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2006, gadget_id = 70220013, pos = { x = -62.915, y = 4.285, z = 14.454 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2007, gadget_id = 70220013, pos = { x = -64.652, y = 4.285, z = 13.303 }, rot = { x = 0.000, y = 22.704, z = 0.000 }, level = 1 },
{ config_id = 2008, gadget_id = 70350018, pos = { x = -68.214, y = 4.351, z = 11.613 }, rot = { x = 1.315, y = 230.585, z = 359.007 }, level = 1 },
{ config_id = 2010, gadget_id = 70300097, pos = { x = -58.278, y = 4.285, z = 12.233 }, rot = { x = 0.000, y = 339.558, z = 0.000 }, level = 1 },
{ config_id = 2011, gadget_id = 70220013, pos = { x = -59.376, y = 4.217, z = -12.925 }, rot = { x = 0.000, y = 358.395, z = 0.000 }, level = 1 },
{ config_id = 2012, gadget_id = 70220013, pos = { x = -60.139, y = 4.285, z = -10.589 }, rot = { x = 0.000, y = 17.004, z = 0.000 }, level = 1 },
{ config_id = 2013, gadget_id = 70220014, pos = { x = -55.431, y = 4.285, z = 13.535 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2014, gadget_id = 70220014, pos = { x = -52.094, y = 4.285, z = -4.917 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2015, gadget_id = 70220014, pos = { x = -53.517, y = 4.285, z = -4.554 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2016, gadget_id = 70220014, pos = { x = -52.892, y = 4.285, z = -5.675 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2018, gadget_id = 70900201, pos = { x = -72.694, y = 20.182, z = 10.933 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2020, gadget_id = 70211012, pos = { x = -58.264, y = 4.483, z = 12.448 }, rot = { x = 0.000, y = 136.473, z = 0.000 }, level = 6, drop_tag = "战斗中级蒙德", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 2019, shape = RegionShape.SPHERE, radius = 5, pos = { x = -74.495, y = 22.311, z = 11.581 } }
}
-- 触发器
triggers = {
{ config_id = 1002019, name = "ENTER_REGION_2019", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2019", action = "action_EVENT_ENTER_REGION_2019", forbid_guest = false },
{ config_id = 1002021, name = "ANY_MONSTER_DIE_2021", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_2021", action = "action_EVENT_ANY_MONSTER_DIE_2021" }
}
-- 变量
variables = {
{ config_id = 1, name = "iskill", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 2002, 2003, 2004, 2005, 2009, 2017, 2022 },
gadgets = { 2001, 2006, 2007, 2008, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2020 },
regions = { 2019 },
triggers = { "ENTER_REGION_2019", "ANY_MONSTER_DIE_2021" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_2019(context, evt)
if evt.param1 ~= 2019 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_2019(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 2018 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_2021(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_2021(context, evt)
-- 解锁目标2020
if 0 ~= ScriptLib.ChangeGroupGadget(context, { config_id = 2020, state = GadgetState.Default }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : unlock_gadget")
return -1
end
-- 创建id为2018的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2018 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end

View File

@@ -0,0 +1,198 @@
-- 基础信息
local base_info = {
group_id = 220005003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70350025, pos = { x = -141.114, y = 21.631, z = 43.203 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 3002, gadget_id = 70900007, pos = { x = -109.686, y = 15.229, z = 42.878 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3004, gadget_id = 70211001, pos = { x = -203.739, y = 21.651, z = 83.760 }, rot = { x = 0.000, y = 89.814, z = 0.000 }, level = 6, drop_tag = "战斗低级蒙德", isOneoff = true, persistent = true },
{ config_id = 3005, gadget_id = 70350026, pos = { x = -139.278, y = 21.764, z = 41.828 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 3009, gadget_id = 70900023, pos = { x = -112.957, y = 14.184, z = 43.362 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3010, gadget_id = 70900201, pos = { x = -111.229, y = 17.877, z = 42.855 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3011, gadget_id = 70900201, pos = { x = -183.513, y = 24.773, z = 43.206 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3012, gadget_id = 70900023, pos = { x = -106.597, y = 14.200, z = 43.298 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 3003, shape = RegionShape.CUBIC, size = { x = 14.100, y = 6.060, z = 4.960 }, pos = { x = -80.875, y = 20.280, z = 23.786 } },
{ config_id = 3007, shape = RegionShape.CUBIC, size = { x = 6.670, y = 25.330, z = 52.420 }, pos = { x = -142.604, y = 22.871, z = 40.020 } },
{ config_id = 3008, shape = RegionShape.CUBIC, size = { x = 6.670, y = 25.330, z = 52.420 }, pos = { x = -136.222, y = 21.626, z = 39.293 } }
}
-- 触发器
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", forbid_guest = false },
{ config_id = 1003006, name = "GADGET_STATE_CHANGE_3006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_3006", action = "action_EVENT_GADGET_STATE_CHANGE_3006", trigger_count = 0 },
{ config_id = 1003007, name = "ENTER_REGION_3007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3007", action = "action_EVENT_ENTER_REGION_3007", trigger_count = 0, forbid_guest = false },
{ config_id = 1003008, name = "ENTER_REGION_3008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3008", action = "action_EVENT_ENTER_REGION_3008", trigger_count = 0, forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001, 3002, 3004, 3005, 3009, 3012 },
regions = { 3003, 3007, 3008 },
triggers = { "ENTER_REGION_3003", "GADGET_STATE_CHANGE_3006", "ENTER_REGION_3007", "ENTER_REGION_3008" },
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)
-- 触发镜头注目,注目位置为坐标(-1141743持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=-114, y=17, z=43}
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
-- 创建id为3010的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_3006(context, evt)
if 3002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_3006(context, evt)
-- 将configid为 3001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 3010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 创建id为3011的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3011 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3007(context, evt)
if evt.param1 ~= 3007 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_3007(context, evt)
-- 将configid为 3005 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3005, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3008(context, evt)
if evt.param1 ~= 3008 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_3008(context, evt)
-- 将configid为 3005 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3005, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,165 @@
-- 基础信息
local base_info = {
group_id = 220005004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 4002, monster_id = 20010801, pos = { x = -168.162, y = 22.035, z = 46.306 }, rot = { x = 0.000, y = 107.567, z = 0.000 }, level = 1, pose_id = 901 },
{ config_id = 4003, monster_id = 20010801, pos = { x = -170.306, y = 22.035, z = 39.320 }, rot = { x = 0.000, y = 42.246, z = 0.000 }, level = 1, pose_id = 901 },
{ config_id = 4004, monster_id = 20010801, pos = { x = -169.633, y = 22.035, z = 36.080 }, rot = { x = 1.598, y = 107.497, z = 354.944 }, level = 1, pose_id = 901 },
{ config_id = 4005, monster_id = 20010801, pos = { x = -167.131, y = 22.071, z = 36.973 }, rot = { x = 1.598, y = 107.497, z = 354.944 }, level = 1, pose_id = 901 },
{ config_id = 4006, monster_id = 20010801, pos = { x = -169.659, y = 22.121, z = 49.330 }, rot = { x = 1.598, y = 33.240, z = 354.944 }, level = 1, pose_id = 901 },
{ config_id = 4007, monster_id = 20010801, pos = { x = -167.191, y = 22.985, z = 49.594 }, rot = { x = 1.598, y = 130.759, z = 354.944 }, level = 1, pose_id = 901 },
{ config_id = 4019, monster_id = 20010801, pos = { x = -176.417, y = 23.437, z = 51.890 }, rot = { x = 0.000, y = 122.415, z = 0.000 }, level = 1 },
{ config_id = 4020, monster_id = 20010801, pos = { x = -177.858, y = 22.893, z = 51.247 }, rot = { x = 0.000, y = 122.415, z = 0.000 }, level = 1 },
{ config_id = 4021, monster_id = 20010801, pos = { x = -178.916, y = 24.041, z = 49.558 }, rot = { x = 0.000, y = 122.415, z = 0.000 }, level = 1 },
{ config_id = 4022, monster_id = 20010801, pos = { x = -179.443, y = 23.854, z = 35.451 }, rot = { x = 0.000, y = 33.097, z = 0.000 }, level = 1 },
{ config_id = 4023, monster_id = 20010801, pos = { x = -178.445, y = 23.941, z = 33.655 }, rot = { x = 0.000, y = 38.474, z = 0.000 }, level = 1 },
{ config_id = 4024, monster_id = 20010801, pos = { x = -178.443, y = 22.747, z = 35.064 }, rot = { x = 0.000, y = 167.471, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70350005, pos = { x = -183.966, y = 21.556, z = 42.990 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 4008, gadget_id = 70290008, pos = { x = -166.894, y = 21.573, z = 48.216 }, rot = { x = 0.000, y = 286.256, z = 0.000 }, level = 1, isOneoff = true },
{ config_id = 4009, gadget_id = 70500000, pos = { x = -166.894, y = 21.573, z = 48.216 }, rot = { x = 0.000, y = 286.304, z = 0.000 }, level = 1, point_type = 3008, isOneoff = true, owner = 4008 },
{ config_id = 4012, gadget_id = 70290008, pos = { x = -167.383, y = 21.695, z = 39.253 }, rot = { x = 0.000, y = 84.298, z = 0.000 }, level = 1, isOneoff = true },
{ config_id = 4013, gadget_id = 70500000, pos = { x = -167.383, y = 21.695, z = 39.253 }, rot = { x = 0.000, y = 84.253, z = 0.000 }, level = 1, point_type = 3008, isOneoff = true, owner = 4012 },
{ config_id = 4014, gadget_id = 70900201, pos = { x = -190.518, y = 27.837, z = 141.248 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1004010, name = "ANY_MONSTER_DIE_4010", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4010", action = "action_EVENT_ANY_MONSTER_DIE_4010" },
{ config_id = 1004011, name = "ANY_MONSTER_DIE_4011", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4011", action = "action_EVENT_ANY_MONSTER_DIE_4011" }
}
-- 变量
variables = {
{ config_id = 1, name = "is_4009", value = 0, no_refresh = true },
{ config_id = 2, name = "is_4013", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 4002, 4003, 4004, 4005, 4006, 4007 },
gadgets = { 4001, 4008, 4009, 4012, 4013 },
regions = { },
triggers = { "ANY_MONSTER_DIE_4010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 4019, 4020, 4021, 4022, 4023, 4024 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_4011" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4010(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4010(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220005004, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4011(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4011(context, evt)
-- 将configid为 4001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220005005, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 调用提示id为 200050201 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 200050201) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220005003, monsters = {}, gadgets = {3011} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创建id为4014的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 4014 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end

View File

@@ -0,0 +1,119 @@
-- 基础信息
local base_info = {
group_id = 220005005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 5001, monster_id = 20010801, pos = { x = -190.667, y = 22.035, z = 41.286 }, rot = { x = 0.000, y = 88.766, z = 0.000 }, level = 1 },
{ config_id = 5018, monster_id = 20010801, pos = { x = -197.650, y = 21.535, z = 52.337 }, rot = { x = 0.000, y = 136.230, z = 0.000 }, level = 1, pose_id = 901 },
{ config_id = 5019, monster_id = 20010801, pos = { x = -186.499, y = 21.535, z = 68.901 }, rot = { x = 0.000, y = 136.230, z = 0.000 }, level = 1, pose_id = 901 },
{ config_id = 5021, monster_id = 20010801, pos = { x = -201.049, y = 21.535, z = 83.420 }, rot = { x = 0.000, y = 136.230, z = 0.000 }, level = 1, pose_id = 901 },
{ config_id = 5022, monster_id = 20010801, pos = { x = -191.514, y = 22.757, z = 106.871 }, rot = { x = 0.000, y = 136.230, z = 0.000 }, level = 1, pose_id = 901 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5002, gadget_id = 70350019, pos = { x = -192.782, y = 21.535, z = 43.773 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 5003, gadget_id = 70350019, pos = { x = -189.902, y = 21.535, z = 62.723 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 5004, gadget_id = 70350019, pos = { x = -196.031, y = 21.535, z = 75.933 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 5005, gadget_id = 70350019, pos = { x = -186.761, y = 21.535, z = 90.163 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 5006, gadget_id = 70350019, pos = { x = -196.598, y = 21.807, z = 104.786 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 5009, gadget_id = 70350019, pos = { x = -194.398, y = 21.535, z = 52.220 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 5010, gadget_id = 70350019, pos = { x = -179.859, y = 25.236, z = 127.987 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 5012, gadget_id = 70350019, pos = { x = -190.311, y = 25.285, z = 118.547 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 5013, gadget_id = 70350019, pos = { x = -196.289, y = 25.285, z = 130.489 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
{ config_id = 5007, shape = RegionShape.SPHERE, radius = 10.27, pos = { x = -190.223, y = 21.695, z = 111.447 } }
}
-- 触发器
triggers = {
{ config_id = 1005007, name = "ENTER_REGION_5007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5007", action = "action_EVENT_ENTER_REGION_5007", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 5001, 5018, 5019, 5021, 5022 },
gadgets = { 5002, 5003, 5004, 5005, 5006, 5009, 5010, 5012, 5013 },
regions = { 5007 },
triggers = { "ENTER_REGION_5007" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_5007(context, evt)
if evt.param1 ~= 5007 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_5007(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220005005, monsters = {}, gadgets = {5002,5003,5004,5005} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
return 0
end

View File

@@ -0,0 +1,110 @@
-- 基础信息
local base_info = {
group_id = 220005006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 6003, monster_id = 20010801, pos = { x = -196.153, y = 25.785, z = 126.692 }, rot = { x = 0.000, y = 218.682, z = 0.000 }, level = 1, pose_id = 901 },
{ config_id = 6005, monster_id = 20010801, pos = { x = -191.355, y = 25.785, z = 126.603 }, rot = { x = 0.000, y = 218.682, z = 0.000 }, level = 1, pose_id = 901 },
{ config_id = 6006, monster_id = 20010801, pos = { x = -186.581, y = 25.785, z = 128.288 }, rot = { x = 0.000, y = 218.682, z = 0.000 }, level = 1, pose_id = 901 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6002, gadget_id = 70900201, pos = { x = -230.566, y = 30.560, z = 171.378 }, rot = { x = 0.000, y = 89.383, z = 0.000 }, level = 1 },
{ config_id = 6008, gadget_id = 70350005, pos = { x = -190.462, y = 25.143, z = 140.836 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1006009, name = "ANY_MONSTER_DIE_6009", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6009", action = "action_EVENT_ANY_MONSTER_DIE_6009" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 6003, 6005, 6006 },
gadgets = { 6008 },
regions = { },
triggers = { "ANY_MONSTER_DIE_6009" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6009(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6009(context, evt)
-- 将configid为 6008 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6008, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220005004, monsters = {}, gadgets = {4014} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创建id为6002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 6002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end

View File

@@ -0,0 +1,95 @@
-- 基础信息
local base_info = {
group_id = 220005008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8001, gadget_id = 70290008, pos = { x = -198.801, y = 25.309, z = 186.053 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true },
{ config_id = 8002, gadget_id = 70500000, pos = { x = -198.801, y = 25.309, z = 186.053 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3008, isOneoff = true, owner = 8001 },
{ config_id = 8003, gadget_id = 70290008, pos = { x = -238.289, y = 25.284, z = 152.546 }, rot = { x = 0.000, y = 51.809, z = 0.000 }, level = 1, isOneoff = true },
{ config_id = 8004, gadget_id = 70500000, pos = { x = -238.289, y = 25.284, z = 152.546 }, rot = { x = 0.000, y = 51.802, z = 0.000 }, level = 1, point_type = 3008, isOneoff = true, owner = 8003 },
{ config_id = 8005, gadget_id = 70290008, pos = { x = -243.934, y = 25.279, z = 158.293 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true },
{ config_id = 8006, gadget_id = 70500000, pos = { x = -243.934, y = 25.279, z = 158.293 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3008, isOneoff = true, owner = 8005 },
{ config_id = 8009, gadget_id = 70290008, pos = { x = -212.397, y = 25.314, z = 181.647 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true },
{ config_id = 8010, gadget_id = 70500000, pos = { x = -212.397, y = 25.314, z = 181.647 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3008, isOneoff = true, owner = 8009 },
{ config_id = 8011, gadget_id = 70290008, pos = { x = -234.102, y = 25.265, z = 187.049 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true },
{ config_id = 8012, gadget_id = 70500000, pos = { x = -234.102, y = 25.265, z = 187.049 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3008, isOneoff = true, owner = 8011 },
{ config_id = 8013, gadget_id = 70290008, pos = { x = -172.886, y = 25.533, z = 134.119 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true },
{ config_id = 8014, gadget_id = 70500000, pos = { x = -172.886, y = 25.533, z = 134.119 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3008, isOneoff = true, owner = 8013 },
{ config_id = 8015, gadget_id = 70290008, pos = { x = -198.469, y = 21.461, z = 68.292 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true },
{ config_id = 8016, gadget_id = 70500000, pos = { x = -198.469, y = 21.461, z = 68.292 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3008, isOneoff = true, owner = 8015 },
{ config_id = 8017, gadget_id = 70290008, pos = { x = -186.825, y = 21.535, z = 88.524 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true },
{ config_id = 8018, gadget_id = 70500000, pos = { x = -186.825, y = 21.535, z = 88.524 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3008, isOneoff = true, owner = 8017 },
{ config_id = 8023, gadget_id = 70290008, pos = { x = -280.562, y = 31.559, z = 179.501 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true },
{ config_id = 8024, gadget_id = 70500000, pos = { x = -280.562, y = 31.559, z = 179.501 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3008, isOneoff = true, owner = 8023 },
{ config_id = 8025, gadget_id = 70290008, pos = { x = -295.160, y = 31.486, z = 178.247 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true },
{ config_id = 8026, gadget_id = 70500000, pos = { x = -295.160, y = 31.486, z = 178.247 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3008, isOneoff = true, owner = 8025 },
{ config_id = 8027, gadget_id = 70290008, pos = { x = -296.583, y = 31.470, z = 167.906 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true },
{ config_id = 8028, gadget_id = 70500000, pos = { x = -296.583, y = 31.470, z = 167.906 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3008, isOneoff = true, owner = 8027 },
{ config_id = 8029, gadget_id = 70290008, pos = { x = -282.523, y = 31.517, z = 164.606 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true },
{ config_id = 8030, gadget_id = 70500000, pos = { x = -282.523, y = 31.517, z = 164.606 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3008, isOneoff = true, owner = 8029 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8001, 8002, 8003, 8004, 8005, 8006, 8009, 8010, 8011, 8012, 8013, 8014, 8015, 8016, 8017, 8018, 8023, 8024, 8025, 8026, 8027, 8028, 8029, 8030 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,160 @@
-- 基础信息
local base_info = {
group_id = 220005009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 9001, monster_id = 26020101, pos = { x = -291.110, y = 31.754, z = 170.916 }, rot = { x = 0.000, y = 242.751, z = 0.000 }, level = 1, disableWander = true, affix = { 1021, 1030 }, pose_id = 1, special_name_id = 10016 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9018, gadget_id = 70211021, pos = { x = -299.531, y = 31.479, z = 170.476 }, rot = { x = 0.000, y = 90.488, z = 0.000 }, level = 6, drop_tag = "战斗高级蒙德", showcutscene = true, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1009006, name = "ANY_MONSTER_DIE_9006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_9006", action = "action_EVENT_ANY_MONSTER_DIE_9006" },
{ config_id = 1009007, name = "SPECIFIC_MONSTER_HP_CHANGE_9007", event = EventType.EVENT_SPECIFIC_MONSTER_HP_CHANGE, source = "9001", condition = "condition_EVENT_SPECIFIC_MONSTER_HP_CHANGE_9007", action = "", trigger_count = 0 },
{ config_id = 1009013, name = "MONSTER_BATTLE_9013", event = EventType.EVENT_MONSTER_BATTLE, source = "", condition = "condition_EVENT_MONSTER_BATTLE_9013", action = "action_EVENT_MONSTER_BATTLE_9013" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 9001 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_9006", "SPECIFIC_MONSTER_HP_CHANGE_9007", "MONSTER_BATTLE_9013" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 9018 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_9006(context, evt)
if 9001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_9006(context, evt)
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220005009, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_by_group")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220005011, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "22000501") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220005009, 2)
return 0
end
-- 触发条件
function condition_EVENT_SPECIFIC_MONSTER_HP_CHANGE_9007(context, evt)
--[[判断指定configid的怪物的血量小于%50时触发指定后续操作]]--
if evt.type ~= EventType.EVENT_SPECIFIC_MONSTER_HP_CHANGE or evt.param3 > 50 then
return false
end
return true
end
-- 触发条件
function condition_EVENT_MONSTER_BATTLE_9013(context, evt)
if 9001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_MONSTER_BATTLE_9013(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220005010, monsters = {}, gadgets = {10010} }) then
return -1
end
-- 调用提示id为 200050301 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 200050401) then
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220005005, suite = 1 }) then
return -1
end
return 0
end

View File

@@ -0,0 +1,372 @@
-- 基础信息
local base_info = {
group_id = 220005010
}
-- Trigger变量
local defs = {
max_gear = 4,
timer = 10,
group_id = 220005010,
gadget_1 = 10001,
gadget_2 = 10002,
gadget_3 = 10003,
gadget_4 = 10005,
gadget_chest = 0
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10001, gadget_id = 70900007, pos = { x = -234.114, y = 27.813, z = 168.074 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.Action01, persistent = true },
{ config_id = 10002, gadget_id = 70900007, pos = { x = -227.356, y = 27.813, z = 174.720 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, state = GadgetState.Action01, persistent = true },
{ config_id = 10003, gadget_id = 70900007, pos = { x = -234.085, y = 27.813, z = 174.570 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.Action01, persistent = true },
{ config_id = 10005, gadget_id = 70900007, pos = { x = -227.421, y = 27.813, z = 168.056 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.Action01, persistent = true },
{ config_id = 10009, gadget_id = 70350025, pos = { x = -257.591, y = 31.412, z = 171.546 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 10010, gadget_id = 70900201, pos = { x = -289.577, y = 32.986, z = 171.626 }, rot = { x = 0.000, y = 87.592, z = 0.000 }, level = 1 },
{ config_id = 10011, gadget_id = 70350019, pos = { x = -216.913, y = 25.323, z = 160.570 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearAction1 },
{ config_id = 10012, gadget_id = 70350019, pos = { x = -239.733, y = 25.467, z = 184.172 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearAction1 },
{ config_id = 10013, gadget_id = 70350019, pos = { x = -218.668, y = 25.438, z = 182.493 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearAction1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1010004, name = "GADGET_STATE_CHANGE_10004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_10004", action = "action_EVENT_GADGET_STATE_CHANGE_10004" },
{ config_id = 1010006, name = "GADGET_STATE_CHANGE_10006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_10006", action = "action_EVENT_GADGET_STATE_CHANGE_10006", trigger_count = 0 },
{ config_id = 1010007, name = "TIMER_EVENT_10007", event = EventType.EVENT_TIMER_EVENT, source = "time1", condition = "", action = "action_EVENT_TIMER_EVENT_10007", trigger_count = 0 },
{ config_id = 1010008, name = "VARIABLE_CHANGE_10008", event = EventType.EVENT_VARIABLE_CHANGE, source = "active_count", condition = "condition_EVENT_VARIABLE_CHANGE_10008", action = "action_EVENT_VARIABLE_CHANGE_10008", trigger_count = 0 },
{ config_id = 1010014, name = "GADGET_STATE_CHANGE_10014", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_10014", action = "action_EVENT_GADGET_STATE_CHANGE_10014", trigger_count = 0 },
{ config_id = 1010015, name = "GADGET_STATE_CHANGE_10015", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_10015", action = "action_EVENT_GADGET_STATE_CHANGE_10015", trigger_count = 0 },
{ config_id = 1010016, name = "GADGET_STATE_CHANGE_10016", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_10016", action = "action_EVENT_GADGET_STATE_CHANGE_10016", trigger_count = 0 },
{ config_id = 1010017, name = "TIMER_EVENT_10017", event = EventType.EVENT_TIMER_EVENT, source = "time2", condition = "", action = "action_EVENT_TIMER_EVENT_10017", trigger_count = 0 },
{ config_id = 1010018, name = "TIMER_EVENT_10018", event = EventType.EVENT_TIMER_EVENT, source = "time3", condition = "", action = "action_EVENT_TIMER_EVENT_10018", trigger_count = 0 },
{ config_id = 1010019, name = "TIMER_EVENT_10019", event = EventType.EVENT_TIMER_EVENT, source = "time4", condition = "", action = "action_EVENT_TIMER_EVENT_10019", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "active_count", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 10001, 10002, 10003, 10005, 10009, 10011, 10012, 10013 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_10004", "GADGET_STATE_CHANGE_10006", "TIMER_EVENT_10007", "VARIABLE_CHANGE_10008", "GADGET_STATE_CHANGE_10014", "GADGET_STATE_CHANGE_10015", "GADGET_STATE_CHANGE_10016", "TIMER_EVENT_10017", "TIMER_EVENT_10018", "TIMER_EVENT_10019" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_10004(context, evt)
if 10009 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_10004(context, evt)
-- 创建id为10010的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 10010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220005006, monsters = {}, gadgets = {6002} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_10006(context, evt)
if 10001 ~= evt.param2 or GadgetState.Action02 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_10006(context, evt)
-- 延迟4秒后,向groupId为220005010的对象,请求一次调用,并将string参数"time1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220005010, "time1", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 针对当前group内变量名为 "active_count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "active_count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_10007(context, evt)
-- 将configid为 10001 的物件更改为状态 GadgetState.Action01
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10001, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 针对当前group内变量名为 "active_count" 的变量,进行修改,变化值为 -1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "active_count", -1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_10008(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"active_count"为4
if ScriptLib.GetGroupVariableValue(context, "active_count") ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_10008(context, evt)
-- 将configid为 10001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 10002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 10003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 10005 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10005, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 10009 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10009, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 220005010, "time1") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 220005010, "time2") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 220005010, "time3") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
-- 取消group中对应名称的TimerEvent
if 0 ~= ScriptLib.CancelGroupTimerEvent(context, 220005010, "time4") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cancel_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_10014(context, evt)
if 10002 ~= evt.param2 or GadgetState.Action02 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_10014(context, evt)
-- 延迟4秒后,向groupId为220005010的对象,请求一次调用,并将string参数"time2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220005010, "time2", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 针对当前group内变量名为 "active_count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "active_count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_10015(context, evt)
if 10003 ~= evt.param2 or GadgetState.Action02 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_10015(context, evt)
-- 延迟4秒后,向groupId为220005010的对象,请求一次调用,并将string参数"time3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220005010, "time3", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 针对当前group内变量名为 "active_count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "active_count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_10016(context, evt)
if 10005 ~= evt.param2 or GadgetState.Action02 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_10016(context, evt)
-- 延迟4秒后,向groupId为220005010的对象,请求一次调用,并将string参数"time4" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220005010, "time4", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 针对当前group内变量名为 "active_count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "active_count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_10017(context, evt)
-- 将configid为 10002 的物件更改为状态 GadgetState.Action01
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10002, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 针对当前group内变量名为 "active_count" 的变量,进行修改,变化值为 -1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "active_count", -1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_10018(context, evt)
-- 将configid为 10003 的物件更改为状态 GadgetState.Action01
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10003, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 针对当前group内变量名为 "active_count" 的变量,进行修改,变化值为 -1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "active_count", -1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_10019(context, evt)
-- 将configid为 10005 的物件更改为状态 GadgetState.Action01
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10005, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 针对当前group内变量名为 "active_count" 的变量,进行修改,变化值为 -1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "active_count", -1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end

View File

@@ -0,0 +1,90 @@
-- 基础信息
local base_info = {
group_id = 220005011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 11001, gadget_id = 70350019, pos = { x = -289.229, y = 31.785, z = 171.267 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 11003, gadget_id = 70350019, pos = { x = -276.532, y = 31.535, z = 161.807 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 11004, gadget_id = 70350019, pos = { x = -308.862, y = 31.535, z = 178.018 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 11012, gadget_id = 70350019, pos = { x = -292.581, y = 31.535, z = 157.621 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 11013, gadget_id = 70350019, pos = { x = -289.970, y = 31.535, z = 185.636 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 11017, gadget_id = 70350019, pos = { x = -266.822, y = 31.535, z = 157.408 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 11023, gadget_id = 70350019, pos = { x = -298.638, y = 31.535, z = 162.920 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 11028, gadget_id = 70350019, pos = { x = -299.116, y = 31.785, z = 177.465 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 11029, gadget_id = 70350019, pos = { x = -279.740, y = 31.535, z = 182.325 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 11033, gadget_id = 70350019, pos = { x = -273.114, y = 31.535, z = 179.311 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 11001, 11003, 11004, 11012, 11013, 11017, 11023, 11028, 11029, 11033 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,48 @@
[
{
"area_id": 10001,
"points": [
{
"x": -157.93,
"y": -23.4606056
},
{
"x": 56.9478645,
"y": -40.5106926
},
{
"x": 40.4071426,
"y": 62.4121475
},
{
"x": -149.978226,
"y": 81.12399
}
]
},
{
"area_id": 10002,
"points": [
{
"x": -145.511749,
"y": -41.5932159
},
{
"x": -145.095291,
"y": -14.6715622
},
{
"x": -154.9902,
"y": 252.329224
},
{
"x": -323.9512,
"y": 290.5509
},
{
"x": -339.1448,
"y": 99.39578
}
]
}
]