添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions
@@ -0,0 +1,27 @@
-- 地图配置
scene_config = {
begin_pos = { x = 0.0, z = -2500.0 },
size = { x = 2048.0, z = 2048.0 },
born_pos = { x = 498.000, y = 609.000, z = -1650.000 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
born_point_list = {
{ pos = { x = 498.612, y = 609.303, z = -1654.398 }, rot = { x = 0.000, y = 0.000, z = 0.000 } }
},
die_y = 450,
city_id = 102,
vision_anchor = { x = 0.0, z = -3000.0 }
}
-- 所有的区块
blocks = { 20134 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = 0.0, z = -2500.0 }, max = { x = 2048.0, z = -452.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,96 @@
-- 所有的group
groups = {
{ id = 220134001, pos = { x = 499.417, y = 612.429, z = -1606.053 } },
{ id = 220134002, pos = { x = 403.178, y = 613.271, z = -1639.436 } },
{ id = 220134003, pos = { x = 388.478, y = 658.328, z = -1659.327 } },
{ id = 220134004, pos = { x = 483.211, y = 601.718, z = -1606.049 } },
{ id = 220134005, pos = { x = 477.163, y = 605.650, z = -1599.813 } },
{ id = 220134006, pos = { x = 679.981, y = 623.929, z = -1590.336 } },
{ id = 220134007, pos = { x = 692.402, y = 609.706, z = -1492.494 } },
{ id = 220134008, pos = { x = 500.060, y = 613.614, z = -1600.057 } },
{ id = 220134009, pos = { x = 581.324, y = 661.376, z = -1674.537 } },
{ id = 220134010, pos = { x = 595.035, y = 619.822, z = -1645.466 } },
{ id = 220134011, pos = { x = 608.163, y = 619.412, z = -1540.287 } },
{ id = 220134012, pos = { x = 635.826, y = 613.901, z = -1591.530 } },
{ id = 220134013, pos = { x = 401.270, y = 612.428, z = -1524.598 } },
{ id = 220134014, pos = { x = 398.476, y = 605.882, z = -1526.992 }, vision_type = 201340001 },
{ id = 220134015, pos = { x = 392.570, y = 612.221, z = -1643.695 } },
{ id = 220134016, refresh_id = 99999, pos = { x = 392.570, y = 612.221, z = -1643.695 } },
{ id = 220134017, refresh_id = 99999, pos = { x = 392.570, y = 612.221, z = -1643.695 } },
{ id = 220134018, refresh_id = 99999, pos = { x = 408.233, y = 612.601, z = -1530.661 } },
{ id = 220134019, pos = { x = 535.051, y = 606.276, z = -1609.847 } },
{ id = 220134020, pos = { x = 468.573, y = 606.020, z = -1576.508 } },
{ id = 220134021, pos = { x = 537.189, y = 606.173, z = -1576.864 } },
{ id = 220134022, pos = { x = 500.787, y = 606.306, z = -1590.700 } },
{ id = 220134023, pos = { x = 523.548, y = 606.033, z = -1603.924 } },
{ id = 220134024, pos = { x = 529.821, y = 605.054, z = -1577.164 } },
{ id = 220134025, pos = { x = 472.715, y = 609.421, z = -1578.358 } },
{ id = 220134026, pos = { x = 483.211, y = 601.347, z = -1606.049 } },
{ id = 220134027, pos = { x = 523.548, y = 606.033, z = -1603.924 } },
{ id = 220134028, pos = { x = 529.482, y = 605.054, z = -1576.635 } },
{ id = 220134029, pos = { x = 472.715, y = 609.480, z = -1578.358 } },
{ id = 220134030, pos = { x = 499.564, y = 606.746, z = -1584.964 } },
{ id = 220134031, pos = { x = 500.244, y = 848.278, z = -1188.310 } },
{ id = 220134032, pos = { x = 487.653, y = 612.254, z = -1594.664 } },
{ id = 220134033, pos = { x = 499.239, y = 606.307, z = -1590.400 } },
{ id = 220134034, pos = { x = 509.324, y = 612.254, z = -1597.093 } },
{ id = 220134035, pos = { x = 510.172, y = 612.254, z = -1596.812 } },
{ id = 220134036, pos = { x = 510.036, y = 612.316, z = -1584.217 } },
{ id = 220134037, pos = { x = 509.986, y = 612.254, z = -1583.731 } },
{ id = 220134038, pos = { x = 490.725, y = 612.254, z = -1585.603 } },
{ id = 220134039, pos = { x = 491.392, y = 612.254, z = -1584.476 } },
{ id = 220134040, pos = { x = 699.593, y = 619.547, z = -1557.605 } },
{ id = 220134041, pos = { x = 342.516, y = 631.915, z = -1493.413 } },
{ id = 220134042, pos = { x = 500.009, y = 613.455, z = -1593.319 } },
{ id = 220134043, pos = { x = 597.548, y = 604.723, z = -1475.362 } },
{ id = 220134044, pos = { x = 639.022, y = 605.852, z = -1480.300 } },
{ id = 220134045, pos = { x = 679.218, y = 619.063, z = -1567.023 } },
{ id = 220134046, pos = { x = 198.996, y = 633.991, z = -1728.364 } },
{ id = 220134047, pos = { x = 657.387, y = 623.380, z = -1702.755 } },
{ id = 220134048, pos = { x = 677.278, y = 610.838, z = -1485.658 } },
{ id = 220134049, pos = { x = 622.521, y = 606.037, z = -1478.128 } },
{ id = 220134050, refresh_id = 1, pos = { x = 161.379, y = 650.610, z = -1850.851 } },
{ id = 220134051, pos = { x = 315.353, y = 625.360, z = -1655.568 } },
{ id = 220134052, pos = { x = 612.618, y = 621.288, z = -1685.681 } },
{ id = 220134053, pos = { x = 657.795, y = 607.582, z = -1487.515 } },
{ id = 220134054, pos = { x = 366.849, y = 632.201, z = -1515.355 } },
{ id = 220134055, pos = { x = 777.280, y = 617.513, z = -1784.633 } },
{ id = 220134056, pos = { x = 214.524, y = 639.076, z = -1760.359 } },
{ id = 220134057, pos = { x = 774.108, y = 624.193, z = -1782.814 } },
{ id = 220134058, pos = { x = 301.037, y = 625.168, z = -1673.374 } },
{ id = 220134059, pos = { x = 203.281, y = 636.101, z = -1775.058 } },
{ id = 220134060, pos = { x = 661.211, y = 621.904, z = -1692.717 } },
{ id = 220134061, pos = { x = 664.910, y = 623.245, z = -1709.924 } },
{ id = 220134062, pos = { x = 116.453, y = 662.486, z = -1855.964 } },
{ id = 220134063, pos = { x = 334.552, y = 631.923, z = -1495.672 } },
{ id = 220134064, pos = { x = 737.615, y = 617.606, z = -1747.367 } },
{ id = 220134065, pos = { x = 706.575, y = 623.401, z = -1740.480 } },
{ id = 220134066, pos = { x = 346.207, y = 666.095, z = -1474.346 } },
{ id = 220134067, pos = { x = 638.806, y = 613.110, z = -1580.194 } },
{ id = 220134068, refresh_id = 99999, pos = { x = 408.233, y = 612.601, z = -1530.661 } },
{ id = 220134069, pos = { x = 777.280, y = 617.513, z = -1784.633 } },
{ id = 220134070, pos = { x = 116.453, y = 662.486, z = -1855.964 } },
{ id = 220134071, pos = { x = 274.834, y = 596.530, z = -1702.722 } },
{ id = 220134072, refresh_id = 99999, pos = { x = 408.233, y = 612.601, z = -1530.661 } },
{ id = 220134073, pos = { x = 499.963, y = 606.314, z = -1579.408 } },
{ id = 220134074, pos = { x = 154.988, y = 649.366, z = -1834.963 } },
{ id = 220134075, pos = { x = 499.998, y = 606.313, z = -1580.227 } },
{ id = 220134076, pos = { x = 366.849, y = 632.201, z = -1515.355 } },
{ id = 220134077, pos = { x = 492.230, y = 612.790, z = -1599.108 } },
{ id = 220134078, refresh_id = 1, pos = { x = 583.141, y = 620.056, z = -1648.470 } },
{ id = 220134079, refresh_id = 1, pos = { x = 145.016, y = 649.365, z = -1836.151 } },
{ id = 220134080, refresh_id = 1, pos = { x = 145.016, y = 649.365, z = -1836.151 } },
{ id = 220134081, refresh_id = 1, pos = { x = 145.016, y = 649.365, z = -1836.151 } },
{ id = 220134082, refresh_id = 1, pos = { x = 145.016, y = 649.365, z = -1836.151 } },
{ id = 220134083, pos = { x = 499.256, y = 609.303, z = -1654.742 } },
{ id = 220134084, pos = { x = 369.746, y = 632.156, z = -1506.443 } },
{ id = 220134085, pos = { x = 646.824, y = 605.851, z = -1488.724 } },
{ id = 220134086, pos = { x = 613.662, y = 621.288, z = -1685.934 } },
{ id = 220134087, pos = { x = 315.614, y = 625.360, z = -1656.789 } },
{ id = 220134088, pos = { x = 495.213, y = 613.477, z = -1586.268 } },
{ id = 220134089, refresh_id = 1, pos = { x = 499.825, y = 612.323, z = -1605.053 } },
{ id = 220134090, refresh_id = 1, pos = { x = 499.825, y = 612.323, z = -1605.053 } },
{ id = 220134091, refresh_id = 1, pos = { x = 769.997, y = 624.193, z = -1779.692 } },
{ id = 220134092, refresh_id = 1, pos = { x = 769.997, y = 624.193, z = -1779.692 } },
{ id = 220134093, pos = { x = 506.667, y = 612.254, z = -1580.128 } }
}
@@ -0,0 +1,40 @@
dummy_points = {
["guide_Q4007404"] = { pos = { x = 500.063, y = 615.921, z = -1591.480 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4007405"] = { pos = { x = 404.209, y = 612.561, z = -1642.292 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4007406"] = { pos = { x = 0.000, y = 0.000, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4007407"] = { pos = { x = 499.595, y = 612.937, z = -1591.439 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4007607"] = { pos = { x = 458.139, y = 613.452, z = -1570.429 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4007608"] = { pos = { x = 499.758, y = 608.786, z = -1572.690 }, rot = { x = 0.000, y = 181.717, z = 0.000 } },
["guide_Q4007610"] = { pos = { x = 508.052, y = 847.442, z = -1195.380 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007403_guide"] = { pos = { x = 499.849, y = 612.135, z = -1607.614 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007403_N10095"] = { pos = { x = 499.106, y = 612.135, z = -1610.356 }, rot = { x = 0.000, y = 31.047, z = 0.000 } },
["Q4007406_guide"] = { pos = { x = 443.387, y = 620.049, z = -1620.844 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007417_guide"] = { pos = { x = 424.923, y = 617.385, z = -1629.517 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007503_guide"] = { pos = { x = 591.375, y = 619.949, z = -1644.865 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007504_guide"] = { pos = { x = 546.331, y = 615.136, z = -1619.601 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007512_guide"] = { pos = { x = 582.254, y = 621.035, z = -1639.050 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007603_guide"] = { pos = { x = 608.304, y = 619.547, z = -1542.381 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007604_guide"] = { pos = { x = 560.899, y = 615.636, z = -1564.370 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007606_guide"] = { pos = { x = 399.594, y = 612.561, z = -1526.254 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007607_guide"] = { pos = { x = 455.963, y = 611.856, z = -1570.792 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007608_transmit"] = { pos = { x = 514.344, y = 847.416, z = -1205.154 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007609_guide"] = { pos = { x = 514.484, y = 847.416, z = -1198.541 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007609_N10095"] = { pos = { x = 499.883, y = 847.442, z = -1188.696 }, rot = { x = 0.000, y = 150.000, z = 0.000 } },
["Q4007616_guide"] = { pos = { x = 499.807, y = 612.135, z = -1608.844 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007618_guide"] = { pos = { x = 620.197, y = 619.989, z = -1537.314 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007619_guide"] = { pos = { x = 409.881, y = 613.305, z = -1531.543 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q79032dreambackpoint"] = { pos = { x = 500.188, y = 612.330, z = -1614.054 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q79032monahouse"] = { pos = { x = 514.746, y = 847.416, z = -1203.476 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["T4007403_fischl"] = { pos = { x = 498.336, y = 612.135, z = -1609.383 }, rot = { x = 0.000, y = 101.607, z = 0.000 } },
["T4007403_kazuha"] = { pos = { x = 500.822, y = 612.135, z = -1608.341 }, rot = { x = 0.000, y = 221.322, z = 0.000 } },
["T4007403_oz"] = { pos = { x = 498.922, y = 612.135, z = -1608.378 }, rot = { x = 0.000, y = 150.891, z = 0.000 } },
["T4007403_paimon"] = { pos = { x = 500.878, y = 612.136, z = -1609.360 }, rot = { x = 1.469, y = 269.267, z = 0.037 } },
["T4007403_player"] = { pos = { x = 500.444, y = 612.164, z = -1610.265 }, rot = { x = 2.631, y = 323.248, z = 5.522 } },
["T4007403_xinyan"] = { pos = { x = 499.758, y = 612.135, z = -1608.239 }, rot = { x = 0.000, y = 198.845, z = 0.000 } },
["T4007609_fischl"] = { pos = { x = 499.046, y = 847.442, z = -1190.062 }, rot = { x = 0.000, y = 93.490, z = 0.000 } },
["T4007609_kazuha"] = { pos = { x = 500.972, y = 847.442, z = -1188.772 }, rot = { x = 0.000, y = 200.000, z = 0.000 } },
["T4007609_oz"] = { pos = { x = 499.430, y = 847.442, z = -1190.813 }, rot = { x = 0.000, y = 30.000, z = 0.000 } },
["T4007609_paimon"] = { pos = { x = 501.647, y = 847.442, z = -1190.339 }, rot = { x = 0.000, y = 320.000, z = 0.000 } },
["T4007609_player"] = { pos = { x = 501.016, y = 847.442, z = -1190.985 }, rot = { x = 0.000, y = 330.000, z = 0.000 } },
["T4007609_xinyan"] = { pos = { x = 501.649, y = 847.442, z = -1189.474 }, rot = { x = 0.000, y = 250.000, z = 0.000 } }
}
@@ -0,0 +1,391 @@
-- 基础信息
local base_info = {
group_id = 220134001
}
-- DEFS_MISCS
local defs = {
--控制星空灯
control = { group_id = 220134042, config_id = 42001, light_index = 1, giving_gadget = 1001,}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70310243, pos = { x = 492.203, y = 612.254, z = -1598.556 }, rot = { x = 0.000, y = 225.969, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1001002, name = "GROUP_LOAD_1002", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_1002", trigger_count = 0 },
{ config_id = 1001003, name = "VARIABLE_CHANGE_1003", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_1003", action = "action_EVENT_VARIABLE_CHANGE_1003", trigger_count = 0 },
{ config_id = 1001004, name = "VARIABLE_CHANGE_1004", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_1004", action = "action_EVENT_VARIABLE_CHANGE_1004", trigger_count = 0 },
{ config_id = 1001005, name = "VARIABLE_CHANGE_1005", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_1005", action = "action_EVENT_VARIABLE_CHANGE_1005", trigger_count = 0 },
{ config_id = 1001006, name = "VARIABLE_CHANGE_1006", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_1006", action = "action_EVENT_VARIABLE_CHANGE_1006", trigger_count = 0 },
{ config_id = 1001007, name = "VARIABLE_CHANGE_1007", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_1007", action = "action_EVENT_VARIABLE_CHANGE_1007", trigger_count = 0 },
{ config_id = 1001008, name = "VARIABLE_CHANGE_1008", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_1008", action = "action_EVENT_VARIABLE_CHANGE_1008", trigger_count = 0 },
{ config_id = 1001009, name = "VARIABLE_CHANGE_1009", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_1009", action = "action_EVENT_VARIABLE_CHANGE_1009", trigger_count = 0 },
{ config_id = 1001010, name = "VARIABLE_CHANGE_1010", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_1010", action = "action_EVENT_VARIABLE_CHANGE_1010", trigger_count = 0 },
{ config_id = 1001011, name = "VARIABLE_CHANGE_1011", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_1011", action = "action_EVENT_VARIABLE_CHANGE_1011", trigger_count = 0 },
{ config_id = 1001012, name = "VARIABLE_CHANGE_1012", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_1012", action = "action_EVENT_VARIABLE_CHANGE_1012", trigger_count = 0 },
-- 镜头
{ config_id = 1001013, name = "VARIABLE_CHANGE_1013", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_1013", action = "action_EVENT_VARIABLE_CHANGE_1013", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "camera", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001 },
regions = { },
triggers = { "GROUP_LOAD_1002", "VARIABLE_CHANGE_1003", "VARIABLE_CHANGE_1004", "VARIABLE_CHANGE_1005", "VARIABLE_CHANGE_1006", "VARIABLE_CHANGE_1007", "VARIABLE_CHANGE_1008", "VARIABLE_CHANGE_1009", "VARIABLE_CHANGE_1010", "VARIABLE_CHANGE_1011", "VARIABLE_CHANGE_1012", "VARIABLE_CHANGE_1013" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GROUP_LOAD_1002(context, evt)
ScriptLib.ActiveGadgetItemGiving(context, 10000101, 220134001, 1001)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1003(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101801
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101801 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1003(context, evt)
ScriptLib.RefreshGroup(context, { group_id = 220134004, suite = 1 })
if ScriptLib.GetGroupVariableValueByGroup(context, "given_item", 220134008) == 101802 then
ScriptLib.RefreshGroup(context, { group_id = 220134005, suite = 2 })
if 0 ~= ScriptLib.AddQuestProgress(context, "door1complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "door1", 1, 220134033) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
else
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1004(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101802
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101802 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1004(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134004, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1005(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101803
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101803 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1005(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134004, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1006(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101804
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101804 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1006(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134004, suite = 4 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1007(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101805
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101805 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1007(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134004, suite = 5 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1008(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101806
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101806 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1008(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134004, suite = 6 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1009(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101807
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101807 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1009(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134004, suite = 7 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1010(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101808
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101808 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1010(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134004, suite = 8 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1011(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为0
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1011(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134004, suite = 10 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134005, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 将本组内变量名为 "door1" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "door1", 0, 220134033) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1012(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101834
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101834 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1012(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134004, suite = 9 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1013(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"camera"为0
if ScriptLib.GetGroupVariableValue(context, "camera") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1013(context, evt)
-- 触发镜头注目,注目位置为坐标(469,637,-1607),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=469, y=637, z=-1607}
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
-- 将本组内变量名为 "camera" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "camera", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
require "V2_8/HandleGivingResult"
@@ -0,0 +1,249 @@
-- 基础信息
local base_info = {
group_id = 220134002
}
-- DEFS_MISCS
local defs = {
gear_info =
{ --connect: 每个物件各个旋转档位可连接的对象 0表示无可连接
[1] = { config_id=2001 , connect = {2002,2006,2004}, point_array_id = 1 },
[2] = { config_id=2002 , connect = {2001,2004,2006,2003}, point_array_id = 2 },
[3] = { config_id= 2003 , connect = {2002,2005,2006}, point_array_id = 3},
[4] = { config_id=2004 , connect = {2001,2005, 2006,2002}, point_array_id = 4},
[5] = { config_id= 2005 , connect = {2004,2003,2006}, point_array_id = 5 },
[6] = { config_id=2006 , connect = {2003,2002,2004,2005}, point_array_id = 6 }
},
--几种解
solutions =
{
--[解法x] = {gear_info[1]切到它的第x档, gear_info[2]切到它的第y档...}
[1] = { connection = {2,3,1,4,1,3}, ends = {}},
[2] = { connection = {2,2,1,3,1,2}, ends = {}}
},
turn_option = 31,
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70310178, pos = { x = 393.493, y = 613.406, z = -1646.063 }, rot = { x = 0.000, y = 16.763, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 2002, gadget_id = 70310178, pos = { x = 400.151, y = 613.406, z = -1648.659 }, rot = { x = 0.000, y = 50.332, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 2003, gadget_id = 70310178, pos = { x = 404.841, y = 613.659, z = -1651.684 }, rot = { x = 0.000, y = 4.856, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 2004, gadget_id = 70310178, pos = { x = 395.315, y = 613.406, z = -1639.104 }, rot = { x = 0.000, y = 150.979, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 2005, gadget_id = 70310178, pos = { x = 395.252, y = 613.406, z = -1633.375 }, rot = { x = 0.000, y = 122.521, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 2006, gadget_id = 70310178, pos = { x = 407.028, y = 613.406, z = -1639.153 }, rot = { x = 359.148, y = 266.341, z = 0.567 }, level = 1, is_use_point_array = true },
{ config_id = 2009, gadget_id = 70290428, pos = { x = 343.860, y = 624.924, z = -1673.326 }, rot = { x = 0.000, y = 61.934, z = 0.000 }, level = 1 },
{ config_id = 2011, gadget_id = 70211111, pos = { x = 388.959, y = 613.406, z = -1648.354 }, rot = { x = 4.318, y = 63.809, z = 357.747 }, level = 16, chest_drop_id = 1050201, drop_count = 1, isOneoff = true, persistent = true, autopick = true }
}
-- 区域
regions = {
{ config_id = 2008, shape = RegionShape.SPHERE, radius = 12, pos = { x = 398.404, y = 613.406, z = -1643.467 } },
{ config_id = 2010, shape = RegionShape.SPHERE, radius = 5, pos = { x = 423.239, y = 615.039, z = -1630.916 } }
}
-- 触发器
triggers = {
{ config_id = 1002007, name = "GADGET_STATE_CHANGE_2007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2007", action = "action_EVENT_GADGET_STATE_CHANGE_2007" },
{ config_id = 1002008, name = "ENTER_REGION_2008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2008", action = "action_EVENT_ENTER_REGION_2008" },
{ config_id = 1002010, name = "ENTER_REGION_2010", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2010", action = "action_EVENT_ENTER_REGION_2010" },
-- 满足解法条件生成宝箱
{ config_id = 1002012, name = "VARIABLE_CHANGE_2012", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_2012", action = "action_EVENT_VARIABLE_CHANGE_2012", trigger_count = 0 },
{ config_id = 1002013, name = "GROUP_LOAD_2013", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_2013", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "finish", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2002, 2003, 2004, 2005, 2006, 2009 },
regions = { 2008, 2010 },
triggers = { "GADGET_STATE_CHANGE_2007", "ENTER_REGION_2008", "ENTER_REGION_2010", "VARIABLE_CHANGE_2012", "GROUP_LOAD_2013" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 2009, 2011 },
regions = { },
triggers = { "GROUP_LOAD_2013" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 2011 },
regions = { },
triggers = { "GROUP_LOAD_2013" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2007(context, evt)
if 2011 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2007(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroom1complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220134015, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220134002, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2008(context, evt)
if evt.param1 ~= 2008 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_2008(context, evt)
ScriptLib.TryRecordActivityPushTips(context, 2014003)
ScriptLib.ShowClientTutorial(context, 1169, {})
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2010(context, evt)
if evt.param1 ~= 2010 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_2010(context, evt)
-- 触发镜头注目,注目位置为坐标(387,672.5,-1648.8),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=387, y=672.5, z=-1648.8}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = true, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_2012(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 == evt.param2 then return false end
-- 判断变量"solution"为1
if ScriptLib.GetGroupVariableValue(context, "solution") >= 1 then
return true
end
return false
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_2012(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220134002, 2)
-- 将本组内变量名为 "finish" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finish", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_2013(context, evt)
if ScriptLib.GetHostQuestState(context,4007407)==3 or ScriptLib.GetHostQuestState(context,4007413)==3 or
ScriptLib.GetHostQuestState(context,4007410)==3 then
ScriptLib.RefreshGroup(context, { group_id = 220134002, suite = 3 })
ScriptLib.GoToGroupSuite(context, 220134002, 3)
end
return 0
end
require "V2_8/ConstellationMachine"
@@ -0,0 +1,110 @@
-- 基础信息
local base_info = {
group_id = 220134003
}
-- DEFS_MISCS
local defs = {
--连线形态
patterns =
{
--形态1
[1] =
{
[3001] = 3006,
[3002] = 3006,
[3003] = 3002,
[3004] = 3002,
[3005] = 3004,
[3006] = 3004,
},
--形态2
[2] =
{
[35001] = 35003,
[35002] = 35004,
[35003] = 35004,
[35004] = 35006,
[35005] = 35001,
[35006] = 35001,
},
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[3001] = { config_id = 3001, gadget_id = 70310179, pos = { x = 379.870, y = 672.500, z = -1653.564 }, rot = { x = 0.000, y = 15.407, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[3002] = { config_id = 3002, gadget_id = 70310179, pos = { x = 386.036, y = 672.500, z = -1654.554 }, rot = { x = 0.000, y = 15.407, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[3003] = { config_id = 3003, gadget_id = 70310179, pos = { x = 391.509, y = 672.500, z = -1657.192 }, rot = { x = 0.000, y = 15.407, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[3004] = { config_id = 3004, gadget_id = 70310179, pos = { x = 382.679, y = 672.500, z = -1648.391 }, rot = { x = 0.000, y = 15.407, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[3005] = { config_id = 3005, gadget_id = 70310454, pos = { x = 383.058, y = 672.500, z = -1643.721 }, rot = { x = 0.000, y = 15.407, z = 0.000 }, level = 1, state = GadgetState.GearAction2, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[3006] = { config_id = 3006, gadget_id = 70310179, pos = { x = 397.561, y = 672.500, z = -1643.844 }, rot = { x = 0.000, y = 15.407, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[3007] = { config_id = 3007, gadget_id = 70310389, pos = { x = 387.000, y = 672.500, z = -1648.800 }, rot = { x = 0.000, y = 15.407, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001, 3002, 3003, 3004, 3005, 3006, 3007 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V2_8/ConstellationPattern"
@@ -0,0 +1,193 @@
-- 基础信息
local base_info = {
group_id = 220134004
}
-- DEFS_MISCS
local defs = {
--连线形态
patterns =
{
--形态1
[1] =
{
[4001] = 4002,
[4002] = 4003,
[4003] = 4001,
[4004] = 4002,
[4005] = 4004,
[4006] = 4005,
},
--形态2
[2] =
{
[4001] = 4003,
[4002] = 4004,
[4003] = 4004,
[4004] = 4006,
[4005] = 4001,
[4006] = 4001,
},
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[4007] = { config_id = 4007, gadget_id = 70310279, pos = { x = 469.542, y = 637.780, z = -1607.385 }, rot = { x = 0.000, y = 309.993, z = 0.000 }, level = 1 },
[4008] = { config_id = 4008, gadget_id = 70310274, pos = { x = 469.811, y = 640.479, z = -1607.818 }, rot = { x = 0.000, y = 358.101, z = 0.000 }, level = 1, state = GadgetState.GearStart },
[4009] = { config_id = 4009, gadget_id = 70310275, pos = { x = 469.592, y = 639.009, z = -1607.392 }, rot = { x = 0.000, y = 117.128, z = 0.000 }, level = 1, state = GadgetState.GearStart },
[4010] = { config_id = 4010, gadget_id = 70310276, pos = { x = 469.144, y = 642.548, z = -1607.029 }, rot = { x = 0.000, y = 115.421, z = 0.000 }, level = 1, state = GadgetState.GearStart },
[4011] = { config_id = 4011, gadget_id = 70310277, pos = { x = 469.860, y = 642.280, z = -1607.444 }, rot = { x = 0.000, y = 140.145, z = 0.000 }, level = 1, state = GadgetState.GearStart },
[4012] = { config_id = 4012, gadget_id = 70310278, pos = { x = 469.442, y = 639.584, z = -1607.322 }, rot = { x = 0.000, y = 172.265, z = 0.000 }, level = 1, state = GadgetState.GearStart },
[4013] = { config_id = 4013, gadget_id = 70310276, pos = { x = 469.144, y = 642.548, z = -1607.029 }, rot = { x = 0.000, y = 115.421, z = 0.000 }, level = 1, state = GadgetState.GearStart },
[4014] = { config_id = 4014, gadget_id = 70310273, pos = { x = 469.523, y = 638.792, z = -1607.400 }, rot = { x = 0.000, y = 358.176, z = 0.000 }, level = 1 },
[4015] = { config_id = 4015, gadget_id = 70310280, pos = { x = 469.475, y = 639.256, z = -1607.417 }, rot = { x = 0.000, y = 313.275, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 10,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4014 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 4008 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 4009 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 4010 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 4011 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 4012 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { },
gadgets = { 4013 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 8,
-- description = ,
monsters = { },
gadgets = { 4007 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 9,
-- description = ,
monsters = { },
gadgets = { 4015 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 10,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V2_8/ConstellationPattern"
@@ -0,0 +1,118 @@
-- 基础信息
local base_info = {
group_id = 220134005
}
-- DEFS_MISCS
local defs = {
--连线形态
patterns =
{
--形态1
[1] =
{
[5001] = 5002,
[5002] = 5004,
[5003] = 5002,
[5004] = 5005,
[5005] = 5002,
[5006] = 5005,
[5008] = 5004,
[5009] = 5004,
[5010] = 5009,
[5011] = 5009,
[5012] = 5011,
[5013] = 5005,
},
--形态2
[2] =
{
[5001] = 5003,
[5002] = 5004,
[5003] = 5004,
[5004] = 5006,
[5005] = 5001,
[5006] = 5001,
},
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[5001] = { config_id = 5001, gadget_id = 70310401, pos = { x = 439.800, y = 605.225, z = -1613.387 }, rot = { x = 359.989, y = 4.565, z = 0.080 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_LITTLE_REMOTE },
[5007] = { config_id = 5007, gadget_id = 70290428, pos = { x = 469.139, y = 612.298, z = -1607.015 }, rot = { x = 0.000, y = 60.102, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5001, 5007 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,246 @@
-- 基础信息
local base_info = {
group_id = 220134006
}
-- DEFS_MISCS
local defs = {
--连线形态
patterns =
{
--形态1
[1] =
{
[6001] = 6002,
[6002] = 6003,
[6003] = 6004,
[6004] = 0,
},
--形态2
[2] =
{
[6001] = 6002,
[6002] = 6003,
[6003] = 6004,
[6004] = 0,
[6005] = 6006,
[6006] = 6007,
[6007] = 6008,
[6008] = 0,
},
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[6001] = { config_id = 6001, gadget_id = 70310179, pos = { x = 669.706, y = 621.212, z = -1587.628 }, rot = { x = 0.000, y = 30.497, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[6002] = { config_id = 6002, gadget_id = 70310179, pos = { x = 671.528, y = 623.421, z = -1588.525 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[6003] = { config_id = 6003, gadget_id = 70310179, pos = { x = 668.786, y = 625.232, z = -1586.742 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[6004] = { config_id = 6004, gadget_id = 70310179, pos = { x = 665.380, y = 621.161, z = -1584.298 }, rot = { x = 0.000, y = 29.689, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[6005] = { config_id = 6005, gadget_id = 70310179, pos = { x = 670.651, y = 619.670, z = -1586.213 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[6006] = { config_id = 6006, gadget_id = 70310179, pos = { x = 674.138, y = 619.670, z = -1584.250 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[6007] = { config_id = 6007, gadget_id = 70310179, pos = { x = 671.626, y = 619.670, z = -1581.710 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[6008] = { config_id = 6008, gadget_id = 70310179, pos = { x = 666.171, y = 619.670, z = -1583.399 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[6010] = { config_id = 6010, gadget_id = 70380306, pos = { x = 681.599, y = 619.244, z = -1566.939 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
[6012] = { config_id = 6012, gadget_id = 70380012, pos = { x = 644.440, y = 618.150, z = -1602.053 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true, is_use_point_array = true },
[6013] = { config_id = 6013, gadget_id = 70310374, pos = { x = 704.560, y = 627.261, z = -1558.990 }, rot = { x = 28.180, y = 136.295, z = 171.170 }, level = 1, persistent = true },
[6016] = { config_id = 6016, gadget_id = 70220010, pos = { x = 682.495, y = 619.858, z = -1556.737 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true, persistent = true }
}
-- 区域
regions = {
[6014] = { config_id = 6014, shape = RegionShape.SPHERE, radius = 5, pos = { x = 705.863, y = 620.007, z = -1556.037 } }
}
-- 触发器
triggers = {
{ config_id = 1006011, name = "ANY_GADGET_DIE_6011", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_6011", action = "action_EVENT_ANY_GADGET_DIE_6011", trigger_count = 0 },
{ config_id = 1006014, name = "ENTER_REGION_6014", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6014", action = "action_EVENT_ENTER_REGION_6014", trigger_count = 0 },
{ config_id = 1006015, name = "GROUP_LOAD_6015", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_6015", action = "action_EVENT_GROUP_LOAD_6015", trigger_count = 0 },
{ config_id = 1006017, name = "GROUP_LOAD_6017", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_6017", action = "action_EVENT_GROUP_LOAD_6017", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "water", value = 0, no_refresh = true },
{ config_id = 2, name = "kill", value = 0, no_refresh = true }
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 6009, gadget_id = 70220038, pos = { x = 663.930, y = 618.941, z = -1598.686 }, rot = { x = 0.000, y = 139.462, z = 0.000 }, level = 1, isOneoff = true, persistent = true }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6001, 6002, 6003, 6004, 6012, 6013, 6016 },
regions = { },
triggers = { "ANY_GADGET_DIE_6011", "GROUP_LOAD_6015", "GROUP_LOAD_6017" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 6001, 6002, 6003, 6004, 6005, 6006, 6007, 6008, 6010, 6012, 6013 },
regions = { 6014 },
triggers = { "ANY_GADGET_DIE_6011", "ENTER_REGION_6014", "GROUP_LOAD_6015" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_6011(context, evt)
if 6016 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_6011(context, evt)
-- 将本组内变量名为 "pattern" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "pattern", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "water" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "water", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将configid为 6013 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6013, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220134006, 2)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_6014(context, evt)
if evt.param1 ~= 6014 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220134006, 6013) then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_6014(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220134006, EntityType.GADGET, 6013 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_6015(context, evt)
-- 判断变量"water"为1
if ScriptLib.GetGroupVariableValue(context, "water") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_6015(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220134006, 2)
-- 将configid为 6013 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6013, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_6017(context, evt)
-- 判断变量"kill"为1
if ScriptLib.GetGroupVariableValue(context, "kill") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_6017(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220134006, EntityType.GADGET, 6012 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
require "V2_8/ConstellationPattern"
@@ -0,0 +1,304 @@
-- 基础信息
local base_info = {
group_id = 220134007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7001, gadget_id = 70310235, pos = { x = 692.316, y = 610.365, z = -1493.119 }, rot = { x = 0.000, y = 44.977, z = 0.000 }, level = 16, drop_tag = "解谜中级群岛", state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 7002, gadget_id = 70380306, pos = { x = 692.818, y = 610.034, z = -1494.076 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 7003, gadget_id = 70220129, pos = { x = 698.685, y = 609.919, z = -1495.359 }, rot = { x = 0.000, y = 307.988, z = 0.000 }, level = 1 },
{ config_id = 7004, gadget_id = 70220129, pos = { x = 688.932, y = 609.919, z = -1497.725 }, rot = { x = 0.000, y = 37.675, z = 0.000 }, level = 1 },
{ config_id = 7005, gadget_id = 70220129, pos = { x = 687.489, y = 609.919, z = -1485.976 }, rot = { x = 0.000, y = 133.926, z = 0.000 }, level = 1 },
{ config_id = 7010, gadget_id = 70220010, pos = { x = 695.317, y = 610.290, z = -1486.383 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 7012, shape = RegionShape.SPHERE, radius = 15, pos = { x = 692.402, y = 609.230, z = -1491.966 } },
{ config_id = 7013, shape = RegionShape.SPHERE, radius = 15, pos = { x = 692.402, y = 609.230, z = -1491.966 } }
}
-- 触发器
triggers = {
{ config_id = 1007006, name = "GROUP_LOAD_7006", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_7006", trigger_count = 0 },
{ config_id = 1007007, name = "GADGET_STATE_CHANGE_7007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7007", action = "action_EVENT_GADGET_STATE_CHANGE_7007", trigger_count = 0 },
{ config_id = 1007008, name = "GADGET_STATE_CHANGE_7008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7008", action = "action_EVENT_GADGET_STATE_CHANGE_7008", trigger_count = 0 },
{ config_id = 1007009, name = "GADGET_STATE_CHANGE_7009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7009", action = "action_EVENT_GADGET_STATE_CHANGE_7009", trigger_count = 0 },
{ config_id = 1007011, name = "ANY_GADGET_DIE_7011", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_7011", action = "action_EVENT_ANY_GADGET_DIE_7011", trigger_count = 0 },
{ config_id = 1007012, name = "ENTER_REGION_7012", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_7012", action = "action_EVENT_ENTER_REGION_7012", trigger_count = 0 },
{ config_id = 1007013, name = "LEAVE_REGION_7013", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_7013", action = "action_EVENT_LEAVE_REGION_7013", trigger_count = 0 },
{ config_id = 1007014, name = "GROUP_LOAD_7014", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_7014", action = "action_EVENT_GROUP_LOAD_7014", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "create", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7001, 7010 },
regions = { 7012, 7013 },
triggers = { "GROUP_LOAD_7006", "GADGET_STATE_CHANGE_7007", "GADGET_STATE_CHANGE_7008", "GADGET_STATE_CHANGE_7009", "ANY_GADGET_DIE_7011", "ENTER_REGION_7012", "LEAVE_REGION_7013", "GROUP_LOAD_7014" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 7003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 7004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 7005 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 7002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GROUP_LOAD_7006(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220134007, 2)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7007(context, evt)
if 7003 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7007(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220134007, 3)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7008(context, evt)
if 7004 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7008(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 220134007, 4)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7009(context, evt)
if 7005 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7009(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220134007, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_7011(context, evt)
if 7010 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_7011(context, evt)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 220134007, 5)
-- 将本组内变量名为 "create" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "create", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将configid为 7001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 改变指定group组220134048中, configid为48002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220134048, 48002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_7012(context, evt)
if evt.param1 ~= 7012 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_7012(context, evt)
-- 将configid为 7002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 改变指定group组220134006中, configid为6012的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220134006, 6012, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220134044中, configid为44007的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220134044, 44007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220134043中, configid为43008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220134043, 43008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_7013(context, evt)
-- 判断角色数量不少于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_LEAVE_REGION_7013(context, evt)
-- 将configid为 7002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_7014(context, evt)
-- 判断变量"create"为1
if ScriptLib.GetGroupVariableValue(context, "create") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_7014(context, evt)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 220134007, 5)
-- 将configid为 7001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,383 @@
-- 基础信息
local base_info = {
group_id = 220134008
}
-- DEFS_MISCS
local defs = {
--控制星空灯
control = { group_id = 220134042, config_id = 42001, light_index = 2, giving_gadget = 8001,}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8001, gadget_id = 70310252, pos = { x = 492.203, y = 612.254, z = -1598.556 }, rot = { x = 0.000, y = 225.969, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1008002, name = "GROUP_LOAD_8002", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_8002", trigger_count = 0 },
{ config_id = 1008003, name = "VARIABLE_CHANGE_8003", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_8003", action = "action_EVENT_VARIABLE_CHANGE_8003", trigger_count = 0 },
{ config_id = 1008004, name = "VARIABLE_CHANGE_8004", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_8004", action = "action_EVENT_VARIABLE_CHANGE_8004", trigger_count = 0 },
{ config_id = 1008005, name = "VARIABLE_CHANGE_8005", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_8005", action = "action_EVENT_VARIABLE_CHANGE_8005", trigger_count = 0 },
{ config_id = 1008006, name = "VARIABLE_CHANGE_8006", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_8006", action = "action_EVENT_VARIABLE_CHANGE_8006", trigger_count = 0 },
{ config_id = 1008007, name = "VARIABLE_CHANGE_8007", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_8007", action = "action_EVENT_VARIABLE_CHANGE_8007", trigger_count = 0 },
{ config_id = 1008008, name = "VARIABLE_CHANGE_8008", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_8008", action = "action_EVENT_VARIABLE_CHANGE_8008", trigger_count = 0 },
{ config_id = 1008009, name = "VARIABLE_CHANGE_8009", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_8009", action = "action_EVENT_VARIABLE_CHANGE_8009", trigger_count = 0 },
{ config_id = 1008010, name = "VARIABLE_CHANGE_8010", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_8010", action = "action_EVENT_VARIABLE_CHANGE_8010", trigger_count = 0 },
{ config_id = 1008011, name = "VARIABLE_CHANGE_8011", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_8011", action = "action_EVENT_VARIABLE_CHANGE_8011", trigger_count = 0 },
{ config_id = 1008012, name = "VARIABLE_CHANGE_8012", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_8012", action = "action_EVENT_VARIABLE_CHANGE_8012", trigger_count = 0 },
-- 镜头
{ config_id = 1008013, name = "VARIABLE_CHANGE_8013", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_8013", action = "action_EVENT_VARIABLE_CHANGE_8013", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "camera", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8001 },
regions = { },
triggers = { "GROUP_LOAD_8002", "VARIABLE_CHANGE_8003", "VARIABLE_CHANGE_8004", "VARIABLE_CHANGE_8005", "VARIABLE_CHANGE_8006", "VARIABLE_CHANGE_8007", "VARIABLE_CHANGE_8008", "VARIABLE_CHANGE_8009", "VARIABLE_CHANGE_8010", "VARIABLE_CHANGE_8011", "VARIABLE_CHANGE_8012", "VARIABLE_CHANGE_8013" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GROUP_LOAD_8002(context, evt)
ScriptLib.ActiveGadgetItemGiving(context, 10000102, 220134008, 8001)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_8003(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101801
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101801 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_8003(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134026, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_8004(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101802
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101802 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_8004(context, evt)
ScriptLib.RefreshGroup(context, { group_id = 220134026, suite = 2 })
if ScriptLib.GetGroupVariableValueByGroup(context, "given_item", 220134001) == 101801 then
ScriptLib.RefreshGroup(context, { group_id = 220134005, suite = 2 })
ScriptLib.AddQuestProgress(context, "door1complete")
ScriptLib.SetGroupVariableValueByGroup(context, "door1", 1, 220134033)
else
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_8005(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101803
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101803 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_8005(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134026, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_8006(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101804
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101804 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_8006(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134026, suite = 4 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_8007(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101805
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101805 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_8007(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134026, suite = 5 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_8008(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101806
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101806 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_8008(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134026, suite = 6 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_8009(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101807
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101807 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_8009(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134026, suite = 7 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_8010(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101808
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101808 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_8010(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134026, suite = 8 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_8011(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为0
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_8011(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134026, suite = 10 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134005, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 将本组内变量名为 "door1" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "door1", 0, 220134033) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_8012(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101834
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101834 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_8012(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134026, suite = 9 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_8013(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"camera"为0
if ScriptLib.GetGroupVariableValue(context, "camera") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_8013(context, evt)
-- 触发镜头注目,注目位置为坐标(469,634,-1607),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=469, y=634, z=-1607}
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
-- 将本组内变量名为 "camera" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "camera", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
require "V2_8/HandleGivingResult"
@@ -0,0 +1,114 @@
-- 基础信息
local base_info = {
group_id = 220134009
}
-- DEFS_MISCS
local defs = {
--连线形态
patterns =
{
--形态1
[1] =
{
[9001] = 9002,
[9002] = 9004,
[9003] = 9001,
[9004] = 9005,
[9005] = 9003,
[9006] = 9002,
[9007] = 9003,
[9008] = 9007,
},
--形态2
[2] =
{
[35001] = 35003,
[35002] = 35004,
[35003] = 35004,
[35004] = 35006,
[35005] = 35001,
[35006] = 35001,
},
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[9001] = { config_id = 9001, gadget_id = 70310179, pos = { x = 600.648, y = 660.000, z = -1687.878 }, rot = { x = 0.000, y = 112.208, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[9002] = { config_id = 9002, gadget_id = 70310454, pos = { x = 596.497, y = 660.000, z = -1680.625 }, rot = { x = 0.000, y = 112.208, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[9003] = { config_id = 9003, gadget_id = 70310179, pos = { x = 591.963, y = 660.000, z = -1690.721 }, rot = { x = 0.000, y = 112.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[9004] = { config_id = 9004, gadget_id = 70310179, pos = { x = 592.034, y = 660.000, z = -1683.564 }, rot = { x = 0.000, y = 112.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[9005] = { config_id = 9005, gadget_id = 70310454, pos = { x = 595.614, y = 660.000, z = -1688.122 }, rot = { x = 0.000, y = 112.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[9006] = { config_id = 9006, gadget_id = 70310179, pos = { x = 588.456, y = 660.000, z = -1672.687 }, rot = { x = 0.000, y = 112.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[9007] = { config_id = 9007, gadget_id = 70310454, pos = { x = 581.835, y = 660.000, z = -1690.529 }, rot = { x = 0.000, y = 112.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[9008] = { config_id = 9008, gadget_id = 70310179, pos = { x = 588.456, y = 660.000, z = -1672.687 }, rot = { x = 0.000, y = 112.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[9009] = { config_id = 9009, gadget_id = 70310389, pos = { x = 590.416, y = 660.883, z = -1683.507 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 9001, 9002, 9003, 9004, 9005, 9006, 9007, 9008, 9009 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V2_8/ConstellationPattern"
@@ -0,0 +1,191 @@
-- 基础信息
local base_info = {
group_id = 220134010
}
-- DEFS_MISCS
local defs = {
gear_info =
{ --connect: 每个物件各个旋转档位可连接的对象 0表示无可连接
[1] = { config_id=10001 , connect = {10002, 10004,10005, 10003}, point_array_id =7 },
[2] = { config_id=10002, connect = {10001,10005,10003,10004}, point_array_id = 8 },
[3] = { config_id= 10003 , connect = {10001,10002,10007}, point_array_id = 9},
[4] = { config_id=10004 , connect = {10002,10005,10003}, point_array_id = 10},
[5] = { config_id= 10005 , connect = {10002,10001,10003}, point_array_id = 11 },
[6] = { config_id=10006 , connect = {10001,10004,10007}, point_array_id = 12 },
[7] = { config_id=10007 , connect = {10003,10004,10006}, point_array_id = 13 },
},
--几种解
solutions =
{
--[解法x] = {gear_info[1]切到它的第x档, gear_info[2]切到它的第y档...}
[1] = { connection = {4,4,3,2,3,1,3}, ends = { }},
},
turn_option = 31,
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10001, gadget_id = 70310178, pos = { x = 601.984, y = 619.960, z = -1650.954 }, rot = { x = 0.000, y = 326.573, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 10002, gadget_id = 70310178, pos = { x = 598.334, y = 619.955, z = -1643.532 }, rot = { x = 0.000, y = 240.415, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 10003, gadget_id = 70310178, pos = { x = 593.349, y = 619.955, z = -1651.093 }, rot = { x = 0.000, y = 265.957, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 10004, gadget_id = 70310178, pos = { x = 594.717, y = 619.950, z = -1645.159 }, rot = { x = 0.000, y = 187.522, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 10005, gadget_id = 70310178, pos = { x = 596.122, y = 619.953, z = -1649.410 }, rot = { x = 0.000, y = 232.855, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 10006, gadget_id = 70310178, pos = { x = 593.322, y = 619.965, z = -1633.698 }, rot = { x = 1.238, y = 211.250, z = 356.186 }, level = 1, is_use_point_array = true },
{ config_id = 10007, gadget_id = 70310178, pos = { x = 582.822, y = 619.965, z = -1651.545 }, rot = { x = 2.082, y = 26.142, z = 1.135 }, level = 1, is_use_point_array = true },
{ config_id = 10009, gadget_id = 70290428, pos = { x = 611.361, y = 621.394, z = -1656.906 }, rot = { x = 0.000, y = 301.230, z = 0.000 }, level = 1 },
{ config_id = 10010, gadget_id = 70290428, pos = { x = 611.361, y = 630.967, z = -1656.906 }, rot = { x = 0.000, y = 301.230, z = 0.000 }, level = 1 },
{ config_id = 10011, gadget_id = 70211111, pos = { x = 582.266, y = 620.056, z = -1639.298 }, rot = { x = 0.000, y = 121.077, z = 0.000 }, level = 16, chest_drop_id = 1050206, drop_count = 1, isOneoff = true, persistent = true, autopick = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1010008, name = "GADGET_STATE_CHANGE_10008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_10008", action = "action_EVENT_GADGET_STATE_CHANGE_10008", trigger_count = 0 },
-- 满足解法条件生成宝箱
{ config_id = 1010012, name = "VARIABLE_CHANGE_10012", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_10012", action = "action_EVENT_VARIABLE_CHANGE_10012", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "finish", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 10001, 10002, 10003, 10004, 10005, 10006, 10007, 10009, 10010 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_10008", "VARIABLE_CHANGE_10012" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 10011 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_10008(context, evt)
if 10011 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_10008(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroom2complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220134016, 2)
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220134010, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 10009 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 10010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_10012(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"solution"为1
if ScriptLib.GetGroupVariableValue(context, "solution") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_10012(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220134010, 2)
-- 将本组内变量名为 "finish" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finish", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
require "V2_8/ConstellationMachine"
@@ -0,0 +1,200 @@
-- 基础信息
local base_info = {
group_id = 220134011
}
-- DEFS_MISCS
local defs = {
gear_info =
{ --connect: 每个物件各个旋转档位可连接的对象 0表示无可连接
[1] = { config_id=11001 , connect = {11002,11003,11004}, point_array_id = 14 },
[2] = { config_id=11002 , connect = {11007,11006,11003, 11001}, point_array_id = 15 },
[3] = { config_id= 11003 , connect = {11006,11004,11001, 11002}, point_array_id = 16},
[4] = { config_id=11004 , connect = {11003,11006, 11009,11005}, point_array_id = 17},
[5] = { config_id= 11005 , connect = {11006,11009,11010, 11004}, point_array_id = 18 },
[6] = { config_id=11006 , connect = {11007,11009,11003}, point_array_id = 19 },
[7] = { config_id=11007 , connect = {11008,11006,11002}, point_array_id = 20 },
[8] = { config_id=11008 , connect = {11007,11006,11009}, point_array_id = 21 },
[9] = { config_id=11009 , connect = {11010,11005, 11006,11007}, point_array_id = 22 },
[10] = { config_id=11010 , connect = {11005,11009}, point_array_id = 23 },
},
--几种解
solutions =
{
--[解法x] = {gear_info[1]切到它的第x档, gear_info[2]切到它的第y档...}
[1] = { connection = {1,3,2,4,4,3,2,1,3,2}, ends = {11005 }},
[2] = { connection = {1,3,2,4,4,3,2,1,3,2}, ends = {11004 }},
[3] = { connection = {1,4,4,1,4,3,2,1,3,2}, ends = {11001 }},
[4] = { connection = {1,4,4,1,4,3,2,1,3,2}, ends = {11002 }},
[5] = { connection = {1,3,0,1,4,3,2,1,3,2}, ends = { }},
[6] = { connection = {1,3,1,1,4,1,2,1,3,2}, ends = {11006}},
[7] = { connection = {1,3,1,1,4,2,2,1,1,2}, ends = {11010}},
[8] = { connection = {1,3,1,1,4,2,2,1,1,2}, ends = {11009}},
[9] = { connection = {1,3,1,1,4,1,1,1,3,2}, ends = {11008 }},
[10] = { connection = {1,3,1,1,4,1,1,1,3,2}, ends = {11007 }},
},
turn_option = 31,
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 11001, gadget_id = 70310178, pos = { x = 614.577, y = 618.793, z = -1534.032 }, rot = { x = 0.000, y = 179.345, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 11002, gadget_id = 70310178, pos = { x = 609.276, y = 618.793, z = -1534.309 }, rot = { x = 0.000, y = 87.196, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 11003, gadget_id = 70310178, pos = { x = 612.182, y = 618.793, z = -1540.792 }, rot = { x = 0.000, y = 334.823, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 11004, gadget_id = 70310178, pos = { x = 614.935, y = 618.793, z = -1547.068 }, rot = { x = 0.000, y = 242.340, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 11005, gadget_id = 70310178, pos = { x = 611.604, y = 618.793, z = -1548.746 }, rot = { x = 359.572, y = 71.938, z = 0.168 }, level = 1, is_use_point_array = true },
{ config_id = 11006, gadget_id = 70310178, pos = { x = 605.574, y = 618.793, z = -1543.525 }, rot = { x = 0.000, y = 77.029, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 11007, gadget_id = 70310178, pos = { x = 602.058, y = 618.793, z = -1539.591 }, rot = { x = 0.000, y = 50.326, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 11008, gadget_id = 70310178, pos = { x = 599.097, y = 618.793, z = -1540.663 }, rot = { x = 0.000, y = 147.917, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 11009, gadget_id = 70310178, pos = { x = 604.016, y = 618.793, z = -1548.048 }, rot = { x = 0.000, y = 341.130, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 11010, gadget_id = 70310178, pos = { x = 607.587, y = 618.793, z = -1552.154 }, rot = { x = 0.000, y = 321.244, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 11011, gadget_id = 70211111, pos = { x = 620.423, y = 618.968, z = -1537.197 }, rot = { x = 0.000, y = 248.228, z = 0.000 }, level = 16, chest_drop_id = 1050205, drop_count = 1, isOneoff = true, persistent = true, autopick = true },
{ config_id = 11014, gadget_id = 70290428, pos = { x = 622.758, y = 618.869, z = -1568.071 }, rot = { x = 0.000, y = 336.364, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 满足解法条件生成宝箱
{ config_id = 1011012, name = "VARIABLE_CHANGE_11012", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_11012", action = "action_EVENT_VARIABLE_CHANGE_11012", trigger_count = 0 },
{ config_id = 1011013, name = "GADGET_STATE_CHANGE_11013", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_11013", action = "action_EVENT_GADGET_STATE_CHANGE_11013", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "finish", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 11001, 11002, 11003, 11004, 11005, 11006, 11007, 11008, 11009, 11010, 11014 },
regions = { },
triggers = { "VARIABLE_CHANGE_11012", "GADGET_STATE_CHANGE_11013" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 11011 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_11012(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 == evt.param2 then return false end
-- 判断变量"solution"为3
if ScriptLib.GetGroupVariableValue(context, "solution") < 1
then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_11012(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220134011, 2)
-- 将本组内变量名为 "finish" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finish", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_11013(context, evt)
if 11011 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_11013(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroom3complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220134017, 2)
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220134011, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 11014 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
require "V2_8/ConstellationMachine"
@@ -0,0 +1,126 @@
-- 基础信息
local base_info = {
group_id = 220134012
}
-- DEFS_MISCS
local defs = {
--连线形态
patterns =
{
--形态1
[1] =
{
[12001] = 12002,
[12002] = 12003,
[12003] = 12006,
[12004] = 12003,
[12005] = 12004,
[12006] = 12007,
[12007] = 12008,
[12008] = 12007,
[12009] = 12006,
[12010] = 12009,
},
--形态2
[2] =
{
[35001] = 35003,
[35002] = 35004,
[35003] = 35004,
[35004] = 35006,
[35005] = 35001,
[35006] = 35001,
},
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[12001] = { config_id = 12001, gadget_id = 70310179, pos = { x = 637.497, y = 618.034, z = -1590.327 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[12002] = { config_id = 12002, gadget_id = 70310454, pos = { x = 636.546, y = 618.034, z = -1587.090 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[12003] = { config_id = 12003, gadget_id = 70310179, pos = { x = 633.580, y = 618.034, z = -1589.614 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[12004] = { config_id = 12004, gadget_id = 70310179, pos = { x = 630.264, y = 618.034, z = -1591.870 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[12005] = { config_id = 12005, gadget_id = 70310454, pos = { x = 628.902, y = 618.034, z = -1589.683 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[12006] = { config_id = 12006, gadget_id = 70310454, pos = { x = 630.995, y = 618.034, z = -1585.917 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[12007] = { config_id = 12007, gadget_id = 70310179, pos = { x = 631.478, y = 618.034, z = -1582.402 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[12008] = { config_id = 12008, gadget_id = 70310454, pos = { x = 629.831, y = 618.034, z = -1580.951 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[12009] = { config_id = 12009, gadget_id = 70310179, pos = { x = 627.883, y = 618.034, z = -1585.563 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[12010] = { config_id = 12010, gadget_id = 70310179, pos = { x = 626.084, y = 618.034, z = -1587.859 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 12001, 12002, 12003, 12004, 12005, 12006, 12007, 12008, 12009, 12010 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V2_8/ConstellationPattern"
@@ -0,0 +1,216 @@
-- 基础信息
local base_info = {
group_id = 220134013
}
-- DEFS_MISCS
local defs = {
gear_info =
{ --connect: 每个物件各个旋转档位可连接的对象 0表示无可连接
[1] = { config_id=13001 , connect = {13002, 13006, 13004}, point_array_id = 24 },
[2] = { config_id=13002 , connect = {13003, 13006 , 13004, 13001}, point_array_id = 25 },
[3] = { config_id= 13003 , connect = {13009, 13007, 13006, 13002}, point_array_id = 26},
[4] = { config_id=13004 , connect = {13001, 13002, 13006, 13005}, point_array_id = 27},
[5] = { config_id= 13005 , connect = {13006, 13008, 13010, 13004}, point_array_id = 28 },
[6] = { config_id=13006 , connect = {13002, 13004, 13008, 13007}, point_array_id = 29 },
[7] = { config_id=13007 , connect = {13003, 13009, 13008, 13006}, point_array_id = 30},
[8] = { config_id=13008 , connect = {13006, 13007, 13010, 13005}, point_array_id = 31},
[9] = { config_id=13009 , connect = {13010, 13008, 13007}, point_array_id = 32 },
[10] = { config_id=13010 , connect = {13009, 13007, 13008}, point_array_id = 33 },
},
--几种解
solutions =
{
--[解法x] = {gear_info[1]切到它的第x档, gear_info[2]切到它的第y档...}
[1] = { connection = {2,2,3,3,1,4,2,1,1,3}, ends = { }},
[2] = { connection = {2,2,3,3,1,3,4,3,3,1}, ends = { }},
},
turn_option = 31,
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 13001, gadget_id = 70310178, pos = { x = 388.172, y = 612.565, z = -1523.242 }, rot = { x = 0.000, y = 71.446, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 13002, gadget_id = 70310178, pos = { x = 390.381, y = 612.567, z = -1527.980 }, rot = { x = 0.000, y = 330.057, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 13003, gadget_id = 70310178, pos = { x = 391.497, y = 612.569, z = -1534.406 }, rot = { x = 0.000, y = 344.479, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 13004, gadget_id = 70310178, pos = { x = 393.064, y = 612.567, z = -1521.380 }, rot = { x = 0.000, y = 53.901, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 13005, gadget_id = 70310178, pos = { x = 398.285, y = 612.567, z = -1517.433 }, rot = { x = 0.000, y = 235.407, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 13006, gadget_id = 70310178, pos = { x = 395.109, y = 612.563, z = -1526.120 }, rot = { x = 0.000, y = 250.364, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 13007, gadget_id = 70310178, pos = { x = 396.998, y = 612.563, z = -1530.675 }, rot = { x = 0.000, y = 340.250, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 13008, gadget_id = 70310178, pos = { x = 399.484, y = 612.313, z = -1523.844 }, rot = { x = 0.000, y = 339.370, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 13009, gadget_id = 70310178, pos = { x = 402.528, y = 612.491, z = -1535.258 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 13010, gadget_id = 70310178, pos = { x = 407.115, y = 612.569, z = -1525.067 }, rot = { x = 0.000, y = 278.924, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 13011, gadget_id = 70211111, pos = { x = 410.257, y = 612.570, z = -1531.505 }, rot = { x = 0.000, y = 292.238, z = 0.000 }, level = 16, chest_drop_id = 1050204, drop_count = 1, isOneoff = true, persistent = true, autopick = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 满足解法条件生成宝箱
{ config_id = 1013012, name = "VARIABLE_CHANGE_13012", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_13012", action = "action_EVENT_VARIABLE_CHANGE_13012", trigger_count = 0 },
{ config_id = 1013013, name = "GADGET_STATE_CHANGE_13013", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_13013", action = "action_EVENT_GADGET_STATE_CHANGE_13013", trigger_count = 0 },
{ config_id = 1013014, name = "QUEST_START_13014", event = EventType.EVENT_QUEST_START, source = "4007606", condition = "condition_EVENT_QUEST_START_13014", action = "action_EVENT_QUEST_START_13014", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "finish", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 13001, 13002, 13003, 13004, 13005, 13006, 13007, 13008, 13009, 13010 },
regions = { },
triggers = { "VARIABLE_CHANGE_13012", "GADGET_STATE_CHANGE_13013", "QUEST_START_13014" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 13011 },
regions = { },
triggers = { "QUEST_START_13014" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_13012(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 == evt.param2 then return false end
-- 判断变量"solution"为1
if ScriptLib.GetGroupVariableValue(context, "solution") < 1
then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13012(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220134013, 2)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_13013(context, evt)
if 13011 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_13013(context, evt)
-- 将本组内变量名为 "finish" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "finish", 1, 220134014) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "finish" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finish", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroom4complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220134018, 2)
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220134013, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220134018, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_13014(context, evt)
-- 判断变量"finish"为1
if ScriptLib.GetGroupVariableValue(context, "finish") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_13014(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroom4complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
require "V2_8/ConstellationMachine"
@@ -0,0 +1,670 @@
-- 基础信息
local base_info = {
group_id = 220134014
}
-- DEFS_MISCS
function SLC_Try_Trans_Player(context)
ScriptLib.TransPlayerToPos(context, {uid_list = {ScriptLib.GetSceneOwnerUid(context)}, pos = {x=395, y= 638, z=-1524}, radius = 1, rot = {x=0,y=180,z=0}, is_skip_ui=false})
return 0
end
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[14001] = { config_id = 14001, gadget_id = 70310405, pos = { x = 359.266, y = 692.635, z = -1567.969 }, rot = { x = 0.000, y = 200.623, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[14002] = { config_id = 14002, gadget_id = 70310406, pos = { x = 406.187, y = 682.889, z = -1464.562 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[14003] = { config_id = 14003, gadget_id = 70310407, pos = { x = 443.857, y = 722.710, z = -1548.639 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[14004] = { config_id = 14004, gadget_id = 70360002, pos = { x = 401.905, y = 612.587, z = -1528.624 }, rot = { x = 0.000, y = 112.634, z = 0.000 }, level = 1, worktop_config = { init_options = { 413 } } },
[14010] = { config_id = 14010, gadget_id = 70310388, pos = { x = 395.000, y = 612.601, z = -1524.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true },
[14011] = { config_id = 14011, gadget_id = 70310389, pos = { x = 393.703, y = 699.706, z = -1525.280 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[14012] = { config_id = 14012, gadget_id = 70380328, pos = { x = 395.661, y = 610.957, z = -1524.258 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true },
[14013] = { config_id = 14013, gadget_id = 70290428, pos = { x = 427.395, y = 611.515, z = -1537.074 }, rot = { x = 0.000, y = 294.254, z = 0.000 }, level = 1 },
-- 下
[14016] = { config_id = 14016, gadget_id = 70360001, pos = { x = 395.000, y = 612.601, z = -1524.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 416 } } },
-- 上
[14019] = { config_id = 14019, gadget_id = 70360001, pos = { x = 395.000, y = 637.799, z = -1524.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 410 } } },
[14020] = { config_id = 14020, gadget_id = 70290428, pos = { x = 359.382, y = 633.992, z = -1508.369 }, rot = { x = 0.000, y = 294.254, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
[14009] = { config_id = 14009, shape = RegionShape.SPHERE, radius = 10, pos = { x = 401.816, y = 612.601, z = -1528.525 }, ability_group_list = { "RegionAbility_Dreamland_MonaCamera" } },
[14026] = { config_id = 14026, shape = RegionShape.CUBIC, size = { x = 100.000, y = 10.000, z = 100.000 }, pos = { x = 396.610, y = 612.747, z = -1523.321 }, team_ability_group_list = { "MonaDreamland_Enter_TransPlayer_Handle_2" } }
}
-- 触发器
triggers = {
{ config_id = 1014005, name = "SELECT_OPTION_14005", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_14005", action = "action_EVENT_SELECT_OPTION_14005", trigger_count = 0 },
{ config_id = 1014006, name = "SELECT_OPTION_14006", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_14006", action = "action_EVENT_SELECT_OPTION_14006", trigger_count = 0 },
{ config_id = 1014007, name = "SELECT_OPTION_14007", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_14007", action = "action_EVENT_SELECT_OPTION_14007", trigger_count = 0 },
{ config_id = 1014008, name = "VARIABLE_CHANGE_14008", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_14008", action = "action_EVENT_VARIABLE_CHANGE_14008", trigger_count = 0 },
{ config_id = 1014014, name = "PLATFORM_REACH_POINT_14014", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_14014", action = "action_EVENT_PLATFORM_REACH_POINT_14014", trigger_count = 0 },
{ config_id = 1014015, name = "PLATFORM_REACH_POINT_14015", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_14015", action = "action_EVENT_PLATFORM_REACH_POINT_14015", trigger_count = 0 },
-- 选上升
{ config_id = 1014017, name = "SELECT_OPTION_14017", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_14017", action = "action_EVENT_SELECT_OPTION_14017", trigger_count = 0 },
-- 选下降
{ config_id = 1014018, name = "SELECT_OPTION_14018", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_14018", action = "action_EVENT_SELECT_OPTION_14018", trigger_count = 0 },
{ config_id = 1014021, name = "PLATFORM_REACH_POINT_14021", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_14021", action = "action_EVENT_PLATFORM_REACH_POINT_14021", trigger_count = 0 },
-- 非选择销毁
{ config_id = 1014022, name = "PLATFORM_REACH_POINT_14022", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_14022", action = "action_EVENT_PLATFORM_REACH_POINT_14022", trigger_count = 0 },
-- 非选择销毁
{ config_id = 1014023, name = "PLATFORM_REACH_POINT_14023", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_14023", action = "action_EVENT_PLATFORM_REACH_POINT_14023", trigger_count = 0 },
-- 非选择销毁
{ config_id = 1014024, name = "PLATFORM_REACH_POINT_14024", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_14024", action = "action_EVENT_PLATFORM_REACH_POINT_14024", trigger_count = 0 },
{ config_id = 1014025, name = "SELECT_OPTION_14025", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_14025", action = "action_EVENT_SELECT_OPTION_14025", trigger_count = 0 },
{ config_id = 1014027, name = "PLATFORM_REACH_POINT_14027", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_14027", action = "action_EVENT_PLATFORM_REACH_POINT_14027", trigger_count = 0 },
{ config_id = 1014028, name = "GROUP_LOAD_14028", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_14028", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "count", value = 2, no_refresh = true },
{ config_id = 2, name = "finish", value = 0, no_refresh = true },
{ config_id = 3, name = "camera", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 14004, 14011 },
regions = { },
triggers = { "SELECT_OPTION_14005", "SELECT_OPTION_14006", "SELECT_OPTION_14007", "VARIABLE_CHANGE_14008", "PLATFORM_REACH_POINT_14014", "PLATFORM_REACH_POINT_14015", "SELECT_OPTION_14017", "SELECT_OPTION_14018", "PLATFORM_REACH_POINT_14021", "PLATFORM_REACH_POINT_14022", "PLATFORM_REACH_POINT_14023", "PLATFORM_REACH_POINT_14024", "SELECT_OPTION_14025", "PLATFORM_REACH_POINT_14027", "GROUP_LOAD_14028" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 14010, 14012, 14016, 14019 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { 14026 },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_14005(context, evt)
-- 判断是gadgetid 14004 option_id 413
if 14004 ~= evt.param1 then
return false
end
if 413 ~= evt.param2 then
return false
end
-- 判断变量"count"为2
if ScriptLib.GetGroupVariableValue(context, "count") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_14005(context, evt)
ScriptLib.CreateGadget(context, { config_id = 14001 })
local tempParam = {route_type = 0, turn_mode = false}
ScriptLib.SetPlatformPointArray(context, 14001, 64, {2}, tempParam)
local tempParam = {route_type = 0, turn_mode = false}
ScriptLib.SetPlatformPointArray(context, 14002, 66, {1}, tempParam)
local tempParam = {route_type = 0, turn_mode = false}
ScriptLib.SetPlatformPointArray(context, 14003, 65, {2}, tempParam)
ScriptLib.ChangeGroupVariableValueByGroup(context, "count", 1, 220134014)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_14006(context, evt)
-- 判断是gadgetid 14004 option_id 413
if 14004 ~= evt.param1 then
return false
end
if 413 ~= evt.param2 then
return false
end
-- 判断变量"count"为3
if ScriptLib.GetGroupVariableValue(context, "count") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_14006(context, evt)
ScriptLib.CreateGadget(context, { config_id = 14002 })
local tempParam = {route_type = 0, turn_mode = false}
ScriptLib.SetPlatformPointArray(context, 14001, 64, {1}, tempParam)
local tempParam = {route_type = 0, turn_mode = false}
ScriptLib.SetPlatformPointArray(context, 14002, 66, {3}, tempParam)
local tempParam = {route_type = 0, turn_mode = false}
ScriptLib.SetPlatformPointArray(context, 14003, 65, {2}, tempParam)
ScriptLib.ChangeGroupVariableValueByGroup(context, "count", 1, 220134014)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_14007(context, evt)
-- 判断是gadgetid 14004 option_id 413
if 14004 ~= evt.param1 then
return false
end
if 413 ~= evt.param2 then
return false
end
-- 判断变量"count"为1
if ScriptLib.GetGroupVariableValue(context, "count") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_14007(context, evt)
ScriptLib.CreateGadget(context, { config_id = 14003 })
local tempParam = {route_type = 0, turn_mode = false}
ScriptLib.SetPlatformPointArray(context, 14001, 64, {1}, tempParam)
local tempParam = {route_type = 0, turn_mode = false}
ScriptLib.SetPlatformPointArray(context, 14002, 66, {1}, tempParam)
local tempParam = {route_type = 0, turn_mode = false}
ScriptLib.SetPlatformPointArray(context, 14003, 65, {1}, tempParam)
ScriptLib.ChangeGroupVariableValueByGroup(context, "count", 1, 220134014)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_14008(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 == evt.param2 then return false end
-- 判断变量"count"为4
if ScriptLib.GetGroupVariableValue(context, "count") <4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_14008(context, evt)
-- 将本组内变量名为 "count" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_14014(context, evt)
-- 判断是gadgetid 为 14002的移动平台,是否到达了66 的点集中的 3 点
if 14002 ~= evt.param1 then
return false
end
if 66 ~= evt.param2 then
return false
end
if 3 ~= evt.param3 then
return false
end
-- 判断变量"finish"为1
if ScriptLib.GetGroupVariableValue(context, "finish") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_14014(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220134014, 2)
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_14015(context, evt)
-- 判断是gadgetid 为 14002的移动平台,是否到达了66 的点集中的 3 点
if 14002 ~= evt.param1 then
return false
end
if 66 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 or 2 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_14015(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220134014, 2)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_14017(context, evt)
-- 判断是gadgetid 14016 option_id 416
if 14016 ~= evt.param1 then
return false
end
if 416 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_14017(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 14012, 106, {4}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 创建id为14013的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 14013 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为14020的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 14020 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 触发镜头注目,注目位置为坐标(393.7027699.7061-1525.28),持续时间为5秒,并且为强制注目形式,不广播其他玩家
local pos = {x=393.7027, y=699.7061, z=-1525.28}
local pos_follow = {x=2, y=-2, z=16}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = true, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_14018(context, evt)
-- 判断是gadgetid 14019 option_id 410
if 14019 ~= evt.param1 then
return false
end
if 410 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_14018(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 14010, 106, {1}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 14012, 106, {1,3}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220134014, 3)
-- 触发镜头注目,注目位置为坐标(393.7027699.7061-1525.28),持续时间为5秒,并且为强制注目形式,不广播其他玩家
local pos = {x=393.7027, y=699.7061, z=-1525.28}
local pos_follow = {x=2, y=-2, z=16}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = true, 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
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220134014, EntityType.GADGET, 14013 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220134014, EntityType.GADGET, 14020 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_14021(context, evt)
-- 判断是gadgetid 为 14012的移动平台,是否到达了106 的点集中的 4 点
if 14012 ~= evt.param1 then
return false
end
if 106 ~= evt.param2 then
return false
end
if 4 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_14021(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 14010, 106, {2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 14012, 106, {2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_14022(context, evt)
-- 判断是gadgetid 为 14001的移动平台,是否到达了64 的点集中的 1 点
if 14001 ~= evt.param1 then
return false
end
if 64 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_14022(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220134014, EntityType.GADGET, 14001 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_14023(context, evt)
-- 判断是gadgetid 为 14002的移动平台,是否到达了66 的点集中的 1 点
if 14002 ~= evt.param1 then
return false
end
if 66 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_14023(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220134014, EntityType.GADGET, 14002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_14024(context, evt)
-- 判断是gadgetid 为 14003的移动平台,是否到达了65 的点集中的 2 点
if 14003 ~= evt.param1 then
return false
end
if 65 ~= evt.param2 then
return false
end
if 2 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_14024(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220134014, EntityType.GADGET, 14003 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_14025(context, evt)
-- 判断是gadgetid 14004 option_id 413
if 14004 ~= evt.param1 then
return false
end
if 413 ~= evt.param2 then
return false
end
-- 判断变量"camera"为0
if ScriptLib.GetGroupVariableValue(context, "camera") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_14025(context, evt)
-- 触发镜头注目,注目位置为坐标(393,699,-1525),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=393, y=699, z=-1525}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = true, 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
-- 将本组内变量名为 "camera" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "camera", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_14027(context, evt)
-- 判断是gadgetid 为 14012的移动平台,是否到达了106 的点集中的 2 点
if 14012 ~= evt.param1 then
return false
end
if 106 ~= evt.param2 then
return false
end
if 2 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_14027(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220134014, 3)
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_14028(context, evt)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220134014, 3)
return 0
end
@@ -0,0 +1,258 @@
-- 基础信息
local base_info = {
group_id = 220134015
}
-- Trigger变量
local defs = {
point_sum = 12,
route_2 = 1,
gadget_seelie = 15002
}
-- DEFS_MISCS
defs.final_point = defs.point_sum - 1
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 15002, gadget_id = 70310244, pos = { x = 388.114, y = 612.962, z = -1648.154 }, rot = { x = 0.000, y = 67.165, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 15007, shape = RegionShape.SPHERE, radius = 5, pos = { x = 388.896, y = 613.406, z = -1648.215 } }
}
-- 触发器
triggers = {
{ config_id = 1015001, name = "GADGET_CREATE_15001", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_15001", action = "action_EVENT_GADGET_CREATE_15001", trigger_count = 0 },
{ config_id = 1015003, name = "GROUP_LOAD_15003", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_15003", trigger_count = 0 },
{ config_id = 1015005, name = "PLATFORM_REACH_POINT_15005", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_15005", action = "action_EVENT_PLATFORM_REACH_POINT_15005", trigger_count = 0 },
{ config_id = 1015006, name = "AVATAR_NEAR_PLATFORM_15006", event = EventType.EVENT_AVATAR_NEAR_PLATFORM, source = "", condition = "condition_EVENT_AVATAR_NEAR_PLATFORM_15006", action = "action_EVENT_AVATAR_NEAR_PLATFORM_15006", trigger_count = 0 },
{ config_id = 1015007, name = "ENTER_REGION_15007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_15007", action = "action_EVENT_ENTER_REGION_15007", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "reach", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { },
regions = { 15007 },
triggers = { "GADGET_CREATE_15001", "GROUP_LOAD_15003", "PLATFORM_REACH_POINT_15005", "AVATAR_NEAR_PLATFORM_15006", "ENTER_REGION_15007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 15002 },
regions = { 15007 },
triggers = { "GADGET_CREATE_15001", "GROUP_LOAD_15003", "PLATFORM_REACH_POINT_15005", "AVATAR_NEAR_PLATFORM_15006", "ENTER_REGION_15007" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_15001(context, evt)
if 15002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_15001(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 15002, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 15002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_15003(context, evt)
if ScriptLib.GetHostQuestState(context,4007417)==2 or ScriptLib.GetHostQuestState(context,4007406)==2 then
ScriptLib.RefreshGroup(context, { group_id = 220134015, suite = 2 })
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_15005(context, evt)
if defs.gadget_seelie ~= evt.param1 then
return false
end
if defs.route_2 ~= evt.param2 then
return false
end
if defs.final_point ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_15005(context, evt)
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 15002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 15002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroute1complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 将本组内变量名为 "reach" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "reach", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_15006(context, evt)
if defs.gadget_seelie ~= evt.param1 then
return false
end
if defs.route_2 ~= evt.param2 then
return false
end
if defs.final_point == evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_AVATAR_NEAR_PLATFORM_15006(context, evt)
if 0 ~= ScriptLib.StartPlatform(context, 15002) then
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= evt.param3 then
ScriptLib.MarkPlayerAction(context, 2005, 2, evt.param3 + 1)
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_15007(context, evt)
if evt.param1 ~= 15007 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_15007(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 15002, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 15002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
@@ -0,0 +1,259 @@
-- 基础信息
local base_info = {
group_id = 220134016
}
-- Trigger变量
local defs = {
point_sum = 27,
route_2 = 2,
gadget_seelie = 16001
}
-- DEFS_MISCS
defs.final_point = defs.point_sum - 1
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 16001, gadget_id = 70310244, pos = { x = 582.338, y = 620.400, z = -1639.299 }, rot = { x = 0.000, y = 316.716, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 16005, shape = RegionShape.SPHERE, radius = 5, pos = { x = 601.745, y = 619.622, z = -1650.804 } }
}
-- 触发器
triggers = {
{ config_id = 1016002, name = "GADGET_CREATE_16002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_16002", action = "action_EVENT_GADGET_CREATE_16002", trigger_count = 0 },
{ config_id = 1016003, name = "PLATFORM_REACH_POINT_16003", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_16003", action = "action_EVENT_PLATFORM_REACH_POINT_16003", trigger_count = 0 },
{ config_id = 1016004, name = "AVATAR_NEAR_PLATFORM_16004", event = EventType.EVENT_AVATAR_NEAR_PLATFORM, source = "", condition = "condition_EVENT_AVATAR_NEAR_PLATFORM_16004", action = "action_EVENT_AVATAR_NEAR_PLATFORM_16004", trigger_count = 0 },
{ config_id = 1016005, name = "ENTER_REGION_16005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_16005", action = "action_EVENT_ENTER_REGION_16005", trigger_count = 0 },
{ config_id = 1016006, name = "GROUP_LOAD_16006", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_16006", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "reach", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { },
regions = { 16005 },
triggers = { "GADGET_CREATE_16002", "PLATFORM_REACH_POINT_16003", "AVATAR_NEAR_PLATFORM_16004", "ENTER_REGION_16005", "GROUP_LOAD_16006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 16001 },
regions = { 16005 },
triggers = { "GADGET_CREATE_16002", "PLATFORM_REACH_POINT_16003", "AVATAR_NEAR_PLATFORM_16004", "ENTER_REGION_16005", "GROUP_LOAD_16006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_16002(context, evt)
if 16001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_16002(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 16001, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 16001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_16003(context, evt)
if defs.gadget_seelie ~= evt.param1 then
return false
end
if defs.route_2 ~= evt.param2 then
return false
end
if defs.final_point ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_16003(context, evt)
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 16001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 16001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroute2complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 将本组内变量名为 "reach" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "reach", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_16004(context, evt)
if defs.gadget_seelie ~= evt.param1 then
return false
end
if defs.route_2 ~= evt.param2 then
return false
end
if defs.final_point == evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_AVATAR_NEAR_PLATFORM_16004(context, evt)
if 0 ~= ScriptLib.StartPlatform(context, 16001) then
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= evt.param3 then
ScriptLib.MarkPlayerAction(context, 2005, 2, evt.param3 + 1)
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_16005(context, evt)
if evt.param1 ~= 16005 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_16005(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 16001, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 16001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_16006(context, evt)
-- 添加suite2的新内容
if ScriptLib.GetHostQuestState(context,4007504)==2 then
ScriptLib.AddExtraGroupSuite(context, 220134016, 2)
end
return 0
end
@@ -0,0 +1,359 @@
-- 基础信息
local base_info = {
group_id = 220134017
}
-- Trigger变量
local defs = {
point_sum = 35,
route_2 = 3,
gadget_seelie = 17001
}
-- DEFS_MISCS
defs.final_point = defs.point_sum - 1
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 17001, gadget_id = 70310244, pos = { x = 620.426, y = 618.834, z = -1537.330 }, rot = { x = 0.000, y = 222.805, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 17005, shape = RegionShape.SPHERE, radius = 5, pos = { x = 620.426, y = 618.834, z = -1537.330 } }
}
-- 触发器
triggers = {
{ config_id = 1017002, name = "GADGET_CREATE_17002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_17002", action = "action_EVENT_GADGET_CREATE_17002", trigger_count = 0 },
{ config_id = 1017003, name = "PLATFORM_REACH_POINT_17003", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_17003", action = "action_EVENT_PLATFORM_REACH_POINT_17003", trigger_count = 0 },
{ config_id = 1017004, name = "AVATAR_NEAR_PLATFORM_17004", event = EventType.EVENT_AVATAR_NEAR_PLATFORM, source = "", condition = "condition_EVENT_AVATAR_NEAR_PLATFORM_17004", action = "action_EVENT_AVATAR_NEAR_PLATFORM_17004", trigger_count = 0 },
{ config_id = 1017005, name = "ENTER_REGION_17005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_17005", action = "action_EVENT_ENTER_REGION_17005", trigger_count = 0 },
{ config_id = 1017006, name = "VARIABLE_CHANGE_17006", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_17006", action = "action_EVENT_VARIABLE_CHANGE_17006", trigger_count = 0 },
{ config_id = 1017007, name = "GROUP_LOAD_17007", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_17007", trigger_count = 0 },
{ config_id = 1017008, name = "AVATAR_NEAR_PLATFORM_17008", event = EventType.EVENT_AVATAR_NEAR_PLATFORM, source = "", condition = "condition_EVENT_AVATAR_NEAR_PLATFORM_17008", action = "action_EVENT_AVATAR_NEAR_PLATFORM_17008", trigger_count = 0 },
{ config_id = 1017009, name = "AVATAR_NEAR_PLATFORM_17009", event = EventType.EVENT_AVATAR_NEAR_PLATFORM, source = "", condition = "condition_EVENT_AVATAR_NEAR_PLATFORM_17009", action = "action_EVENT_AVATAR_NEAR_PLATFORM_17009", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "reach", value = 0, no_refresh = true },
{ config_id = 2, name = "reach2", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { },
regions = { 17005 },
triggers = { "GADGET_CREATE_17002", "PLATFORM_REACH_POINT_17003", "AVATAR_NEAR_PLATFORM_17004", "ENTER_REGION_17005", "VARIABLE_CHANGE_17006", "GROUP_LOAD_17007", "AVATAR_NEAR_PLATFORM_17008", "AVATAR_NEAR_PLATFORM_17009" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 17001 },
regions = { },
triggers = { "VARIABLE_CHANGE_17006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_17002(context, evt)
if 17001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_17002(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 17001, 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 17001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_17003(context, evt)
if defs.gadget_seelie ~= evt.param1 then
return false
end
if defs.route_2 ~= evt.param2 then
return false
end
if defs.final_point ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_17003(context, evt)
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 17001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroute3complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 将本组内变量名为 "reach" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "reach", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_17004(context, evt)
if defs.gadget_seelie ~= evt.param1 then
return false
end
if defs.route_2 ~= evt.param2 then
return false
end
if defs.final_point == evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_AVATAR_NEAR_PLATFORM_17004(context, evt)
if 0 ~= ScriptLib.StartPlatform(context, 17001) then
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= evt.param3 then
ScriptLib.MarkPlayerAction(context, 2005, 2, evt.param3 + 1)
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_17005(context, evt)
if evt.param1 ~= 17005 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_17005(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 17001, 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 17001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_17006(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"reach2"为1
if ScriptLib.GetGroupVariableValue(context, "reach2") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_17006(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 17001, 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 17001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroute3complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 将本组内变量名为 "reach" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "reach", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_17007(context, evt)
-- 添加suite2的新内容
if ScriptLib.GetHostQuestState(context,4007604)==2 then
ScriptLib.AddExtraGroupSuite(context, 220134017, 2)
end
return 0
end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_17008(context, evt)
-- 判断是gadgetid 为 17001的移动平台,是否到达了5 的路线中的 1 点
if 17001 ~= evt.param1 then
return false
end
if 5 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_AVATAR_NEAR_PLATFORM_17008(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 17001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_17009(context, evt)
-- 判断是gadgetid 为 17001的移动平台,是否到达了5 的路线中的 3 点
if 17001 ~= evt.param1 then
return false
end
if 5 ~= evt.param2 then
return false
end
if 3 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_AVATAR_NEAR_PLATFORM_17009(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 17001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
@@ -0,0 +1,351 @@
-- 基础信息
local base_info = {
group_id = 220134018
}
-- Trigger变量
local defs = {
point_sum = 46,
route_2 = 4,
gadget_seelie = 18001
}
-- DEFS_MISCS
defs.final_point = defs.point_sum - 1
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 18001, gadget_id = 70310244, pos = { x = 410.585, y = 612.426, z = -1531.172 }, rot = { x = 0.000, y = 297.679, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
{ config_id = 18005, shape = RegionShape.SPHERE, radius = 5, pos = { x = 410.408, y = 612.426, z = -1531.509 } }
}
-- 触发器
triggers = {
{ config_id = 1018002, name = "GADGET_CREATE_18002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_18002", action = "action_EVENT_GADGET_CREATE_18002", trigger_count = 0 },
{ config_id = 1018003, name = "PLATFORM_REACH_POINT_18003", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_18003", action = "action_EVENT_PLATFORM_REACH_POINT_18003", trigger_count = 0 },
{ config_id = 1018004, name = "AVATAR_NEAR_PLATFORM_18004", event = EventType.EVENT_AVATAR_NEAR_PLATFORM, source = "", condition = "condition_EVENT_AVATAR_NEAR_PLATFORM_18004", action = "action_EVENT_AVATAR_NEAR_PLATFORM_18004", trigger_count = 0 },
{ config_id = 1018005, name = "ENTER_REGION_18005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_18005", action = "action_EVENT_ENTER_REGION_18005", trigger_count = 0 },
{ config_id = 1018006, name = "PLATFORM_REACH_POINT_18006", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_18006", action = "action_EVENT_PLATFORM_REACH_POINT_18006", trigger_count = 0 },
{ config_id = 1018007, name = "PLATFORM_REACH_POINT_18007", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_18007", action = "action_EVENT_PLATFORM_REACH_POINT_18007", trigger_count = 0 },
{ config_id = 1018008, name = "GROUP_LOAD_18008", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_18008", trigger_count = 0 },
{ config_id = 1018009, name = "QUEST_START_18009", event = EventType.EVENT_QUEST_START, source = "", condition = "condition_EVENT_QUEST_START_18009", action = "action_EVENT_QUEST_START_18009", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "finish", value = 0, no_refresh = true },
{ config_id = 2, name = "reach", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { },
regions = { 18005 },
triggers = { "GADGET_CREATE_18002", "PLATFORM_REACH_POINT_18003", "AVATAR_NEAR_PLATFORM_18004", "ENTER_REGION_18005", "PLATFORM_REACH_POINT_18006", "PLATFORM_REACH_POINT_18007", "GROUP_LOAD_18008", "QUEST_START_18009" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 18001 },
regions = { 18005 },
triggers = { "GADGET_CREATE_18002", "PLATFORM_REACH_POINT_18003", "AVATAR_NEAR_PLATFORM_18004", "ENTER_REGION_18005", "PLATFORM_REACH_POINT_18006", "PLATFORM_REACH_POINT_18007", "QUEST_START_18009" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_18002(context, evt)
if 18001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_18002(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 18001, 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 18001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_18003(context, evt)
if defs.gadget_seelie ~= evt.param1 then
return false
end
if defs.route_2 ~= evt.param2 then
return false
end
if defs.final_point ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_18003(context, evt)
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 18001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroute4complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 将本组内变量名为 "finish" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finish", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "reach" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "reach", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_18004(context, evt)
if defs.gadget_seelie ~= evt.param1 then
return false
end
if defs.route_2 ~= evt.param2 then
return false
end
if defs.final_point == evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_AVATAR_NEAR_PLATFORM_18004(context, evt)
if 0 ~= ScriptLib.StartPlatform(context, 18001) then
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= evt.param3 then
ScriptLib.MarkPlayerAction(context, 2005, 2, evt.param3 + 1)
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_18005(context, evt)
if evt.param1 ~= 18005 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_18005(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 18001, 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 18001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_18006(context, evt)
-- 判断是gadgetid 为 18001的移动平台,是否到达了4 的路线中的 27 点
if 18001 ~= evt.param1 then
return false
end
if 4 ~= evt.param2 then
return false
end
if 27 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_18006(context, evt)
-- 将本组内变量名为 "reach2" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "reach2", 1, 220134017) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_18007(context, evt)
-- 判断是gadgetid 为 18001的移动平台,是否到达了4 的路线中的 45 点
if 18001 ~= evt.param1 then
return false
end
if 4 ~= evt.param2 then
return false
end
if 45 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_18007(context, evt)
-- 将本组内变量名为 "starreach" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "starreach", 1, 220134033) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220134018, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_18008(context, evt)
-- 添加suite2的新内容
if ScriptLib.GetHostQuestState(context,4007607)==2 then
ScriptLib.AddExtraGroupSuite(context, 220134018, 2)
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_18009(context, evt)
-- 判断变量"finish"为1
if ScriptLib.GetGroupVariableValue(context, "finish") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_18009(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroute4complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,122 @@
-- 基础信息
local base_info = {
group_id = 220134019
}
-- DEFS_MISCS
local defs = {
--连线形态
patterns =
{
--形态1
[1] =
{ [19001] = 19003,
[19002] = 19001,
[19003] = 19001,
[19004] = 19003,
[19005] = 19003,
[19006] = 19001,
[19007] = 19006,
[19008] = 19007,
[19009] = 19007,
[19010] = 19006,
[19011] = 19010,
[19012] = 19010,
[19013] = 19001,
[19014] = 19013,
[19015] = 19014,
[19016] = 19001,
[19017] = 19016,
},
--形态2
[2] =
{
[35001] = 35003,
[35002] = 35004,
[35003] = 35004,
[35004] = 35006,
[35005] = 35001,
[35006] = 35001,
},
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[19001] = { config_id = 19001, gadget_id = 70310402, pos = { x = 560.276, y = 614.293, z = -1618.583 }, rot = { x = 358.933, y = 351.432, z = 1.020 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_LITTLE_REMOTE },
[19018] = { config_id = 19018, gadget_id = 70290428, pos = { x = 530.476, y = 612.582, z = -1607.697 }, rot = { x = 0.000, y = 300.662, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 19001, 19018 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,121 @@
-- 基础信息
local base_info = {
group_id = 220134020
}
-- DEFS_MISCS
local defs = {
--连线形态
patterns =
{
--形态1
[1] =
{
[20001] = 20002,
[20002] = 20005,
[20003] = 20005,
[20004] = 20002,
[20005] = 20011,
[20006] = 20004,
[20007] = 20006,
[20008] = 20012,
[20009] = 20008,
[20010] = 20005,
[20011] = 20012,
[20012] = 20011,
[20013] = 20011,
},
--形态2
[2] =
{
[35001] = 35003,
[35002] = 35004,
[35003] = 35004,
[35004] = 35006,
[35005] = 35001,
[35006] = 35001,
},
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[20001] = { config_id = 20001, gadget_id = 70310403, pos = { x = 560.712, y = 614.023, z = -1618.558 }, rot = { x = 0.000, y = 353.785, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_LITTLE_REMOTE },
[20014] = { config_id = 20014, gadget_id = 70290428, pos = { x = 532.862, y = 612.612, z = -1575.209 }, rot = { x = 0.000, y = 66.996, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 20001, 20014 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,117 @@
-- 基础信息
local base_info = {
group_id = 220134021
}
-- DEFS_MISCS
local defs = {
--连线形态
patterns =
{
--形态1
[1] =
{
[21001] = 21002,
[21002] = 21003,
[21003] = 21004,
[21004] = 21005,
[21005] = 21006,
[21006] = 21007,
[21007] = 21008,
[21008] = 21009,
[21009] = 21010,
[21010] = 21011,
[21011] = 21001,
},
--形态2
[2] =
{
[35001] = 35003,
[35002] = 35004,
[35003] = 35004,
[35004] = 35006,
[35005] = 35001,
[35006] = 35001,
},
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[21001] = { config_id = 21001, gadget_id = 70310404, pos = { x = 441.613, y = 612.131, z = -1567.812 }, rot = { x = 0.000, y = 359.759, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_LITTLE_REMOTE },
[21012] = { config_id = 21012, gadget_id = 70290428, pos = { x = 467.069, y = 612.916, z = -1575.341 }, rot = { x = 0.000, y = 113.099, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 21001, 21012 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,159 @@
-- 基础信息
local base_info = {
group_id = 220134022
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 22001, shape = RegionShape.CYLINDER, radius = 5.5, pos = { x = 499.987, y = 611.553, z = -1591.199 }, height = 4.000 },
{ config_id = 22002, shape = RegionShape.CYLINDER, radius = 5.5, pos = { x = 499.987, y = 611.553, z = -1591.199 }, height = 4.000 }
}
-- 触发器
triggers = {
{ config_id = 1022001, name = "ENTER_REGION_22001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22001", action = "action_EVENT_ENTER_REGION_22001", trigger_count = 0 },
{ config_id = 1022002, name = "ENTER_REGION_22002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22002", action = "action_EVENT_ENTER_REGION_22002", trigger_count = 0 },
{ config_id = 1022003, name = "GROUP_LOAD_22003", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_22003", trigger_count = 0 },
{ config_id = 1022004, name = "GROUP_LOAD_22004", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_22004", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "GROUP_LOAD_22003", "GROUP_LOAD_22004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { 22001 },
triggers = { "ENTER_REGION_22001" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { 22002 },
triggers = { "ENTER_REGION_22002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_22001(context, evt)
if evt.param1 ~= 22001 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_22001(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4007407") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_22002(context, evt)
if evt.param1 ~= 22002 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_22002(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4007505") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_22003(context, evt)
if ScriptLib.GetHostQuestState(context,4007407)==2 then
ScriptLib.RefreshGroup(context, { group_id = 220134022, suite = 2 })
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_22004(context, evt)
if ScriptLib.GetHostQuestState(context,4007505)==2 then
ScriptLib.RefreshGroup(context, { group_id = 220134022, suite = 3 })
end
return 0
end
@@ -0,0 +1,161 @@
-- 基础信息
local base_info = {
group_id = 220134023
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 23001, gadget_id = 70310274, pos = { x = 530.657, y = 640.101, z = -1607.551 }, rot = { x = 1.483, y = 241.005, z = 356.176 }, level = 1, state = GadgetState.GearStart },
{ config_id = 23002, gadget_id = 70310275, pos = { x = 531.112, y = 638.263, z = -1607.612 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 23003, gadget_id = 70310276, pos = { x = 530.882, y = 640.803, z = -1608.169 }, rot = { x = 2.894, y = 355.004, z = 2.907 }, level = 1, state = GadgetState.GearStart },
{ config_id = 23004, gadget_id = 70310277, pos = { x = 530.774, y = 641.667, z = -1607.213 }, rot = { x = 1.183, y = 23.100, z = 3.926 }, level = 1, state = GadgetState.GearStart },
{ config_id = 23005, gadget_id = 70310278, pos = { x = 530.980, y = 638.993, z = -1607.777 }, rot = { x = 0.000, y = 54.117, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 23006, gadget_id = 70310276, pos = { x = 530.882, y = 640.803, z = -1608.169 }, rot = { x = 2.894, y = 355.004, z = 2.907 }, level = 1, state = GadgetState.GearStart },
{ config_id = 23007, gadget_id = 70310279, pos = { x = 531.021, y = 637.314, z = -1607.460 }, rot = { x = 0.000, y = 192.362, z = 0.000 }, level = 1 },
{ config_id = 23008, gadget_id = 70310273, pos = { x = 530.751, y = 638.454, z = -1607.685 }, rot = { x = 1.527, y = 240.884, z = 356.803 }, level = 1 },
{ config_id = 23009, gadget_id = 70310280, pos = { x = 531.111, y = 638.785, z = -1607.606 }, rot = { x = 0.000, y = 190.821, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 10,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 23008 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 23001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 23002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 23003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 23004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 23005 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { },
gadgets = { 23006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 8,
-- description = ,
monsters = { },
gadgets = { 23007 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 9,
-- description = ,
monsters = { },
gadgets = { 23009 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 10,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,161 @@
-- 基础信息
local base_info = {
group_id = 220134024
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 24001, gadget_id = 70310274, pos = { x = 532.988, y = 638.707, z = -1574.603 }, rot = { x = 358.507, y = 193.210, z = 1.719 }, level = 1, state = GadgetState.GearStart },
{ config_id = 24002, gadget_id = 70310275, pos = { x = 532.629, y = 637.058, z = -1574.641 }, rot = { x = 358.890, y = 303.087, z = 358.012 }, level = 1, state = GadgetState.GearStart },
{ config_id = 24003, gadget_id = 70310276, pos = { x = 533.438, y = 640.119, z = -1575.076 }, rot = { x = 358.708, y = 297.678, z = 358.125 }, level = 1, state = GadgetState.GearStart },
{ config_id = 24004, gadget_id = 70310277, pos = { x = 532.865, y = 640.296, z = -1574.642 }, rot = { x = 357.296, y = 332.679, z = 357.721 }, level = 1, state = GadgetState.GearStart },
{ config_id = 24005, gadget_id = 70310278, pos = { x = 532.925, y = 637.701, z = -1574.802 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 24006, gadget_id = 70310276, pos = { x = 533.438, y = 640.119, z = -1575.076 }, rot = { x = 358.708, y = 297.678, z = 358.125 }, level = 1, state = GadgetState.GearStart },
{ config_id = 24007, gadget_id = 70310279, pos = { x = 532.699, y = 636.100, z = -1574.464 }, rot = { x = 0.510, y = 139.288, z = 2.219 }, level = 1 },
{ config_id = 24008, gadget_id = 70310273, pos = { x = 532.818, y = 636.840, z = -1574.919 }, rot = { x = 358.677, y = 187.729, z = 1.853 }, level = 1 },
{ config_id = 24009, gadget_id = 70310280, pos = { x = 532.842, y = 637.682, z = -1574.607 }, rot = { x = 0.000, y = 139.965, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 10,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 24008 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 24001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 24002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 24003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 24004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 24005 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { },
gadgets = { 24006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 8,
-- description = ,
monsters = { },
gadgets = { 24007 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 9,
-- description = ,
monsters = { },
gadgets = { 24009 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 10,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,161 @@
-- 基础信息
local base_info = {
group_id = 220134025
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 25001, gadget_id = 70310273, pos = { x = 466.661, y = 638.479, z = -1576.001 }, rot = { x = 0.000, y = 51.877, z = 0.000 }, level = 1 },
{ config_id = 25002, gadget_id = 70310274, pos = { x = 466.831, y = 640.752, z = -1575.939 }, rot = { x = 0.000, y = 49.793, z = 0.000 }, level = 1 },
{ config_id = 25003, gadget_id = 70310275, pos = { x = 466.584, y = 640.193, z = -1576.300 }, rot = { x = 0.000, y = 167.664, z = 0.000 }, level = 1 },
{ config_id = 25004, gadget_id = 70310276, pos = { x = 466.693, y = 642.073, z = -1575.337 }, rot = { x = 359.959, y = 161.577, z = 359.972 }, level = 1 },
{ config_id = 25005, gadget_id = 70310277, pos = { x = 466.797, y = 642.855, z = -1575.880 }, rot = { x = 0.000, y = 193.021, z = 0.000 }, level = 1 },
{ config_id = 25006, gadget_id = 70310278, pos = { x = 466.690, y = 639.325, z = -1576.104 }, rot = { x = 0.000, y = 223.484, z = 0.000 }, level = 1 },
{ config_id = 25007, gadget_id = 70310279, pos = { x = 466.748, y = 638.504, z = -1575.902 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 25008, gadget_id = 70310280, pos = { x = 466.362, y = 639.463, z = -1576.254 }, rot = { x = 0.000, y = 5.261, z = 0.000 }, level = 1 },
{ config_id = 25009, gadget_id = 70310276, pos = { x = 466.693, y = 642.073, z = -1575.337 }, rot = { x = 359.959, y = 161.577, z = 359.972 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 10,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 25001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 25002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 25003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 25004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 25005 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 25006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { },
gadgets = { 25009 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 8,
-- description = ,
monsters = { },
gadgets = { 25007 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 9,
-- description = ,
monsters = { },
gadgets = { 25008 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 10,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,193 @@
-- 基础信息
local base_info = {
group_id = 220134026
}
-- DEFS_MISCS
local defs = {
--连线形态
patterns =
{
--形态1
[1] =
{
[4001] = 4002,
[4002] = 4003,
[4003] = 4001,
[4004] = 4002,
[4005] = 4004,
[4006] = 4005,
},
--形态2
[2] =
{
[4001] = 4003,
[4002] = 4004,
[4003] = 4004,
[4004] = 4006,
[4005] = 4001,
[4006] = 4001,
},
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[26001] = { config_id = 26001, gadget_id = 70310280, pos = { x = 469.475, y = 636.170, z = -1607.417 }, rot = { x = 0.000, y = 313.275, z = 0.000 }, level = 1 },
[26007] = { config_id = 26007, gadget_id = 70310279, pos = { x = 469.542, y = 635.095, z = -1607.385 }, rot = { x = 0.000, y = 309.993, z = 0.000 }, level = 1 },
[26008] = { config_id = 26008, gadget_id = 70310274, pos = { x = 469.631, y = 636.557, z = -1607.220 }, rot = { x = 0.000, y = 0.988, z = 0.000 }, level = 1, state = GadgetState.GearStart },
[26009] = { config_id = 26009, gadget_id = 70310275, pos = { x = 469.592, y = 635.722, z = -1607.392 }, rot = { x = 0.000, y = 117.128, z = 0.000 }, level = 1, state = GadgetState.GearStart },
[26010] = { config_id = 26010, gadget_id = 70310276, pos = { x = 468.877, y = 638.234, z = -1607.324 }, rot = { x = 0.000, y = 115.421, z = 0.000 }, level = 1, state = GadgetState.GearStart },
[26011] = { config_id = 26011, gadget_id = 70310277, pos = { x = 469.746, y = 639.424, z = -1607.512 }, rot = { x = 0.000, y = 140.145, z = 0.000 }, level = 1, state = GadgetState.GearStart },
[26012] = { config_id = 26012, gadget_id = 70310278, pos = { x = 469.442, y = 635.994, z = -1607.322 }, rot = { x = 0.000, y = 172.265, z = 0.000 }, level = 1, state = GadgetState.GearStart },
[26013] = { config_id = 26013, gadget_id = 70310276, pos = { x = 468.877, y = 638.234, z = -1607.324 }, rot = { x = 0.000, y = 115.421, z = 0.000 }, level = 1, state = GadgetState.GearStart },
[26014] = { config_id = 26014, gadget_id = 70310273, pos = { x = 469.556, y = 636.007, z = -1607.325 }, rot = { x = 0.000, y = 0.094, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 10,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 26014 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 26008 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 26009 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 26010 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 26011 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 26012 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { },
gadgets = { 26013 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 8,
-- description = ,
monsters = { },
gadgets = { 26007 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 9,
-- description = ,
monsters = { },
gadgets = { 26001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 10,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V2_8/ConstellationPattern"
@@ -0,0 +1,161 @@
-- 基础信息
local base_info = {
group_id = 220134027
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 27001, gadget_id = 70310274, pos = { x = 530.892, y = 635.831, z = -1607.747 }, rot = { x = 1.483, y = 241.005, z = 356.176 }, level = 1, state = GadgetState.GearStart },
{ config_id = 27002, gadget_id = 70310275, pos = { x = 531.060, y = 635.028, z = -1607.745 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 27003, gadget_id = 70310276, pos = { x = 531.054, y = 637.583, z = -1607.891 }, rot = { x = 2.894, y = 355.004, z = 2.907 }, level = 1, state = GadgetState.GearStart },
{ config_id = 27004, gadget_id = 70310277, pos = { x = 530.837, y = 638.617, z = -1607.171 }, rot = { x = 1.183, y = 23.100, z = 3.926 }, level = 1, state = GadgetState.GearStart },
{ config_id = 27005, gadget_id = 70310278, pos = { x = 530.958, y = 635.317, z = -1607.742 }, rot = { x = 0.000, y = 53.479, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 27006, gadget_id = 70310276, pos = { x = 531.054, y = 637.583, z = -1607.891 }, rot = { x = 2.894, y = 355.004, z = 2.907 }, level = 1, state = GadgetState.GearStart },
{ config_id = 27007, gadget_id = 70310279, pos = { x = 531.021, y = 633.429, z = -1607.460 }, rot = { x = 0.000, y = 192.362, z = 0.000 }, level = 1 },
{ config_id = 27008, gadget_id = 70310273, pos = { x = 530.911, y = 635.281, z = -1607.799 }, rot = { x = 1.527, y = 240.884, z = 356.803 }, level = 1 },
{ config_id = 27009, gadget_id = 70310280, pos = { x = 531.111, y = 635.139, z = -1607.606 }, rot = { x = 0.000, y = 190.821, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 10,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 27008 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 27001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 27002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 27003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 27004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 27005 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { },
gadgets = { 27006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 8,
-- description = ,
monsters = { },
gadgets = { 27007 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 9,
-- description = ,
monsters = { },
gadgets = { 27009 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 10,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,161 @@
-- 基础信息
local base_info = {
group_id = 220134028
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 28001, gadget_id = 70310274, pos = { x = 532.844, y = 634.618, z = -1574.678 }, rot = { x = 358.507, y = 193.210, z = 1.719 }, level = 1, state = GadgetState.GearStart },
{ config_id = 28002, gadget_id = 70310275, pos = { x = 532.629, y = 634.763, z = -1574.641 }, rot = { x = 358.890, y = 303.087, z = 358.012 }, level = 1, state = GadgetState.GearStart },
{ config_id = 28003, gadget_id = 70310276, pos = { x = 533.449, y = 636.244, z = -1574.718 }, rot = { x = 358.708, y = 297.678, z = 358.125 }, level = 1, state = GadgetState.GearStart },
{ config_id = 28004, gadget_id = 70310277, pos = { x = 532.704, y = 637.486, z = -1574.575 }, rot = { x = 357.296, y = 332.679, z = 357.721 }, level = 1, state = GadgetState.GearStart },
{ config_id = 28005, gadget_id = 70310278, pos = { x = 532.925, y = 634.003, z = -1574.802 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 28006, gadget_id = 70310276, pos = { x = 533.449, y = 636.244, z = -1574.718 }, rot = { x = 358.708, y = 297.678, z = 358.125 }, level = 1, state = GadgetState.GearStart },
{ config_id = 28007, gadget_id = 70310279, pos = { x = 532.646, y = 633.039, z = -1574.510 }, rot = { x = 0.510, y = 139.288, z = 2.219 }, level = 1 },
{ config_id = 28008, gadget_id = 70310273, pos = { x = 533.016, y = 633.885, z = -1574.911 }, rot = { x = 358.677, y = 187.729, z = 1.853 }, level = 1 },
{ config_id = 28009, gadget_id = 70310280, pos = { x = 532.842, y = 634.279, z = -1574.607 }, rot = { x = 0.000, y = 139.965, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 10,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 28008 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 28001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 28002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 28003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 28004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 28005 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { },
gadgets = { 28006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 8,
-- description = ,
monsters = { },
gadgets = { 28007 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 9,
-- description = ,
monsters = { },
gadgets = { 28009 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 10,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,161 @@
-- 基础信息
local base_info = {
group_id = 220134029
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 29001, gadget_id = 70310273, pos = { x = 466.661, y = 635.526, z = -1576.001 }, rot = { x = 0.000, y = 51.877, z = 0.000 }, level = 1 },
{ config_id = 29002, gadget_id = 70310274, pos = { x = 466.831, y = 636.115, z = -1575.939 }, rot = { x = 0.000, y = 49.793, z = 0.000 }, level = 1 },
{ config_id = 29003, gadget_id = 70310275, pos = { x = 466.584, y = 636.009, z = -1576.300 }, rot = { x = 0.000, y = 167.664, z = 0.000 }, level = 1 },
{ config_id = 29004, gadget_id = 70310276, pos = { x = 466.132, y = 639.399, z = -1575.770 }, rot = { x = 359.962, y = 168.124, z = 359.968 }, level = 1 },
{ config_id = 29005, gadget_id = 70310277, pos = { x = 466.797, y = 639.336, z = -1575.880 }, rot = { x = 0.000, y = 193.021, z = 0.000 }, level = 1 },
{ config_id = 29006, gadget_id = 70310278, pos = { x = 466.690, y = 635.633, z = -1576.104 }, rot = { x = 0.000, y = 223.484, z = 0.000 }, level = 1 },
{ config_id = 29007, gadget_id = 70310276, pos = { x = 466.132, y = 639.399, z = -1575.770 }, rot = { x = 359.962, y = 168.124, z = 359.968 }, level = 1 },
{ config_id = 29008, gadget_id = 70310279, pos = { x = 466.744, y = 634.646, z = -1575.938 }, rot = { x = 0.000, y = 1.464, z = 0.000 }, level = 1 },
{ config_id = 29009, gadget_id = 70310280, pos = { x = 466.362, y = 635.554, z = -1576.254 }, rot = { x = 0.000, y = 5.261, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 10,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 29001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 29002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 29003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 29004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 29005 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 29006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { },
gadgets = { 29007 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 8,
-- description = ,
monsters = { },
gadgets = { 29008 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 9,
-- description = ,
monsters = { },
gadgets = { 29009 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 10,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,135 @@
-- 基础信息
local base_info = {
group_id = 220134030
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 30001, shape = RegionShape.CUBIC, size = { x = 5.000, y = 5.000, z = 5.000 }, pos = { x = 499.758, y = 607.554, z = -1572.690 } }
}
-- 触发器
triggers = {
{ config_id = 1030001, name = "ENTER_REGION_30001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_30001", action = "action_EVENT_ENTER_REGION_30001", trigger_count = 0 },
-- 08-10期间可进入
{ config_id = 1030004, name = "GROUP_LOAD_30004", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_30004", trigger_count = 0 },
-- 08开始前&10结束后不可进入
{ config_id = 1030005, name = "GROUP_LOAD_30005", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_30005", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "GROUP_LOAD_30004" },
rand_weight = 100,
ban_refresh = true
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { 30001 },
triggers = { "ENTER_REGION_30001", "GROUP_LOAD_30005" },
rand_weight = 100,
ban_refresh = true
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_30001(context, evt)
if evt.param1 ~= 30001 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_30001(context, evt)
-- 将使用操作台的玩家传送至目标点
if evt.uid ~= nil then
local t_pos = {x=514.3438, y=847.4159, z=-1205.154}
if 0 ~= ScriptLib.TransPlayerToPos(context, {uid_list = {evt.uid}, pos = t_pos, rot = {x=0, y=0, z=0}}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : trans_player_byOption")
return -1
end
else
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : trans_player_byOption")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_30004(context, evt)
if ScriptLib.GetHostQuestState(context,4007607)==3 and ScriptLib.GetHostQuestState(context,4007610)~=3 then
ScriptLib.RefreshGroup(context, { group_id = 220134030, suite = 2 })
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_30005(context, evt)
if ScriptLib.GetHostQuestState(context,4007610)==3 then
ScriptLib.RefreshGroup(context, { group_id = 220134030, suite = 1 })
end
return 0
end
@@ -0,0 +1,151 @@
-- 基础信息
local base_info = {
group_id = 220134031
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 31001, gadget_id = 70360001, pos = { x = 502.628, y = 848.287, z = -1189.388 }, rot = { x = 0.000, y = 358.025, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 31004, shape = RegionShape.SPHERE, radius = 20, pos = { x = 508.679, y = 848.278, z = -1191.926 } }
}
-- 触发器
triggers = {
{ config_id = 1031002, name = "GADGET_CREATE_31002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_31002", action = "action_EVENT_GADGET_CREATE_31002", trigger_count = 0 },
{ config_id = 1031003, name = "SELECT_OPTION_31003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_31003", action = "action_EVENT_SELECT_OPTION_31003", trigger_count = 0 },
{ config_id = 1031004, name = "ENTER_REGION_31004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_31004", action = "action_EVENT_ENTER_REGION_31004", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 31001 },
regions = { 31004 },
triggers = { "GADGET_CREATE_31002", "SELECT_OPTION_31003", "ENTER_REGION_31004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_31002(context, evt)
if 31001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_31002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {98}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_31003(context, evt)
-- 判断是gadgetid 31001 option_id 98
if 31001 ~= evt.param1 then
return false
end
if 98 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_31003(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "touchcelestialball") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "divein2") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_31004(context, evt)
if evt.param1 ~= 31004 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_31004(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monahouse") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,99 @@
-- 基础信息
local base_info = {
group_id = 220134032
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 32001, gadget_id = 70210102, pos = { x = 503.791, y = 614.452, z = -1599.739 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 16, chest_drop_id = 1050198, drop_count = 1, isOneoff = true, persistent = true, autopick = true },
{ config_id = 32002, gadget_id = 70210102, pos = { x = 509.149, y = 613.578, z = -1591.219 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 16, chest_drop_id = 1050199, drop_count = 1, isOneoff = true, persistent = true, autopick = true },
{ config_id = 32003, gadget_id = 70210102, pos = { x = 491.155, y = 612.254, z = -1585.436 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 16, chest_drop_id = 1050202, drop_count = 1, isOneoff = true, persistent = true, autopick = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1032004, name = "GADGET_STATE_CHANGE_32004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_32004", action = "action_EVENT_GADGET_STATE_CHANGE_32004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 32001, 32002, 32003 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_32004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_32004(context, evt)
if GadgetState.ChestOpened == ScriptLib.GetGadgetStateByConfigId(context, 220134032, 32001) then
return true
end
if GadgetState.ChestOpened == ScriptLib.GetGadgetStateByConfigId(context, 220134032, 32002) then
return true
end
if GadgetState.ChestOpened == ScriptLib.GetGadgetStateByConfigId(context, 220134032, 32003) then
return true
end
return false
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_32004(context, evt)
ScriptLib.TryRecordActivityPushTips(context, 2014004)
ScriptLib.ShowClientTutorial(context, 1170, {})
return 0
end
@@ -0,0 +1,135 @@
-- 基础信息
local base_info = {
group_id = 220134033
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 33001, gadget_id = 70220113, pos = { x = 500.131, y = 613.465, z = -1591.276 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1033002, name = "VARIABLE_CHANGE_33002", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_33002", action = "action_EVENT_VARIABLE_CHANGE_33002", trigger_count = 0 },
{ config_id = 1033003, name = "GROUP_LOAD_33003", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_33003", action = "action_EVENT_GROUP_LOAD_33003", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "door1", value = 0, no_refresh = true },
{ config_id = 2, name = "door2", value = 0, no_refresh = true },
{ config_id = 3, name = "door3", value = 0, no_refresh = true },
{ config_id = 4, name = "door4", value = 0, no_refresh = true },
{ config_id = 5, name = "starreach", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 33001 },
regions = { },
triggers = { "VARIABLE_CHANGE_33002", "GROUP_LOAD_33003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_33002(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"starreach"为1
if ScriptLib.GetGroupVariableValue(context, "starreach") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_33002(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 33001, 6) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 33001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_33003(context, evt)
-- 判断变量"starreach"为1
if ScriptLib.GetGroupVariableValue(context, "starreach") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_33003(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 33001, 6) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 33001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
@@ -0,0 +1,383 @@
-- 基础信息
local base_info = {
group_id = 220134034
}
-- DEFS_MISCS
local defs = {
--控制星空灯
control = { group_id = 220134042, config_id = 42001, light_index = 3, giving_gadget = 34001,}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 34001, gadget_id = 70310267, pos = { x = 507.873, y = 612.254, z = -1598.523 }, rot = { x = 0.000, y = 131.844, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1034002, name = "GROUP_LOAD_34002", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_34002", trigger_count = 0 },
{ config_id = 1034003, name = "VARIABLE_CHANGE_34003", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_34003", action = "action_EVENT_VARIABLE_CHANGE_34003", trigger_count = 0 },
{ config_id = 1034004, name = "VARIABLE_CHANGE_34004", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_34004", action = "action_EVENT_VARIABLE_CHANGE_34004", trigger_count = 0 },
{ config_id = 1034005, name = "VARIABLE_CHANGE_34005", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_34005", action = "action_EVENT_VARIABLE_CHANGE_34005", trigger_count = 0 },
{ config_id = 1034006, name = "VARIABLE_CHANGE_34006", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_34006", action = "action_EVENT_VARIABLE_CHANGE_34006", trigger_count = 0 },
{ config_id = 1034007, name = "VARIABLE_CHANGE_34007", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_34007", action = "action_EVENT_VARIABLE_CHANGE_34007", trigger_count = 0 },
{ config_id = 1034008, name = "VARIABLE_CHANGE_34008", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_34008", action = "action_EVENT_VARIABLE_CHANGE_34008", trigger_count = 0 },
{ config_id = 1034009, name = "VARIABLE_CHANGE_34009", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_34009", action = "action_EVENT_VARIABLE_CHANGE_34009", trigger_count = 0 },
{ config_id = 1034010, name = "VARIABLE_CHANGE_34010", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_34010", action = "action_EVENT_VARIABLE_CHANGE_34010", trigger_count = 0 },
{ config_id = 1034011, name = "VARIABLE_CHANGE_34011", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_34011", action = "action_EVENT_VARIABLE_CHANGE_34011", trigger_count = 0 },
{ config_id = 1034012, name = "VARIABLE_CHANGE_34012", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_34012", action = "action_EVENT_VARIABLE_CHANGE_34012", trigger_count = 0 },
-- 镜头
{ config_id = 1034013, name = "VARIABLE_CHANGE_34013", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_34013", action = "action_EVENT_VARIABLE_CHANGE_34013", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "camera", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 34001 },
regions = { },
triggers = { "GROUP_LOAD_34002", "VARIABLE_CHANGE_34003", "VARIABLE_CHANGE_34004", "VARIABLE_CHANGE_34005", "VARIABLE_CHANGE_34006", "VARIABLE_CHANGE_34007", "VARIABLE_CHANGE_34008", "VARIABLE_CHANGE_34009", "VARIABLE_CHANGE_34010", "VARIABLE_CHANGE_34011", "VARIABLE_CHANGE_34012", "VARIABLE_CHANGE_34013" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GROUP_LOAD_34002(context, evt)
ScriptLib.ActiveGadgetItemGiving(context, 10000103, 220134034, 34001)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_34003(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101801
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101801 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_34003(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134023, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_34004(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101802
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101802 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_34004(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134023, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_34005(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101803
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101803 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_34005(context, evt)
ScriptLib.RefreshGroup(context, { group_id = 220134023, suite = 3 })
if ScriptLib.GetGroupVariableValueByGroup(context, "given_item", 220134035) == 101804 or ScriptLib.GetGroupVariableValueByGroup(context, "given_item", 220134035) == 101807 then
ScriptLib.RefreshGroup(context, { group_id = 220134019, suite = 2 })
ScriptLib.AddQuestProgress(context, "door2complete")
ScriptLib.SetGroupVariableValueByGroup(context, "door2", 1, 220134033)
else
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_34006(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101804
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101804 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_34006(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134023, suite = 4 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_34007(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101805
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101805 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_34007(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134023, suite = 5 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_34008(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101806
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101806 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_34008(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134023, suite = 6 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_34009(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101807
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101807 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_34009(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134023, suite = 7 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_34010(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101808
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101808 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_34010(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134023, suite = 8 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_34011(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为0
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_34011(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134023, suite = 10 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134019, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 将本组内变量名为 "door2" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "door2", 0, 220134033) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_34012(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101834
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101834 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_34012(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134023, suite = 9 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_34013(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"camera"为0
if ScriptLib.GetGroupVariableValue(context, "camera") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_34013(context, evt)
-- 触发镜头注目,注目位置为坐标(531,635,-1606),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=531, y=635, z=-1606}
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
-- 将本组内变量名为 "camera" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "camera", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
require "V2_8/HandleGivingResult"
@@ -0,0 +1,386 @@
-- 基础信息
local base_info = {
group_id = 220134035
}
-- DEFS_MISCS
local defs = {
--控制星空灯
control = { group_id = 220134042, config_id = 42001, light_index = 4, giving_gadget = 35001,}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 35001, gadget_id = 70310268, pos = { x = 507.873, y = 612.254, z = -1598.523 }, rot = { x = 0.000, y = 131.844, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1035002, name = "GROUP_LOAD_35002", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_35002", trigger_count = 0 },
{ config_id = 1035003, name = "VARIABLE_CHANGE_35003", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_35003", action = "action_EVENT_VARIABLE_CHANGE_35003", trigger_count = 0 },
{ config_id = 1035004, name = "VARIABLE_CHANGE_35004", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_35004", action = "action_EVENT_VARIABLE_CHANGE_35004", trigger_count = 0 },
{ config_id = 1035005, name = "VARIABLE_CHANGE_35005", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_35005", action = "action_EVENT_VARIABLE_CHANGE_35005", trigger_count = 0 },
{ config_id = 1035006, name = "VARIABLE_CHANGE_35006", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_35006", action = "action_EVENT_VARIABLE_CHANGE_35006", trigger_count = 0 },
{ config_id = 1035007, name = "VARIABLE_CHANGE_35007", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_35007", action = "action_EVENT_VARIABLE_CHANGE_35007", trigger_count = 0 },
{ config_id = 1035008, name = "VARIABLE_CHANGE_35008", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_35008", action = "action_EVENT_VARIABLE_CHANGE_35008", trigger_count = 0 },
{ config_id = 1035009, name = "VARIABLE_CHANGE_35009", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_35009", action = "action_EVENT_VARIABLE_CHANGE_35009", trigger_count = 0 },
{ config_id = 1035010, name = "VARIABLE_CHANGE_35010", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_35010", action = "action_EVENT_VARIABLE_CHANGE_35010", trigger_count = 0 },
{ config_id = 1035011, name = "VARIABLE_CHANGE_35011", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_35011", action = "action_EVENT_VARIABLE_CHANGE_35011", trigger_count = 0 },
{ config_id = 1035012, name = "VARIABLE_CHANGE_35012", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_35012", action = "action_EVENT_VARIABLE_CHANGE_35012", trigger_count = 0 },
-- 镜头
{ config_id = 1035013, name = "VARIABLE_CHANGE_35013", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_35013", action = "action_EVENT_VARIABLE_CHANGE_35013", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "camera", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 35001 },
regions = { },
triggers = { "GROUP_LOAD_35002", "VARIABLE_CHANGE_35003", "VARIABLE_CHANGE_35004", "VARIABLE_CHANGE_35005", "VARIABLE_CHANGE_35006", "VARIABLE_CHANGE_35007", "VARIABLE_CHANGE_35008", "VARIABLE_CHANGE_35009", "VARIABLE_CHANGE_35010", "VARIABLE_CHANGE_35011", "VARIABLE_CHANGE_35012", "VARIABLE_CHANGE_35013" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GROUP_LOAD_35002(context, evt)
ScriptLib.ActiveGadgetItemGiving(context, 10000104, 220134035, 35001)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_35003(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101801
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101801 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_35003(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134027, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_35004(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101802
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101802 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_35004(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134027, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_35005(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101803
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101803 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_35005(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134027, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_35006(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101804
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101804 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_35006(context, evt)
ScriptLib.RefreshGroup(context, { group_id = 220134027, suite = 4 })
if ScriptLib.GetGroupVariableValueByGroup(context, "given_item", 220134034) == 101803 then
ScriptLib.RefreshGroup(context, { group_id = 220134019, suite = 2 })
ScriptLib.AddQuestProgress(context, "door2complete")
ScriptLib.SetGroupVariableValueByGroup(context, "door2", 1, 220134033)
else
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_35007(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101805
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101805 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_35007(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134027, suite = 5 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_35008(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101806
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101806 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_35008(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134027, suite = 6 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_35009(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101807
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101807 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_35009(context, evt)
ScriptLib.RefreshGroup(context, { group_id = 220134027, suite = 7 })
if ScriptLib.GetGroupVariableValueByGroup(context, "given_item", 220134034) == 101803 then
ScriptLib.RefreshGroup(context, { group_id = 220134019, suite = 2 })
ScriptLib.AddQuestProgress(context, "door2complete")
ScriptLib.SetGroupVariableValueByGroup(context, "door2", 1, 220134033)
else
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_35010(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101808
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101808 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_35010(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134027, suite = 8 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_35011(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为0
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_35011(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134027, suite = 10 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134019, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 将本组内变量名为 "door2" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "door2", 0, 220134033) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_35012(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101834
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101834 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_35012(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134027, suite = 9 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_35013(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"camera"为0
if ScriptLib.GetGroupVariableValue(context, "camera") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_35013(context, evt)
-- 触发镜头注目,注目位置为坐标(531,635,-1606),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=531, y=635, z=-1606}
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
-- 将本组内变量名为 "camera" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "camera", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
require "V2_8/HandleGivingResult"
@@ -0,0 +1,381 @@
-- 基础信息
local base_info = {
group_id = 220134036
}
-- DEFS_MISCS
local defs = {
--控制星空灯
control = { group_id = 220134042, config_id = 42001, light_index = 5, giving_gadget = 36001,}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 36001, gadget_id = 70310269, pos = { x = 508.152, y = 612.254, z = -1583.945 }, rot = { x = 0.000, y = 53.721, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1036002, name = "GROUP_LOAD_36002", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_36002", trigger_count = 0 },
{ config_id = 1036003, name = "VARIABLE_CHANGE_36003", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_36003", action = "action_EVENT_VARIABLE_CHANGE_36003", trigger_count = 0 },
{ config_id = 1036004, name = "VARIABLE_CHANGE_36004", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_36004", action = "action_EVENT_VARIABLE_CHANGE_36004", trigger_count = 0 },
{ config_id = 1036005, name = "VARIABLE_CHANGE_36005", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_36005", action = "action_EVENT_VARIABLE_CHANGE_36005", trigger_count = 0 },
{ config_id = 1036006, name = "VARIABLE_CHANGE_36006", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_36006", action = "action_EVENT_VARIABLE_CHANGE_36006", trigger_count = 0 },
{ config_id = 1036007, name = "VARIABLE_CHANGE_36007", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_36007", action = "action_EVENT_VARIABLE_CHANGE_36007", trigger_count = 0 },
{ config_id = 1036008, name = "VARIABLE_CHANGE_36008", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_36008", action = "action_EVENT_VARIABLE_CHANGE_36008", trigger_count = 0 },
{ config_id = 1036009, name = "VARIABLE_CHANGE_36009", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_36009", action = "action_EVENT_VARIABLE_CHANGE_36009", trigger_count = 0 },
{ config_id = 1036010, name = "VARIABLE_CHANGE_36010", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_36010", action = "action_EVENT_VARIABLE_CHANGE_36010", trigger_count = 0 },
{ config_id = 1036011, name = "VARIABLE_CHANGE_36011", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_36011", action = "action_EVENT_VARIABLE_CHANGE_36011", trigger_count = 0 },
{ config_id = 1036012, name = "VARIABLE_CHANGE_36012", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_36012", action = "action_EVENT_VARIABLE_CHANGE_36012", trigger_count = 0 },
-- 镜头
{ config_id = 1036013, name = "VARIABLE_CHANGE_36013", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_36013", action = "action_EVENT_VARIABLE_CHANGE_36013", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "camera", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 36001 },
regions = { },
triggers = { "GROUP_LOAD_36002", "VARIABLE_CHANGE_36003", "VARIABLE_CHANGE_36004", "VARIABLE_CHANGE_36005", "VARIABLE_CHANGE_36006", "VARIABLE_CHANGE_36007", "VARIABLE_CHANGE_36008", "VARIABLE_CHANGE_36009", "VARIABLE_CHANGE_36010", "VARIABLE_CHANGE_36011", "VARIABLE_CHANGE_36012", "VARIABLE_CHANGE_36013" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GROUP_LOAD_36002(context, evt)
ScriptLib.ActiveGadgetItemGiving(context, 10000105, 220134036, 36001)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_36003(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101801
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101801 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_36003(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134024, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_36004(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101802
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101802 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_36004(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134024, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_36005(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101803
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101803 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_36005(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134024, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_36006(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101804
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101804 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_36006(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134024, suite = 4 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_36007(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101805
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101805 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_36007(context, evt)
ScriptLib.RefreshGroup(context, { group_id = 220134024, suite = 5 })
if ScriptLib.GetGroupVariableValueByGroup(context, "given_item", 220134037) == 101806 then
ScriptLib.RefreshGroup(context, { group_id = 220134020, suite = 2 })
ScriptLib.AddQuestProgress(context, "door3complete")
ScriptLib.SetGroupVariableValueByGroup(context, "door3", 1, 220134033)
else
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_36008(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101806
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101806 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_36008(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134024, suite = 6 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_36009(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101807
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101807 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_36009(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134024, suite = 7 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_36010(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101808
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101808 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_36010(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134024, suite = 8 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_36011(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为0
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_36011(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134024, suite = 10 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134020, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 将本组内变量名为 "door3" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "door3", 0, 220134033) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_36012(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101834
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101834 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_36012(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134024, suite = 9 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_36013(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"camera"为0
if ScriptLib.GetGroupVariableValue(context, "camera") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_36013(context, evt)
-- 触发镜头注目,注目位置为坐标(532,636,-1575.7),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=532, y=636, z=-1575.7}
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
-- 将本组内变量名为 "camera" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "camera", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
require "V2_8/HandleGivingResult"
@@ -0,0 +1,381 @@
-- 基础信息
local base_info = {
group_id = 220134037
}
-- DEFS_MISCS
local defs = {
--控制星空灯
control = { group_id = 220134042, config_id = 42001, light_index = 6, giving_gadget = 37001,}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 37001, gadget_id = 70310270, pos = { x = 508.152, y = 612.254, z = -1583.945 }, rot = { x = 0.000, y = 53.721, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1037002, name = "GROUP_LOAD_37002", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_37002", trigger_count = 0 },
{ config_id = 1037003, name = "VARIABLE_CHANGE_37003", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_37003", action = "action_EVENT_VARIABLE_CHANGE_37003", trigger_count = 0 },
{ config_id = 1037004, name = "VARIABLE_CHANGE_37004", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_37004", action = "action_EVENT_VARIABLE_CHANGE_37004", trigger_count = 0 },
{ config_id = 1037005, name = "VARIABLE_CHANGE_37005", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_37005", action = "action_EVENT_VARIABLE_CHANGE_37005", trigger_count = 0 },
{ config_id = 1037006, name = "VARIABLE_CHANGE_37006", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_37006", action = "action_EVENT_VARIABLE_CHANGE_37006", trigger_count = 0 },
{ config_id = 1037007, name = "VARIABLE_CHANGE_37007", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_37007", action = "action_EVENT_VARIABLE_CHANGE_37007", trigger_count = 0 },
{ config_id = 1037008, name = "VARIABLE_CHANGE_37008", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_37008", action = "action_EVENT_VARIABLE_CHANGE_37008", trigger_count = 0 },
{ config_id = 1037009, name = "VARIABLE_CHANGE_37009", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_37009", action = "action_EVENT_VARIABLE_CHANGE_37009", trigger_count = 0 },
{ config_id = 1037010, name = "VARIABLE_CHANGE_37010", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_37010", action = "action_EVENT_VARIABLE_CHANGE_37010", trigger_count = 0 },
{ config_id = 1037011, name = "VARIABLE_CHANGE_37011", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_37011", action = "action_EVENT_VARIABLE_CHANGE_37011", trigger_count = 0 },
{ config_id = 1037012, name = "VARIABLE_CHANGE_37012", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_37012", action = "action_EVENT_VARIABLE_CHANGE_37012", trigger_count = 0 },
-- 镜头
{ config_id = 1037013, name = "VARIABLE_CHANGE_37013", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_37013", action = "action_EVENT_VARIABLE_CHANGE_37013", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "camera", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 37001 },
regions = { },
triggers = { "GROUP_LOAD_37002", "VARIABLE_CHANGE_37003", "VARIABLE_CHANGE_37004", "VARIABLE_CHANGE_37005", "VARIABLE_CHANGE_37006", "VARIABLE_CHANGE_37007", "VARIABLE_CHANGE_37008", "VARIABLE_CHANGE_37009", "VARIABLE_CHANGE_37010", "VARIABLE_CHANGE_37011", "VARIABLE_CHANGE_37012", "VARIABLE_CHANGE_37013" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GROUP_LOAD_37002(context, evt)
ScriptLib.ActiveGadgetItemGiving(context, 10000106, 220134037, 37001)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_37003(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101801
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101801 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_37003(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134028, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_37004(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101802
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101802 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_37004(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134028, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_37005(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101803
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101803 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_37005(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134028, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_37006(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101804
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101804 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_37006(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134028, suite = 4 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_37007(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101805
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101805 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_37007(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134028, suite = 5 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_37008(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101806
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101806 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_37008(context, evt)
ScriptLib.RefreshGroup(context, { group_id = 220134028, suite = 6 })
if ScriptLib.GetGroupVariableValueByGroup(context, "given_item", 220134036) == 101805 then
ScriptLib.RefreshGroup(context, { group_id = 220134020, suite = 2 })
ScriptLib.AddQuestProgress(context, "door3complete")
ScriptLib.SetGroupVariableValueByGroup(context, "door3", 1, 220134033)
else
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_37009(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101807
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101807 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_37009(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134028, suite = 7 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_37010(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101808
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101808 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_37010(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134028, suite = 8 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_37011(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为0
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_37011(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134028, suite = 10 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134020, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 将本组内变量名为 "door3" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "door3", 0, 220134033) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_37012(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101834
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101834 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_37012(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134028, suite = 9 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_37013(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"camera"为0
if ScriptLib.GetGroupVariableValue(context, "camera") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_37013(context, evt)
-- 触发镜头注目,注目位置为坐标(533.5,636.7,-1575.7),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=533.5, y=636.7, z=-1575.7}
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
-- 将本组内变量名为 "camera" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "camera", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
require "V2_8/HandleGivingResult"
@@ -0,0 +1,387 @@
-- 基础信息
local base_info = {
group_id = 220134038
}
-- DEFS_MISCS
local defs = {
--控制星空灯
control = { group_id = 220134042, config_id = 42001, light_index = 7, giving_gadget = 38001,}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 38001, gadget_id = 70310271, pos = { x = 492.615, y = 612.254, z = -1583.780 }, rot = { x = 0.000, y = 312.779, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1038002, name = "GROUP_LOAD_38002", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_38002", trigger_count = 0 },
{ config_id = 1038003, name = "VARIABLE_CHANGE_38003", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_38003", action = "action_EVENT_VARIABLE_CHANGE_38003", trigger_count = 0 },
{ config_id = 1038004, name = "VARIABLE_CHANGE_38004", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_38004", action = "action_EVENT_VARIABLE_CHANGE_38004", trigger_count = 0 },
{ config_id = 1038005, name = "VARIABLE_CHANGE_38005", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_38005", action = "action_EVENT_VARIABLE_CHANGE_38005", trigger_count = 0 },
{ config_id = 1038006, name = "VARIABLE_CHANGE_38006", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_38006", action = "action_EVENT_VARIABLE_CHANGE_38006", trigger_count = 0 },
{ config_id = 1038007, name = "VARIABLE_CHANGE_38007", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_38007", action = "action_EVENT_VARIABLE_CHANGE_38007", trigger_count = 0 },
{ config_id = 1038008, name = "VARIABLE_CHANGE_38008", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_38008", action = "action_EVENT_VARIABLE_CHANGE_38008", trigger_count = 0 },
{ config_id = 1038009, name = "VARIABLE_CHANGE_38009", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_38009", action = "action_EVENT_VARIABLE_CHANGE_38009", trigger_count = 0 },
{ config_id = 1038010, name = "VARIABLE_CHANGE_38010", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_38010", action = "action_EVENT_VARIABLE_CHANGE_38010", trigger_count = 0 },
{ config_id = 1038011, name = "VARIABLE_CHANGE_38011", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_38011", action = "action_EVENT_VARIABLE_CHANGE_38011", trigger_count = 0 },
{ config_id = 1038012, name = "VARIABLE_CHANGE_38012", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_38012", action = "action_EVENT_VARIABLE_CHANGE_38012", trigger_count = 0 },
-- 镜头
{ config_id = 1038013, name = "VARIABLE_CHANGE_38013", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_38013", action = "action_EVENT_VARIABLE_CHANGE_38013", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "camera", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 38001 },
regions = { },
triggers = { "GROUP_LOAD_38002", "VARIABLE_CHANGE_38003", "VARIABLE_CHANGE_38004", "VARIABLE_CHANGE_38005", "VARIABLE_CHANGE_38006", "VARIABLE_CHANGE_38007", "VARIABLE_CHANGE_38008", "VARIABLE_CHANGE_38009", "VARIABLE_CHANGE_38010", "VARIABLE_CHANGE_38011", "VARIABLE_CHANGE_38012", "VARIABLE_CHANGE_38013" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GROUP_LOAD_38002(context, evt)
ScriptLib.ActiveGadgetItemGiving(context, 10000107, 220134038, 38001)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_38003(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101801
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101801 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_38003(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134025, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_38004(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101802
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101802 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_38004(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134025, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_38005(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101803
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101803 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_38005(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134025, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_38006(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101804
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101804 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_38006(context, evt)
ScriptLib.RefreshGroup(context, { group_id = 220134025, suite = 4 })
if ScriptLib.GetGroupVariableValueByGroup(context, "given_item", 220134039) == 101808 then
ScriptLib.RefreshGroup(context, { group_id = 220134021, suite = 2 })
ScriptLib.AddQuestProgress(context, "door4complete")
ScriptLib.SetGroupVariableValueByGroup(context, "door4", 1, 220134033)
else
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_38007(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101805
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101805 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_38007(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134025, suite = 5 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_38008(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101806
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101806 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_38008(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134025, suite = 6 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_38009(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101807
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101807 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_38009(context, evt)
ScriptLib.RefreshGroup(context, { group_id = 220134025, suite = 7 })
if ScriptLib.GetGroupVariableValueByGroup(context, "given_item", 220134039) == 101808 then
ScriptLib.RefreshGroup(context, { group_id = 220134021, suite = 2 })
ScriptLib.AddQuestProgress(context, "door4complete")
ScriptLib.SetGroupVariableValueByGroup(context, "door4", 1, 220134033)
ScriptLib.SetGroupVariableValueByGroup(context, "finish", 1, 220134039)
else
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_38010(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101808
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101808 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_38010(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134025, suite = 8 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_38011(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为0
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_38011(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134025, suite = 10 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134021, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 将本组内变量名为 "door4" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "door4", 0, 220134033) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_38012(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101834
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101834 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_38012(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134025, suite = 9 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_38013(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"camera"为0
if ScriptLib.GetGroupVariableValue(context, "camera") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_38013(context, evt)
-- 触发镜头注目,注目位置为坐标(466,638,-1578.5),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=466, y=638, z=-1578.5}
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
-- 将本组内变量名为 "camera" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "camera", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
require "V2_8/HandleGivingResult"
@@ -0,0 +1,405 @@
-- 基础信息
local base_info = {
group_id = 220134039
}
-- DEFS_MISCS
local defs = {
--控制星空灯
control = { group_id = 220134042, config_id = 42001, light_index = 8, giving_gadget = 39001,}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 39001, gadget_id = 70310272, pos = { x = 492.615, y = 612.254, z = -1583.780 }, rot = { x = 0.000, y = 312.779, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1039002, name = "GROUP_LOAD_39002", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_39002", trigger_count = 0 },
{ config_id = 1039003, name = "VARIABLE_CHANGE_39003", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_39003", action = "action_EVENT_VARIABLE_CHANGE_39003", trigger_count = 0 },
{ config_id = 1039004, name = "VARIABLE_CHANGE_39004", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_39004", action = "action_EVENT_VARIABLE_CHANGE_39004", trigger_count = 0 },
{ config_id = 1039005, name = "VARIABLE_CHANGE_39005", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_39005", action = "action_EVENT_VARIABLE_CHANGE_39005", trigger_count = 0 },
{ config_id = 1039006, name = "VARIABLE_CHANGE_39006", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_39006", action = "action_EVENT_VARIABLE_CHANGE_39006", trigger_count = 0 },
{ config_id = 1039007, name = "VARIABLE_CHANGE_39007", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_39007", action = "action_EVENT_VARIABLE_CHANGE_39007", trigger_count = 0 },
{ config_id = 1039008, name = "VARIABLE_CHANGE_39008", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_39008", action = "action_EVENT_VARIABLE_CHANGE_39008", trigger_count = 0 },
{ config_id = 1039009, name = "VARIABLE_CHANGE_39009", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_39009", action = "action_EVENT_VARIABLE_CHANGE_39009", trigger_count = 0 },
{ config_id = 1039010, name = "VARIABLE_CHANGE_39010", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_39010", action = "action_EVENT_VARIABLE_CHANGE_39010", trigger_count = 0 },
{ config_id = 1039011, name = "VARIABLE_CHANGE_39011", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_39011", action = "action_EVENT_VARIABLE_CHANGE_39011", trigger_count = 0 },
{ config_id = 1039012, name = "VARIABLE_CHANGE_39012", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_39012", action = "action_EVENT_VARIABLE_CHANGE_39012", trigger_count = 0 },
-- 镜头
{ config_id = 1039013, name = "VARIABLE_CHANGE_39013", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_39013", action = "action_EVENT_VARIABLE_CHANGE_39013", trigger_count = 0 },
{ config_id = 1039014, name = "QUEST_START_39014", event = EventType.EVENT_QUEST_START, source = "4007605", condition = "condition_EVENT_QUEST_START_39014", action = "action_EVENT_QUEST_START_39014", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "camera", value = 0, no_refresh = true },
{ config_id = 2, name = "finish", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 39001 },
regions = { },
triggers = { "GROUP_LOAD_39002", "VARIABLE_CHANGE_39003", "VARIABLE_CHANGE_39004", "VARIABLE_CHANGE_39005", "VARIABLE_CHANGE_39006", "VARIABLE_CHANGE_39007", "VARIABLE_CHANGE_39008", "VARIABLE_CHANGE_39009", "VARIABLE_CHANGE_39010", "VARIABLE_CHANGE_39011", "VARIABLE_CHANGE_39012", "VARIABLE_CHANGE_39013", "QUEST_START_39014" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GROUP_LOAD_39002(context, evt)
ScriptLib.ActiveGadgetItemGiving(context, 10000108, 220134039, 39001)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_39003(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101801
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101801 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_39003(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134029, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_39004(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101802
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101802 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_39004(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134029, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_39005(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101803
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101803 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_39005(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134029, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_39006(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101804
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101804 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_39006(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134029, suite = 4 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_39007(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101805
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101805 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_39007(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134029, suite = 5 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_39008(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101806
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101806 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_39008(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134029, suite = 6 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_39009(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101807
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101807 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_39009(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134029, suite = 7 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_39010(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101808
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101808 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_39010(context, evt)
ScriptLib.RefreshGroup(context, { group_id = 220134029, suite = 8 })
if ScriptLib.GetGroupVariableValueByGroup(context, "given_item", 220134038) == 101807 or ScriptLib.GetGroupVariableValueByGroup(context, "given_item", 220134038) == 101804 then
ScriptLib.RefreshGroup(context, { group_id = 220134021, suite = 2 })
ScriptLib.AddQuestProgress(context, "door4complete")
ScriptLib.SetGroupVariableValueByGroup(context, "door4", 1, 220134033)
ScriptLib.SetGroupVariableValue(context, "finish", 1)
else
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_39011(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为0
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_39011(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134029, suite = 10 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134021, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 将本组内变量名为 "door4" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "door4", 0, 220134033) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_39012(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"given_item"为101834
if ScriptLib.GetGroupVariableValue(context, "given_item") ~= 101834 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_39012(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134029, suite = 9 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_39013(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"camera"为0
if ScriptLib.GetGroupVariableValue(context, "camera") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_39013(context, evt)
-- 触发镜头注目,注目位置为坐标(466,633,-1576.7),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=466, y=633, z=-1576.7}
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
-- 将本组内变量名为 "camera" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "camera", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_39014(context, evt)
-- 判断变量"finish"为1
if ScriptLib.GetGroupVariableValue(context, "finish") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_39014(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "door4complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
require "V2_8/HandleGivingResult"
@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 220134040
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 40001, gadget_id = 70310233, pos = { x = 703.776, y = 618.586, z = -1555.707 }, rot = { x = 16.604, y = 48.623, z = 352.489 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 40001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,83 @@
-- 基础信息
local base_info = {
group_id = 220134042
}
-- DEFS_MISCS
--贴在投影以所在Group
function EX_SetStarProjectorSGV(context, prev_context, config_id, light_index, is_on)
ScriptLib.PrintContextLog(context, "## [StarProjector] EX_SetStarProjectorSGV called. light_index@"..light_index.. " is_on@".. is_on)
ScriptLib.SetEntityServerGlobalValueByConfigId(context, config_id, "SGV_StarProjector_LightOn_"..light_index, is_on)
return 0
end
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 42001, gadget_id = 70310331, pos = { x = 500.098, y = 613.455, z = -1591.462 }, rot = { x = 0.000, y = 182.154, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_REMOTE }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 42001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,232 @@
-- 基础信息
local base_info = {
group_id = 220134043
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 0 倒影亮 实体灭
{ config_id = 43001, gadget_id = 70310238, pos = { x = 594.635, y = 604.728, z = -1476.796 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
-- 201 倒影亮 实体亮
{ config_id = 43002, gadget_id = 70310238, pos = { x = 599.471, y = 604.740, z = -1474.197 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
-- 202 倒影灭 实体灭
{ config_id = 43003, gadget_id = 70310238, pos = { x = 596.447, y = 604.728, z = -1471.517 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop },
-- 203 倒影灭 亮
{ config_id = 43004, gadget_id = 70310238, pos = { x = 593.323, y = 604.727, z = -1473.760 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearAction1 },
-- 0 倒影亮 实体灭
{ config_id = 43005, gadget_id = 70310238, pos = { x = 596.855, y = 604.711, z = -1482.496 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43007, gadget_id = 70211001, pos = { x = 602.729, y = 604.643, z = -1478.108 }, rot = { x = 0.000, y = 273.398, z = 0.000 }, level = 16, drop_tag = "战斗低级群岛", isOneoff = true, persistent = true },
{ config_id = 43008, gadget_id = 70380306, pos = { x = 597.344, y = 604.962, z = -1477.270 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, persistent = true },
{ config_id = 43011, gadget_id = 70220038, pos = { x = 590.380, y = 604.962, z = -1486.695 }, rot = { x = 0.000, y = 183.833, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 43009, shape = RegionShape.SPHERE, radius = 15, pos = { x = 594.176, y = 604.723, z = -1475.362 } },
{ config_id = 43010, shape = RegionShape.SPHERE, radius = 15, pos = { x = 594.176, y = 604.723, z = -1475.362 } }
}
-- 触发器
triggers = {
{ config_id = 1043006, name = "GADGET_STATE_CHANGE_43006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_43006", action = "action_EVENT_GADGET_STATE_CHANGE_43006" },
{ config_id = 1043009, name = "ENTER_REGION_43009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_43009", action = "action_EVENT_ENTER_REGION_43009", trigger_count = 0 },
{ config_id = 1043010, name = "LEAVE_REGION_43010", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_43010", action = "action_EVENT_LEAVE_REGION_43010", trigger_count = 0 },
{ config_id = 1043012, name = "ANY_GADGET_DIE_43012", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_43012", action = "action_EVENT_ANY_GADGET_DIE_43012", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 43001, 43002, 43003, 43004, 43005, 43011 },
regions = { 43009, 43010 },
triggers = { "GADGET_STATE_CHANGE_43006", "ENTER_REGION_43009", "LEAVE_REGION_43010", "ANY_GADGET_DIE_43012" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_43006(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220134043, 43001) then
return false
end
if GadgetState.GearStop ~= ScriptLib.GetGadgetStateByConfigId(context, 220134043, 43004) then
return false
end
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220134043, 43005) then
return false
end
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220134043, 43002) then
return false
end
if GadgetState.GearStop ~= ScriptLib.GetGadgetStateByConfigId(context, 220134043, 43003) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_43006(context, evt)
-- 创建id为43007的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 43007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_43009(context, evt)
if evt.param1 ~= 43009 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_43009(context, evt)
-- 将configid为 43008 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 43008, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 改变指定group组220134006中, configid为6012的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220134006, 6012, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220134007中, configid为7002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220134007, 7002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220134044中, configid为44007的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220134044, 44007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_43010(context, evt)
-- 判断角色数量不少于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_LEAVE_REGION_43010(context, evt)
-- 将configid为 43008 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 43008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_43012(context, evt)
if 43011 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_43012(context, evt)
-- 创建id为43008的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 43008 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 将本组内变量名为 "kill" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "kill", 1, 220134006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220134006, EntityType.GADGET, 6012 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134012, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220134012, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
return 0
end
@@ -0,0 +1,310 @@
-- 基础信息
local base_info = {
group_id = 220134044
}
-- Trigger变量
local defs = {
max_gear = 4,
timer = 10,
group_id = 220134044,
gadget_1 = 44001,
gadget_2 = 44002,
gadget_3 = 44003,
gadget_4 = 44005,
gadget_chest = 44004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 44001, gadget_id = 70900049, pos = { x = 637.014, y = 605.919, z = -1480.199 }, rot = { x = 0.000, y = 330.800, z = 0.000 }, level = 1, state = GadgetState.Action01, persistent = true },
{ config_id = 44002, gadget_id = 70310237, pos = { x = 648.116, y = 606.021, z = -1479.693 }, rot = { x = 0.000, y = 329.000, z = 0.000 }, level = 1, state = GadgetState.Action01, persistent = true },
{ config_id = 44003, gadget_id = 70310237, pos = { x = 644.214, y = 605.979, z = -1474.918 }, rot = { x = 0.000, y = 59.100, z = 0.000 }, level = 1, state = GadgetState.Action01, persistent = true },
{ config_id = 44004, gadget_id = 70211111, pos = { x = 640.358, y = 605.852, z = -1480.732 }, rot = { x = 0.000, y = 330.500, z = 0.000 }, level = 16, drop_tag = "解谜中级群岛", showcutscene = true, isOneoff = true, persistent = true },
{ config_id = 44005, gadget_id = 70310236, pos = { x = 643.909, y = 605.852, z = -1483.342 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.Action01, persistent = true },
{ config_id = 44007, gadget_id = 70380306, pos = { x = 640.486, y = 606.037, z = -1479.938 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 44009, gadget_id = 70310300, pos = { x = 648.116, y = 606.021, z = -1479.693 }, rot = { x = 0.000, y = 329.000, z = 0.000 }, level = 1, state = GadgetState.Action01, persistent = true },
{ config_id = 44010, gadget_id = 70310300, pos = { x = 644.214, y = 605.979, z = -1474.918 }, rot = { x = 0.000, y = 59.100, z = 0.000 }, level = 1, state = GadgetState.Action01, persistent = true },
{ config_id = 44011, gadget_id = 70310301, pos = { x = 643.909, y = 605.852, z = -1483.342 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.Action01, persistent = true },
{ config_id = 44016, gadget_id = 70310396, pos = { x = 637.014, y = 605.919, z = -1480.199 }, rot = { x = 0.000, y = 330.800, z = 0.000 }, level = 1, state = GadgetState.Action01, persistent = true }
}
-- 区域
regions = {
{ config_id = 44014, shape = RegionShape.SPHERE, radius = 15, pos = { x = 645.020, y = 605.852, z = -1480.300 } },
{ config_id = 44015, shape = RegionShape.SPHERE, radius = 15, pos = { x = 645.020, y = 605.852, z = -1480.300 } }
}
-- 触发器
triggers = {
{ config_id = 1044006, name = "GADGET_STATE_CHANGE_44006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_44006", action = "action_EVENT_GADGET_STATE_CHANGE_44006", trigger_count = 0 },
{ config_id = 1044008, name = "GADGET_STATE_CHANGE_44008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_44008", action = "action_EVENT_GADGET_STATE_CHANGE_44008", trigger_count = 0 },
{ config_id = 1044012, name = "GADGET_STATE_CHANGE_44012", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_44012", action = "action_EVENT_GADGET_STATE_CHANGE_44012", trigger_count = 0 },
{ config_id = 1044013, name = "GADGET_STATE_CHANGE_44013", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_44013", action = "action_EVENT_GADGET_STATE_CHANGE_44013", trigger_count = 0 },
{ config_id = 1044014, name = "ENTER_REGION_44014", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_44014", action = "action_EVENT_ENTER_REGION_44014", trigger_count = 0 },
{ config_id = 1044015, name = "LEAVE_REGION_44015", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_44015", action = "action_EVENT_LEAVE_REGION_44015", trigger_count = 0 },
{ config_id = 1044017, name = "GADGET_STATE_CHANGE_44017", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_44017", action = "action_EVENT_GADGET_STATE_CHANGE_44017", trigger_count = 0 },
{ config_id = 1044018, name = "GROUP_LOAD_44018", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_44018", action = "action_EVENT_GROUP_LOAD_44018", 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 = { 44001, 44002, 44003, 44005, 44009, 44010, 44011, 44016 },
regions = { 44014, 44015 },
triggers = { "GADGET_STATE_CHANGE_44006", "GADGET_STATE_CHANGE_44008", "GADGET_STATE_CHANGE_44012", "GADGET_STATE_CHANGE_44013", "ENTER_REGION_44014", "LEAVE_REGION_44015", "GADGET_STATE_CHANGE_44017", "GROUP_LOAD_44018" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_44006(context, evt)
if GadgetState.Action02 ~= ScriptLib.GetGadgetStateByConfigId(context, 220134044, 44001) then
return false
end
if GadgetState.Action02 ~= ScriptLib.GetGadgetStateByConfigId(context, 220134044, 44011) then
return false
end
if GadgetState.Action02 ~= ScriptLib.GetGadgetStateByConfigId(context, 220134044, 44009) then
return false
end
if GadgetState.Action02 ~= ScriptLib.GetGadgetStateByConfigId(context, 220134044, 44010) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_44006(context, evt)
-- 创建id为44004的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 44004 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_44008(context, evt)
if GadgetState.Action02 ~= ScriptLib.GetGadgetStateByConfigId(context, 220134044, 44011) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_44008(context, evt)
-- 将configid为 44005 的物件更改为状态 GadgetState.Action02
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 44005, GadgetState.Action02) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_44012(context, evt)
if GadgetState.Action02 ~= ScriptLib.GetGadgetStateByConfigId(context, 220134044, 44009) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_44012(context, evt)
-- 将configid为 44002 的物件更改为状态 GadgetState.Action02
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 44002, GadgetState.Action02) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_44013(context, evt)
if GadgetState.Action02 ~= ScriptLib.GetGadgetStateByConfigId(context, 220134044, 44010) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_44013(context, evt)
-- 将configid为 44003 的物件更改为状态 GadgetState.Action02
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 44003, GadgetState.Action02) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_44014(context, evt)
if evt.param1 ~= 44014 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_44014(context, evt)
-- 将configid为 44007 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 44007, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 改变指定group组220134006中, configid为6012的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220134006, 6012, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220134007中, configid为7002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220134007, 7002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220134043中, configid为43008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220134043, 43008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_44015(context, evt)
-- 判断角色数量不少于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_LEAVE_REGION_44015(context, evt)
-- 将configid为 44007 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 44007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_44017(context, evt)
if GadgetState.Action02 ~= ScriptLib.GetGadgetStateByConfigId(context, 220134044, 44001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_44017(context, evt)
-- 创建id为44007的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 44007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 改变指定group组220134049中, configid为49002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220134049, 49002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_44018(context, evt)
if GadgetState.Action02 ~= ScriptLib.GetGadgetStateByConfigId(context, 220134044, 44001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_44018(context, evt)
-- 创建id为44007的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 44007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 改变指定group组220134049中, configid为49002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220134049, 49002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,138 @@
-- 基础信息
local base_info = {
group_id = 220134045
}
-- DEFS_MISCS
local defs = {
gear_info =
{
[1] = { config_id=45001 , connect = {45003, 45002, 45005, 45006, 45004}, point_array_id = 40},
[2] = { config_id=45002 , connect = {45003, 45001, 45005}, point_array_id = 41 },
[3] = { config_id= 45003 , connect = {45002, 45001, 45004}, point_array_id = 42},
[4] = { config_id=45004 , connect = {45003, 45002, 45001, 45005, 45006}, point_array_id = 43},
[5] = { config_id= 45005 , connect = {45006, 45001, 45002}, point_array_id = 44 },
[6] = { config_id=45006 , connect = {45004, 45001, 45005}, point_array_id = 45 },
},
--几种解
solutions =
{
--[解法x] = {gear_info[1]切到它的第x档, gear_info[2]切到它的第y档...}
[1] = { connection = {2,1,3,5,2,3}, ends = {}},
[2] = { connection = {3,2,1,1,1,1}, ends = {}},
},
turn_option = 31,
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 45001, gadget_id = 70310178, pos = { x = 674.823, y = 619.198, z = -1570.746 }, rot = { x = 0.000, y = 59.655, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 45002, gadget_id = 70310178, pos = { x = 668.191, y = 619.198, z = -1568.607 }, rot = { x = 0.000, y = 151.912, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 45003, gadget_id = 70310178, pos = { x = 670.232, y = 619.198, z = -1561.842 }, rot = { x = 0.000, y = 96.705, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 45004, gadget_id = 70310178, pos = { x = 685.482, y = 619.198, z = -1564.695 }, rot = { x = 0.000, y = 198.470, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 45005, gadget_id = 70310178, pos = { x = 672.701, y = 619.198, z = -1576.974 }, rot = { x = 0.000, y = 326.403, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 45006, gadget_id = 70310178, pos = { x = 679.393, y = 619.198, z = -1579.088 }, rot = { x = 0.000, y = 286.357, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 45011, gadget_id = 70211111, pos = { x = 679.564, y = 619.198, z = -1568.027 }, rot = { x = 0.000, y = 240.939, z = 0.000 }, level = 16, drop_tag = "解谜中级群岛", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 满足解法条件生成宝箱
{ config_id = 1045012, name = "VARIABLE_CHANGE_45012", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_45012", action = "action_EVENT_VARIABLE_CHANGE_45012", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 45001, 45002, 45003, 45004, 45005, 45006 },
regions = { },
triggers = { "VARIABLE_CHANGE_45012" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 45011 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_45012(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 == evt.param2 then return false end
-- 判断变量"solution"为3
if ScriptLib.GetGroupVariableValue(context, "solution") < 1
then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_45012(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220134045, 2)
return 0
end
@@ -0,0 +1,368 @@
-- 基础信息
local base_info = {
group_id = 220134046
}
-- DEFS_MISCS
local defs = {
gear_info =
{ --connect: 每个物件各个旋转档位可连接的对象 0表示无可连接
[1] = { config_id=46001 , connect = {46002, 46004, 46007, 46005, 46003}, point_array_id = 46},
[2] = { config_id=46002 , connect = {46001, 46003, 46005, 46004, 46006}, point_array_id = 47 },
[3] = { config_id= 46003 , connect = {46001, 46002, 46004, 46005, 46008}, point_array_id = 48},
[4] = { config_id=46004 , connect = {46002, 46001, 46005, 46007, 46006}, point_array_id = 49},
[5] = { config_id= 46005 , connect = {46003, 46001, 46004, 46007, 46008}, point_array_id = 50 },
[6] = { config_id=46006 , connect = {46002, 46004, 46005,46007}, point_array_id = 51 },
[7] = { config_id=46007 , connect = {46006, 46004,46003, 46005, 46008}, point_array_id = 52 },
[8] = { config_id=46008 , connect = {46003, 46005, 46004, 46007}, point_array_id = 53 },
},
--几种解
solutions =
{
--[解法x] = {gear_info[1]切到它的第x档, gear_info[2]切到它的第y档...}
[1] = { connection = {4,1,0,0,4,3,4,0}, ends = {46007}},
[2] = { connection = {1,0,0,0,2,3,4,0}, ends = {46002}},
[3] = { connection = {0,4,5,5,0,4,3,0}, ends = {46008}},
[4] = { connection = {1,5,1,3,3,4,5,2}, ends = {46004}},
[5] = { connection = {5,1,1,3,5,1,1,4}, ends = {46003}},
[6] = { connection = {4,1,0,0,0,3,4,0}, ends = {}},
[7] ={ connection = {0,4,0,5,0,4,3,1}, ends = {46003}},
[8] = { connection = {1,5,1,3,3,4,5,2}, ends = {46005}},
[9] = { connection = {1,5,1,3,5,4,5,2}, ends = {46008}},
[10] = { connection = {1,5,1,3,5,4,5,4}, ends = {46007}},
[11] = { connection = {1,5,1,3,5,4,1,4}, ends = {46006}},
[12] = { connection = {1,5,1,3,5,1,1,4}, ends = {46002}},
[13] = { connection = {1,1,1,3,5,1,1,4}, ends = {46001}},
},
turn_option = 31,
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 46001, gadget_id = 70310178, pos = { x = 198.323, y = 634.126, z = -1740.713 }, rot = { x = 0.000, y = 255.501, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 46002, gadget_id = 70310178, pos = { x = 206.288, y = 634.126, z = -1733.476 }, rot = { x = 0.000, y = 330.755, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 46003, gadget_id = 70310178, pos = { x = 187.880, y = 634.126, z = -1743.300 }, rot = { x = 0.000, y = 332.250, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 46004, gadget_id = 70310178, pos = { x = 197.843, y = 634.126, z = -1729.133 }, rot = { x = 0.000, y = 239.464, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 46005, gadget_id = 70310178, pos = { x = 186.550, y = 634.126, z = -1735.493 }, rot = { x = 0.000, y = 65.024, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 46006, gadget_id = 70310178, pos = { x = 198.196, y = 634.126, z = -1719.926 }, rot = { x = 0.000, y = 148.640, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 46007, gadget_id = 70310178, pos = { x = 189.288, y = 634.126, z = -1724.763 }, rot = { x = 2.345, y = 178.984, z = 352.786 }, level = 1, is_use_point_array = true },
{ config_id = 46008, gadget_id = 70310178, pos = { x = 180.583, y = 634.126, z = -1729.913 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 46009, gadget_id = 70380301, pos = { x = 200.998, y = 645.055, z = -1770.307 }, rot = { x = 0.000, y = 330.777, z = 0.000 }, level = 1 },
{ config_id = 46010, gadget_id = 70360001, pos = { x = 197.586, y = 635.688, z = -1764.311 }, rot = { x = 0.000, y = 328.022, z = 0.000 }, level = 1 },
{ config_id = 46011, gadget_id = 70211111, pos = { x = 208.792, y = 635.663, z = -1751.413 }, rot = { x = 0.000, y = 331.330, z = 0.000 }, level = 16, drop_tag = "解谜中级群岛", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 切pattern2
{ config_id = 1046012, name = "VARIABLE_CHANGE_46012", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_46012", action = "action_EVENT_VARIABLE_CHANGE_46012" },
{ config_id = 1046013, name = "SELECT_OPTION_46013", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_46013", action = "action_EVENT_SELECT_OPTION_46013", trigger_count = 0 },
-- 切pattern3
{ config_id = 1046014, name = "VARIABLE_CHANGE_46014", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_46014", action = "action_EVENT_VARIABLE_CHANGE_46014" },
-- 切pattern4,开宝箱
{ config_id = 1046015, name = "VARIABLE_CHANGE_46015", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_46015", action = "action_EVENT_VARIABLE_CHANGE_46015" },
{ config_id = 1046016, name = "GROUP_LOAD_46016", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_46016", action = "action_EVENT_GROUP_LOAD_46016", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "finish", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 46001, 46002, 46003, 46004, 46005, 46006, 46007, 46008, 46009, 46010 },
regions = { },
triggers = { "VARIABLE_CHANGE_46012", "SELECT_OPTION_46013", "VARIABLE_CHANGE_46014", "VARIABLE_CHANGE_46015", "GROUP_LOAD_46016" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 46009, 46010, 46011 },
regions = { },
triggers = { "SELECT_OPTION_46013", "GROUP_LOAD_46016" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_46012(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 == evt.param2 then return false end
-- 判断变量"solution"为1
if ScriptLib.GetGroupVariableValue(context, "solution") == 1 or
ScriptLib.GetGroupVariableValue(context, "solution") == 2
or
ScriptLib.GetGroupVariableValue(context, "solution") == 6
then
return true
end
return false
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_46012(context, evt)
-- 将本组内变量名为 "pattern" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "pattern", 2, 220134056) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 触发镜头注目,注目位置为坐标(212,647,-1757),持续时间为3秒,并且为强制注目形式,不广播其他玩家
local pos = {x=212, y=647, z=-1757}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = true, duration = 3, 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
-- 将本组内变量名为 "form" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "form", 2, 220134056) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_46013(context, evt)
-- 判断是gadgetid 46010 option_id 411
if 46010 ~= evt.param1 then
return false
end
if 411 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_46013(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 46009, 10) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 46009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 删除指定group 220134046 ;指定config46010;物件身上指定option411
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220134046, 46010, 411) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_46014(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 == evt.param2 then return false end
if ScriptLib.GetGroupVariableValueByGroup(context, "form", 220134056) ~=2 then
return false
end
-- 判断变量"solution"为2
if
ScriptLib.GetGroupVariableValue(context, "solution") == 3 or
ScriptLib.GetGroupVariableValue(context, "solution") == 7
then
return true
end
return false
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_46014(context, evt)
-- 将本组内变量名为 "pattern" 的变量设置为 3
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "pattern", 3, 220134056) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 触发镜头注目,注目位置为坐标(212,647,-1757),持续时间为3秒,并且为强制注目形式,不广播其他玩家
local pos = {x=212, y=647, z=-1757}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = true, duration = 3, 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
-- 将本组内变量名为 "form" 的变量设置为 3
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "form", 3, 220134056) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_46015(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 == evt.param2 then return false end
if ScriptLib.GetGroupVariableValueByGroup(context, "form", 220134056) ~=3 then
return false
end
-- 判断变量"solution"为2
if ScriptLib.GetGroupVariableValue(context, "solution") == 4 or
ScriptLib.GetGroupVariableValue(context, "solution") == 5
or
ScriptLib.GetGroupVariableValue(context, "solution") >= 8
then
return true
end
return false
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_46015(context, evt)
-- 将本组内变量名为 "pattern" 的变量设置为 4
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "pattern", 4, 220134056) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "form" 的变量设置为 4
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "form", 4, 220134056) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "finish" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finish", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220134046, 46010, {411}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220134046, 2)
-- 触发镜头注目,注目位置为坐标(212,647,-1757),持续时间为3秒,并且为强制注目形式,不广播其他玩家
local pos = {x=212, y=647, z=-1757}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = true, duration = 3, 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
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220134046, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_46016(context, evt)
-- 判断变量"finish"为1
if ScriptLib.GetGroupVariableValue(context, "finish") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_46016(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220134046, 46010, {411}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220134046, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
return 0
end
require "V2_8/ConstellationMachine"
@@ -0,0 +1,501 @@
-- 基础信息
local base_info = {
group_id = 220134047
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 47001, gadget_id = 70380301, pos = { x = 647.373, y = 633.841, z = -1703.420 }, rot = { x = 0.000, y = 32.227, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 47006, gadget_id = 70360002, pos = { x = 658.443, y = 623.380, z = -1685.488 }, rot = { x = 0.000, y = 215.214, z = 0.000 }, level = 1, worktop_config = { init_options = { 214 } } },
{ config_id = 47007, gadget_id = 70360002, pos = { x = 634.792, y = 623.380, z = -1723.132 }, rot = { x = 0.000, y = 26.408, z = 0.000 }, level = 1, worktop_config = { init_options = { 214 } } }
}
-- 区域
regions = {
{ config_id = 47005, shape = RegionShape.SPHERE, radius = 5, pos = { x = 639.316, y = 623.380, z = -1698.005 } }
}
-- 触发器
triggers = {
-- 左:1的时候推向2
{ config_id = 1047002, name = "SELECT_OPTION_47002", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_47002", action = "action_EVENT_SELECT_OPTION_47002", trigger_count = 0 },
-- 左:2的时候推向3
{ config_id = 1047003, name = "SELECT_OPTION_47003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_47003", action = "action_EVENT_SELECT_OPTION_47003", trigger_count = 0 },
-- 左:3的时候推向4
{ config_id = 1047004, name = "SELECT_OPTION_47004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_47004", action = "action_EVENT_SELECT_OPTION_47004", trigger_count = 0 },
{ config_id = 1047005, name = "ENTER_REGION_47005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_47005", action = "action_EVENT_ENTER_REGION_47005", trigger_count = 0 },
-- 左:4的时候推向1
{ config_id = 1047008, name = "SELECT_OPTION_47008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_47008", action = "action_EVENT_SELECT_OPTION_47008", trigger_count = 0 },
-- 右:1的时候推向2
{ config_id = 1047009, name = "SELECT_OPTION_47009", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_47009", action = "action_EVENT_SELECT_OPTION_47009", trigger_count = 0 },
-- 右:2的时候推向3
{ config_id = 1047010, name = "SELECT_OPTION_47010", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_47010", action = "action_EVENT_SELECT_OPTION_47010", trigger_count = 0 },
-- 右:3的时候推向4
{ config_id = 1047011, name = "SELECT_OPTION_47011", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_47011", action = "action_EVENT_SELECT_OPTION_47011", trigger_count = 0 },
-- 右:4的时候推向1
{ config_id = 1047012, name = "SELECT_OPTION_47012", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_47012", action = "action_EVENT_SELECT_OPTION_47012", trigger_count = 0 },
-- position到5的时候变为1
{ config_id = 1047013, name = "VARIABLE_CHANGE_47013", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_47013", action = "action_EVENT_VARIABLE_CHANGE_47013", trigger_count = 0 },
-- position到5的时候变为1
{ config_id = 1047014, name = "VARIABLE_CHANGE_47014", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_47014", action = "action_EVENT_VARIABLE_CHANGE_47014", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "position", value = 1, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 47001, 47006, 47007 },
regions = { 47005 },
triggers = { "SELECT_OPTION_47002", "SELECT_OPTION_47003", "SELECT_OPTION_47004", "ENTER_REGION_47005", "SELECT_OPTION_47008", "SELECT_OPTION_47009", "SELECT_OPTION_47010", "SELECT_OPTION_47011", "SELECT_OPTION_47012", "VARIABLE_CHANGE_47013", "VARIABLE_CHANGE_47014" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_47002(context, evt)
-- 判断是gadgetid 47006 option_id 214
if 47006 ~= evt.param1 then
return false
end
if 214 ~= evt.param2 then
return false
end
-- 判断变量"position"为1
if ScriptLib.GetGroupVariableValue(context, "position") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_47002(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 47001, 54, {2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 针对当前group内变量名为 "position" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "position", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_47003(context, evt)
-- 判断是gadgetid 47006 option_id 214
if 47006 ~= evt.param1 then
return false
end
if 214 ~= evt.param2 then
return false
end
-- 判断变量"position"为2
if ScriptLib.GetGroupVariableValue(context, "position") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_47003(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 47001, 54, {3}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 针对当前group内变量名为 "position" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "position", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_47004(context, evt)
-- 判断是gadgetid 47006 option_id 214
if 47006 ~= evt.param1 then
return false
end
if 214 ~= evt.param2 then
return false
end
-- 判断变量"position"为3
if ScriptLib.GetGroupVariableValue(context, "position") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_47004(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 47001, 54, {4}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 针对当前group内变量名为 "position" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "position", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_47005(context, evt)
if evt.param1 ~= 47005 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_47005(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 47001, 54, {1}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 将本组内变量名为 "position" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "position", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_47008(context, evt)
-- 判断是gadgetid 47006 option_id 214
if 47006 ~= evt.param1 then
return false
end
if 214 ~= evt.param2 then
return false
end
-- 判断变量"position"为4
if ScriptLib.GetGroupVariableValue(context, "position") ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_47008(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 47001, 54, {1}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 针对当前group内变量名为 "position" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "position", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_47009(context, evt)
-- 判断是gadgetid 47007 option_id 214
if 47007 ~= evt.param1 then
return false
end
if 214 ~= evt.param2 then
return false
end
-- 判断变量"position"为1
if ScriptLib.GetGroupVariableValue(context, "position") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_47009(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 47001, 54, {2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 针对当前group内变量名为 "position" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "position", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_47010(context, evt)
-- 判断是gadgetid 47007 option_id 214
if 47007 ~= evt.param1 then
return false
end
if 214 ~= evt.param2 then
return false
end
-- 判断变量"position"为2
if ScriptLib.GetGroupVariableValue(context, "position") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_47010(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 47001, 54, {3}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 针对当前group内变量名为 "position" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "position", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_47011(context, evt)
-- 判断是gadgetid 47007 option_id 214
if 47007 ~= evt.param1 then
return false
end
if 214 ~= evt.param2 then
return false
end
-- 判断变量"position"为3
if ScriptLib.GetGroupVariableValue(context, "position") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_47011(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 47001, 54, {4}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 针对当前group内变量名为 "position" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "position", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_47012(context, evt)
-- 判断是gadgetid 47007 option_id 214
if 47007 ~= evt.param1 then
return false
end
if 214 ~= evt.param2 then
return false
end
-- 判断变量"position"为4
if ScriptLib.GetGroupVariableValue(context, "position") ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_47012(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 47001, 54, {1}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 针对当前group内变量名为 "position" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "position", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_47013(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"position"为5
if ScriptLib.GetGroupVariableValue(context, "position") ~= 5 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_47013(context, evt)
-- 将本组内变量名为 "position" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "position", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134060, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_47014(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"position"为2
if ScriptLib.GetGroupVariableValue(context, "position") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_47014(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220134060, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,102 @@
-- 基础信息
local base_info = {
group_id = 220134048
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 48001, gadget_id = 70310233, pos = { x = 672.400, y = 602.121, z = -1483.905 }, rot = { x = 0.000, y = 99.768, z = 0.000 }, level = 1 },
{ config_id = 48002, gadget_id = 70310374, pos = { x = 674.516, y = 614.489, z = -1484.117 }, rot = { x = 306.241, y = 354.845, z = 199.737 }, level = 1, persistent = true }
}
-- 区域
regions = {
{ config_id = 48003, shape = RegionShape.SPHERE, radius = 5, pos = { x = 670.527, y = 610.838, z = -1485.658 } }
}
-- 触发器
triggers = {
{ config_id = 1048003, name = "ENTER_REGION_48003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_48003", action = "action_EVENT_ENTER_REGION_48003", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 48001, 48002 },
regions = { 48003 },
triggers = { "ENTER_REGION_48003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_48003(context, evt)
if evt.param1 ~= 48003 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220134048, 48002) then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_48003(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220134048, EntityType.GADGET, 48002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,102 @@
-- 基础信息
local base_info = {
group_id = 220134049
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 49001, gadget_id = 70310233, pos = { x = 618.434, y = 599.123, z = -1477.866 }, rot = { x = 0.000, y = 99.468, z = 0.000 }, level = 1 },
{ config_id = 49002, gadget_id = 70310374, pos = { x = 624.179, y = 606.580, z = -1481.484 }, rot = { x = 44.959, y = 25.182, z = 223.041 }, level = 1, persistent = true }
}
-- 区域
regions = {
{ config_id = 49003, shape = RegionShape.SPHERE, radius = 5, pos = { x = 622.521, y = 606.037, z = -1478.128 } }
}
-- 触发器
triggers = {
{ config_id = 1049003, name = "ENTER_REGION_49003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_49003", action = "action_EVENT_ENTER_REGION_49003", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 49001, 49002 },
regions = { 49003 },
triggers = { "ENTER_REGION_49003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_49003(context, evt)
if evt.param1 ~= 49003 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220134049, 49002) then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_49003(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220134049, EntityType.GADGET, 49002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 220134050
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 50001, gadget_id = 70500036, pos = { x = 161.417, y = 650.478, z = -1850.829 }, rot = { x = 351.355, y = 357.471, z = 16.379 }, level = 1, arguments = { 33 } }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 50001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,94 @@
-- 基础信息
local base_info = {
group_id = 220134051
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 51001, gadget_id = 70310342, pos = { x = 315.614, y = 625.360, z = -1656.789 }, rot = { x = 0.000, y = 329.171, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 51002, shape = RegionShape.SPHERE, radius = 10, pos = { x = 315.353, y = 625.360, z = -1660.611 } }
}
-- 触发器
triggers = {
{ config_id = 1051002, name = "ENTER_REGION_51002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_51002", action = "action_EVENT_ENTER_REGION_51002", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 51001 },
regions = { 51002 },
triggers = { "ENTER_REGION_51002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_51002(context, evt)
if evt.param1 ~= 51002 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_51002(context, evt)
if ScriptLib.GetHostQuestState(context,4007405)==3 then
ScriptLib.ActivateDungeonCheckPoint(context, 3)
end
return 0
end
@@ -0,0 +1,94 @@
-- 基础信息
local base_info = {
group_id = 220134052
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 52001, gadget_id = 70310342, pos = { x = 613.662, y = 621.188, z = -1685.934 }, rot = { x = 0.052, y = 31.057, z = 359.732 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 52002, shape = RegionShape.SPHERE, radius = 10, pos = { x = 614.227, y = 621.288, z = -1684.154 } }
}
-- 触发器
triggers = {
{ config_id = 1052002, name = "ENTER_REGION_52002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_52002", action = "action_EVENT_ENTER_REGION_52002", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 52001 },
regions = { 52002 },
triggers = { "ENTER_REGION_52002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_52002(context, evt)
if evt.param1 ~= 52002 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_52002(context, evt)
if ScriptLib.GetHostQuestState(context,4007503)==3 then
ScriptLib.ActivateDungeonCheckPoint(context, 4)
end
return 0
end
@@ -0,0 +1,94 @@
-- 基础信息
local base_info = {
group_id = 220134053
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 53001, gadget_id = 70310342, pos = { x = 647.115, y = 605.850, z = -1488.759 }, rot = { x = 359.938, y = 6.847, z = 359.734 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 53002, shape = RegionShape.SPHERE, radius = 10, pos = { x = 655.031, y = 607.582, z = -1487.515 } }
}
-- 触发器
triggers = {
{ config_id = 1053002, name = "ENTER_REGION_53002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_53002", action = "action_EVENT_ENTER_REGION_53002", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 53001 },
regions = { 53002 },
triggers = { "ENTER_REGION_53002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_53002(context, evt)
if evt.param1 ~= 53002 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_53002(context, evt)
if ScriptLib.GetHostQuestState(context,4007603)==3 then
ScriptLib.ActivateDungeonCheckPoint(context, 5)
end
return 0
end
@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 220134054
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 54001, gadget_id = 70310342, pos = { x = 369.746, y = 632.156, z = -1506.443 }, rot = { x = 0.000, y = 206.039, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 54001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,109 @@
-- 基础信息
local base_info = {
group_id = 220134055
}
-- DEFS_MISCS
local defs = {
patterns =
{
--形态1
[1] =
{
[55001] = 55002,
[55002] = 55003 ,
[55003] = 55004 ,
[55004] = 55005 ,
[55005] = 0 ,
},
},
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[55001] = { config_id = 55001, gadget_id = 70310179, pos = { x = 732.761, y = 653.542, z = -1779.070 }, rot = { x = 318.956, y = 206.110, z = 6.123 }, level = 1, persistent = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[55002] = { config_id = 55002, gadget_id = 70310179, pos = { x = 733.657, y = 661.899, z = -1771.407 }, rot = { x = 318.956, y = 206.110, z = 6.123 }, level = 1, persistent = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[55003] = { config_id = 55003, gadget_id = 70310179, pos = { x = 724.947, y = 650.480, z = -1778.210 }, rot = { x = 318.956, y = 206.110, z = 6.123 }, level = 1, persistent = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[55004] = { config_id = 55004, gadget_id = 70310179, pos = { x = 725.633, y = 656.940, z = -1769.828 }, rot = { x = 318.956, y = 206.110, z = 6.123 }, level = 1, persistent = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[55005] = { config_id = 55005, gadget_id = 70310179, pos = { x = 721.961, y = 655.507, z = -1770.297 }, rot = { x = 318.956, y = 206.110, z = 6.123 }, level = 1, persistent = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 1,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 55001, 55002, 55003, 55004, 55005 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V2_8/ConstellationPattern"
@@ -0,0 +1,211 @@
-- 基础信息
local base_info = {
group_id = 220134056
}
-- DEFS_MISCS
local defs = {
is_movable = 1,
patterns =
{
--形态1
[1] =
{
[56001] = {connect =56002 , point_array = 55, point_id = {1}} ,
[56002] = {connect =56003 , point_array = 56, point_id = {1}} ,
[56003] = {connect =56004 , point_array = 57, point_id = {1}} ,
[56004] = {connect =0 , point_array = 58, point_id = {1}} ,
[56005] = {connect =56003 , point_array = 59, point_id = {1}} ,
[56006] = {connect =0 , point_array = 60, point_id = {1}} ,
[56007] = {connect =0 , point_array = 61, point_id = {1}} ,
[56008] = {connect =0 , point_array = 62, point_id = {1}} ,
},
--形态1
[2] =
{
[56001] = {connect =56003 , point_array = 55, point_id = {2}} ,
[56002] = {connect =56001 , point_array = 56, point_id = {2}} ,
[56003] = {connect =56006 , point_array = 57, point_id = {2}} ,
[56004] = {connect =0 , point_array = 58, point_id = {2}} ,
[56005] = {connect =56004 , point_array = 59, point_id = {2}} ,
[56006] = {connect =56005 , point_array = 60, point_id = {2}} ,
[56007] = {connect =0 , point_array = 61, point_id = {2}} ,
[56008] = {connect =0 , point_array = 62, point_id = {2}} ,
},
[3] =
{
[56001] = {connect =56002 , point_array = 55, point_id = {3}} ,
[56002] = {connect =56003 , point_array = 56, point_id = {3}} ,
[56003] = {connect =56004 , point_array = 57, point_id = {3}} ,
[56004] = {connect =56005 , point_array = 58, point_id = {3}} ,
[56005] = {connect =56006 , point_array = 59, point_id = {3}} ,
[56006] = {connect =56007 , point_array = 60, point_id = {3}} ,
[56007] = {connect =56008 , point_array = 61, point_id = {3}} ,
[56008] = {connect =0 , point_array = 62, point_id = {3}} ,
},
[4] =
{
[56001] = {connect =56002 , point_array = 55, point_id = {4}} ,
[56002] = {connect =0 , point_array = 56, point_id = {4}} ,
[56003] = {connect =56001 , point_array = 57, point_id = {4}} ,
[56004] = {connect =56008 , point_array = 58, point_id = {4}} ,
[56005] = {connect =56004 , point_array = 59, point_id = {4}} ,
[56006] = {connect =56005 , point_array = 60, point_id = {4}} ,
[56007] = {connect =56006 , point_array = 61, point_id = {4}} ,
[56008] = {connect =56001 , point_array = 62, point_id = {4}} ,
},
},
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[56001] = { config_id = 56001, gadget_id = 70310231, pos = { x = 216.369, y = 650.503, z = -1754.569 }, rot = { x = 0.000, y = 246.888, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[56002] = { config_id = 56002, gadget_id = 70310231, pos = { x = 212.012, y = 652.063, z = -1756.317 }, rot = { x = 0.000, y = 246.888, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[56003] = { config_id = 56003, gadget_id = 70310231, pos = { x = 208.164, y = 647.768, z = -1758.096 }, rot = { x = 0.000, y = 246.888, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[56004] = { config_id = 56004, gadget_id = 70310455, pos = { x = 215.702, y = 642.218, z = -1754.840 }, rot = { x = 0.000, y = 246.888, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[56005] = { config_id = 56005, gadget_id = 70310231, pos = { x = 211.991, y = 642.216, z = -1756.864 }, rot = { x = 0.000, y = 246.888, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[56006] = { config_id = 56006, gadget_id = 70310231, pos = { x = 216.265, y = 633.911, z = -1754.661 }, rot = { x = 0.000, y = 246.888, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[56007] = { config_id = 56007, gadget_id = 70310455, pos = { x = 219.165, y = 632.074, z = -1753.778 }, rot = { x = 0.000, y = 246.888, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[56008] = { config_id = 56008, gadget_id = 70310231, pos = { x = 208.568, y = 632.716, z = -1759.590 }, rot = { x = 0.000, y = 246.888, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1056009, name = "GROUP_LOAD_56009", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_56009", action = "action_EVENT_GROUP_LOAD_56009", trigger_count = 0 },
{ config_id = 1056010, name = "GROUP_LOAD_56010", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_56010", action = "action_EVENT_GROUP_LOAD_56010", trigger_count = 0 },
{ config_id = 1056011, name = "GROUP_LOAD_56011", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_56011", action = "action_EVENT_GROUP_LOAD_56011", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "form", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 56001, 56002, 56003, 56004, 56005, 56006, 56007, 56008 },
regions = { },
triggers = { "GROUP_LOAD_56009", "GROUP_LOAD_56010", "GROUP_LOAD_56011" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GROUP_LOAD_56009(context, evt)
-- 判断变量"form"为2
if ScriptLib.GetGroupVariableValue(context, "form") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_56009(context, evt)
-- 将本组内变量名为 "pattern" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "pattern", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_56010(context, evt)
-- 判断变量"form"为3
if ScriptLib.GetGroupVariableValue(context, "form") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_56010(context, evt)
-- 将本组内变量名为 "pattern" 的变量设置为 3
if 0 ~= ScriptLib.SetGroupVariableValue(context, "pattern", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_56011(context, evt)
-- 判断变量"form"为4
if ScriptLib.GetGroupVariableValue(context, "form") ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_56011(context, evt)
-- 将本组内变量名为 "pattern" 的变量设置为 4
if 0 ~= ScriptLib.SetGroupVariableValue(context, "pattern", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
require "V2_8/ConstellationPattern"
@@ -0,0 +1,119 @@
-- 基础信息
local base_info = {
group_id = 220134057
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 57001, gadget_id = 70310400, pos = { x = 776.971, y = 624.193, z = -1784.566 }, rot = { x = 0.000, y = 302.264, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1057002, name = "GADGET_GIVING_FINISHED_57002", event = EventType.EVENT_GADGET_GIVING_FINISHED, source = "", condition = "", action = "action_EVENT_GADGET_GIVING_FINISHED_57002", trigger_count = 0 },
{ config_id = 1057003, name = "GROUP_LOAD_57003", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_57003", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 57001 },
regions = { },
triggers = { "GADGET_GIVING_FINISHED_57002", "GROUP_LOAD_57003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GADGET_GIVING_FINISHED_57002(context, evt)
-- 将configid为 57001 的物件更改为状态 GadgetState.ChestLocked
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 57001, GadgetState.ChestLocked) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(722,657,-1768),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=722, y=657, z=-1768}
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 = 2,
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
-- 将本组内变量名为 "star4" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "star4", 1, 220134069) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "star4" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "star4", 1, 220134092) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220134055, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_57003(context, evt)
ScriptLib.ActiveGadgetItemGiving(context, 10000112, 220134057, 57001)
return 0
end
@@ -0,0 +1,149 @@
-- 基础信息
local base_info = {
group_id = 220134058
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 58002, gadget_id = 70310446, pos = { x = 294.000, y = 626.000, z = -1675.250 }, rot = { x = 9.270, y = 86.773, z = 4.771 }, level = 1, persistent = true },
{ config_id = 58003, gadget_id = 70310459, pos = { x = 279.200, y = 629.250, z = -1689.000 }, rot = { x = 11.886, y = 20.542, z = 356.443 }, level = 1, persistent = true },
{ config_id = 58004, gadget_id = 70310459, pos = { x = 263.360, y = 632.800, z = -1700.469 }, rot = { x = 13.155, y = 97.045, z = 7.406 }, level = 1, persistent = true }
}
-- 区域
regions = {
{ config_id = 58001, shape = RegionShape.SPHERE, radius = 8, pos = { x = 300.842, y = 625.133, z = -1674.874 } },
{ config_id = 58005, shape = RegionShape.SPHERE, radius = 5, pos = { x = 281.353, y = 627.790, z = -1679.244 } },
{ config_id = 58006, shape = RegionShape.SPHERE, radius = 5, pos = { x = 271.931, y = 631.449, z = -1699.170 } }
}
-- 触发器
triggers = {
{ config_id = 1058001, name = "ENTER_REGION_58001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_58001", action = "action_EVENT_ENTER_REGION_58001" },
{ config_id = 1058005, name = "ENTER_REGION_58005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_58005", action = "action_EVENT_ENTER_REGION_58005" },
{ config_id = 1058006, name = "ENTER_REGION_58006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_58006", action = "action_EVENT_ENTER_REGION_58006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 58001, 58005, 58006 },
triggers = { "ENTER_REGION_58001", "ENTER_REGION_58005", "ENTER_REGION_58006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_58001(context, evt)
if evt.param1 ~= 58001 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_58001(context, evt)
-- 创建id为58002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 58002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_58005(context, evt)
if evt.param1 ~= 58005 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_58005(context, evt)
-- 创建id为58003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 58003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_58006(context, evt)
if evt.param1 ~= 58006 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_58006(context, evt)
-- 创建id为58004的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 58004 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,97 @@
-- 基础信息
local base_info = {
group_id = 220134059
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 59001, gadget_id = 70310448, pos = { x = 204.888, y = 640.130, z = -1794.254 }, rot = { x = 1.075, y = 3.229, z = 359.170 }, level = 1, persistent = true }
}
-- 区域
regions = {
{ config_id = 59002, shape = RegionShape.SPHERE, radius = 5, pos = { x = 204.955, y = 634.377, z = -1778.523 } }
}
-- 触发器
triggers = {
{ config_id = 1059002, name = "ENTER_REGION_59002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_59002", action = "action_EVENT_ENTER_REGION_59002", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 59002 },
triggers = { "ENTER_REGION_59002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_59002(context, evt)
if evt.param1 ~= 59002 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_59002(context, evt)
-- 创建id为59001的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 59001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,122 @@
-- 基础信息
local base_info = {
group_id = 220134060
}
-- DEFS_MISCS
local defs = {
--连线形态
patterns =
{
--形态1
[1] =
{
[60001] = 60002,
[60002] = 60003,
[60003] = 60004,
[60004] = 60005,
[60005] = 60006,
[60006] = 60007,
[60007] = 60008,
[60008] = 60001,
},
--形态2
[2] =
{
[35001] = 35003,
[35002] = 35004,
[35003] = 35004,
[35004] = 35006,
[35005] = 35001,
[35006] = 35001,
},
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[60001] = { config_id = 60001, gadget_id = 70310179, pos = { x = 659.016, y = 628.346, z = -1691.622 }, rot = { x = 0.000, y = 34.550, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[60002] = { config_id = 60002, gadget_id = 70310179, pos = { x = 657.862, y = 629.188, z = -1691.143 }, rot = { x = 0.000, y = 34.550, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[60003] = { config_id = 60003, gadget_id = 70310179, pos = { x = 656.120, y = 628.501, z = -1689.943 }, rot = { x = 0.000, y = 34.550, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[60004] = { config_id = 60004, gadget_id = 70310179, pos = { x = 655.262, y = 629.068, z = -1689.352 }, rot = { x = 0.000, y = 34.550, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[60005] = { config_id = 60005, gadget_id = 70310179, pos = { x = 653.140, y = 629.519, z = -1687.891 }, rot = { x = 0.000, y = 34.550, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[60006] = { config_id = 60006, gadget_id = 70310179, pos = { x = 653.779, y = 627.158, z = -1688.332 }, rot = { x = 0.000, y = 34.550, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[60007] = { config_id = 60007, gadget_id = 70310179, pos = { x = 655.579, y = 626.226, z = -1689.571 }, rot = { x = 0.000, y = 34.550, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[60008] = { config_id = 60008, gadget_id = 70310179, pos = { x = 657.203, y = 626.133, z = -1690.689 }, rot = { x = 0.000, y = 34.550, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 1,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 60001, 60002, 60003, 60004, 60005, 60006, 60007, 60008 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V2_8/ConstellationPattern"
@@ -0,0 +1,142 @@
-- 基础信息
local base_info = {
group_id = 220134061
}
-- DEFS_MISCS
local defs = {
gear_info =
{ --connect: 每个物件各个旋转档位可连接的对象 0表示无可连接
[1] = { config_id=61001 , connect = {61008,61003,61002}, point_array_id = 70 },
[2] = { config_id=61002 , connect = {61001,61008,61003}, point_array_id = 71 },
[3] = { config_id=61003 , connect = {61002,61008,61007, 61004}, point_array_id = 72},
[4] = { config_id=61004 , connect = {61006,61005, 61003,61007}, point_array_id = 73},
[5] = { config_id=61005 , connect = {61004,61006}, point_array_id = 74 },
[6] = { config_id=61006 , connect = {61007,61004,61005}, point_array_id = 75 },
[7] = { config_id=61007 , connect = {61008,61003,61006}, point_array_id = 76 },
[8] = { config_id=61008 , connect = {61007,61001,61003}, point_array_id = 77 },
},
--几种解
solutions =
{
--[解法x] = {gear_info[1]切到它的第x档, gear_info[2]切到它的第y档...}
[1] = { connection = {3,3,4,2,2,1,1,2}, ends = { }},
[2] = { connection = {1,1,1,3,1,3,3,1}, ends = { }},
},
turn_option = 31,
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 61001, gadget_id = 70310178, pos = { x = 665.244, y = 623.380, z = -1702.316 }, rot = { x = 0.000, y = 180.862, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 61002, gadget_id = 70310178, pos = { x = 665.069, y = 623.380, z = -1706.248 }, rot = { x = 0.000, y = 226.961, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 61003, gadget_id = 70310178, pos = { x = 659.874, y = 623.380, z = -1710.808 }, rot = { x = 0.000, y = 178.751, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 61004, gadget_id = 70310178, pos = { x = 659.808, y = 623.247, z = -1714.203 }, rot = { x = 0.000, y = 8.704, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 61005, gadget_id = 70310178, pos = { x = 658.709, y = 623.380, z = -1722.086 }, rot = { x = 0.000, y = 321.009, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 61006, gadget_id = 70310178, pos = { x = 653.908, y = 623.380, z = -1715.951 }, rot = { x = 0.000, y = 140.110, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 61007, gadget_id = 70310178, pos = { x = 654.367, y = 623.380, z = -1710.460 }, rot = { x = 0.000, y = 179.255, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 61008, gadget_id = 70310178, pos = { x = 656.888, y = 623.380, z = -1706.317 }, rot = { x = 0.000, y = 140.916, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 61011, gadget_id = 70211111, pos = { x = 666.337, y = 623.380, z = -1715.615 }, rot = { x = 0.000, y = 301.325, z = 0.000 }, level = 16, drop_tag = "解谜中级群岛", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 满足解法条件生成宝箱
{ config_id = 1061012, name = "VARIABLE_CHANGE_61012", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_61012", action = "action_EVENT_VARIABLE_CHANGE_61012", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 61001, 61002, 61003, 61004, 61005, 61006, 61007, 61008 },
regions = { },
triggers = { "VARIABLE_CHANGE_61012" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 61011 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_61012(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 == evt.param2 then return false end
-- 判断变量"solution"为3
if ScriptLib.GetGroupVariableValue(context, "solution") < 1
then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_61012(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220134061, 2)
return 0
end
require "V2_8/ConstellationMachine"
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,520 @@
-- 基础信息
local base_info = {
group_id = 220134063
}
-- DEFS_MISCS
function SLC_Try_Trans_Player(context)
ScriptLib.TransPlayerToPos(context, {uid_list = {ScriptLib.GetSceneOwnerUid(context)}, pos = {x=335, y= 666, z=-1496}, radius = 1, rot = {x=0,y=180,z=0}, is_skip_ui=false})
return 0
end
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 63001, gadget_id = 70380328, pos = { x = 329.721, y = 631.281, z = -1492.386 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 63002, gadget_id = 70310388, pos = { x = 335.174, y = 631.907, z = -1496.881 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true },
-- 高度1
{ config_id = 63003, gadget_id = 70360001, pos = { x = 335.174, y = 633.490, z = -1496.881 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 416 } } },
-- 高度2
{ config_id = 63005, gadget_id = 70360001, pos = { x = 335.174, y = 651.027, z = -1496.881 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
-- 高度3
{ config_id = 63006, gadget_id = 70360001, pos = { x = 335.174, y = 665.583, z = -1496.881 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 63010, gadget_id = 70290428, pos = { x = 359.382, y = 633.992, z = -1508.369 }, rot = { x = 0.000, y = 294.254, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 63013, shape = RegionShape.CUBIC, size = { x = 100.000, y = 10.000, z = 100.000 }, pos = { x = 334.181, y = 632.052, z = -1495.903 }, team_ability_group_list = { "MonaDreamland_Enter_TransPlayer_Handle_1" } }
}
-- 触发器
triggers = {
-- 高度1向上
{ config_id = 1063004, name = "SELECT_OPTION_63004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_63004", action = "action_EVENT_SELECT_OPTION_63004", trigger_count = 0 },
-- 高度2向上
{ config_id = 1063007, name = "SELECT_OPTION_63007", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_63007", action = "action_EVENT_SELECT_OPTION_63007", trigger_count = 0, forbid_guest = false },
-- 高度2向下
{ config_id = 1063008, name = "SELECT_OPTION_63008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_63008", action = "action_EVENT_SELECT_OPTION_63008", trigger_count = 0 },
-- 高度3向下
{ config_id = 1063009, name = "SELECT_OPTION_63009", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_63009", action = "action_EVENT_SELECT_OPTION_63009", trigger_count = 0 },
{ config_id = 1063011, name = "PLATFORM_REACH_POINT_63011", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_63011", action = "action_EVENT_PLATFORM_REACH_POINT_63011", trigger_count = 0 },
-- 高度1向上 清楚星空桥
{ config_id = 1063012, name = "SELECT_OPTION_63012", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_63012", action = "action_EVENT_SELECT_OPTION_63012", trigger_count = 0 },
{ config_id = 1063014, name = "PLATFORM_REACH_POINT_63014", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_63014", action = "action_EVENT_PLATFORM_REACH_POINT_63014", trigger_count = 0 },
{ config_id = 1063015, name = "GROUP_LOAD_63015", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_63015", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 63001 },
regions = { },
triggers = { "SELECT_OPTION_63004", "SELECT_OPTION_63007", "SELECT_OPTION_63008", "SELECT_OPTION_63009", "PLATFORM_REACH_POINT_63011", "SELECT_OPTION_63012", "PLATFORM_REACH_POINT_63014", "GROUP_LOAD_63015" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 63001, 63002, 63003, 63005, 63006 },
regions = { },
triggers = { "SELECT_OPTION_63004", "SELECT_OPTION_63007", "SELECT_OPTION_63008", "SELECT_OPTION_63009", "PLATFORM_REACH_POINT_63011", "SELECT_OPTION_63012", "PLATFORM_REACH_POINT_63014", "GROUP_LOAD_63015" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { 63013 },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_63004(context, evt)
-- 判断是gadgetid 63003 option_id 416
if 63003 ~= evt.param1 then
return false
end
if 416 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_63004(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 63001, 107, {2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 63002, 63, {2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 删除指定group 220134063 ;指定config63003;物件身上指定option416
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220134063, 63003, 416) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220134063, 63005, {416,410}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 创建id为63010的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 63010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 触发镜头注目,注目位置为坐标(335.174631.9067-1496.881),持续时间为5秒,并且为强制注目形式,不广播其他玩家
local pos = {x=335.174, y=631.9067, z=-1496.881}
local pos_follow = {x=2, y=-2, z=-16}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = true, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_63007(context, evt)
-- 判断是gadgetid 63005 option_id 416
if 63005 ~= evt.param1 then
return false
end
if 416 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_63007(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 63001, 107, {3}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 63002, 63, {3}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 删除指定group 220134063 ;指定config63005;物件身上指定option416
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220134063, 63005, 416) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 220134063 ;指定config63005;物件身上指定option410
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220134063, 63005, 410) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220134063, 63006, {410}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 触发镜头注目,注目位置为坐标(329.7214631.2805-1492.386),持续时间为5秒,并且为强制注目形式,不广播其他玩家
local pos = {x=329.7214, y=631.2805, z=-1492.386}
local pos_follow = {x=2, y=-2, z=-16}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = true, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_63008(context, evt)
-- 判断是gadgetid 63005 option_id 410
if 63005 ~= evt.param1 then
return false
end
if 410 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_63008(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 63001, 107, {1}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 63002, 63, {4}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220134063, 3)
-- 删除指定group 220134063 ;指定config63005;物件身上指定option416
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220134063, 63005, 416) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 220134063 ;指定config63005;物件身上指定option410
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220134063, 63005, 410) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220134063, 63003, {416}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 触发镜头注目,注目位置为坐标(329.7214631.2805-1492.386),持续时间为5秒,并且为强制注目形式,不广播其他玩家
local pos = {x=329.7214, y=631.2805, z=-1492.386}
local pos_follow = {x=2, y=-2, z=-16}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = true, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_63009(context, evt)
-- 判断是gadgetid 63006 option_id 410
if 63006 ~= evt.param1 then
return false
end
if 410 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_63009(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 63001, 107, {2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 63002, 63, {2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 删除指定group 220134063 ;指定config63006;物件身上指定option410
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220134063, 63006, 410) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220134063, 63005, {416,410}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 触发镜头注目,注目位置为坐标(329.7214631.2805-1492.386),持续时间为5秒,并且为强制注目形式,不广播其他玩家
local pos = {x=329.7214, y=631.2805, z=-1492.386}
local pos_follow = {x=2, y=-2, z=-16}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = true, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_63011(context, evt)
-- 判断是gadgetid 为 63001的移动平台,是否到达了107 的点集中的 1 点
if 63001 ~= evt.param1 then
return false
end
if 107 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_63011(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220134063, EntityType.GADGET, 63010 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_63012(context, evt)
-- 判断是gadgetid 63003 option_id 416
if 63003 ~= evt.param1 then
return false
end
if 416 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_63012(context, evt)
-- 改变指定group组220134041中, configid为41001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220134041, 41001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220134041中, configid为41002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220134041, 41002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220134041中, configid为41003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220134041, 41003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220134041中, configid为41004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220134041, 41004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220134041中, configid为41005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220134041, 41005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220134041中, configid为41006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220134041, 41006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220134041中, configid为41007的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220134041, 41007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220134041中, configid为41008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220134041, 41008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220134041中, configid为41009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220134041, 41009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_63014(context, evt)
-- 判断是gadgetid 为 63001的移动平台,是否到达了107 的点集中的 2 点
if 63001 ~= evt.param1 then
return false
end
if 107 ~= evt.param2 then
return false
end
if 2 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_63014(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220134063, 3)
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_63015(context, evt)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220134063, 3)
return 0
end
@@ -0,0 +1,154 @@
-- 基础信息
local base_info = {
group_id = 220134064
}
-- DEFS_MISCS
local defs = {
gear_info =
{ --connect: 每个物件各个旋转档位可连接的对象 0表示无可连接
[1] = { config_id=64001 , connect = {64004,64002,64003}, point_array_id =78 },
[2] = { config_id=64002 , connect = {64004,64003,64001}, point_array_id = 79 },
[3] = { config_id=64003 , connect = {64004,64005,64002}, point_array_id = 80},
[4] = { config_id=64004 , connect = {64006,64005,64003}, point_array_id = 81},
[5] = { config_id=64005 , connect = {64003,64004,64006}, point_array_id = 82 },
[6] = { config_id=64006 , connect = {64003,64005,64007}, point_array_id = 83 },
[7] = { config_id=64007 , connect = {64005,64006,64008}, point_array_id = 84 },
[8] = { config_id=64008 , connect = {64005,64007,64006}, point_array_id = 85 },
},
--几种解
solutions =
{
--[解法x] = {gear_info[1]切到它的第x档, gear_info[2]切到它的第y档...}
[1] = { connection = {2,2,1,2,3,3,3,2}, ends = { 64008}},
[2] = { connection = {2,3,3,3,2,2,2,2}, ends = {64001}},
[3] = { connection = {2,2,1,2,3,3,2,2}, ends = {64007}},
[4] = { connection = {2,2,1,2,3,2,2,2}, ends = {64006}},
[5] = { connection = {2,2,1,2,2,2,2,2}, ends = {64005}},
[6] = { connection = {2,2,1,3,2,2,2,2}, ends = {64004}},
[7] = { connection = {2,2,3,3,2,2,2,2}, ends = {64003}},
[8] = { connection = {2,3,3,3,2,2,2,2}, ends = {64002}},
},
turn_option = 31,
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 64001, gadget_id = 70310178, pos = { x = 768.998, y = 624.193, z = -1779.607 }, rot = { x = 0.000, y = 334.497, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 64002, gadget_id = 70310178, pos = { x = 757.630, y = 622.419, z = -1772.510 }, rot = { x = 0.000, y = 117.000, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 64003, gadget_id = 70310178, pos = { x = 758.939, y = 619.301, z = -1758.166 }, rot = { x = 0.000, y = 184.888, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 64004, gadget_id = 70310178, pos = { x = 732.778, y = 622.101, z = -1774.110 }, rot = { x = 1.406, y = 62.491, z = 359.876 }, level = 1, is_use_point_array = true },
{ config_id = 64005, gadget_id = 70310178, pos = { x = 743.528, y = 622.031, z = -1745.452 }, rot = { x = 0.000, y = 246.389, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 64006, gadget_id = 70310178, pos = { x = 721.452, y = 613.431, z = -1758.655 }, rot = { x = 0.000, y = 3.972, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 64007, gadget_id = 70310178, pos = { x = 721.096, y = 620.322, z = -1747.829 }, rot = { x = 0.000, y = 292.910, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 64008, gadget_id = 70310178, pos = { x = 715.432, y = 621.336, z = -1743.939 }, rot = { x = 0.000, y = 164.683, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 64011, gadget_id = 70211111, pos = { x = 744.978, y = 617.221, z = -1756.579 }, rot = { x = 0.000, y = 34.476, z = 0.000 }, level = 16, drop_tag = "解谜中级群岛", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 满足解法条件生成宝箱
{ config_id = 1064012, name = "VARIABLE_CHANGE_64012", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_64012", action = "action_EVENT_VARIABLE_CHANGE_64012", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 64001, 64002, 64003, 64004, 64005, 64006, 64007, 64008 },
regions = { },
triggers = { "VARIABLE_CHANGE_64012" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 64011 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_64012(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 == evt.param2 then return false end
-- 判断变量"solution"为3
if ScriptLib.GetGroupVariableValue(context, "solution") < 1
then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_64012(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220134064, 2)
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220134064, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
return 0
end
require "V2_8/ConstellationMachine"
@@ -0,0 +1,709 @@
-- 基础信息
local base_info = {
group_id = 220134065
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 65001, gadget_id = 70310241, pos = { x = 705.826, y = 612.198, z = -1751.861 }, rot = { x = 0.000, y = 31.644, z = 0.000 }, level = 1 },
{ config_id = 65002, gadget_id = 70310241, pos = { x = 718.742, y = 612.198, z = -1730.835 }, rot = { x = 0.000, y = 31.644, z = 0.000 }, level = 1 },
{ config_id = 65003, gadget_id = 70310241, pos = { x = 739.593, y = 612.198, z = -1743.908 }, rot = { x = 0.000, y = 31.644, z = 0.000 }, level = 1 },
{ config_id = 65004, gadget_id = 70310241, pos = { x = 726.511, y = 612.198, z = -1765.109 }, rot = { x = 0.000, y = 31.644, z = 0.000 }, level = 1 },
{ config_id = 65005, gadget_id = 70310241, pos = { x = 746.634, y = 612.198, z = -1780.082 }, rot = { x = 0.000, y = 31.644, z = 0.000 }, level = 1 },
{ config_id = 65006, gadget_id = 70310241, pos = { x = 768.010, y = 612.198, z = -1792.427 }, rot = { x = 0.000, y = 31.644, z = 0.000 }, level = 1 },
{ config_id = 65007, gadget_id = 70310241, pos = { x = 759.681, y = 612.198, z = -1758.869 }, rot = { x = 0.000, y = 31.644, z = 0.000 }, level = 1 },
{ config_id = 65008, gadget_id = 70310241, pos = { x = 782.166, y = 612.198, z = -1769.921 }, rot = { x = 0.000, y = 31.644, z = 0.000 }, level = 1 },
{ config_id = 65013, gadget_id = 70310447, pos = { x = 735.788, y = 619.456, z = -1740.029 }, rot = { x = 341.911, y = 99.560, z = 0.000 }, level = 1 },
{ config_id = 65014, gadget_id = 70310446, pos = { x = 754.277, y = 620.820, z = -1750.841 }, rot = { x = 9.298, y = 137.873, z = -0.001 }, level = 1 },
{ config_id = 65015, gadget_id = 70310448, pos = { x = 747.048, y = 617.061, z = -1760.233 }, rot = { x = 2.004, y = 155.423, z = 1.166 }, level = 1 },
{ config_id = 65016, gadget_id = 70310448, pos = { x = 730.480, y = 617.733, z = -1759.350 }, rot = { x = 357.858, y = 327.772, z = 359.111 }, level = 1 },
{ config_id = 65020, gadget_id = 70310459, pos = { x = 711.597, y = 622.816, z = -1749.331 }, rot = { x = 11.353, y = 359.726, z = 0.638 }, level = 1 },
{ config_id = 65023, gadget_id = 70310459, pos = { x = 743.335, y = 619.481, z = -1768.268 }, rot = { x = 17.624, y = 280.214, z = 2.117 }, level = 1 },
{ config_id = 65030, gadget_id = 70310447, pos = { x = 719.146, y = 620.452, z = -1738.001 }, rot = { x = 337.244, y = 264.442, z = 2.110 }, level = 1 },
{ config_id = 65033, gadget_id = 70310447, pos = { x = 762.697, y = 621.263, z = -1765.450 }, rot = { x = 20.468, y = 336.832, z = 358.936 }, level = 1 },
{ config_id = 65036, gadget_id = 70310447, pos = { x = 745.083, y = 618.752, z = -1752.453 }, rot = { x = 27.690, y = 179.011, z = 4.001 }, level = 1 },
{ config_id = 65039, gadget_id = 70310446, pos = { x = 714.714, y = 617.479, z = -1753.500 }, rot = { x = 330.746, y = 317.191, z = 353.943 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 65017, shape = RegionShape.SPHERE, radius = 5, pos = { x = 760.598, y = 619.301, z = -1757.745 } },
{ config_id = 65018, shape = RegionShape.SPHERE, radius = 5, pos = { x = 744.348, y = 622.031, z = -1741.368 } },
{ config_id = 65019, shape = RegionShape.SPHERE, radius = 5, pos = { x = 726.310, y = 617.641, z = -1737.467 } },
{ config_id = 65021, shape = RegionShape.SPHERE, radius = 5, pos = { x = 707.746, y = 623.401, z = -1740.844 } },
{ config_id = 65022, shape = RegionShape.SPHERE, radius = 5, pos = { x = 708.702, y = 624.821, z = -1762.203 } },
{ config_id = 65024, shape = RegionShape.SPHERE, radius = 5, pos = { x = 758.974, y = 621.520, z = -1773.603 } },
{ config_id = 65025, shape = RegionShape.SPHERE, radius = 5, pos = { x = 729.637, y = 617.121, z = -1770.416 } },
{ config_id = 65026, shape = RegionShape.CUBIC, size = { x = 40.000, y = 10.000, z = 60.000 }, pos = { x = 709.102, y = 609.007, z = -1748.925 } },
{ config_id = 65027, shape = RegionShape.CUBIC, size = { x = 40.000, y = 10.000, z = 60.000 }, pos = { x = 749.304, y = 609.007, z = -1748.925 } },
{ config_id = 65028, shape = RegionShape.SPHERE, radius = 5, pos = { x = 734.232, y = 622.101, z = -1778.388 } },
{ config_id = 65029, shape = RegionShape.SPHERE, radius = 5, pos = { x = 745.986, y = 622.031, z = -1742.009 } },
{ config_id = 65031, shape = RegionShape.SPHERE, radius = 5, pos = { x = 725.699, y = 617.690, z = -1737.716 } },
{ config_id = 65032, shape = RegionShape.SPHERE, radius = 5, pos = { x = 709.003, y = 623.338, z = -1738.025 } },
{ config_id = 65034, shape = RegionShape.SPHERE, radius = 5, pos = { x = 759.695, y = 619.301, z = -1759.487 } },
{ config_id = 65035, shape = RegionShape.SPHERE, radius = 5, pos = { x = 765.828, y = 622.561, z = -1773.530 } },
{ config_id = 65037, shape = RegionShape.SPHERE, radius = 5, pos = { x = 744.494, y = 618.261, z = -1757.251 } },
{ config_id = 65038, shape = RegionShape.SPHERE, radius = 3, pos = { x = 745.291, y = 622.486, z = -1742.821 } },
{ config_id = 65040, shape = RegionShape.SPHERE, radius = 5, pos = { x = 722.210, y = 613.431, z = -1759.521 } },
{ config_id = 65041, shape = RegionShape.SPHERE, radius = 5, pos = { x = 708.385, y = 623.400, z = -1741.315 } }
}
-- 触发器
triggers = {
{ config_id = 1065017, name = "ENTER_REGION_65017", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_65017", action = "action_EVENT_ENTER_REGION_65017", trigger_count = 0 },
{ config_id = 1065018, name = "ENTER_REGION_65018", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_65018", action = "action_EVENT_ENTER_REGION_65018", trigger_count = 0 },
{ config_id = 1065019, name = "ENTER_REGION_65019", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_65019", action = "action_EVENT_ENTER_REGION_65019", trigger_count = 0 },
{ config_id = 1065021, name = "ENTER_REGION_65021", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_65021", action = "action_EVENT_ENTER_REGION_65021", trigger_count = 0 },
{ config_id = 1065022, name = "ENTER_REGION_65022", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_65022", action = "action_EVENT_ENTER_REGION_65022", trigger_count = 0 },
{ config_id = 1065024, name = "ENTER_REGION_65024", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_65024", action = "action_EVENT_ENTER_REGION_65024", trigger_count = 0 },
{ config_id = 1065025, name = "ENTER_REGION_65025", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_65025", action = "action_EVENT_ENTER_REGION_65025", trigger_count = 0 },
{ config_id = 1065026, name = "ENTER_REGION_65026", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_65026", action = "action_EVENT_ENTER_REGION_65026", trigger_count = 0 },
{ config_id = 1065027, name = "ENTER_REGION_65027", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_65027", action = "action_EVENT_ENTER_REGION_65027", trigger_count = 0 },
{ config_id = 1065028, name = "ENTER_REGION_65028", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_65028", action = "action_EVENT_ENTER_REGION_65028", trigger_count = 0 },
{ config_id = 1065029, name = "ENTER_REGION_65029", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_65029", action = "action_EVENT_ENTER_REGION_65029", trigger_count = 0 },
{ config_id = 1065031, name = "ENTER_REGION_65031", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_65031", action = "action_EVENT_ENTER_REGION_65031", trigger_count = 0 },
{ config_id = 1065032, name = "ENTER_REGION_65032", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_65032", action = "action_EVENT_ENTER_REGION_65032", trigger_count = 0 },
{ config_id = 1065034, name = "ENTER_REGION_65034", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_65034", action = "action_EVENT_ENTER_REGION_65034", trigger_count = 0 },
{ config_id = 1065035, name = "ENTER_REGION_65035", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_65035", action = "action_EVENT_ENTER_REGION_65035", trigger_count = 0 },
{ config_id = 1065037, name = "ENTER_REGION_65037", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_65037", action = "action_EVENT_ENTER_REGION_65037", trigger_count = 0 },
{ config_id = 1065038, name = "ENTER_REGION_65038", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_65038", action = "action_EVENT_ENTER_REGION_65038", trigger_count = 0 },
{ config_id = 1065040, name = "ENTER_REGION_65040", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_65040", action = "action_EVENT_ENTER_REGION_65040", trigger_count = 0 },
{ config_id = 1065041, name = "ENTER_REGION_65041", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_65041", action = "action_EVENT_ENTER_REGION_65041", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 65009, gadget_id = 70690029, pos = { x = 744.336, y = 604.797, z = -1780.080 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 65010, gadget_id = 70690029, pos = { x = 750.683, y = 604.797, z = -1763.400 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 65011, gadget_id = 70690029, pos = { x = 735.527, y = 604.797, z = -1751.479 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 65012, gadget_id = 70690029, pos = { x = 714.257, y = 604.797, z = -1753.839 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 65001, 65002, 65003, 65004, 65005, 65006, 65007, 65008 },
regions = { 65017, 65018, 65019, 65021, 65022, 65024, 65025, 65026, 65027, 65028, 65029, 65031, 65032, 65034, 65035, 65037, 65038, 65040, 65041 },
triggers = { "ENTER_REGION_65017", "ENTER_REGION_65018", "ENTER_REGION_65019", "ENTER_REGION_65021", "ENTER_REGION_65022", "ENTER_REGION_65024", "ENTER_REGION_65025", "ENTER_REGION_65026", "ENTER_REGION_65027", "ENTER_REGION_65028", "ENTER_REGION_65029", "ENTER_REGION_65031", "ENTER_REGION_65032", "ENTER_REGION_65034", "ENTER_REGION_65035", "ENTER_REGION_65037", "ENTER_REGION_65038", "ENTER_REGION_65040", "ENTER_REGION_65041" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_65017(context, evt)
if evt.param1 ~= 65017 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_65017(context, evt)
-- 创建id为65014的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 65014 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_65018(context, evt)
if evt.param1 ~= 65018 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_65018(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65014 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65013 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_65019(context, evt)
if evt.param1 ~= 65019 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_65019(context, evt)
-- 创建id为65013的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 65013 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_65021(context, evt)
if evt.param1 ~= 65021 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_65021(context, evt)
-- 创建id为65020的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 65020 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_65022(context, evt)
if evt.param1 ~= 65022 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_65022(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65020 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_65024(context, evt)
if evt.param1 ~= 65024 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_65024(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65023 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_65025(context, evt)
if evt.param1 ~= 65025 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_65025(context, evt)
-- 创建id为65023的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 65023 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_65026(context, evt)
if evt.param1 ~= 65026 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_65026(context, evt)
-- 创建id为65016的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 65016 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65015 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65014 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65013 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65030 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65033 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65036 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65020 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65023 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65039 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_65027(context, evt)
if evt.param1 ~= 65027 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_65027(context, evt)
-- 创建id为65015的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 65015 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65016 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65014 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65013 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65030 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65033 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65036 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65020 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65023 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_65028(context, evt)
if evt.param1 ~= 65028 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_65028(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65016 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_65029(context, evt)
if evt.param1 ~= 65029 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_65029(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65015 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_65031(context, evt)
if evt.param1 ~= 65031 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_65031(context, evt)
-- 创建id为65030的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 65030 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_65032(context, evt)
if evt.param1 ~= 65032 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_65032(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65030 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_65034(context, evt)
if evt.param1 ~= 65034 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_65034(context, evt)
-- 创建id为65033的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 65033 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_65035(context, evt)
if evt.param1 ~= 65035 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_65035(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65033 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_65037(context, evt)
if evt.param1 ~= 65037 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_65037(context, evt)
-- 创建id为65036的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 65036 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_65038(context, evt)
if evt.param1 ~= 65038 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_65038(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65036 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_65040(context, evt)
if evt.param1 ~= 65040 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_65040(context, evt)
-- 创建id为65039的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 65039 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_65041(context, evt)
if evt.param1 ~= 65041 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_65041(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 65039 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,74 @@
-- 基础信息
local base_info = {
group_id = 220134066
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 66001, gadget_id = 70211001, pos = { x = 345.778, y = 666.096, z = -1475.830 }, rot = { x = 0.000, y = 206.794, z = 0.000 }, level = 16, drop_tag = "战斗低级群岛", isOneoff = true, persistent = true },
{ config_id = 66002, gadget_id = 70211001, pos = { x = 356.994, y = 651.141, z = -1507.864 }, rot = { x = 0.000, y = 294.805, z = 0.000 }, level = 16, drop_tag = "战斗低级群岛", isOneoff = true, persistent = true },
{ config_id = 66003, gadget_id = 70211001, pos = { x = 418.023, y = 637.449, z = -1534.072 }, rot = { x = 0.000, y = 294.805, z = 0.000 }, level = 16, drop_tag = "战斗低级群岛", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 66001, 66002, 66003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 220134067
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 67001, gadget_id = 70211001, pos = { x = 629.213, y = 613.098, z = -1587.009 }, rot = { x = 0.000, y = 337.015, z = 0.000 }, level = 16, drop_tag = "战斗低级群岛", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 67001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,273 @@
-- 基础信息
local base_info = {
group_id = 220134068
}
-- Trigger变量
local defs = {
point_sum = 6,
route_2 = 8,
gadget_seelie = 68001
}
-- DEFS_MISCS
defs.final_point = defs.point_sum - 1
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 68001, gadget_id = 70310244, pos = { x = 353.132, y = 634.453, z = -1504.913 }, rot = { x = 0.000, y = 297.679, z = 0.000 }, level = 1, persistent = true },
{ config_id = 68008, gadget_id = 70360001, pos = { x = 317.546, y = 648.615, z = -1481.792 }, rot = { x = 0.000, y = 297.679, z = 0.000 }, level = 1, worktop_config = { init_options = { 411 } } }
}
-- 区域
regions = {
{ config_id = 68003, shape = RegionShape.SPHERE, radius = 7, pos = { x = 355.031, y = 637.320, z = -1506.912 } }
}
-- 触发器
triggers = {
{ config_id = 1068002, name = "SELECT_OPTION_68002", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_68002", action = "action_EVENT_SELECT_OPTION_68002", trigger_count = 0 },
{ config_id = 1068003, name = "ENTER_REGION_68003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_68003", action = "action_EVENT_ENTER_REGION_68003" },
{ config_id = 1068004, name = "AVATAR_NEAR_PLATFORM_68004", event = EventType.EVENT_AVATAR_NEAR_PLATFORM, source = "", condition = "condition_EVENT_AVATAR_NEAR_PLATFORM_68004", action = "action_EVENT_AVATAR_NEAR_PLATFORM_68004", trigger_count = 0 },
{ config_id = 1068006, name = "PLATFORM_REACH_POINT_68006", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_68006", action = "action_EVENT_PLATFORM_REACH_POINT_68006", trigger_count = 0 },
{ config_id = 1068007, name = "PLATFORM_REACH_POINT_68007", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_68007", action = "action_EVENT_PLATFORM_REACH_POINT_68007", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 68001, 68008 },
regions = { 68003 },
triggers = { "SELECT_OPTION_68002", "ENTER_REGION_68003", "AVATAR_NEAR_PLATFORM_68004", "PLATFORM_REACH_POINT_68006", "PLATFORM_REACH_POINT_68007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_68002(context, evt)
-- 判断是gadgetid 68008 option_id 411
if 68008 ~= evt.param1 then
return false
end
if 411 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_68002(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 68001, 8) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 68001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- 删除指定group 220134068 ;指定config68008;物件身上指定option411
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220134068, 68008, 411) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_68003(context, evt)
if evt.param1 ~= 68003 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_68003(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 68001, 12) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 68001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_68004(context, evt)
if defs.gadget_seelie ~= evt.param1 then
return false
end
if defs.route_2 ~= evt.param2 then
return false
end
if defs.final_point == evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_AVATAR_NEAR_PLATFORM_68004(context, evt)
if 0 ~= ScriptLib.StartPlatform(context, 68001) then
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= evt.param3 then
ScriptLib.MarkPlayerAction(context, 2005, 2, evt.param3 + 1)
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_68006(context, evt)
-- 判断是gadgetid 为 68001的移动平台,是否到达了8 的路线中的 3 点
if 68001 ~= evt.param1 then
return false
end
if 8 ~= evt.param2 then
return false
end
if 3 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_68006(context, evt)
-- 改变指定group组220134041中, configid为41011的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220134041, 41011, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_68007(context, evt)
-- 判断是gadgetid 为 68001的移动平台,是否到达了8 的路线中的 5 点
if 68001 ~= evt.param1 then
return false
end
if 8 ~= evt.param2 then
return false
end
if 5 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_68007(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220134063, 2)
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220134063, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220134068, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
return 0
end
@@ -0,0 +1,256 @@
-- 基础信息
local base_info = {
group_id = 220134069
}
-- DEFS_MISCS
local defs = {
is_movable = 1,
patterns =
{
--形态1
[1] =
{
[69001] = {connect =0 , point_array = 0, point_id = {0}} ,
[69003] = {connect =0 , point_array = 0, point_id = {0}} ,
},
--形态2 star1
[2] =
{
[69003] = {connect =0 , point_array = 67, point_id = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25}} ,
},
--形态3 star2
[3] =
{
[69001] = {connect =69003, point_array = 86, point_id = {2}} ,
[69003] = {connect =69001 , point_array = 67, point_id = {25}} ,
},
}}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[69001] = { config_id = 69001, gadget_id = 70310231, pos = { x = 731.683, y = 655.675, z = -1781.270 }, rot = { x = 318.956, y = 206.110, z = 6.123 }, level = 1, state = GadgetState.GearAction1, is_use_point_array = true },
-- 1
[69003] = { config_id = 69003, gadget_id = 70310231, pos = { x = 779.772, y = 624.589, z = -1779.734 }, rot = { x = 318.956, y = 206.110, z = 6.123 }, level = 1, persistent = true, is_use_point_array = true },
-- 1
[69006] = { config_id = 69006, gadget_id = 70360001, pos = { x = 779.772, y = 624.589, z = -1779.734 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 411 } } }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 1
{ config_id = 1069008, name = "SELECT_OPTION_69008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_69008", action = "action_EVENT_SELECT_OPTION_69008", trigger_count = 0 },
{ config_id = 1069012, name = "VARIABLE_CHANGE_69012", event = EventType.EVENT_VARIABLE_CHANGE, source = "star4", condition = "condition_EVENT_VARIABLE_CHANGE_69012", action = "action_EVENT_VARIABLE_CHANGE_69012", trigger_count = 0 },
{ config_id = 1069013, name = "GROUP_LOAD_69013", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_69013", action = "action_EVENT_GROUP_LOAD_69013", trigger_count = 0 },
{ config_id = 1069017, name = "PLATFORM_REACH_POINT_69017", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_69017", action = "action_EVENT_PLATFORM_REACH_POINT_69017", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "star1", value = 0, no_refresh = true },
{ config_id = 2, name = "star2", value = 0, no_refresh = true },
{ config_id = 3, name = "star3", value = 0, no_refresh = true },
{ config_id = 4, name = "star4", value = 0, no_refresh = true }
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1069002, name = "VARIABLE_CHANGE_69002", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_69002", action = "action_EVENT_VARIABLE_CHANGE_69002", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 69001, 69003, 69006 },
regions = { },
triggers = { "SELECT_OPTION_69008", "VARIABLE_CHANGE_69012", "GROUP_LOAD_69013", "PLATFORM_REACH_POINT_69017" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_69008(context, evt)
-- 判断是gadgetid 69006 option_id 411
if 69006 ~= evt.param1 then
return false
end
if 411 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_69008(context, evt)
-- 将本组内变量名为 "pattern" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "pattern", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "star1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "star1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "star1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "star1", 1, 220134091) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 删除指定group 220134069 ;指定config69006;物件身上指定option411
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220134069, 69006, 411) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_69012(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"star4"为1
if ScriptLib.GetGroupVariableValue(context, "star4") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_69012(context, evt)
if ScriptLib.GetGroupVariableValue(context,"star1") == 1 then
if 0 ~= ScriptLib.SetGroupVariableValue(context, "pattern", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_69013(context, evt)
-- 判断变量"star1"为1
if ScriptLib.GetGroupVariableValue(context, "star1") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_69013(context, evt)
-- 将本组内变量名为 "pattern" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "pattern", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_69017(context, evt)
-- 判断是gadgetid 为 69003的移动平台,是否到达了67 的点集中的 25 点
if 69003 ~= evt.param1 then
return false
end
if 67 ~= evt.param2 then
return false
end
if 25 ~= evt.param3 then
return false
end
-- 判断变量"star4"为1
if ScriptLib.GetGroupVariableValue(context, "star4") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_69017(context, evt)
-- 将本组内变量名为 "pattern" 的变量设置为 3
if 0 ~= ScriptLib.SetGroupVariableValue(context, "pattern", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
require "V2_8/ConstellationPattern"
@@ -0,0 +1,125 @@
-- 基础信息
local base_info = {
group_id = 220134070
}
-- DEFS_MISCS
local defs = {
--连线形态
patterns =
{
--形态1
[1] =
{
[62001] = 62002,
[62002] = 62003,
[62003] = 62004,
[62004] = 62001,
[62005] = 62004,
[62013] = 62005,
[62014] = 62013,
[62006] = 62004,
[62008] = 62006,
[62009] = 62008,
[62010] = 62009,
[62011] = 62008,
[62012] = 62010,
[62015] = 62010,
},
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[70001] = { config_id = 70001, gadget_id = 70310231, pos = { x = 134.283, y = 681.489, z = -1866.900 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1 },
[70002] = { config_id = 70002, gadget_id = 70310231, pos = { x = 130.535, y = 674.975, z = -1865.613 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1 },
[70003] = { config_id = 70003, gadget_id = 70310231, pos = { x = 117.053, y = 660.557, z = -1854.165 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1 },
[70004] = { config_id = 70004, gadget_id = 70310231, pos = { x = 115.332, y = 663.360, z = -1849.191 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1 },
[70005] = { config_id = 70005, gadget_id = 70310231, pos = { x = 111.928, y = 661.908, z = -1844.647 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1 },
[70006] = { config_id = 70006, gadget_id = 70310231, pos = { x = 120.152, y = 675.648, z = -1847.889 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1 },
[70007] = { config_id = 70007, gadget_id = 70310231, pos = { x = 120.151, y = 672.955, z = -1849.925 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1 },
[70008] = { config_id = 70008, gadget_id = 70310231, pos = { x = 123.075, y = 676.412, z = -1852.157 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1 },
[70009] = { config_id = 70009, gadget_id = 70310231, pos = { x = 122.465, y = 673.681, z = -1853.212 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1 },
[70010] = { config_id = 70010, gadget_id = 70310231, pos = { x = 117.970, y = 665.931, z = -1851.622 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1 },
[70011] = { config_id = 70011, gadget_id = 70310231, pos = { x = 120.803, y = 668.438, z = -1854.422 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1 },
[70012] = { config_id = 70012, gadget_id = 70310231, pos = { x = 110.534, y = 664.926, z = -1840.054 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1 },
[70013] = { config_id = 70013, gadget_id = 70310231, pos = { x = 113.730, y = 669.675, z = -1841.760 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1 },
[70014] = { config_id = 70014, gadget_id = 70310231, pos = { x = 134.283, y = 681.489, z = -1866.900 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 1,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 70001, 70002, 70003, 70004, 70005, 70006, 70007, 70008, 70009, 70010, 70011, 70012, 70013, 70014 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V2_8/ConstellationPattern"
@@ -0,0 +1,117 @@
-- 基础信息
local base_info = {
group_id = 220134071
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 71001, shape = RegionShape.CUBIC, size = { x = 100.000, y = 10.000, z = 100.000 }, pos = { x = 269.503, y = 592.591, z = -1690.766 } },
{ config_id = 71002, shape = RegionShape.CUBIC, size = { x = 100.000, y = 10.000, z = 100.000 }, pos = { x = 194.900, y = 606.657, z = -1799.836 } }
}
-- 触发器
triggers = {
{ config_id = 1071001, name = "ENTER_REGION_71001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_71001", action = "action_EVENT_ENTER_REGION_71001", trigger_count = 0 },
{ config_id = 1071002, name = "ENTER_REGION_71002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_71002", action = "action_EVENT_ENTER_REGION_71002", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 71001, 71002 },
triggers = { "ENTER_REGION_71001", "ENTER_REGION_71002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_71001(context, evt)
if evt.param1 ~= 71001 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_71001(context, evt)
ScriptLib.AddSceneTag(context, 20136,1075 )
ScriptLib.TransPlayerToPos(context, {uid_list = ScriptLib.GetSceneUidList(context), pos = { x=771, y=0.2, z=681}, radius = 2, rot = {x=0, y=0, z=1}, is_skip_ui=false, scene_id =20136} )
ScriptLib.AddQuestProgress(context, "divein")
ScriptLib.AddSceneTag(context, 20136,1075 )
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_71002(context, evt)
if evt.param1 ~= 71002 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_71002(context, evt)
ScriptLib.AddSceneTag(context, 20136,1075 )
ScriptLib.TransPlayerToPos(context, {uid_list = ScriptLib.GetSceneUidList(context), pos = { x=771, y=0.2, z=681}, radius = 2, rot = {x=0, y=0, z=1}, is_skip_ui=false, scene_id =20136} )
ScriptLib.AddQuestProgress(context, "divein")
ScriptLib.AddSceneTag(context, 20136,1075 )
return 0
end
@@ -0,0 +1,261 @@
-- 基础信息
local base_info = {
group_id = 220134072
}
-- Trigger变量
local defs = {
point_sum = 11,
route_2 = 7,
gadget_seelie = 72001
}
-- DEFS_MISCS
defs.final_point = defs.point_sum - 1
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 72001, gadget_id = 70310244, pos = { x = 106.485, y = 674.366, z = -1854.175 }, rot = { x = 0.000, y = 297.679, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 72005, shape = RegionShape.SPHERE, radius = 5, pos = { x = 157.005, y = 649.965, z = -1832.274 } }
}
-- 触发器
triggers = {
{ config_id = 1072002, name = "GADGET_CREATE_72002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_72002", action = "action_EVENT_GADGET_CREATE_72002", trigger_count = 0 },
{ config_id = 1072003, name = "PLATFORM_REACH_POINT_72003", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_72003", action = "action_EVENT_PLATFORM_REACH_POINT_72003", trigger_count = 0 },
{ config_id = 1072004, name = "AVATAR_NEAR_PLATFORM_72004", event = EventType.EVENT_AVATAR_NEAR_PLATFORM, source = "", condition = "condition_EVENT_AVATAR_NEAR_PLATFORM_72004", action = "action_EVENT_AVATAR_NEAR_PLATFORM_72004", trigger_count = 0 },
{ config_id = 1072005, name = "ENTER_REGION_72005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_72005", action = "action_EVENT_ENTER_REGION_72005", trigger_count = 0 },
{ config_id = 1072007, name = "PLATFORM_REACH_POINT_72007", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_72007", action = "action_EVENT_PLATFORM_REACH_POINT_72007", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "GADGET_CREATE_72002", "PLATFORM_REACH_POINT_72003", "AVATAR_NEAR_PLATFORM_72004", "PLATFORM_REACH_POINT_72007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 72001 },
regions = { 72005 },
triggers = { "ENTER_REGION_72005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_72002(context, evt)
if 72001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_72002(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 72001, 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 72001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_72003(context, evt)
if defs.gadget_seelie ~= evt.param1 then
return false
end
if defs.route_2 ~= evt.param2 then
return false
end
if defs.final_point ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_72003(context, evt)
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 72001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_72004(context, evt)
if defs.gadget_seelie ~= evt.param1 then
return false
end
if defs.route_2 ~= evt.param2 then
return false
end
if defs.final_point == evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_AVATAR_NEAR_PLATFORM_72004(context, evt)
if 0 ~= ScriptLib.StartPlatform(context, 72001) then
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= evt.param3 then
ScriptLib.MarkPlayerAction(context, 2005, 2, evt.param3 + 1)
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_72005(context, evt)
if evt.param1 ~= 72005 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_72005(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 72001, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 72001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_72007(context, evt)
-- 判断是gadgetid 为 72001的移动平台,是否到达了7 的路线中的 10 点
if 72001 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
if 10 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_72007(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 72001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 220134073
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 73001, gadget_id = 70310439, pos = { x = 499.758, y = 605.786, z = -1572.690 }, rot = { x = 0.000, y = 181.717, 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 = { 73001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,233 @@
-- 基础信息
local base_info = {
group_id = 220134074
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 74001, gadget_id = 70310456, pos = { x = 155.196, y = 649.287, z = -1847.221 }, rot = { x = 270.000, y = 39.361, z = 0.000 }, level = 1 },
{ config_id = 74002, gadget_id = 70310456, pos = { x = 156.008, y = 649.287, z = -1827.465 }, rot = { x = 270.000, y = 39.361, z = 0.000 }, level = 1 },
{ config_id = 74003, gadget_id = 70310456, pos = { x = 157.087, y = 649.287, z = -1842.350 }, rot = { x = 270.000, y = 39.361, z = 0.000 }, level = 1 },
{ config_id = 74004, gadget_id = 70310456, pos = { x = 151.783, y = 649.287, z = -1825.773 }, rot = { x = 270.000, y = 39.361, z = 0.000 }, level = 1 },
{ config_id = 74005, gadget_id = 70310456, pos = { x = 142.593, y = 649.287, z = -1832.040 }, rot = { x = 270.000, y = 39.361, z = 0.000 }, level = 1 },
{ config_id = 74006, gadget_id = 70310456, pos = { x = 145.480, y = 649.287, z = -1832.265 }, rot = { x = 270.000, y = 39.361, z = 0.000 }, level = 1 },
{ config_id = 74007, gadget_id = 70310456, pos = { x = 146.493, y = 649.287, z = -1834.980 }, rot = { x = 270.000, y = 39.361, z = 0.000 }, level = 1 },
{ config_id = 74008, gadget_id = 70310456, pos = { x = 148.804, y = 649.287, z = -1832.960 }, rot = { x = 270.000, y = 39.361, z = 0.000 }, level = 1 },
{ config_id = 74009, gadget_id = 70310456, pos = { x = 152.436, y = 649.287, z = -1829.734 }, rot = { x = 270.000, y = 39.361, z = 0.000 }, level = 1 },
{ config_id = 74010, gadget_id = 70310456, pos = { x = 152.011, y = 649.287, z = -1827.788 }, rot = { x = 270.000, y = 39.361, z = 0.000 }, level = 1 },
{ config_id = 74011, gadget_id = 70310456, pos = { x = 150.697, y = 649.287, z = -1822.173 }, rot = { x = 270.000, y = 39.361, z = 0.000 }, level = 1 },
{ config_id = 74012, gadget_id = 70310456, pos = { x = 144.497, y = 649.287, z = -1825.312 }, rot = { x = 270.000, y = 39.361, z = 0.000 }, level = 1 },
{ config_id = 74013, gadget_id = 70310456, pos = { x = 145.396, y = 649.287, z = -1821.390 }, rot = { x = 270.000, y = 39.361, z = 0.000 }, level = 1 },
{ config_id = 74014, gadget_id = 70310457, pos = { x = 155.339, y = 649.068, z = -1846.766 }, rot = { x = 280.219, y = 194.536, z = 96.770 }, level = 1 },
{ config_id = 74015, gadget_id = 70310457, pos = { x = 155.642, y = 649.216, z = -1845.995 }, rot = { x = 280.219, y = 194.536, z = 96.770 }, level = 1 },
{ config_id = 74016, gadget_id = 70310457, pos = { x = 155.909, y = 649.347, z = -1845.315 }, rot = { x = 280.219, y = 194.536, z = 96.770 }, level = 1 },
{ config_id = 74017, gadget_id = 70310457, pos = { x = 156.209, y = 649.494, z = -1844.548 }, rot = { x = 280.219, y = 194.536, z = 96.770 }, level = 1 },
{ config_id = 74018, gadget_id = 70310457, pos = { x = 156.471, y = 649.623, z = -1843.880 }, rot = { x = 280.219, y = 194.536, z = 96.770 }, level = 1 },
{ config_id = 74019, gadget_id = 70310457, pos = { x = 156.702, y = 649.736, z = -1843.292 }, rot = { x = 280.219, y = 194.536, z = 96.770 }, level = 1 },
{ config_id = 74020, gadget_id = 70310457, pos = { x = 156.952, y = 649.858, z = -1842.654 }, rot = { x = 280.219, y = 194.536, z = 96.770 }, level = 1 },
{ config_id = 74021, gadget_id = 70310457, pos = { x = 157.002, y = 649.068, z = -1841.701 }, rot = { x = 280.219, y = 169.362, z = 96.770 }, level = 1 },
{ config_id = 74022, gadget_id = 70310457, pos = { x = 156.948, y = 649.216, z = -1840.875 }, rot = { x = 280.218, y = 169.362, z = 96.770 }, level = 1 },
{ config_id = 74023, gadget_id = 70310457, pos = { x = 156.900, y = 649.347, z = -1840.146 }, rot = { x = 280.218, y = 169.362, z = 96.770 }, level = 1 },
{ config_id = 74024, gadget_id = 70310457, pos = { x = 156.846, y = 649.494, z = -1839.324 }, rot = { x = 280.218, y = 169.362, z = 96.770 }, level = 1 },
{ config_id = 74025, gadget_id = 70310457, pos = { x = 156.799, y = 649.623, z = -1838.608 }, rot = { x = 280.218, y = 169.362, z = 96.770 }, level = 1 },
{ config_id = 74026, gadget_id = 70310457, pos = { x = 156.757, y = 649.736, z = -1837.978 }, rot = { x = 280.218, y = 169.362, z = 96.770 }, level = 1 },
{ config_id = 74027, gadget_id = 70310457, pos = { x = 156.712, y = 649.858, z = -1837.294 }, rot = { x = 280.218, y = 169.362, z = 96.770 }, level = 1 },
{ config_id = 74028, gadget_id = 70310457, pos = { x = 156.660, y = 649.068, z = -1836.844 }, rot = { x = 280.218, y = 169.362, z = 96.770 }, level = 1 },
{ config_id = 74029, gadget_id = 70310457, pos = { x = 156.606, y = 649.216, z = -1836.018 }, rot = { x = 280.218, y = 169.362, z = 96.770 }, level = 1 },
{ config_id = 74030, gadget_id = 70310457, pos = { x = 156.558, y = 649.347, z = -1835.289 }, rot = { x = 280.218, y = 169.362, z = 96.770 }, level = 1 },
{ config_id = 74031, gadget_id = 70310457, pos = { x = 156.504, y = 649.494, z = -1834.467 }, rot = { x = 280.218, y = 169.362, z = 96.770 }, level = 1 },
{ config_id = 74032, gadget_id = 70310457, pos = { x = 156.457, y = 649.623, z = -1833.751 }, rot = { x = 280.218, y = 169.362, z = 96.770 }, level = 1 },
{ config_id = 74033, gadget_id = 70310457, pos = { x = 156.416, y = 649.736, z = -1833.121 }, rot = { x = 280.218, y = 169.362, z = 96.770 }, level = 1 },
{ config_id = 74034, gadget_id = 70310457, pos = { x = 156.371, y = 649.858, z = -1832.437 }, rot = { x = 280.218, y = 169.362, z = 96.770 }, level = 1 },
{ config_id = 74035, gadget_id = 70310457, pos = { x = 156.326, y = 649.068, z = -1832.060 }, rot = { x = 280.218, y = 169.362, z = 96.770 }, level = 1 },
{ config_id = 74036, gadget_id = 70310457, pos = { x = 156.272, y = 649.216, z = -1831.234 }, rot = { x = 280.218, y = 169.362, z = 96.770 }, level = 1 },
{ config_id = 74037, gadget_id = 70310457, pos = { x = 156.224, y = 649.347, z = -1830.505 }, rot = { x = 280.218, y = 169.362, z = 96.770 }, level = 1 },
{ config_id = 74038, gadget_id = 70310457, pos = { x = 156.170, y = 649.494, z = -1829.683 }, rot = { x = 280.218, y = 169.362, z = 96.770 }, level = 1 },
{ config_id = 74039, gadget_id = 70310457, pos = { x = 156.123, y = 649.623, z = -1828.967 }, rot = { x = 280.218, y = 169.362, z = 96.770 }, level = 1 },
-- -
{ config_id = 74040, gadget_id = 70310457, pos = { x = 156.082, y = 649.736, z = -1828.337 }, rot = { x = 280.218, y = 169.362, z = 96.770 }, level = 1 },
{ config_id = 74041, gadget_id = 70310457, pos = { x = 156.037, y = 649.858, z = -1827.653 }, rot = { x = 280.218, y = 169.362, z = 96.770 }, level = 1 },
{ config_id = 74042, gadget_id = 70310457, pos = { x = 155.309, y = 649.216, z = -1827.206 }, rot = { x = 280.217, y = 105.866, z = 96.770 }, level = 1 },
{ config_id = 74043, gadget_id = 70310457, pos = { x = 154.635, y = 649.347, z = -1826.923 }, rot = { x = 280.217, y = 105.866, z = 96.770 }, level = 1 },
{ config_id = 74044, gadget_id = 70310457, pos = { x = 153.875, y = 649.494, z = -1826.605 }, rot = { x = 280.217, y = 105.866, z = 96.770 }, level = 1 },
{ config_id = 74045, gadget_id = 70310457, pos = { x = 153.213, y = 649.623, z = -1826.327 }, rot = { x = 280.217, y = 105.866, z = 96.770 }, level = 1 },
{ config_id = 74046, gadget_id = 70310457, pos = { x = 152.631, y = 649.736, z = -1826.083 }, rot = { x = 280.217, y = 105.866, z = 96.770 }, level = 1 },
{ config_id = 74047, gadget_id = 70310457, pos = { x = 151.999, y = 649.858, z = -1825.818 }, rot = { x = 280.217, y = 105.866, z = 96.770 }, level = 1 },
{ config_id = 74048, gadget_id = 70310457, pos = { x = 151.264, y = 649.494, z = -1826.113 }, rot = { x = 280.217, y = 49.124, z = 96.770 }, level = 1 },
{ config_id = 74049, gadget_id = 70310457, pos = { x = 150.669, y = 649.623, z = -1826.514 }, rot = { x = 280.217, y = 49.124, z = 96.770 }, level = 1 },
{ config_id = 74050, gadget_id = 70310457, pos = { x = 150.145, y = 649.736, z = -1826.867 }, rot = { x = 280.217, y = 49.124, z = 96.770 }, level = 1 },
{ config_id = 74051, gadget_id = 70310457, pos = { x = 149.577, y = 649.858, z = -1827.251 }, rot = { x = 280.217, y = 49.124, z = 96.770 }, level = 1 },
{ config_id = 74052, gadget_id = 70310457, pos = { x = 149.274, y = 649.068, z = -1827.479 }, rot = { x = 280.217, y = 49.124, z = 96.770 }, level = 1 },
{ config_id = 74053, gadget_id = 70310457, pos = { x = 148.588, y = 649.216, z = -1827.942 }, rot = { x = 280.217, y = 49.124, z = 96.770 }, level = 1 },
{ config_id = 74054, gadget_id = 70310457, pos = { x = 147.982, y = 649.347, z = -1828.350 }, rot = { x = 280.217, y = 49.124, z = 96.770 }, level = 1 },
{ config_id = 74055, gadget_id = 70310457, pos = { x = 147.299, y = 649.494, z = -1828.811 }, rot = { x = 280.217, y = 49.124, z = 96.770 }, level = 1 },
{ config_id = 74056, gadget_id = 70310457, pos = { x = 146.704, y = 649.623, z = -1829.212 }, rot = { x = 280.217, y = 49.124, z = 96.770 }, level = 1 },
-- -
{ config_id = 74057, gadget_id = 70310457, pos = { x = 146.181, y = 649.736, z = -1829.565 }, rot = { x = 280.217, y = 49.124, z = 96.770 }, level = 1 },
{ config_id = 74058, gadget_id = 70310457, pos = { x = 145.496, y = 649.494, z = -1830.045 }, rot = { x = 280.217, y = 49.124, z = 96.770 }, level = 1 },
{ config_id = 74059, gadget_id = 70310457, pos = { x = 144.901, y = 649.623, z = -1830.446 }, rot = { x = 280.217, y = 49.124, z = 96.770 }, level = 1 },
{ config_id = 74060, gadget_id = 70310457, pos = { x = 144.378, y = 649.736, z = -1830.799 }, rot = { x = 280.217, y = 49.124, z = 96.770 }, level = 1 },
{ config_id = 74061, gadget_id = 70310457, pos = { x = 143.690, y = 649.623, z = -1831.273 }, rot = { x = 280.217, y = 49.124, z = 96.770 }, level = 1 },
{ config_id = 74062, gadget_id = 70310457, pos = { x = 143.167, y = 649.736, z = -1831.626 }, rot = { x = 280.217, y = 49.124, z = 96.770 }, level = 1 },
{ config_id = 74063, gadget_id = 70310457, pos = { x = 144.788, y = 649.736, z = -1832.226 }, rot = { x = 280.217, y = 86.085, z = 96.770 }, level = 1 },
{ config_id = 74064, gadget_id = 70310457, pos = { x = 143.954, y = 649.623, z = -1832.192 }, rot = { x = 280.217, y = 86.085, z = 96.770 }, level = 1 },
{ config_id = 74065, gadget_id = 70310457, pos = { x = 143.323, y = 649.736, z = -1832.159 }, rot = { x = 280.217, y = 86.085, z = 96.770 }, level = 1 },
{ config_id = 74067, gadget_id = 70310457, pos = { x = 145.644, y = 649.585, z = -1832.872 }, rot = { x = 280.216, y = 333.398, z = 96.770 }, level = 1 },
{ config_id = 74068, gadget_id = 70310457, pos = { x = 145.945, y = 649.745, z = -1833.710 }, rot = { x = 280.216, y = 333.398, z = 96.770 }, level = 1 },
{ config_id = 74069, gadget_id = 70310457, pos = { x = 146.192, y = 649.754, z = -1834.541 }, rot = { x = 280.456, y = 260.611, z = 169.318 }, level = 1 },
{ config_id = 74070, gadget_id = 70310457, pos = { x = 148.060, y = 649.623, z = -1833.647 }, rot = { x = 280.216, y = 41.464, z = 96.770 }, level = 1 },
{ config_id = 74071, gadget_id = 70310457, pos = { x = 147.588, y = 649.736, z = -1834.067 }, rot = { x = 280.216, y = 41.464, z = 96.770 }, level = 1 },
{ config_id = 74072, gadget_id = 70310457, pos = { x = 146.947, y = 649.767, z = -1834.567 }, rot = { x = 280.455, y = 328.676, z = 169.318 }, level = 1 },
{ config_id = 74073, gadget_id = 70310457, pos = { x = 149.324, y = 649.623, z = -1834.369 }, rot = { x = 280.217, y = 329.484, z = 96.770 }, level = 1 },
{ config_id = 74074, gadget_id = 70310457, pos = { x = 149.577, y = 649.736, z = -1834.946 }, rot = { x = 280.217, y = 329.484, z = 96.770 }, level = 1 },
{ config_id = 74075, gadget_id = 70310457, pos = { x = 149.853, y = 649.858, z = -1835.574 }, rot = { x = 280.217, y = 329.484, z = 96.770 }, level = 1 },
{ config_id = 74076, gadget_id = 70310457, pos = { x = 150.022, y = 649.068, z = -1835.914 }, rot = { x = 280.217, y = 329.483, z = 96.770 }, level = 1 },
{ config_id = 74077, gadget_id = 70310457, pos = { x = 150.355, y = 649.216, z = -1836.673 }, rot = { x = 280.217, y = 329.484, z = 96.770 }, level = 1 },
{ config_id = 74078, gadget_id = 70310457, pos = { x = 150.647, y = 649.347, z = -1837.341 }, rot = { x = 280.217, y = 329.484, z = 96.770 }, level = 1 },
{ config_id = 74079, gadget_id = 70310457, pos = { x = 150.978, y = 649.494, z = -1838.096 }, rot = { x = 280.217, y = 329.484, z = 96.770 }, level = 1 },
{ config_id = 74080, gadget_id = 70310457, pos = { x = 151.265, y = 649.623, z = -1838.754 }, rot = { x = 280.217, y = 329.484, z = 96.770 }, level = 1 },
-- -
{ config_id = 74081, gadget_id = 70310457, pos = { x = 151.518, y = 649.736, z = -1839.332 }, rot = { x = 280.217, y = 329.484, z = 96.770 }, level = 1 },
{ config_id = 74082, gadget_id = 70310457, pos = { x = 151.867, y = 649.494, z = -1840.091 }, rot = { x = 280.217, y = 329.484, z = 96.770 }, level = 1 },
{ config_id = 74083, gadget_id = 70310457, pos = { x = 152.155, y = 649.623, z = -1840.750 }, rot = { x = 280.217, y = 329.484, z = 96.770 }, level = 1 },
{ config_id = 74084, gadget_id = 70310457, pos = { x = 152.408, y = 649.736, z = -1841.328 }, rot = { x = 280.217, y = 329.484, z = 96.770 }, level = 1 },
{ config_id = 74085, gadget_id = 70310457, pos = { x = 152.751, y = 649.623, z = -1842.089 }, rot = { x = 280.217, y = 329.484, z = 96.770 }, level = 1 },
{ config_id = 74086, gadget_id = 70310457, pos = { x = 153.004, y = 649.736, z = -1842.667 }, rot = { x = 280.217, y = 329.484, z = 96.770 }, level = 1 },
{ config_id = 74087, gadget_id = 70310457, pos = { x = 153.378, y = 649.623, z = -1843.491 }, rot = { x = 280.216, y = 329.484, z = 96.770 }, level = 1 },
{ config_id = 74088, gadget_id = 70310457, pos = { x = 153.630, y = 649.736, z = -1844.069 }, rot = { x = 280.216, y = 329.484, z = 96.770 }, level = 1 },
{ config_id = 74089, gadget_id = 70310457, pos = { x = 153.973, y = 649.623, z = -1844.831 }, rot = { x = 280.216, y = 329.484, z = 96.770 }, level = 1 },
{ config_id = 74090, gadget_id = 70310457, pos = { x = 154.226, y = 649.736, z = -1845.409 }, rot = { x = 280.216, y = 329.484, z = 96.770 }, level = 1 },
{ config_id = 74091, gadget_id = 70310457, pos = { x = 154.587, y = 649.623, z = -1846.224 }, rot = { x = 280.216, y = 329.484, z = 96.770 }, level = 1 },
{ config_id = 74092, gadget_id = 70310457, pos = { x = 154.840, y = 649.736, z = -1846.802 }, rot = { x = 280.216, y = 329.484, z = 96.770 }, level = 1 },
{ config_id = 74093, gadget_id = 70310457, pos = { x = 153.927, y = 649.072, z = -1839.837 }, rot = { x = 280.217, y = 163.863, z = 97.675 }, level = 1 },
{ config_id = 74094, gadget_id = 70310457, pos = { x = 153.806, y = 649.216, z = -1838.992 }, rot = { x = 280.217, y = 164.400, z = 96.770 }, level = 1 },
{ config_id = 74095, gadget_id = 70310457, pos = { x = 153.695, y = 649.347, z = -1838.270 }, rot = { x = 280.217, y = 164.400, z = 96.770 }, level = 1 },
{ config_id = 74096, gadget_id = 70310457, pos = { x = 153.571, y = 649.494, z = -1837.456 }, rot = { x = 280.217, y = 164.400, z = 96.770 }, level = 1 },
{ config_id = 74097, gadget_id = 70310457, pos = { x = 153.462, y = 649.623, z = -1836.747 }, rot = { x = 280.217, y = 164.400, z = 96.770 }, level = 1 },
{ config_id = 74098, gadget_id = 70310457, pos = { x = 153.366, y = 649.736, z = -1836.123 }, rot = { x = 280.217, y = 164.400, z = 96.770 }, level = 1 },
{ config_id = 74099, gadget_id = 70310457, pos = { x = 153.262, y = 649.858, z = -1835.446 }, rot = { x = 280.217, y = 164.400, z = 96.770 }, level = 1 },
{ config_id = 74100, gadget_id = 70310457, pos = { x = 153.171, y = 649.068, z = -1835.002 }, rot = { x = 280.217, y = 164.400, z = 96.770 }, level = 1 },
{ config_id = 74101, gadget_id = 70310457, pos = { x = 153.046, y = 649.216, z = -1834.183 }, rot = { x = 280.218, y = 164.401, z = 96.770 }, level = 1 },
{ config_id = 74102, gadget_id = 70310457, pos = { x = 152.935, y = 649.347, z = -1833.461 }, rot = { x = 280.218, y = 164.401, z = 96.770 }, level = 1 },
{ config_id = 74103, gadget_id = 70310457, pos = { x = 152.810, y = 649.494, z = -1832.647 }, rot = { x = 280.218, y = 164.401, z = 96.770 }, level = 1 },
{ config_id = 74104, gadget_id = 70310457, pos = { x = 152.702, y = 649.623, z = -1831.938 }, rot = { x = 280.218, y = 164.401, z = 96.770 }, level = 1 },
{ config_id = 74105, gadget_id = 70310457, pos = { x = 152.606, y = 649.736, z = -1831.314 }, rot = { x = 280.218, y = 164.401, z = 96.770 }, level = 1 },
{ config_id = 74106, gadget_id = 70310457, pos = { x = 152.502, y = 649.858, z = -1830.637 }, rot = { x = 280.218, y = 164.401, z = 96.770 }, level = 1 },
{ config_id = 74107, gadget_id = 70310457, pos = { x = 152.425, y = 649.068, z = -1830.265 }, rot = { x = 280.217, y = 164.400, z = 96.770 }, level = 1 },
{ config_id = 74108, gadget_id = 70310457, pos = { x = 152.299, y = 649.216, z = -1829.447 }, rot = { x = 280.217, y = 164.401, z = 96.770 }, level = 1 },
{ config_id = 74109, gadget_id = 70310457, pos = { x = 152.189, y = 649.347, z = -1828.724 }, rot = { x = 280.217, y = 164.401, z = 96.770 }, level = 1 },
{ config_id = 74110, gadget_id = 70310457, pos = { x = 152.064, y = 649.494, z = -1827.911 }, rot = { x = 280.217, y = 164.401, z = 96.770 }, level = 1 },
{ config_id = 74111, gadget_id = 70310457, pos = { x = 151.955, y = 649.623, z = -1827.201 }, rot = { x = 280.217, y = 164.401, z = 96.770 }, level = 1 },
-- -
{ config_id = 74112, gadget_id = 70310457, pos = { x = 151.859, y = 649.736, z = -1826.576 }, rot = { x = 280.217, y = 164.401, z = 96.770 }, level = 1 },
{ config_id = 74113, gadget_id = 70310457, pos = { x = 154.805, y = 649.068, z = -1845.452 }, rot = { x = 280.217, y = 164.400, z = 96.770 }, level = 1 },
{ config_id = 74114, gadget_id = 70310457, pos = { x = 154.679, y = 649.216, z = -1844.633 }, rot = { x = 280.217, y = 164.400, z = 96.770 }, level = 1 },
{ config_id = 74115, gadget_id = 70310457, pos = { x = 154.568, y = 649.347, z = -1843.911 }, rot = { x = 280.217, y = 164.400, z = 96.770 }, level = 1 },
{ config_id = 74116, gadget_id = 70310457, pos = { x = 154.444, y = 649.494, z = -1843.097 }, rot = { x = 280.217, y = 164.400, z = 96.770 }, level = 1 },
{ config_id = 74117, gadget_id = 70310457, pos = { x = 154.335, y = 649.623, z = -1842.388 }, rot = { x = 280.217, y = 164.400, z = 96.770 }, level = 1 },
{ config_id = 74118, gadget_id = 70310457, pos = { x = 154.239, y = 649.736, z = -1841.764 }, rot = { x = 280.217, y = 164.400, z = 96.770 }, level = 1 },
{ config_id = 74119, gadget_id = 70310457, pos = { x = 154.135, y = 649.858, z = -1841.087 }, rot = { x = 280.217, y = 164.400, z = 96.770 }, level = 1 },
{ config_id = 74120, gadget_id = 70310457, pos = { x = 154.044, y = 649.068, z = -1840.643 }, rot = { x = 280.217, y = 164.401, z = 96.770 }, level = 1 },
{ config_id = 74121, gadget_id = 70310457, pos = { x = 154.920, y = 648.931, z = -1846.205 }, rot = { x = 280.217, y = 164.400, z = 96.770 }, level = 1 },
{ config_id = 74122, gadget_id = 70310457, pos = { x = 155.042, y = 648.938, z = -1846.925 }, rot = { x = 280.217, y = 164.400, z = 96.770 }, level = 1 },
{ config_id = 74123, gadget_id = 70310457, pos = { x = 155.054, y = 649.867, z = -1847.034 }, rot = { x = 280.216, y = 322.330, z = 96.770 }, level = 1 },
{ config_id = 74124, gadget_id = 70310457, pos = { x = 151.714, y = 649.736, z = -1828.022 }, rot = { x = 280.217, y = 49.124, z = 96.770 }, level = 1 },
{ config_id = 74125, gadget_id = 70310457, pos = { x = 151.145, y = 649.858, z = -1828.406 }, rot = { x = 280.217, y = 49.124, z = 96.770 }, level = 1 },
{ config_id = 74126, gadget_id = 70310457, pos = { x = 150.842, y = 649.068, z = -1828.634 }, rot = { x = 280.217, y = 49.124, z = 96.770 }, level = 1 },
{ config_id = 74127, gadget_id = 70310457, pos = { x = 150.156, y = 649.216, z = -1829.097 }, rot = { x = 280.217, y = 49.124, z = 96.770 }, level = 1 },
{ config_id = 74128, gadget_id = 70310457, pos = { x = 149.550, y = 649.347, z = -1829.505 }, rot = { x = 280.217, y = 49.124, z = 96.770 }, level = 1 },
{ config_id = 74129, gadget_id = 70310457, pos = { x = 148.867, y = 649.494, z = -1829.966 }, rot = { x = 280.217, y = 49.124, z = 96.770 }, level = 1 },
{ config_id = 74130, gadget_id = 70310457, pos = { x = 148.272, y = 649.623, z = -1830.367 }, rot = { x = 280.217, y = 49.124, z = 96.770 }, level = 1 },
-- -
{ config_id = 74131, gadget_id = 70310457, pos = { x = 147.749, y = 649.736, z = -1830.720 }, rot = { x = 280.217, y = 49.124, z = 96.770 }, level = 1 },
{ config_id = 74132, gadget_id = 70310457, pos = { x = 147.064, y = 649.494, z = -1831.200 }, rot = { x = 280.217, y = 49.124, z = 96.770 }, level = 1 },
{ config_id = 74133, gadget_id = 70310457, pos = { x = 146.469, y = 649.623, z = -1831.601 }, rot = { x = 280.217, y = 49.124, z = 96.770 }, level = 1 },
{ config_id = 74134, gadget_id = 70310457, pos = { x = 145.946, y = 649.736, z = -1831.954 }, rot = { x = 280.217, y = 49.124, z = 96.770 }, level = 1 },
{ config_id = 74135, gadget_id = 70310457, pos = { x = 151.617, y = 649.362, z = -1825.180 }, rot = { x = 280.217, y = 41.813, z = 29.829 }, level = 1 },
{ config_id = 74136, gadget_id = 70310457, pos = { x = 151.353, y = 649.283, z = -1824.359 }, rot = { x = 280.217, y = 41.813, z = 32.312 }, level = 1 },
{ config_id = 74137, gadget_id = 70310457, pos = { x = 152.121, y = 649.096, z = -1830.049 }, rot = { x = 280.216, y = 41.812, z = 96.770 }, level = 1 },
{ config_id = 74138, gadget_id = 70310457, pos = { x = 151.619, y = 649.216, z = -1830.490 }, rot = { x = 280.216, y = 41.812, z = 96.770 }, level = 1 },
{ config_id = 74139, gadget_id = 70310457, pos = { x = 151.071, y = 649.347, z = -1830.972 }, rot = { x = 280.216, y = 41.812, z = 96.770 }, level = 1 },
{ config_id = 74140, gadget_id = 70310457, pos = { x = 150.452, y = 649.494, z = -1831.516 }, rot = { x = 280.216, y = 41.812, z = 96.770 }, level = 1 },
{ config_id = 74141, gadget_id = 70310457, pos = { x = 149.913, y = 649.623, z = -1831.989 }, rot = { x = 280.216, y = 41.812, z = 96.770 }, level = 1 },
-- -
{ config_id = 74142, gadget_id = 70310457, pos = { x = 149.438, y = 649.736, z = -1832.406 }, rot = { x = 280.216, y = 41.812, z = 96.770 }, level = 1 },
{ config_id = 74143, gadget_id = 70310457, pos = { x = 148.311, y = 649.615, z = -1833.417 }, rot = { x = 280.217, y = 41.812, z = 96.770 }, level = 1 },
{ config_id = 74144, gadget_id = 70310457, pos = { x = 149.154, y = 649.919, z = -1836.427 }, rot = { x = 280.217, y = 41.812, z = 96.770 }, level = 1 },
{ config_id = 74145, gadget_id = 70310457, pos = { x = 149.032, y = 649.551, z = -1833.584 }, rot = { x = 280.217, y = 41.813, z = 24.693 }, level = 1 },
{ config_id = 74146, gadget_id = 70310457, pos = { x = 151.114, y = 649.362, z = -1823.505 }, rot = { x = 280.217, y = 41.813, z = 29.829 }, level = 1 },
{ config_id = 74147, gadget_id = 70310457, pos = { x = 150.859, y = 649.286, z = -1822.716 }, rot = { x = 280.217, y = 41.813, z = 32.312 }, level = 1 },
{ config_id = 74148, gadget_id = 70310457, pos = { x = 150.103, y = 649.362, z = -1822.093 }, rot = { x = 280.216, y = 336.420, z = 29.829 }, level = 1 },
{ config_id = 74149, gadget_id = 70310457, pos = { x = 149.247, y = 649.283, z = -1821.991 }, rot = { x = 280.216, y = 336.420, z = 32.312 }, level = 1 },
{ config_id = 74150, gadget_id = 70310457, pos = { x = 148.371, y = 649.362, z = -1821.853 }, rot = { x = 280.216, y = 336.420, z = 29.829 }, level = 1 },
{ config_id = 74151, gadget_id = 70310457, pos = { x = 147.547, y = 649.286, z = -1821.756 }, rot = { x = 280.216, y = 336.420, z = 32.312 }, level = 1 },
{ config_id = 74152, gadget_id = 70310457, pos = { x = 146.676, y = 649.362, z = -1821.625 }, rot = { x = 280.216, y = 336.420, z = 29.829 }, level = 1 },
{ config_id = 74153, gadget_id = 70310457, pos = { x = 145.852, y = 649.286, z = -1821.528 }, rot = { x = 280.216, y = 336.420, z = 32.312 }, level = 1 },
{ config_id = 74154, gadget_id = 70310457, pos = { x = 145.191, y = 649.703, z = -1822.063 }, rot = { x = 270.000, y = 283.312, z = 0.000 }, level = 1 },
{ config_id = 74155, gadget_id = 70310457, pos = { x = 144.984, y = 648.945, z = -1822.957 }, rot = { x = 270.000, y = 281.760, z = 0.000 }, level = 1 },
{ config_id = 74156, gadget_id = 70310457, pos = { x = 144.790, y = 649.703, z = -1823.822 }, rot = { x = 270.000, y = 283.312, z = 0.000 }, level = 1 },
{ config_id = 74157, gadget_id = 70310457, pos = { x = 144.583, y = 648.945, z = -1824.716 }, rot = { x = 270.000, y = 281.760, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 74001, 74002, 74003, 74004, 74005, 74006, 74007, 74008, 74009, 74010, 74011, 74012, 74013, 74014, 74015, 74016, 74017, 74018, 74019, 74020, 74021, 74022, 74023, 74024, 74025, 74026, 74027, 74028, 74029, 74030, 74031, 74032, 74033, 74034, 74035, 74036, 74037, 74038, 74039, 74040, 74041, 74042, 74043, 74044, 74045, 74046, 74047, 74048, 74049, 74050, 74051, 74052, 74053, 74054, 74055, 74056, 74057, 74058, 74059, 74060, 74061, 74062, 74063, 74064, 74065, 74067, 74068, 74069, 74070, 74071, 74072, 74073, 74074, 74075, 74076, 74077, 74078, 74079, 74080, 74081, 74082, 74083, 74084, 74085, 74086, 74087, 74088, 74089, 74090, 74091, 74092, 74093, 74094, 74095, 74096, 74097, 74098, 74099, 74100, 74101, 74102, 74103, 74104, 74105, 74106, 74107, 74108, 74109, 74110, 74111, 74112, 74113, 74114, 74115, 74116, 74117, 74118, 74119, 74120, 74121, 74122, 74123, 74124, 74125, 74126, 74127, 74128, 74129, 74130, 74131, 74132, 74133, 74134, 74135, 74136, 74137, 74138, 74139, 74140, 74141, 74142, 74143, 74144, 74145, 74146, 74147, 74148, 74149, 74150, 74151, 74152, 74153, 74154, 74155, 74156, 74157 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,137 @@
-- 基础信息
local base_info = {
group_id = 220134075
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 75001, shape = RegionShape.SPHERE, radius = 5, pos = { x = 499.998, y = 606.313, z = -1569.724 } },
{ config_id = 75002, shape = RegionShape.SPHERE, radius = 5, pos = { x = 499.998, y = 606.313, z = -1569.724 } }
}
-- 触发器
triggers = {
{ config_id = 1075001, name = "ENTER_REGION_75001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_75001", action = "action_EVENT_ENTER_REGION_75001", trigger_count = 0 },
{ config_id = 1075002, name = "ENTER_REGION_75002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_75002", action = "action_EVENT_ENTER_REGION_75002", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 1,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 75001, 75002 },
triggers = { "ENTER_REGION_75001", "ENTER_REGION_75002" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { 75001, 75002 },
triggers = { "ENTER_REGION_75001", "ENTER_REGION_75002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_75001(context, evt)
if evt.param1 ~= 75001 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_75001(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monahouse") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_75002(context, evt)
if evt.param1 ~= 75002 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_75002(context, evt)
if ScriptLib.GetHostQuestState(context,4007609)==3 then
if evt.uid ~= nil then
local t_pos = {x=514, y=847, z=-1205}
if 0 ~= ScriptLib.TransPlayerToPos(context, {uid_list = {evt.uid}, pos = t_pos, rot = {x=0, y=1, z=0}}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : trans_player_byOption")
return -1
end
else
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : trans_player_byOption")
return -1
end
end
return 0
end
@@ -0,0 +1,92 @@
-- 基础信息
local base_info = {
group_id = 220134076
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 76001, gadget_id = 70310342, pos = { x = 499.266, y = 609.303, z = -1655.058 }, rot = { x = 0.000, y = 0.132, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 76003, shape = RegionShape.SPHERE, radius = 50, pos = { x = 499.967, y = 613.465, z = -1590.434 } }
}
-- 触发器
triggers = {
{ config_id = 1076003, name = "ENTER_REGION_76003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_76003", action = "action_EVENT_ENTER_REGION_76003", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 76001 },
regions = { 76003 },
triggers = { "ENTER_REGION_76003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_76003(context, evt)
if evt.param1 ~= 76003 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_76003(context, evt)
ScriptLib.ActivateDungeonCheckPoint(context, 7)
return 0
end
@@ -0,0 +1,81 @@
-- 基础信息
local base_info = {
group_id = 220134077
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 77001, gadget_id = 70710470, pos = { x = 492.203, y = 613.348, z = -1598.556 }, rot = { x = 0.000, y = 225.969, z = 0.000 }, level = 1 }
}
-- 区域
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 = ,
monsters = { },
gadgets = { 77001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,164 @@
-- 基础信息
local base_info = {
group_id = 220134078
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 78001, gadget_id = 70310456, pos = { x = 602.742, y = 620.860, z = -1640.339 }, rot = { x = 358.337, y = 255.517, z = 357.395 }, level = 1 },
{ config_id = 78002, gadget_id = 70310244, pos = { x = 603.401, y = 620.534, z = -1640.262 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 78003, gadget_id = 70360001, pos = { x = 602.834, y = 620.580, z = -1640.558 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 411 } } }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1078004, name = "SELECT_OPTION_78004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_78004", action = "action_EVENT_SELECT_OPTION_78004", trigger_count = 0 },
{ config_id = 1078005, name = "AVATAR_NEAR_PLATFORM_78005", event = EventType.EVENT_AVATAR_NEAR_PLATFORM, source = "", condition = "", action = "action_EVENT_AVATAR_NEAR_PLATFORM_78005", trigger_count = 0 },
{ config_id = 1078006, name = "PLATFORM_REACH_POINT_78006", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_78006", action = "action_EVENT_PLATFORM_REACH_POINT_78006", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 78001, 78003 },
regions = { },
triggers = { "SELECT_OPTION_78004", "AVATAR_NEAR_PLATFORM_78005", "PLATFORM_REACH_POINT_78006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_78004(context, evt)
-- 判断是gadgetid 78003 option_id 411
if 78003 ~= evt.param1 then
return false
end
if 411 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_78004(context, evt)
-- 创建id为78002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 78002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 78002, 11) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 78002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 删除指定group 220134078 ;指定config78003;物件身上指定option411
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220134078, 78003, 411) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_AVATAR_NEAR_PLATFORM_78005(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 78002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_78006(context, evt)
-- 判断是gadgetid 为 78002的移动平台,是否到达了11 的路线中的 7 点
if 78002 ~= evt.param1 then
return false
end
if 11 ~= evt.param2 then
return false
end
if 7 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_78006(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 78002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,133 @@
-- 基础信息
local base_info = {
group_id = 220134079
}
-- DEFS_MISCS
local defs = {
is_movable = 1,
reset_onload=1,
--连线形态
patterns =
{
--形态1
[1] =
{
[79001] = {connect =79002 , point_array = 89, point_id = {1}} ,
[79002] = {connect =79003 , point_array = 90, point_id = {1}} ,
[79003] = {connect =79004 , point_array = 102, point_id = {1}} ,
[79004] = {connect = 0, point_array = 97, point_id = {1}} ,
[79005] = {connect =0 , point_array = 91, point_id = {1}} ,
[79006] = {connect =79001 , point_array = 99, point_id = {1}} ,
},
--parta1
[2] =
{
[79001] = {connect =79002 , point_array = 89, point_id = {4,5,6,7,8,9,10,11,12,2}} ,
[79002] = {connect =79005 , point_array = 90, point_id = {4,5,6,7,8,9,10,11,12,2}} ,
[79003] = {connect =79004 , point_array = 102, point_id = {4,5,6,7,8,9,10,11,12,2}} ,
[79004] = {connect =0 , point_array = 0, point_id = {0}} ,
[79005] = {connect =0 , point_array = 0, point_id = {0}} ,
[79006] = {connect =79001 , point_array = 0, point_id = {0}} ,
},
--parta2
[3] =
{
[79001] = {connect =79002 , point_array = 89, point_id = {4,5,6,7,8,9,10,11,12,3}} ,
[79002] = {connect =79005 , point_array = 90, point_id = {4,5,6,7,8,9,10,11,12,3}} ,
[79003] = {connect =79004 , point_array = 102, point_id = {4,5,6,7,8,9,10,11,12,3}} ,
[79004] = {connect =0 , point_array = 0, point_id = {0}} ,
[79005] = {connect =0 , point_array = 0, point_id = {0}} ,
[79006] = {connect =79001 , point_array = 0, point_id = {0}} ,
},
[4] =
{
[79001] = {connect =79002 , point_array = 89, point_id = {4,5,6,7,8,9,10,11,12,1}} ,
[79002] = {connect =79005 , point_array = 90, point_id = {4,5,6,7,8,9,10,11,12,1}} ,
[79003] = {connect =79004 , point_array = 102, point_id = {4,5,6,7,8,9,10,11,12,1}} ,
[79004] = {connect =0 , point_array = 0, point_id = {0}} ,
[79005] = {connect =0 , point_array = 0, point_id = {0}} ,
[79006] = {connect =79001 , point_array = 0, point_id = {0}} ,
},
}}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[79001] = { config_id = 79001, gadget_id = 70310231, pos = { x = 134.283, y = 681.489, z = -1866.900 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[79002] = { config_id = 79002, gadget_id = 70310455, pos = { x = 130.535, y = 674.975, z = -1865.613 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1, is_use_point_array = true },
[79003] = { config_id = 79003, gadget_id = 70310231, pos = { x = 134.283, y = 681.489, z = -1866.900 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[79004] = { config_id = 79004, gadget_id = 70310231, pos = { x = 122.465, y = 673.681, z = -1853.212 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1, state = GadgetState.GearAction1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[79005] = { config_id = 79005, gadget_id = 70310231, pos = { x = 117.053, y = 660.557, z = -1854.165 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1, state = GadgetState.GearAction1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[79006] = { config_id = 79006, gadget_id = 70310231, pos = { x = 121.038, y = 668.431, z = -1854.272 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1, state = GadgetState.GearAction1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 79001, 79002, 79003, 79004, 79005, 79006 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V2_8/ConstellationPattern"
@@ -0,0 +1,130 @@
-- 基础信息
local base_info = {
group_id = 220134080
}
-- DEFS_MISCS
local defs = {
is_movable = 1,
reset_onload=1,
--连线形态
patterns =
{
--形态1
[1] =
{
[80001] = {connect =80002 , point_array = 94, point_id = {1}} ,
[80002] = {connect =80005 , point_array = 95, point_id = {1}} ,
[80003] = {connect =80002 , point_array = 96, point_id = {1}} ,
[80004] = {connect =0 , point_array = 97, point_id = {1}} ,
[80005] = {connect =0 , point_array = 99, point_id = {1}} ,
[80006] = {connect =80002 , point_array = 98, point_id = {1}} ,
},
--parta1
[2] =
{
[80001] = {connect =80002 , point_array = 94, point_id = {4,5,6,7,8,9,10,11,12,1}} ,
[80002] = {connect =80003 , point_array = 95, point_id = {4,5,6,7,8,9,10,11,12,1}} ,
[80003] = {connect =80004 , point_array = 96, point_id = {4,5,6,7,8,9,10,11,12,1}} ,
[80004] = {connect =80005 , point_array = 97, point_id = {4,5,6,7,8,9,10,11,12,1}} ,
[80005] = {connect =0 , point_array = 99, point_id = {1}} ,
[80006] = {connect =80002 , point_array = 98, point_id = {1}} ,
},
--parta2
[3] =
{
[80001] = {connect =80002 , point_array = 94, point_id = {4,5,6,7,8,9,10,11,12,2}} ,
[80002] = {connect =80003 , point_array = 95, point_id = {4,5,6,7,8,9,10,11,12,2}} ,
[80003] = {connect =80004 , point_array = 96, point_id = {4,5,6,7,8,9,10,11,12,2}} ,
[80004] = {connect =80005 , point_array = 97, point_id = {4,5,6,7,8,9,10,11,12,2}} ,
[80005] = {connect =0 , point_array = 99, point_id = {1}} ,
[80006] = {connect =80002 , point_array = 98, point_id = {1}} ,
},
[4] =
{
[80001] = {connect =80002 , point_array = 94, point_id = {4,5,6,7,8,9,10,11,12,3}} ,
[80002] = {connect =80003 , point_array = 95, point_id = {4,5,6,7,8,9,10,11,12,3}} ,
[80003] = {connect =80004 , point_array = 96, point_id = {4,5,6,7,8,9,10,11,12,3}} ,
[80004] = {connect =80005 , point_array = 97, point_id = {4,5,6,7,8,9,10,11,12,3}} ,
[80005] = {connect =0 , point_array = 99, point_id = {1}} ,
[80006] = {connect =80002 , point_array = 98, point_id = {1}} ,
},}}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[80001] = { config_id = 80001, gadget_id = 70310455, pos = { x = 118.385, y = 676.258, z = -1848.067 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1, is_use_point_array = true },
[80002] = { config_id = 80002, gadget_id = 70310231, pos = { x = 120.151, y = 672.955, z = -1849.925 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[80003] = { config_id = 80003, gadget_id = 70310231, pos = { x = 123.075, y = 676.412, z = -1852.157 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[80004] = { config_id = 80004, gadget_id = 70310231, pos = { x = 122.465, y = 673.681, z = -1853.212 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[80005] = { config_id = 80005, gadget_id = 70310231, pos = { x = 120.803, y = 668.438, z = -1854.422 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1, state = GadgetState.GearAction1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[80006] = { config_id = 80006, gadget_id = 70310231, pos = { x = 117.970, y = 665.931, z = -1851.622 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1, state = GadgetState.GearAction1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 80001, 80002, 80003, 80004, 80005, 80006 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V2_8/ConstellationPattern"
@@ -0,0 +1,135 @@
-- 基础信息
local base_info = {
group_id = 220134081
}
-- DEFS_MISCS
local defs = {
is_movable = 1,
reset_onload=1,
--连线形态
patterns =
{
--形态1
[1] =
{
[81001] = {connect =81004 , point_array = 91, point_id = {1}} ,
[81002] = {connect =81001 , point_array = 92, point_id = {1}} ,
[81003] = {connect =81005 , point_array = 98, point_id = {1}} ,
[81004] = {connect =0 , point_array = 99, point_id = {1}} ,
[81005] = {connect =81003 , point_array = 94, point_id = {1}} ,
[81006] = {connect =0, point_array = 90, point_id = {1}} ,
[81007] = {connect =0 , point_array = 95, point_id = {1}} ,
},
--parta1
[2] =
{
[81001] = {connect =81002 , point_array =91, point_id = {4,5,6,7,8,9,10,11,12,3}} ,
[81002] = {connect =81003 , point_array = 92, point_id = {4,5,6,7,8,9,10,11,12,3}},
[81003] = {connect =81004 , point_array = 98, point_id = {4,5,6,7,8,9,10,11,12,3}} ,
[81004] = {connect =0 , point_array = 99, point_id = {4,5,6,7,8,9,10,11,12,3}},
[81005] = {connect =81002 , point_array = 94, point_id = {1}} ,
[81006] = {connect =0, point_array = 90, point_id = {1}} ,
[81007] = {connect =0 , point_array = 95, point_id = {1}} ,
},
--parta2
[3] =
{
[81001] = {connect =81002 , point_array =91, point_id = {4,5,6,7,8,9,10,11,12,1}} ,
[81002] = {connect =81003 , point_array = 92, point_id = {4,5,6,7,8,9,10,11,12,1}},
[81003] = {connect =81004 , point_array = 98, point_id = {4,5,6,7,8,9,10,11,12,1}} ,
[81004] = {connect =0 , point_array = 99, point_id = {4,5,6,7,8,9,10,11,12,1}},
[81005] = {connect =81002 , point_array = 94, point_id = {1}} ,
[81006] = {connect =0, point_array = 90, point_id = {1}} ,
[81007] = {connect =0 , point_array = 95, point_id = {1}} ,
},
[4] =
{
[81001] = {connect =81002 , point_array =91, point_id = {4,5,6,7,8,9,10,11,12,2}} ,
[81002] = {connect =81003 , point_array = 92, point_id = {4,5,6,7,8,9,10,11,12,2}},
[81003] = {connect =81004 , point_array = 98, point_id = {4,5,6,7,8,9,10,11,12,2}} ,
[81004] = {connect =0 , point_array = 99, point_id = {4,5,6,7,8,9,10,11,12,2}},
[81005] = {connect =81002 , point_array = 94, point_id = {1}} ,
[81006] = {connect =0, point_array = 90, point_id = {1}} ,
[81007] = {connect =0 , point_array = 95, point_id = {1}} ,
},}}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[81001] = { config_id = 81001, gadget_id = 70310231, pos = { x = 117.053, y = 660.557, z = -1854.165 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[81002] = { config_id = 81002, gadget_id = 70310455, pos = { x = 115.332, y = 663.360, z = -1849.191 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1, is_use_point_array = true },
[81003] = { config_id = 81003, gadget_id = 70310231, pos = { x = 117.970, y = 665.931, z = -1851.622 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[81004] = { config_id = 81004, gadget_id = 70310231, pos = { x = 120.803, y = 668.438, z = -1854.422 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[81005] = { config_id = 81005, gadget_id = 70310231, pos = { x = 120.152, y = 675.648, z = -1847.889 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1, state = GadgetState.GearAction1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[81006] = { config_id = 81006, gadget_id = 70310231, pos = { x = 122.465, y = 673.681, z = -1853.212 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1, state = GadgetState.GearAction1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[81007] = { config_id = 81007, gadget_id = 70310231, pos = { x = 110.534, y = 664.926, z = -1840.054 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1, state = GadgetState.GearAction1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 81001, 81002, 81003, 81004, 81005, 81006, 81007 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V2_8/ConstellationPattern"
@@ -0,0 +1,124 @@
-- 基础信息
local base_info = {
group_id = 220134082
}
-- DEFS_MISCS
local defs = {
is_movable = 1,
reset_onload=1,
--连线形态
patterns =
{
--形态1
[1] =
{
[82001] = {connect =82002 , point_array = 93, point_id = {1}} ,
[82002] = {connect =82003 , point_array = 100, point_id = {1}} ,
[82003] = {connect =82004 , point_array = 101, point_id = {1}} ,
[82004] = {connect =0 , point_array = 92, point_id = {1}} ,
},
--parta1
[2] =
{
[82001] = {connect =82004 , point_array = 93, point_id = {4,5,6,7,8,9,10,11,12,2}} ,
[82002] = {connect =82001 , point_array =100, point_id = {4,5,6,7,8,9,10,11,12,2}} ,
[82003] = {connect =82002 , point_array = 101, point_id = {4,5,6,7,8,9,10,11,12,2}} ,
[82004] = {connect =0, point_array = 92, point_id = {1}} ,
},
--parta2
[3] =
{
[82001] = {connect =82004 , point_array = 93, point_id = {4,5,6,7,8,9,10,11,12,3}} ,
[82002] = {connect =82001 , point_array =100, point_id = {4,5,6,7,8,9,10,11,12,3}} ,
[82003] = {connect =82002 , point_array = 101, point_id = {4,5,6,7,8,9,10,11,12,3}} ,
[82004] = {connect =0, point_array = 92, point_id = {1}} ,
},
[4] =
{
[82001] = {connect =82004 , point_array = 93, point_id = {4,5,6,7,8,9,10,11,12,1}} ,
[82002] = {connect =82001 , point_array =100, point_id = {4,5,6,7,8,9,10,11,12,1}} ,
[82003] = {connect =82002 , point_array = 101, point_id = {4,5,6,7,8,9,10,11,12,1}} ,
[82004] = {connect =0, point_array = 92, point_id = {1}} ,
},}}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[82001] = { config_id = 82001, gadget_id = 70310231, pos = { x = 111.928, y = 661.908, z = -1844.647 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[82002] = { config_id = 82002, gadget_id = 70310231, pos = { x = 110.534, y = 664.926, z = -1840.054 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[82003] = { config_id = 82003, gadget_id = 70310455, pos = { x = 113.730, y = 669.675, z = -1841.760 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1, is_use_point_array = true },
[82004] = { config_id = 82004, gadget_id = 70310231, pos = { x = 115.332, y = 663.360, z = -1849.191 }, rot = { x = 1.165, y = 328.447, z = 68.659 }, level = 1, state = GadgetState.GearAction1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 82001, 82002, 82003, 82004 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V2_8/ConstellationPattern"
@@ -0,0 +1,97 @@
-- 基础信息
local base_info = {
group_id = 220134083
}
-- DEFS_MISCS
--激活梦境复苏之门
--key填regionid
--value为pointid
local Check_Point_List = {
[83001] = 7
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
-- 进入此区域触发梦境复苏之门
{ config_id = 83001, shape = RegionShape.SPHERE, radius = 10, pos = { x = 499.256, y = 609.303, z = -1654.742 } }
}
-- 触发器
triggers = {
-- 进入此区域触发梦境复苏之门
{ config_id = 1083001, name = "ENTER_REGION_83001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_83001", action = "", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 83001 },
triggers = { "ENTER_REGION_83001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_83001(context, evt)
if evt.param1 ~= 83001 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
require "CheckPoint_Handler"
@@ -0,0 +1,97 @@
-- 基础信息
local base_info = {
group_id = 220134084
}
-- DEFS_MISCS
--激活梦境复苏之门
--key填regionid
--value为pointid
local Check_Point_List = {
[84001] = 6
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
-- 进入此区域触发梦境复苏之门
{ config_id = 84001, shape = RegionShape.SPHERE, radius = 10, pos = { x = 369.746, y = 632.156, z = -1506.443 } }
}
-- 触发器
triggers = {
-- 进入此区域触发梦境复苏之门
{ config_id = 1084001, name = "ENTER_REGION_84001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_84001", action = "", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 84001 },
triggers = { "ENTER_REGION_84001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_84001(context, evt)
if evt.param1 ~= 84001 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
require "CheckPoint_Handler"
@@ -0,0 +1,97 @@
-- 基础信息
local base_info = {
group_id = 220134085
}
-- DEFS_MISCS
--激活梦境复苏之门
--key填regionid
--value为pointid
local Check_Point_List = {
--[85001] = 5
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
-- 进入此区域触发梦境复苏之门
{ config_id = 85001, shape = RegionShape.SPHERE, radius = 10, pos = { x = 646.824, y = 605.851, z = -1488.724 } }
}
-- 触发器
triggers = {
-- 进入此区域触发梦境复苏之门
{ config_id = 1085001, name = "ENTER_REGION_85001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_85001", action = "", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 85001 },
triggers = { "ENTER_REGION_85001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_85001(context, evt)
if evt.param1 ~= 85001 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
require "CheckPoint_Handler"
@@ -0,0 +1,97 @@
-- 基础信息
local base_info = {
group_id = 220134086
}
-- DEFS_MISCS
--激活梦境复苏之门
--key填regionid
--value为pointid
local Check_Point_List = {
--[86001] = 4
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
-- 进入此区域触发梦境复苏之门
{ config_id = 86001, shape = RegionShape.SPHERE, radius = 10, pos = { x = 613.662, y = 621.288, z = -1685.934 } }
}
-- 触发器
triggers = {
-- 进入此区域触发梦境复苏之门
{ config_id = 1086001, name = "ENTER_REGION_86001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_86001", action = "", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 86001 },
triggers = { "ENTER_REGION_86001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_86001(context, evt)
if evt.param1 ~= 86001 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
require "CheckPoint_Handler"
@@ -0,0 +1,97 @@
-- 基础信息
local base_info = {
group_id = 220134087
}
-- DEFS_MISCS
--激活梦境复苏之门
--key填regionid
--value为pointid
local Check_Point_List = {
--[87001] = 3
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
-- 进入此区域触发梦境复苏之门
{ config_id = 87001, shape = RegionShape.SPHERE, radius = 10, pos = { x = 315.614, y = 625.360, z = -1656.789 } }
}
-- 触发器
triggers = {
-- 进入此区域触发梦境复苏之门
{ config_id = 1087001, name = "ENTER_REGION_87001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_87001", action = "", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 87001 },
triggers = { "ENTER_REGION_87001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_87001(context, evt)
if evt.param1 ~= 87001 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
require "CheckPoint_Handler"
@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 220134088
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 88001, shape = RegionShape.CUBIC, size = { x = 100.000, y = 100.000, z = 100.000 }, pos = { x = 378.991, y = 616.472, z = -1526.747 }, vision_type_list = { 201340001 } }
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 88001 },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,81 @@
-- 基础信息
local base_info = {
group_id = 220134089
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 89001, gadget_id = 70211131, pos = { x = 501.371, y = 612.323, z = -1604.826 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 16, drop_tag = "解谜超级群岛", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 1,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 89001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,81 @@
-- 基础信息
local base_info = {
group_id = 220134090
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 90001, gadget_id = 70211131, pos = { x = 498.190, y = 612.323, z = -1604.826 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 16, drop_tag = "解谜超级群岛", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 1,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 90001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,250 @@
-- 基础信息
local base_info = {
group_id = 220134091
}
-- DEFS_MISCS
local defs = {
is_movable = 1,
patterns =
{
--形态1
[1] =
{
[91001] = {connect =0 , point_array = 0, point_id = {0}} ,
[91004] = {connect =0, point_array = 0, point_id = {0}},
},
--形态3 star2
[2] =
{
[91001] = {connect =0, point_array = 68, point_id = {1,2,3,4,5,6,7,8}} ,
},
--形态4 star3
[3] =
{ [91001] = {connect =91004, point_array = 68, point_id = {8}} ,
[91004] = {connect =91001, point_array = 67, point_id = {25}},
},
},
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 2
[91001] = { config_id = 91001, gadget_id = 70310231, pos = { x = 715.407, y = 616.951, z = -1771.728 }, rot = { x = 318.956, y = 206.110, z = 6.123 }, level = 1, persistent = true, is_use_point_array = true },
-- 2
[91002] = { config_id = 91002, gadget_id = 70360001, pos = { x = 715.407, y = 616.951, z = -1771.728 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 411 } } },
-- 3
[91004] = { config_id = 91004, gadget_id = 70310231, pos = { x = 734.206, y = 655.766, z = -1787.659 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearAction1, is_use_point_array = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 1
{ config_id = 1091003, name = "SELECT_OPTION_91003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_91003", action = "action_EVENT_SELECT_OPTION_91003", trigger_count = 0 },
{ config_id = 1091005, name = "PLATFORM_REACH_POINT_91005", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_91005", action = "action_EVENT_PLATFORM_REACH_POINT_91005", trigger_count = 0 },
{ config_id = 1091006, name = "GROUP_LOAD_91006", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_91006", action = "action_EVENT_GROUP_LOAD_91006", trigger_count = 0 },
{ config_id = 1091008, name = "VARIABLE_CHANGE_91008", event = EventType.EVENT_VARIABLE_CHANGE, source = "star1", condition = "condition_EVENT_VARIABLE_CHANGE_91008", action = "action_EVENT_VARIABLE_CHANGE_91008", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "star1", value = 0, no_refresh = true },
{ config_id = 2, name = "star2", value = 0, no_refresh = true }
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1091007, name = "VARIABLE_CHANGE_91007", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_91007", action = "action_EVENT_VARIABLE_CHANGE_91007", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 91001, 91002, 91004 },
regions = { },
triggers = { "SELECT_OPTION_91003", "PLATFORM_REACH_POINT_91005", "GROUP_LOAD_91006", "VARIABLE_CHANGE_91008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_91003(context, evt)
-- 判断是gadgetid 91002 option_id 411
if 91002 ~= evt.param1 then
return false
end
if 411 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_91003(context, evt)
-- 将本组内变量名为 "pattern" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "pattern", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "star2" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "star2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 删除指定group 220134091 ;指定config91002;物件身上指定option411
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220134091, 91002, 411) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_91005(context, evt)
-- 判断是gadgetid 为 91001的移动平台,是否到达了68 的点集中的 8 点
if 91001 ~= evt.param1 then
return false
end
if 68 ~= evt.param2 then
return false
end
if 8 ~= evt.param3 then
return false
end
-- 判断变量"star1"为1
if ScriptLib.GetGroupVariableValue(context, "star1") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_91005(context, evt)
-- 将本组内变量名为 "pattern" 的变量设置为 3
if 0 ~= ScriptLib.SetGroupVariableValue(context, "pattern", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_91006(context, evt)
-- 判断变量"star2"为1
if ScriptLib.GetGroupVariableValue(context, "star2") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_91006(context, evt)
-- 将本组内变量名为 "pattern" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "pattern", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_91008(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"star1"为1
if ScriptLib.GetGroupVariableValue(context, "star1") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_91008(context, evt)
if ScriptLib.GetGroupVariableValue(context,"star2") == 1 then
if 0 ~= ScriptLib.SetGroupVariableValue(context, "pattern", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
end
return 0
end
@@ -0,0 +1,249 @@
-- 基础信息
local base_info = {
group_id = 220134092
}
-- DEFS_MISCS
local defs = {
is_movable = 1,
patterns =
{
--形态1
[1] =
{
[92001] = {connect =0 , point_array = 0, point_id = {0}} ,
[92004] = {connect =0 , point_array = 0, point_id = {0}} ,
},
--形态3 star2
[2] =
{
[92001] = {connect =0, point_array = 69, point_id = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25}} ,
},
--形态4 star3
[3] =
{ [92001] = {connect =92004, point_array = 69, point_id = {25}} ,
[92004] = {connect =92001, point_array = 87, point_id = {2}},
},
},
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 3
[92001] = { config_id = 92001, gadget_id = 70310231, pos = { x = 713.299, y = 623.845, z = -1717.990 }, rot = { x = 318.956, y = 206.110, z = 6.123 }, level = 1, persistent = true, is_use_point_array = true },
-- 3
[92002] = { config_id = 92002, gadget_id = 70360001, pos = { x = 713.299, y = 623.845, z = -1717.990 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 411 } } },
[92004] = { config_id = 92004, gadget_id = 70310231, pos = { x = 718.437, y = 662.479, z = -1777.488 }, rot = { x = 318.956, y = 206.110, z = 6.123 }, level = 1, state = GadgetState.GearAction1, is_use_point_array = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 1
{ config_id = 1092003, name = "SELECT_OPTION_92003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_92003", action = "action_EVENT_SELECT_OPTION_92003", trigger_count = 0 },
{ config_id = 1092005, name = "PLATFORM_REACH_POINT_92005", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_92005", action = "action_EVENT_PLATFORM_REACH_POINT_92005", trigger_count = 0 },
{ config_id = 1092006, name = "GROUP_LOAD_92006", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_92006", action = "action_EVENT_GROUP_LOAD_92006", trigger_count = 0 },
{ config_id = 1092008, name = "VARIABLE_CHANGE_92008", event = EventType.EVENT_VARIABLE_CHANGE, source = "star4", condition = "condition_EVENT_VARIABLE_CHANGE_92008", action = "action_EVENT_VARIABLE_CHANGE_92008", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "star3", value = 0, no_refresh = true },
{ config_id = 2, name = "star4", value = 0, no_refresh = true }
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1092007, name = "VARIABLE_CHANGE_92007", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_92007", action = "action_EVENT_VARIABLE_CHANGE_92007", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 92001, 92002, 92004 },
regions = { },
triggers = { "SELECT_OPTION_92003", "PLATFORM_REACH_POINT_92005", "GROUP_LOAD_92006", "VARIABLE_CHANGE_92008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_92003(context, evt)
-- 判断是gadgetid 92002 option_id 411
if 92002 ~= evt.param1 then
return false
end
if 411 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_92003(context, evt)
-- 将本组内变量名为 "pattern" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "pattern", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "star3" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "star3", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 删除指定group 220134092 ;指定config92002;物件身上指定option411
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220134092, 92002, 411) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_92005(context, evt)
-- 判断是gadgetid 为 92001的移动平台,是否到达了69 的点集中的 25 点
if 92001 ~= evt.param1 then
return false
end
if 69 ~= evt.param2 then
return false
end
if 25 ~= evt.param3 then
return false
end
-- 判断变量"star4"为1
if ScriptLib.GetGroupVariableValue(context, "star4") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_92005(context, evt)
-- 将本组内变量名为 "pattern" 的变量设置为 3
if 0 ~= ScriptLib.SetGroupVariableValue(context, "pattern", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_92006(context, evt)
-- 判断变量"star3"为1
if ScriptLib.GetGroupVariableValue(context, "star3") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_92006(context, evt)
-- 将本组内变量名为 "pattern" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "pattern", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_92008(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"star4"为1
if ScriptLib.GetGroupVariableValue(context, "star4") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_92008(context, evt)
if ScriptLib.GetGroupVariableValue(context,"star3") == 1 then
if 0 ~= ScriptLib.SetGroupVariableValue(context, "pattern", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
end
return 0
end
require "V2_8/ConstellationPattern"
@@ -0,0 +1,623 @@
-- 基础信息
local base_info = {
group_id = 220134093
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- [door1]4007404 任务保底
{ config_id = 1093001, name = "QUEST_START_93001", event = EventType.EVENT_QUEST_START, source = "4007404", condition = "condition_EVENT_QUEST_START_93001", action = "action_EVENT_QUEST_START_93001", trigger_count = 0 },
-- [door1]4007404 任务保底
{ config_id = 1093002, name = "GROUP_LOAD_93002", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_93002", action = "action_EVENT_GROUP_LOAD_93002", trigger_count = 0 },
-- [002finish]4007405 任务保底
{ config_id = 1093003, name = "QUEST_START_93003", event = EventType.EVENT_QUEST_START, source = "4007405", condition = "condition_EVENT_QUEST_START_93003", action = "action_EVENT_QUEST_START_93003", trigger_count = 0 },
-- [002finish]4007405 任务保底
{ config_id = 1093004, name = "GROUP_LOAD_93004", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_93004", action = "action_EVENT_GROUP_LOAD_93004", trigger_count = 0 },
-- [door2]4007502 任务保底
{ config_id = 1093005, name = "QUEST_START_93005", event = EventType.EVENT_QUEST_START, source = "4007502", condition = "condition_EVENT_QUEST_START_93005", action = "action_EVENT_QUEST_START_93005", trigger_count = 0 },
-- [door2]4007502 任务保底
{ config_id = 1093006, name = "GROUP_LOAD_93006", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_93006", action = "action_EVENT_GROUP_LOAD_93006", trigger_count = 0 },
-- [door3]4007602 任务保底
{ config_id = 1093007, name = "QUEST_START_93007", event = EventType.EVENT_QUEST_START, source = "4007602", condition = "condition_EVENT_QUEST_START_93007", action = "action_EVENT_QUEST_START_93007", trigger_count = 0 },
-- [door3]4007602 任务保底
{ config_id = 1093008, name = "GROUP_LOAD_93008", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_93008", action = "action_EVENT_GROUP_LOAD_93008", trigger_count = 0 },
-- [door4]4007605 任务保底
{ config_id = 1093009, name = "QUEST_START_93009", event = EventType.EVENT_QUEST_START, source = "4007605", condition = "condition_EVENT_QUEST_START_93009", action = "action_EVENT_QUEST_START_93009", trigger_count = 0 },
-- [door4]4007605 任务保底
{ config_id = 1093010, name = "GROUP_LOAD_93010", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_93010", action = "action_EVENT_GROUP_LOAD_93010", trigger_count = 0 },
-- [010finish]4007503 任务保底
{ config_id = 1093011, name = "QUEST_START_93011", event = EventType.EVENT_QUEST_START, source = "4007503", condition = "condition_EVENT_QUEST_START_93011", action = "action_EVENT_QUEST_START_93011", trigger_count = 0 },
-- [010finish]4007503 任务保底
{ config_id = 1093012, name = "GROUP_LOAD_93012", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_93012", action = "action_EVENT_GROUP_LOAD_93012", trigger_count = 0 },
-- [011finish]4007603 任务保底
{ config_id = 1093013, name = "QUEST_START_93013", event = EventType.EVENT_QUEST_START, source = "4007603", condition = "condition_EVENT_QUEST_START_93013", action = "action_EVENT_QUEST_START_93013", trigger_count = 0 },
-- [011finish]4007603 任务保底
{ config_id = 1093014, name = "GROUP_LOAD_93014", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_93014", action = "action_EVENT_GROUP_LOAD_93014", trigger_count = 0 },
-- [013finish]4007606 任务保底
{ config_id = 1093015, name = "QUEST_START_93015", event = EventType.EVENT_QUEST_START, source = "4007606", condition = "condition_EVENT_QUEST_START_93015", action = "action_EVENT_QUEST_START_93015", trigger_count = 0 },
-- [013finish]4007606 任务保底
{ config_id = 1093016, name = "GROUP_LOAD_93016", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_93016", action = "action_EVENT_GROUP_LOAD_93016", trigger_count = 0 },
-- [015 reach]4007406 任务保底
{ config_id = 1093017, name = "QUEST_START_93017", event = EventType.EVENT_QUEST_START, source = "4007406", condition = "condition_EVENT_QUEST_START_93017", action = "action_EVENT_QUEST_START_93017", trigger_count = 0 },
-- [015 reach]4007406 任务保底
{ config_id = 1093018, name = "GROUP_LOAD_93018", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_93018", action = "action_EVENT_GROUP_LOAD_93018", trigger_count = 0 },
-- [016 reach]4007504 任务保底
{ config_id = 1093019, name = "QUEST_START_93019", event = EventType.EVENT_QUEST_START, source = "4007504", condition = "condition_EVENT_QUEST_START_93019", action = "action_EVENT_QUEST_START_93019", trigger_count = 0 },
-- [016 reach]4007504 任务保底
{ config_id = 1093020, name = "GROUP_LOAD_93020", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_93020", action = "action_EVENT_GROUP_LOAD_93020", trigger_count = 0 },
-- [017 reach]4007604 任务保底
{ config_id = 1093021, name = "QUEST_START_93021", event = EventType.EVENT_QUEST_START, source = "4007604", condition = "condition_EVENT_QUEST_START_93021", action = "action_EVENT_QUEST_START_93021", trigger_count = 0 },
-- [017 reach]4007604 任务保底
{ config_id = 1093022, name = "GROUP_LOAD_93022", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_93022", action = "action_EVENT_GROUP_LOAD_93022", trigger_count = 0 },
-- [018 reach]4007607 任务保底
{ config_id = 1093023, name = "QUEST_START_93023", event = EventType.EVENT_QUEST_START, source = "4007607", condition = "condition_EVENT_QUEST_START_93023", action = "action_EVENT_QUEST_START_93023", trigger_count = 0 },
-- [018 reach]4007607 任务保底
{ config_id = 1093024, name = "GROUP_LOAD_93024", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_93024", action = "action_EVENT_GROUP_LOAD_93024", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "QUEST_START_93001", "GROUP_LOAD_93002", "QUEST_START_93003", "GROUP_LOAD_93004", "QUEST_START_93005", "GROUP_LOAD_93006", "QUEST_START_93007", "GROUP_LOAD_93008", "QUEST_START_93009", "GROUP_LOAD_93010", "QUEST_START_93011", "GROUP_LOAD_93012", "QUEST_START_93013", "GROUP_LOAD_93014", "QUEST_START_93015", "GROUP_LOAD_93016", "QUEST_START_93017", "GROUP_LOAD_93018", "QUEST_START_93019", "GROUP_LOAD_93020", "QUEST_START_93021", "GROUP_LOAD_93022", "QUEST_START_93023", "GROUP_LOAD_93024" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_QUEST_START_93001(context, evt)
-- 判断变量"door1"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "door1", 220134033) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_93001(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "door1complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_93002(context, evt)
-- 判断变量"door1"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "door1", 220134033) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_93002(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "door1complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_93003(context, evt)
-- 判断变量"finish"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "finish", 220134002) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_93003(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroom1complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_93004(context, evt)
-- 判断变量"finish"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "finish", 220134002) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_93004(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroom1complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_93005(context, evt)
-- 判断变量"door2"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "door2", 220134033) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_93005(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "door2complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_93006(context, evt)
-- 判断变量"door2"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "door2", 220134033) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_93006(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "door2complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_93007(context, evt)
-- 判断变量"door3"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "door3", 220134033) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_93007(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "door3complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_93008(context, evt)
-- 判断变量"door3"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "door3", 220134033) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_93008(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "door3complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_93009(context, evt)
-- 判断变量"door4"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "door4", 220134033) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_93009(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "door4complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_93010(context, evt)
-- 判断变量"door4"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "door4", 220134033) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_93010(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "door4complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_93011(context, evt)
-- 判断变量"finish"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "finish", 220134010) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_93011(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroom2complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_93012(context, evt)
-- 判断变量"finish"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "finish", 220134010) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_93012(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroom2complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_93013(context, evt)
-- 判断变量"finish"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "finish", 220134011) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_93013(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroom3complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_93014(context, evt)
-- 判断变量"finish"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "finish", 220134011) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_93014(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroom3complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_93015(context, evt)
-- 判断变量"finish"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "finish", 220134013) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_93015(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroom4complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_93016(context, evt)
-- 判断变量"finish"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "finish", 220134013) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_93016(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroom4complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_93017(context, evt)
-- 判断变量"reach"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "reach", 220134015) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_93017(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroute1complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_93018(context, evt)
-- 判断变量"reach"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "reach", 220134015) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_93018(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroute1complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_93019(context, evt)
-- 判断变量"reach"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "reach", 220134016) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_93019(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroute2complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_93020(context, evt)
-- 判断变量"reach"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "reach", 220134016) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_93020(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroute2complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_93021(context, evt)
-- 判断变量"reach"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "reach", 220134017) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_93021(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroute3complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_93022(context, evt)
-- 判断变量"reach"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "reach", 220134017) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_93022(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroute3complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_93023(context, evt)
-- 判断变量"reach"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "reach", 220134018) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_93023(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroute4complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_93024(context, evt)
-- 判断变量"reach"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "reach", 220134018) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_93024(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "monaroute4complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,307 @@
{
"areas": {},
"doors": {},
"entities": {
"2": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 100.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": {
"floatParam": 0.0,
"stringParam": "",
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
}
},
"pointType": "Other",
"pos": {
"x": 498.7058,
"y": 587.8455,
"z": -1681.167
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 10.0,
"heightType": "Center",
"length": 100.0,
"useHeight": true,
"width": 100.0
},
"stringParam": "",
"tranPos": {
"x": 499.0,
"y": 609.0,
"z": -1644.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
}
},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 499.9856,
"y": 612.2707,
"z": -1569.239
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 3.0,
"y": 3.0,
"z": 3.0
},
"tranPos": {
"x": -1.330757,
"y": -7.232945,
"z": 93.71742
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
},
"3": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70310387,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 315.6136,
"y": 625.36,
"z": -1656.789
},
"rot": {
"x": 0.0,
"y": 329.1713,
"z": 0.0
},
"size": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranPos": {
"x": 319.0,
"y": 625.36,
"z": -1664.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
},
"4": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70310387,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 613.6617,
"y": 621.2881,
"z": -1685.934
},
"rot": {
"x": 0.0,
"y": 29.2642,
"z": 0.0
},
"size": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranPos": {
"x": 616.0,
"y": 621.1875,
"z": -1680.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
},
"5": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70310387,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 646.8243,
"y": 605.8508,
"z": -1488.724
},
"rot": {
"x": 359.9378,
"y": 6.8469,
"z": 359.7342
},
"size": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranPos": {
"x": 650.0,
"y": 606.0,
"z": -1483.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
},
"6": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70310387,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 369.7464,
"y": 632.1559,
"z": -1506.443
},
"rot": {
"x": 0.0,
"y": 206.0387,
"z": 0.0
},
"size": {
"x": 10.0,
"y": 10.0,
"z": 10.0
},
"tranPos": {
"x": 367.0,
"y": 632.1559,
"z": -1511.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
},
"7": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70310387,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 499.2562,
"y": 609.3033,
"z": -1654.742
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 10.0,
"y": 10.0,
"z": 10.0
},
"tranPos": {
"x": 499.0,
"y": 609.303345,
"z": -1646.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
}
},
"transRadius": 0.0
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,46 @@
[
{
"area_id": 10105,
"isAccurateBorder": true,
"points": [
{
"x": 453.131256,
"y": -1089.03149
},
{
"x": 449.515747,
"y": -1287.83533
},
{
"x": 592.3571,
"y": -1293.32947
},
{
"x": 612.988,
"y": -1111.46826
}
]
},
{
"area_id": 10106,
"isAccurateBorder": true,
"points": [
{
"x": -27.3271484,
"y": -1969.269
},
{
"x": 138.0673,
"y": -1263.96228
},
{
"x": 879.3543,
"y": -1305.319
},
{
"x": 924.621033,
"y": -1988.24744
}
]
}
]