添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = 0.0, z = 0.0 },
size = { x = 700.0, z = 700.0 },
born_pos = { x = 430.734, y = 69.432, z = 482.148 },
born_rot = { x = 0.000, y = 58.064, z = 0.000 },
die_y = -20,
city_id = 4,
vision_anchor = { x = 0.0, z = 0.0 }
}
-- 所有的区块
blocks = { 20145 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = 0.0, z = 0.0 }, max = { x = 700.0, z = 700.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }

View File

@@ -0,0 +1,270 @@
{
"sceneId": 20145,
"routes": [
{
"localId": 1,
"name": "Route_001",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 455.415924,
"y": 68.44801,
"z": 503.2296
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 454.144226,
"y": 68.45088,
"z": 499.751038
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 454.4415,
"y": 68.45027,
"z": 496.213348
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 455.2419,
"y": 68.44754,
"z": 493.6433
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 457.151855,
"y": 68.47289,
"z": 491.418243
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 459.5773,
"y": 68.4270859,
"z": 489.944519
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 462.0489,
"y": 68.44755,
"z": 489.737457
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 464.378174,
"y": 68.4479752,
"z": 490.067383
},
"waitTime": 3.0,
"speedLevel": 1
}
]
},
{
"localId": 2,
"name": "Route_002",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 469.433075,
"y": 68.49588,
"z": 494.034363
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 470.973938,
"y": 68.4372,
"z": 495.96637
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 471.23764,
"y": 68.455864,
"z": 498.512817
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 470.667542,
"y": 68.43843,
"z": 500.806152
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 469.037354,
"y": 68.42989,
"z": 503.1116
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 467.0839,
"y": 68.43817,
"z": 504.903564
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 463.9641,
"y": 68.45719,
"z": 505.957825
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 460.6491,
"y": 68.48798,
"z": 505.4935
},
"waitTime": 3.0,
"speedLevel": 1
}
]
},
{
"localId": 3,
"name": "Route_003",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 525.7181,
"y": 94.33849,
"z": 555.6013
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 526.308533,
"y": 93.95447,
"z": 560.2324
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 522.538269,
"y": 93.80468,
"z": 559.596252
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 525.19165,
"y": 93.53077,
"z": 563.7991
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 520.0748,
"y": 93.08891,
"z": 563.137939
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 523.1785,
"y": 92.27551,
"z": 567.0468
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 517.956,
"y": 90.91207,
"z": 570.534668
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 522.827332,
"y": 90.18503,
"z": 576.4396
},
"waitTime": 3.0,
"speedLevel": 1
}
]
},
{
"localId": 4,
"name": "Route_004",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 458.238251,
"y": 117.845825,
"z": 504.9908
},
"waitTime": 0.0,
"targetVelocity": 1.0
}
]
}
]
}

View File

@@ -0,0 +1,15 @@
-- 所有的group
groups = {
{ id = 220145001, refresh_id = 1001, pos = { x = 469.904, y = 68.326, z = 501.731 } },
{ id = 220145002, pos = { x = 422.966, y = 49.345, z = 512.095 } },
{ id = 220145003, pos = { x = 422.966, y = 49.345, z = 512.095 } },
{ id = 220145005, refresh_id = 1001, pos = { x = 462.511, y = 68.449, z = 500.946 } },
{ id = 220145006, refresh_id = 1, pos = { x = 459.926, y = 68.449, z = 503.841 } },
{ id = 220145007, refresh_id = 1, pos = { x = 458.367, y = 68.453, z = 499.535 } },
{ id = 220145008, refresh_id = 1001, pos = { x = 518.157, y = 135.937, z = 435.570 } },
{ id = 220145009, refresh_id = 1001, pos = { x = 539.643, y = 95.011, z = 547.877 } },
{ id = 220145010, refresh_id = 1001, pos = { x = 532.616, y = 94.597, z = 539.095 } },
{ id = 220145011, refresh_id = 1001, pos = { x = 488.289, y = 145.167, z = 425.177 } },
{ id = 220145014, pos = { x = 430.333, y = 69.751, z = 481.512 } },
{ id = 220145015, refresh_id = 99999, pos = { x = 482.358, y = 98.347, z = 521.892 } }
}

View File

@@ -0,0 +1,4 @@
dummy_points = {
["Q7306913"] = { pos = { x = 830.075, y = 68.181, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q7306913_2"] = { pos = { x = 423.287, y = 69.729, z = 475.557 }, rot = { x = 0.000, y = 0.000, z = 0.000 } }
}

View File

@@ -0,0 +1,261 @@
-- 基础信息
local base_info = {
group_id = 220145001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1025, monster_id = 26090201, pos = { x = 456.959, y = 97.483, z = 557.131 }, rot = { x = 0.000, y = 8.748, z = 0.000 }, level = 1, pose_id = 104 },
{ config_id = 1026, monster_id = 26090201, pos = { x = 456.361, y = 97.026, z = 547.775 }, rot = { x = 0.000, y = 93.065, z = 0.000 }, level = 1, pose_id = 105 },
{ config_id = 1027, monster_id = 26090201, pos = { x = 452.135, y = 97.138, z = 555.159 }, rot = { x = 0.000, y = 266.995, z = 0.000 }, level = 1, pose_id = 102 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70350456, pos = { x = 474.568, y = 115.925, z = 504.315 }, rot = { x = 3.228, y = 280.642, z = 359.777 }, level = 1 },
{ config_id = 1002, gadget_id = 70350456, pos = { x = 449.028, y = 115.632, z = 514.803 }, rot = { x = 0.000, y = 307.027, z = 0.000 }, level = 1 },
-- 最终操作台
{ config_id = 1003, gadget_id = 70290526, pos = { x = 485.338, y = 116.947, z = 498.889 }, rot = { x = 0.000, y = 57.558, z = 0.000 }, level = 1, worktop_config = { init_options = { 91 } } },
{ config_id = 1004, gadget_id = 70350456, pos = { x = 451.555, y = 141.718, z = 484.816 }, rot = { x = 0.629, y = 289.139, z = 0.000 }, level = 1 },
{ config_id = 1005, gadget_id = 70950047, pos = { x = 443.766, y = 103.355, z = 445.645 }, rot = { x = 0.000, y = 330.903, z = 0.000 }, level = 1 },
{ config_id = 1006, gadget_id = 70220103, pos = { x = 441.305, y = 146.880, z = 497.548 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1008, gadget_id = 70210101, pos = { x = 467.352, y = 68.100, z = 516.863 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜通用须弥", isOneoff = true, persistent = true },
{ config_id = 1009, gadget_id = 70310198, pos = { x = 457.879, y = 97.125, z = 560.598 }, rot = { x = 0.000, y = 218.622, z = 0.000 }, level = 1 },
-- 罩子+光桥操作台
{ config_id = 1010, gadget_id = 70290526, pos = { x = 439.490, y = 115.516, z = 525.406 }, rot = { x = 0.000, y = 279.782, z = 0.000 }, level = 1, worktop_config = { init_options = { 91 } } },
{ config_id = 1011, gadget_id = 70950047, pos = { x = 429.418, y = 102.033, z = 454.855 }, rot = { x = 0.000, y = 315.326, z = 0.000 }, level = 1 },
{ config_id = 1013, gadget_id = 70290520, pos = { x = 456.676, y = 113.820, z = 509.384 }, rot = { x = 0.000, y = 347.471, z = 0.000 }, level = 1 },
{ config_id = 1014, gadget_id = 70290520, pos = { x = 465.353, y = 114.206, z = 506.673 }, rot = { x = 5.560, y = 56.569, z = 355.500 }, level = 1 },
{ config_id = 1015, gadget_id = 70290520, pos = { x = 461.073, y = 114.326, z = 506.312 }, rot = { x = 0.000, y = 39.075, z = 0.000 }, level = 1 },
{ config_id = 1018, gadget_id = 70210101, pos = { x = 466.762, y = 68.100, z = 529.118 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜通用须弥", isOneoff = true, persistent = true },
{ config_id = 1019, gadget_id = 70210101, pos = { x = 448.129, y = 95.881, z = 532.208 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜通用须弥", isOneoff = true, persistent = true },
{ config_id = 1021, gadget_id = 70290482, pos = { x = 489.674, y = 120.743, z = 499.365 }, rot = { x = 0.000, y = 121.011, z = 0.000 }, level = 1 },
{ config_id = 1023, gadget_id = 70220103, pos = { x = 461.558, y = 135.140, z = 500.063 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1028, gadget_id = 70210101, pos = { x = 449.392, y = 96.861, z = 554.622 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜通用须弥", isOneoff = true, persistent = true },
{ config_id = 1030, gadget_id = 70290574, pos = { x = 609.670, y = 137.600, z = 671.620 }, rot = { x = 0.000, y = 359.783, z = 0.000 }, level = 1 },
{ config_id = 1033, gadget_id = 70950047, pos = { x = 444.977, y = 141.591, z = 487.151 }, rot = { x = 0.000, y = 16.128, z = 0.000 }, level = 1 },
{ config_id = 1034, gadget_id = 70950047, pos = { x = 460.216, y = 141.750, z = 481.898 }, rot = { x = 0.000, y = 16.128, z = 0.000 }, level = 1 },
{ config_id = 1044, gadget_id = 70211001, pos = { x = 515.784, y = 89.594, z = 587.984 }, rot = { x = 0.000, y = 123.734, z = 0.000 }, level = 1, drop_tag = "战斗低级须弥", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 最终操作台
{ config_id = 1001007, name = "SELECT_OPTION_1007", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1007", action = "action_EVENT_SELECT_OPTION_1007", trigger_count = 0 },
-- 创建琥珀门目标点
{ config_id = 1001020, name = "VARIABLE_CHANGE_1020", event = EventType.EVENT_VARIABLE_CHANGE, source = "KeyNum", condition = "condition_EVENT_VARIABLE_CHANGE_1020", action = "action_EVENT_VARIABLE_CHANGE_1020" },
-- 罩子+光桥操作台
{ config_id = 1001031, name = "SELECT_OPTION_1031", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1031", action = "action_EVENT_SELECT_OPTION_1031", trigger_count = 0 },
-- 打碎可破坏藤蔓
{ config_id = 1001032, name = "ANY_GADGET_DIE_1032", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_1032", action = "action_EVENT_ANY_GADGET_DIE_1032" }
}
-- 变量
variables = {
{ config_id = 1, name = "KeyNum", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 1025, 1026, 1027 },
gadgets = { 1001, 1002, 1003, 1004, 1005, 1008, 1009, 1010, 1011, 1013, 1014, 1015, 1018, 1019, 1021, 1028, 1030, 1033, 1034, 1044 },
regions = { },
triggers = { "SELECT_OPTION_1007", "VARIABLE_CHANGE_1020", "SELECT_OPTION_1031", "ANY_GADGET_DIE_1032" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 1006, 1023 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_1007(context, evt)
-- 判断是gadgetid 1003 option_id 91
if 1003 ~= evt.param1 then
return false
end
if 91 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1007(context, evt)
-- 删除指定group 220145001 指定config1003物件身上指定option91
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220145001, 1003, 91) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 1003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220145001, 3)
-- 触发镜头注目,注目位置为坐标{x=449.3602, y=149.2858, z=495.1671}持续时间为3秒并且为强制注目形式不广播其他玩家
local pos = {x=449.3602, y=149.2858, z=495.1671}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, 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
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1020(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"KeyNum"为3
if ScriptLib.GetGroupVariableValue(context, "KeyNum") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1020(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220145007, 2)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1031(context, evt)
-- 判断是gadgetid 1010 option_id 91
if 1010 ~= evt.param1 then
return false
end
if 91 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1031(context, evt)
-- 删除指定group 220145001 指定config1010物件身上指定option91
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220145001, 1010, 91) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
ScriptLib.SetGadgetStateByConfigId(context, 1001, GadgetState.GearStart)
ScriptLib.SetGadgetStateByConfigId(context, 1002, GadgetState.GearStart)
ScriptLib.SetGadgetStateByConfigId(context, 1004, GadgetState.GearStart)
-- 触发镜头注目,注目位置为坐标{x=461.0726, y=114.3255, z=506.3117}持续时间为3秒并且为强制注目形式不广播其他玩家
local pos = {x=461.0726, y=114.3255, z=506.3117}
local pos_follow = {x=438.21, y=121.03, z=524.16}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 3, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = true, is_abs_follow_pos = true, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
disable_protect = 1, blend_type = 1, blend_duration = 0,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
-- 将configid为 1010 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1010, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_1032(context, evt)
if 1021 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_1032(context, evt)
-- 调用提示id为 33010126 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 33010126) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end

View File

@@ -0,0 +1,219 @@
-- 基础信息
local base_info = {
group_id = 220145002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 2号门
{ config_id = 2001, gadget_id = 70330236, pos = { x = 475.154, y = 68.926, z = 530.600 }, rot = { x = 0.000, y = 244.564, z = 0.000 }, level = 27, persistent = true },
-- 1号门
{ config_id = 2002, gadget_id = 70330236, pos = { x = 490.245, y = 97.138, z = 507.644 }, rot = { x = 0.000, y = 279.255, z = 0.000 }, level = 27, persistent = true },
-- 1号门trigger 下面参数为传送后坐标
{ config_id = 2003, gadget_id = 70290264, pos = { x = 490.245, y = 97.346, z = 507.644 }, rot = { x = 0.000, y = 279.255, z = 0.000 }, level = 33 },
-- 2号门trigger 下面参数为传送后坐标
{ config_id = 2004, gadget_id = 70290264, pos = { x = 475.154, y = 68.926, z = 530.600 }, rot = { x = 0.000, y = 244.564, z = 0.000 }, level = 27 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 2号门成功时注目
{ config_id = 1002005, name = "GADGET_STATE_CHANGE_2005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2005", action = "action_EVENT_GADGET_STATE_CHANGE_2005" },
-- 1号门触发
{ config_id = 1002006, name = "GADGET_STATE_CHANGE_2006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2006", action = "action_EVENT_GADGET_STATE_CHANGE_2006", trigger_count = 0 },
-- 2号门触发
{ 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", trigger_count = 0 },
-- 1号门成功时注目
{ config_id = 1002008, name = "GADGET_STATE_CHANGE_2008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2008", action = "action_EVENT_GADGET_STATE_CHANGE_2008" }
}
-- 变量
variables = {
{ config_id = 1, name = "first", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2002 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_2005", "GADGET_STATE_CHANGE_2006", "GADGET_STATE_CHANGE_2007", "GADGET_STATE_CHANGE_2008" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 2001, 2002, 2003, 2004 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_2005", "GADGET_STATE_CHANGE_2006", "GADGET_STATE_CHANGE_2007", "GADGET_STATE_CHANGE_2008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2005(context, evt)
if 2001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
-- 判断变量"first"为0
if ScriptLib.GetGroupVariableValue(context, "first") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2005(context, evt)
-- 触发镜头注目,注目位置为坐标{x=475.1537, y=68.92616, z=530.6}持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=475.1537, y=68.92616, z=530.6}
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_GADGET_STATE_CHANGE_2006(context, evt)
if 2001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2006(context, evt)
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220145002, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
-- 将configid为 2002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将本组内变量名为 "first" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "first", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2007(context, evt)
if 2002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2007(context, evt)
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220145002, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
-- 将configid为 2001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将本组内变量名为 "first" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "first", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2008(context, evt)
if 2002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
-- 判断变量"first"为0
if ScriptLib.GetGroupVariableValue(context, "first") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2008(context, evt)
-- 触发镜头注目,注目位置为坐标{x=490.2454, y=97.138, z=507.6439}持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=490.2454, y=97.138, z=507.6439}
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

View File

@@ -0,0 +1,219 @@
-- 基础信息
local base_info = {
group_id = 220145003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 2号门
{ config_id = 3001, gadget_id = 70330236, pos = { x = 426.274, y = 116.326, z = 533.742 }, rot = { x = 0.000, y = 111.838, z = 0.000 }, level = 27, persistent = true },
-- 1号门
{ config_id = 3002, gadget_id = 70330236, pos = { x = 574.626, y = 93.130, z = 512.281 }, rot = { x = 0.000, y = 332.374, z = 0.000 }, level = 27, persistent = true },
-- 1号门trigger 下面参数为传送后坐标
{ config_id = 3003, gadget_id = 70290264, pos = { x = 574.626, y = 93.130, z = 512.281 }, rot = { x = 0.000, y = 332.374, z = 0.000 }, level = 33 },
-- 2号门trigger 下面参数为传送后坐标
{ config_id = 3004, gadget_id = 70290264, pos = { x = 426.274, y = 116.326, z = 533.742 }, rot = { x = 0.000, y = 111.838, z = 0.000 }, level = 27 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 2号门成功时注目
{ config_id = 1003005, name = "GADGET_STATE_CHANGE_3005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_3005", action = "action_EVENT_GADGET_STATE_CHANGE_3005" },
-- 1号门触发
{ config_id = 1003006, name = "GADGET_STATE_CHANGE_3006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_3006", action = "action_EVENT_GADGET_STATE_CHANGE_3006", trigger_count = 0 },
-- 2号门触发
{ config_id = 1003007, name = "GADGET_STATE_CHANGE_3007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_3007", action = "action_EVENT_GADGET_STATE_CHANGE_3007", trigger_count = 0 },
-- 1号门成功时注目
{ config_id = 1003008, name = "GADGET_STATE_CHANGE_3008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_3008", action = "action_EVENT_GADGET_STATE_CHANGE_3008" }
}
-- 变量
variables = {
{ config_id = 1, name = "first", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001, 3002 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_3005", "GADGET_STATE_CHANGE_3006", "GADGET_STATE_CHANGE_3007", "GADGET_STATE_CHANGE_3008" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 3001, 3002, 3003, 3004 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_3005", "GADGET_STATE_CHANGE_3006", "GADGET_STATE_CHANGE_3007", "GADGET_STATE_CHANGE_3008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_3005(context, evt)
if 3001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
-- 判断变量"first"为0
if ScriptLib.GetGroupVariableValue(context, "first") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_3005(context, evt)
-- 触发镜头注目,注目位置为坐标{x=433.1534, y=115.5686, z=528.8632}持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=433.1534, y=115.5686, z=528.8632}
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_GADGET_STATE_CHANGE_3006(context, evt)
if 3001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_3006(context, evt)
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220145003, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
-- 将configid为 3002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将本组内变量名为 "first" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "first", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_3007(context, evt)
if 3002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_3007(context, evt)
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220145003, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
-- 将configid为 3001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将本组内变量名为 "first" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "first", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_3008(context, evt)
if 3002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
-- 判断变量"first"为0
if ScriptLib.GetGroupVariableValue(context, "first") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_3008(context, evt)
-- 触发镜头注目,注目位置为坐标{x=574.626, y=93.13, z=512.2806}持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=574.626, y=93.13, z=512.2806}
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

View File

@@ -0,0 +1,177 @@
-- 基础信息
local base_info = {
group_id = 220145005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 5002, monster_id = 26090701, pos = { x = 460.475, y = 68.446, z = 494.635 }, rot = { x = 0.000, y = 2.879, z = 0.000 }, level = 1, pose_id = 102 },
{ config_id = 5003, monster_id = 26090901, pos = { x = 462.399, y = 68.449, z = 502.752 }, rot = { x = 0.000, y = 192.775, z = 0.000 }, level = 1, pose_id = 102 },
{ config_id = 5004, monster_id = 26090501, pos = { x = 455.893, y = 68.446, z = 503.921 }, rot = { x = 0.000, y = 136.089, z = 0.000 }, level = 1, pose_id = 102 },
{ config_id = 5006, monster_id = 26090401, pos = { x = 467.649, y = 68.446, z = 491.909 }, rot = { x = 0.000, y = 323.391, z = 0.000 }, level = 1, pose_id = 102 },
{ config_id = 5007, monster_id = 26090101, pos = { x = 466.148, y = 68.444, z = 496.612 }, rot = { x = 0.000, y = 300.973, z = 0.000 }, level = 1, pose_id = 102 },
{ config_id = 5008, monster_id = 26090101, pos = { x = 457.589, y = 68.447, z = 499.293 }, rot = { x = 0.000, y = 120.950, z = 0.000 }, level = 1, pose_id = 102 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5001, gadget_id = 70290484, pos = { x = 462.018, y = 68.435, z = 498.830 }, rot = { x = 0.000, y = 28.785, z = 0.000 }, level = 1 },
{ config_id = 5005, gadget_id = 70290508, pos = { x = 462.018, y = 68.435, z = 498.830 }, rot = { x = 0.000, y = 28.785, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_NORMAL },
{ config_id = 5011, gadget_id = 70360001, pos = { x = 462.080, y = 68.561, z = 498.809 }, rot = { x = 0.000, y = 28.785, z = 0.000 }, level = 1, worktop_config = { init_options = { 220 } } },
{ config_id = 5012, gadget_id = 70900201, pos = { x = 462.018, y = 70.553, z = 498.830 }, rot = { x = 0.000, y = 28.785, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1005009, name = "ANY_MONSTER_DIE_5009", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_5009", action = "action_EVENT_ANY_MONSTER_DIE_5009" },
{ config_id = 1005010, name = "SELECT_OPTION_5010", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5010", action = "action_EVENT_SELECT_OPTION_5010" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 5002, 5003, 5004, 5006, 5007, 5008 },
gadgets = { 5001, 5005, 5012 },
regions = { },
triggers = { "ANY_MONSTER_DIE_5009", "SELECT_OPTION_5010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 5011 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_5009(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_5009(context, evt)
-- 将configid为 5001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标{x=462.0182, y=68.43479, z=498.8304}持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=462.0182, y=68.43479, z=498.8304}
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
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220145005, 2)
-- 调用提示id为 201450101 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201450101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5010(context, evt)
-- 判断是gadgetid 5011 option_id 220
if 5011 ~= evt.param1 then
return false
end
if 220 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5010(context, evt)
-- 删除指定group 220145005 指定config5011物件身上指定option220
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220145005, 5011, 220) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 5005 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5005, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 针对当前group内变量名为 "KeyNum" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "KeyNum", 1, 220145001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 5012 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,240 @@
-- 基础信息
local base_info = {
group_id = 220145006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6001, gadget_id = 70290484, pos = { x = 460.167, y = 95.733, z = 535.074 }, rot = { x = 0.000, y = 172.706, z = 0.000 }, level = 1 },
{ config_id = 6002, gadget_id = 70290508, pos = { x = 460.167, y = 95.733, z = 535.074 }, rot = { x = 0.000, y = 172.706, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_NORMAL },
{ config_id = 6003, gadget_id = 70310200, pos = { x = 462.677, y = 100.000, z = 539.320 }, rot = { x = 0.000, y = 307.820, z = 0.000 }, level = 1 },
{ config_id = 6004, gadget_id = 70310200, pos = { x = 454.947, y = 100.000, z = 536.607 }, rot = { x = 0.000, y = 19.242, z = 0.000 }, level = 1 },
{ config_id = 6009, gadget_id = 70360001, pos = { x = 460.167, y = 95.733, z = 535.074 }, rot = { x = 0.000, y = 172.706, z = 0.000 }, level = 1, worktop_config = { init_options = { 220 } } },
{ config_id = 6010, gadget_id = 70900201, pos = { x = 460.167, y = 98.389, z = 535.074 }, rot = { x = 0.000, y = 172.706, z = 0.000 }, level = 1 },
{ config_id = 6011, gadget_id = 70310200, pos = { x = 460.555, y = 102.405, z = 530.402 }, rot = { x = 0.000, y = 346.170, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1006005, name = "GADGET_STATE_CHANGE_6005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_6005", action = "action_EVENT_GADGET_STATE_CHANGE_6005", trigger_count = 0 },
{ config_id = 1006006, name = "GADGET_STATE_CHANGE_6006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_6006", action = "action_EVENT_GADGET_STATE_CHANGE_6006", trigger_count = 0 },
{ config_id = 1006007, name = "VARIABLE_CHANGE_6007", event = EventType.EVENT_VARIABLE_CHANGE, source = "sum", condition = "condition_EVENT_VARIABLE_CHANGE_6007", action = "action_EVENT_VARIABLE_CHANGE_6007", trigger_count = 0 },
{ config_id = 1006008, name = "SELECT_OPTION_6008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6008", action = "action_EVENT_SELECT_OPTION_6008", trigger_count = 0 },
{ config_id = 1006012, name = "GADGET_STATE_CHANGE_6012", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_6012", action = "action_EVENT_GADGET_STATE_CHANGE_6012", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "sum", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6001, 6002, 6003, 6004, 6010, 6011 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_6005", "GADGET_STATE_CHANGE_6006", "VARIABLE_CHANGE_6007", "SELECT_OPTION_6008", "GADGET_STATE_CHANGE_6012" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 6009 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_6005(context, evt)
if 6003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_6005(context, evt)
-- 针对当前group内变量名为 "sum" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "sum", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_6006(context, evt)
if 6004 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_6006(context, evt)
-- 针对当前group内变量名为 "sum" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "sum", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_6007(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"sum"为3
if ScriptLib.GetGroupVariableValue(context, "sum") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_6007(context, evt)
-- 将configid为 6001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标{x=460.5, y=96.39041, z=534.6149}持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=460.5, y=96.39041, z=534.6149}
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
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220145006, 2)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_6008(context, evt)
-- 判断是gadgetid 6009 option_id 220
if 6009 ~= evt.param1 then
return false
end
if 220 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6008(context, evt)
-- 删除指定group 220145006 指定config6009物件身上指定option220
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220145006, 6009, 220) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 6002 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6002, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 针对当前group内变量名为 "KeyNum" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "KeyNum", 1, 220145001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 6010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 调用提示id为 -993956595 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, -993956595) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_6012(context, evt)
if 6011 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_6012(context, evt)
-- 针对当前group内变量名为 "sum" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "sum", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end

View File

@@ -0,0 +1,203 @@
-- 基础信息
local base_info = {
group_id = 220145007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7001, gadget_id = 70290506, pos = { x = 468.440, y = 143.207, z = 475.310 }, rot = { x = 0.000, y = 346.715, z = 0.000 }, level = 1 },
{ config_id = 7002, gadget_id = 70290508, pos = { x = 494.593, y = 118.479, z = 497.447 }, rot = { x = 0.000, y = 291.380, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_NORMAL },
{ config_id = 7003, gadget_id = 70900201, pos = { x = 494.593, y = 120.536, z = 497.447 }, rot = { x = 0.000, y = 291.380, z = 0.000 }, level = 1 },
{ config_id = 7007, gadget_id = 70360001, pos = { x = 494.593, y = 118.584, z = 497.447 }, rot = { x = 0.000, y = 329.152, z = 0.000 }, level = 1, worktop_config = { init_options = { 220 } } },
{ config_id = 7008, gadget_id = 70900201, pos = { x = 468.208, y = 148.374, z = 476.074 }, rot = { x = 0.000, y = 329.152, z = 0.000 }, level = 1 },
-- 琥珀门
{ config_id = 7009, gadget_id = 70360001, pos = { x = 468.301, y = 144.387, z = 476.130 }, rot = { x = 0.000, y = 329.152, z = 0.000 }, level = 1, worktop_config = { init_options = { 769 } } }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1007004, name = "GADGET_STATE_CHANGE_7004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_7004", action = "action_EVENT_GADGET_STATE_CHANGE_7004" },
{ config_id = 1007005, name = "SELECT_OPTION_7005", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_7005", action = "action_EVENT_SELECT_OPTION_7005" },
{ config_id = 1007006, name = "SELECT_OPTION_7006", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_7006", action = "action_EVENT_SELECT_OPTION_7006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7001, 7002, 7003, 7007 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_7004", "SELECT_OPTION_7005", "SELECT_OPTION_7006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 7008 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 7009 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_7004(context, evt)
if 7001 ~= evt.param2 or GadgetState.Action03 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_7004(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220145007, 3)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_7005(context, evt)
-- 判断是gadgetid 7007 option_id 220
if 7007 ~= evt.param1 then
return false
end
if 220 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_7005(context, evt)
-- 删除指定group 220145007 指定config7007物件身上指定option220
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220145007, 7007, 220) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 7002 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7002, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 针对当前group内变量名为 "KeyNum" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "KeyNum", 1, 220145001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 7003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_7006(context, evt)
-- 判断是gadgetid 7009 option_id 769
if 7009 ~= evt.param1 then
return false
end
if 769 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_7006(context, evt)
-- 删除指定group 220145007 指定config7009物件身上指定option769
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220145007, 7009, 769) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 7001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 7008 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220145011, 2)
return 0
end

View File

@@ -0,0 +1,123 @@
-- 基础信息
local base_info = {
group_id = 220145008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 8021, monster_id = 26120301, pos = { x = 476.029, y = 145.013, z = 422.356 }, rot = { x = 0.000, y = 105.331, z = 0.000 }, level = 1, disableWander = true, pose_id = 101, title_id = 10125, special_name_id = 10177 },
{ config_id = 8022, monster_id = 26120301, pos = { x = 493.518, y = 145.529, z = 419.347 }, rot = { x = 0.000, y = 282.915, z = 0.000 }, level = 1, disableWander = true, pose_id = 101, title_id = 10125, special_name_id = 10177 },
{ config_id = 8023, monster_id = 26090201, pos = { x = 475.402, y = 145.020, z = 418.397 }, rot = { x = 0.000, y = 92.634, z = 0.000 }, level = 1, disableWander = true, pose_id = 105 },
{ config_id = 8024, monster_id = 26090201, pos = { x = 493.873, y = 144.856, z = 421.695 }, rot = { x = 0.000, y = 253.103, z = 0.000 }, level = 1, disableWander = true, pose_id = 105 },
{ config_id = 8025, monster_id = 26090201, pos = { x = 477.838, y = 145.075, z = 425.132 }, rot = { x = 0.000, y = 117.610, z = 0.000 }, level = 1, disableWander = true, pose_id = 105 },
{ config_id = 8026, monster_id = 26090201, pos = { x = 492.946, y = 144.983, z = 416.257 }, rot = { x = 0.000, y = 275.833, z = 0.000 }, level = 1, disableWander = true, pose_id = 105 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1008027, name = "ANY_MONSTER_DIE_8027", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_8027", action = "action_EVENT_ANY_MONSTER_DIE_8027" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_8027" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 8021, 8022, 8023, 8024, 8025, 8026 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_8027(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_8027(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "7306913") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 调用提示id为 33010135 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 33010135) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end

View File

@@ -0,0 +1,103 @@
-- 基础信息
local base_info = {
group_id = 220145009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 9002, monster_id = 26090701, pos = { x = 535.995, y = 94.862, z = 548.054 }, rot = { x = 0.000, y = 106.485, z = 0.000 }, level = 1, pose_id = 104 },
{ config_id = 9003, monster_id = 26090901, pos = { x = 539.887, y = 94.855, z = 545.304 }, rot = { x = 0.000, y = 336.588, z = 0.000 }, level = 1, pose_id = 104 },
{ config_id = 9004, monster_id = 26090801, pos = { x = 537.518, y = 94.739, z = 544.364 }, rot = { x = 0.000, y = 10.624, z = 0.000 }, level = 1, pose_id = 104 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9001, gadget_id = 70211002, pos = { x = 538.280, y = 94.903, z = 546.914 }, rot = { x = 0.000, y = 192.115, z = 0.000 }, level = 1, drop_tag = "战斗低级须弥", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1009005, name = "ANY_MONSTER_DIE_9005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_9005", action = "action_EVENT_ANY_MONSTER_DIE_9005" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 9002, 9003, 9004 },
gadgets = { 9001 },
regions = { },
triggers = { "ANY_MONSTER_DIE_9005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_9005(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_9005(context, evt)
-- 将configid为 9001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 调用提示id为 33010119 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 33010119) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end

View File

@@ -0,0 +1,109 @@
-- 基础信息
local base_info = {
group_id = 220145010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 10001, monster_id = 26090401, pos = { x = 525.651, y = 94.359, z = 555.406 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 101 },
{ config_id = 10002, monster_id = 26090201, pos = { x = 520.183, y = 89.646, z = 587.890 }, rot = { x = 0.000, y = 298.233, z = 0.000 }, level = 1, pose_id = 105 },
{ config_id = 10003, monster_id = 26090201, pos = { x = 517.217, y = 89.630, z = 583.630 }, rot = { x = 0.000, y = 42.363, z = 0.000 }, level = 1, pose_id = 105 },
{ config_id = 10005, monster_id = 26090501, pos = { x = 565.231, y = 92.030, z = 527.480 }, rot = { x = 0.000, y = 193.440, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
{ config_id = 10006, monster_id = 26090501, pos = { x = 568.388, y = 92.084, z = 521.080 }, rot = { x = 0.000, y = 299.765, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
{ config_id = 10007, monster_id = 26090501, pos = { x = 561.099, y = 92.048, z = 520.497 }, rot = { x = 0.000, y = 51.448, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10008, gadget_id = 70210101, pos = { x = 528.988, y = 94.104, z = 556.417 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜通用须弥", isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 10004, shape = RegionShape.SPHERE, radius = 10, pos = { x = 568.801, y = 92.074, z = 520.748 } }
}
-- 触发器
triggers = {
{ config_id = 1010004, name = "ENTER_REGION_10004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10004", action = "action_EVENT_ENTER_REGION_10004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 10001, 10002, 10003 },
gadgets = { 10008 },
regions = { 10004 },
triggers = { "ENTER_REGION_10004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 10005, 10006, 10007 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_10004(context, evt)
if evt.param1 ~= 10004 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_10004(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220145010, 2)
return 0
end

View File

@@ -0,0 +1,174 @@
-- 基础信息
local base_info = {
group_id = 220145011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 11001, monster_id = 26120301, pos = { x = 485.944, y = 144.796, z = 414.356 }, rot = { x = 0.000, y = 347.379, z = 0.000 }, level = 1, pose_id = 101, title_id = 10125, special_name_id = 10177 },
{ config_id = 11003, monster_id = 26090201, pos = { x = 477.895, y = 145.002, z = 413.175 }, rot = { x = 0.000, y = 24.420, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
{ config_id = 11004, monster_id = 26090201, pos = { x = 492.506, y = 145.223, z = 418.023 }, rot = { x = 0.000, y = 299.257, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
{ config_id = 11005, monster_id = 26090401, pos = { x = 490.463, y = 144.729, z = 429.395 }, rot = { x = 0.000, y = 208.010, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
{ config_id = 11006, monster_id = 26090401, pos = { x = 474.099, y = 144.922, z = 422.945 }, rot = { x = 0.000, y = 100.912, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1011002, name = "MONSTER_BATTLE_11002", event = EventType.EVENT_MONSTER_BATTLE, source = "", condition = "condition_EVENT_MONSTER_BATTLE_11002", action = "action_EVENT_MONSTER_BATTLE_11002" },
{ config_id = 1011007, name = "ANY_MONSTER_DIE_11007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_11007", action = "action_EVENT_ANY_MONSTER_DIE_11007" },
{ config_id = 1011008, name = "ANY_MONSTER_DIE_11008", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_11008", action = "action_EVENT_ANY_MONSTER_DIE_11008" }
}
-- 变量
variables = {
{ config_id = 1, name = "MonsterWave", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_11007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 11001 },
gadgets = { },
regions = { },
triggers = { "MONSTER_BATTLE_11002", "ANY_MONSTER_DIE_11008" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 11003, 11004, 11005, 11006 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_MONSTER_BATTLE_11002(context, evt)
if 11001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_MONSTER_BATTLE_11002(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220145011, 3)
-- 将本组内变量名为 "MonsterWave" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "MonsterWave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_11007(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"MonsterWave"为1
if ScriptLib.GetGroupVariableValue(context, "MonsterWave") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_11007(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220145008, 2)
-- 针对当前group内变量名为 "MonsterWave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "MonsterWave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_11008(context, evt)
-- 判断变量"MonsterWave"为0
if ScriptLib.GetGroupVariableValue(context, "MonsterWave") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_11008(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220145011, 3)
-- 将本组内变量名为 "MonsterWave" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "MonsterWave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end

View File

@@ -0,0 +1,234 @@
-- 基础信息
local base_info = {
group_id = 220145014
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 14001, shape = RegionShape.POLYGON, pos = { x = 437.252, y = 70.983, z = 488.207 }, height = 41.966, point_array = { { x = 427.483, y = 502.467 }, { x = 435.318, y = 498.815 }, { x = 447.020, y = 473.947 }, { x = 440.973, y = 475.202 } } },
{ config_id = 14002, shape = RegionShape.SPHERE, radius = 10, pos = { x = 473.422, y = 67.529, z = 530.518 } },
{ config_id = 14003, shape = RegionShape.POLYGON, pos = { x = 482.624, y = 100.000, z = 514.719 }, height = 10.000, point_array = { { x = 491.979, y = 509.562 }, { x = 481.477, y = 501.933 }, { x = 473.269, y = 515.268 }, { x = 478.176, y = 527.505 }, { x = 484.759, y = 526.171 } } },
{ config_id = 14004, shape = RegionShape.SPHERE, radius = 15, pos = { x = 533.826, y = 94.459, z = 536.648 } },
{ config_id = 14006, shape = RegionShape.SPHERE, radius = 11, pos = { x = 467.668, y = 141.901, z = 476.696 } },
{ config_id = 14007, shape = RegionShape.SPHERE, radius = 15, pos = { x = 570.928, y = 92.078, z = 520.141 } }
}
-- 触发器
triggers = {
{ config_id = 1014001, name = "ENTER_REGION_14001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14001", action = "action_EVENT_ENTER_REGION_14001" },
{ config_id = 1014002, name = "ENTER_REGION_14002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14002", action = "action_EVENT_ENTER_REGION_14002" },
{ config_id = 1014003, name = "ENTER_REGION_14003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14003", action = "action_EVENT_ENTER_REGION_14003" },
{ config_id = 1014004, name = "ENTER_REGION_14004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14004", action = "action_EVENT_ENTER_REGION_14004" },
{ config_id = 1014006, name = "ENTER_REGION_14006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14006", action = "action_EVENT_ENTER_REGION_14006" },
{ config_id = 1014007, name = "ENTER_REGION_14007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14007", action = "action_EVENT_ENTER_REGION_14007" }
}
-- 变量
variables = {
{ config_id = 1, name = "RmdFlag", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 14001, 14002, 14003, 14004, 14006, 14007 },
triggers = { "ENTER_REGION_14001", "ENTER_REGION_14002", "ENTER_REGION_14003", "ENTER_REGION_14004", "ENTER_REGION_14006", "ENTER_REGION_14007" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_14001(context, evt)
if evt.param1 ~= 14001 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_14001(context, evt)
-- 调用提示id为 33010097 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 33010097) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_14002(context, evt)
if evt.param1 ~= 14002 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_14002(context, evt)
-- 调用提示id为 33010198 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 33010198) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_14003(context, evt)
if evt.param1 ~= 14003 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_14003(context, evt)
-- 调用提示id为 -993957095 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, -993957095) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_14004(context, evt)
if evt.param1 ~= 14004 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_14004(context, evt)
-- 触发镜头注目,注目位置为坐标{x=542.9449, y=110.9799, z=554.0987}持续时间为3秒并且为强制注目形式不广播其他玩家
local pos = {x=542.9449, y=110.9799, z=554.0987}
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
-- 调用提示id为 33010118 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 33010118) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_14006(context, evt)
if evt.param1 ~= 14006 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_14006(context, evt)
-- 调用提示id为 33010133 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 33010133) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_14007(context, evt)
if evt.param1 ~= 14007 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_14007(context, evt)
if ScriptLib.GetGroupVariableValue(context, "RmdFlag") == 0 then
ScriptLib.ShowReminder(context, 33010125)
ScriptLib.ChangeGroupVariableValue(context, "RmdFlag", 1)
elseif ScriptLib.GetGroupVariableValue(context, "RmdFlag") == 1 then
ScriptLib.ShowReminder(context, 33010129)
ScriptLib.ChangeGroupVariableValue(context, "RmdFlag", 1)
end
return 0
end

View File

@@ -0,0 +1,116 @@
-- 基础信息
local base_info = {
group_id = 220145015
}
-- Trigger变量
local defs = {
gadget_LookHookCid = 15003
}
-- DEFS_MISCS
local RequireSuite = {1}
local HookLookPlay = {
HookPoint = defs.gadget_LookHookCid,
Duration = 3,
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[15001] = { config_id = 15001, gadget_id = 70330229, pos = { x = 482.146, y = 98.282, z = 522.783 }, rot = { x = 0.000, y = 278.927, z = 0.000 }, level = 30, mark_flag = 3 },
[15002] = { config_id = 15002, gadget_id = 70330251, pos = { x = 470.345, y = 104.134, z = 525.932 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30, mark_flag = 3 },
[15003] = { config_id = 15003, gadget_id = 70220103, pos = { x = 470.345, y = 104.134, z = 525.932 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1015005, name = "GADGET_STATE_CHANGE_15005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_15005", action = "action_EVENT_GADGET_STATE_CHANGE_15005" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 15001, 15002 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_15005" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 15003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_15005(context, evt)
if 15001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_15005(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220145015, 2)
return 0
end
require "V3_0/HookLook"

View File

@@ -0,0 +1,85 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 489.1844,
"y": 144.6227,
"z": 409.6638
},
"rot": {
"x": 0.0,
"y": 335.3835,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.0
},
"tranPos": {
"x": 499.1558,
"y": 128.146561,
"z": 453.971069
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
},
"2": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 467.2512,
"y": 142.3849,
"z": 479.5869
},
"rot": {
"x": 0.0,
"y": 163.6786,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 20.0,
"z": 20.0
},
"tranPos": {
"x": 467.04068,
"y": 142.384949,
"z": 479.991882
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}