添加配置表

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,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -200.0, z = -200.0 },
size = { x = 500.0, z = 400.0 },
born_pos = { x = 60.371, y = 0.000, z = 99.944 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
die_y = -20,
city_id = 102,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 20142 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -200.0, z = -200.0 }, max = { x = 300.0, z = 200.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { }
@@ -0,0 +1,16 @@
-- 所有的group
groups = {
{ id = 220142001, pos = { x = 64.005, y = 0.723, z = 96.907 }, business = { type = 2 } },
{ id = 220142002, pos = { x = 86.682, y = 4.123, z = 46.785 }, business = { type = 2 } },
{ id = 220142003, pos = { x = 151.377, y = 4.123, z = 46.466 }, business = { type = 2 } },
{ id = 220142004, pos = { x = 191.549, y = -2.823, z = 51.482 }, related_level_tag_series_list = { 7 } },
{ id = 220142005, pos = { x = 79.264, y = 0.538, z = 97.476 }, related_level_tag_series_list = { 7 } },
{ id = 220142006, pos = { x = 114.940, y = 3.758, z = 48.160 }, related_level_tag_series_list = { 7 } },
{ id = 220142007, pos = { x = 116.891, y = 7.150, z = 51.005 }, related_level_tag_series_list = { 7 }, business = { type = 2 } },
{ id = 220142008, pos = { x = 172.178, y = 31.244, z = 27.522 } },
{ id = 220142009, pos = { x = 177.847, y = 5.181, z = 51.005 }, related_level_tag_series_list = { 7 }, business = { type = 2 } },
{ id = 220142010, pos = { x = 78.349, y = 2.077, z = 99.881 }, related_level_tag_series_list = { 7 } },
{ id = 220142011, pos = { x = 113.712, y = 5.424, z = 50.262 }, related_level_tag_series_list = { 7 } },
{ id = 220142012, pos = { x = 103.152, y = 4.020, z = 50.232 }, related_level_tag_series_list = { 7 }, business = { type = 2 } },
{ id = 220142013, pos = { x = 168.373, y = 27.847, z = 46.056 }, related_level_tag_series_list = { 7 }, business = { type = 2 } }
}
@@ -0,0 +1,37 @@
dummy_points = {
["guide_Q4006510"] = { pos = { x = 83.510, y = 4.020, z = 59.302 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4006511"] = { pos = { x = 101.129, y = 3.762, z = 50.489 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4006512"] = { pos = { x = 107.209, y = 7.288, z = 50.026 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["guide_Q4006513"] = { pos = { x = 150.750, y = 5.954, z = 52.674 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006501_N12646"] = { pos = { x = 171.599, y = 5.431, z = 50.075 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["Q4006505_transmit"] = { pos = { x = 62.264, y = 0.785, z = 100.040 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["Q4006506_guide"] = { pos = { x = 61.839, y = 0.785, z = 100.154 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006506_N1042"] = { pos = { x = 64.633, y = 0.723, z = 101.076 }, rot = { x = 0.000, y = 247.203, z = 0.000 } },
["Q4006507_guide"] = { pos = { x = 77.200, y = 1.330, z = 99.270 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006507_N12624"] = { pos = { x = 77.708, y = 2.077, z = 98.146 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006508_guide"] = { pos = { x = 171.319, y = 7.383, z = 34.764 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006508_N1042"] = { pos = { x = 77.693, y = 1.330, z = 101.460 }, rot = { x = 0.000, y = 250.000, z = 0.000 } },
["Q4006509_guide"] = { pos = { x = 63.527, y = 1.783, z = 103.452 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006514_guide"] = { pos = { x = 168.506, y = 30.541, z = 37.394 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006514_N1032"] = { pos = { x = 169.808, y = 30.511, z = 27.666 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["Q4006516_N12624"] = { pos = { x = 113.942, y = 5.424, z = 50.286 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006518_N12647"] = { pos = { x = 183.662, y = 9.344, z = 58.168 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["Q4006519_N12648"] = { pos = { x = 167.334, y = 19.374, z = 38.991 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4006520_guide"] = { pos = { x = 166.451, y = 14.185, z = 61.224 }, rot = { x = 0.000, y = 90.525, z = 0.000 } },
["Q4006521_guide"] = { pos = { x = 164.767, y = 27.642, z = 46.082 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["T4006503_fischl"] = { pos = { x = 64.808, y = 0.723, z = 99.800 }, rot = { x = 0.000, y = 280.000, z = 0.000 } },
["T4006503_mona"] = { pos = { x = 62.971, y = 0.785, z = 101.180 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["T4006503_oz"] = { pos = { x = 64.250, y = 0.835, z = 98.691 }, rot = { x = 0.000, y = 313.497, z = 0.000 } },
["T4006503_paimon"] = { pos = { x = 62.681, y = 0.785, z = 99.278 }, rot = { x = 0.000, y = 47.104, z = 0.000 } },
["T4006504_fischl"] = { pos = { x = 75.428, y = 1.400, z = 100.098 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["T4006504_mona"] = { pos = { x = 75.631, y = 1.316, z = 101.105 }, rot = { x = 0.000, y = 100.415, z = 0.000 } },
["T4006504_oz"] = { pos = { x = 75.911, y = 1.330, z = 99.070 }, rot = { x = 0.000, y = 45.000, z = 0.000 } },
["T4006504_paimon"] = { pos = { x = 76.158, y = 1.330, z = 101.690 }, rot = { x = 0.000, y = 120.000, z = 0.000 } },
["T4006504_player"] = { pos = { x = 76.987, y = 1.330, z = 101.988 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["T4006505_fischl"] = { pos = { x = 168.251, y = 30.511, z = 34.054 }, rot = { x = 0.000, y = 160.000, z = 0.000 } },
["T4006505_mona"] = { pos = { x = 169.464, y = 30.511, z = 34.231 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["T4006505_oz"] = { pos = { x = 167.368, y = 30.511, z = 33.656 }, rot = { x = 0.000, y = 160.000, z = 0.000 } },
["T4006505_paimon"] = { pos = { x = 165.014, y = 30.511, z = 28.845 }, rot = { x = 0.000, y = 100.000, z = 0.000 } },
["T4006505_player"] = { pos = { x = 165.592, y = 30.511, z = 30.127 }, rot = { x = 0.000, y = 120.000, z = 0.000 } },
["T4006505_xinyan"] = { pos = { x = 170.999, y = 30.511, z = 32.440 }, rot = { x = 0.000, y = 180.000, z = 0.000 } }
}
@@ -0,0 +1,337 @@
-- 基础信息
local base_info = {
group_id = 220142001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70360170, pos = { x = 63.591, y = 1.395, z = 103.454 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 1003, gadget_id = 70290137, pos = { x = 70.192, y = 0.850, z = 100.009 }, rot = { x = 0.000, y = 90.183, z = 0.000 }, level = 1, state = GadgetState.GearStart, persistent = true }
}
-- 区域
regions = {
{ config_id = 1014, shape = RegionShape.SPHERE, radius = 5, pos = { x = 64.918, y = 0.108, z = 101.612 } }
}
-- 触发器
triggers = {
{ config_id = 1001002, name = "SELECT_OPTION_1002", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "", action = "action_EVENT_SELECT_OPTION_1002", trigger_count = 0 },
{ config_id = 1001004, name = "TIME_AXIS_PASS_1004", event = EventType.EVENT_TIME_AXIS_PASS, source = "temp", condition = "", action = "action_EVENT_TIME_AXIS_PASS_1004", trigger_count = 0 },
{ config_id = 1001005, name = "TIME_AXIS_PASS_1005", event = EventType.EVENT_TIME_AXIS_PASS, source = "temp2", condition = "", action = "action_EVENT_TIME_AXIS_PASS_1005", trigger_count = 0 },
{ config_id = 1001006, name = "TIME_AXIS_PASS_1006", event = EventType.EVENT_TIME_AXIS_PASS, source = "temp3", condition = "", action = "action_EVENT_TIME_AXIS_PASS_1006", trigger_count = 0 },
{ config_id = 1001007, name = "SELECT_OPTION_1007", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "", action = "action_EVENT_SELECT_OPTION_1007", trigger_count = 0 },
{ config_id = 1001008, name = "TIME_AXIS_PASS_1008", event = EventType.EVENT_TIME_AXIS_PASS, source = "message1", condition = "", action = "action_EVENT_TIME_AXIS_PASS_1008", trigger_count = 0 },
{ config_id = 1001009, name = "QUEST_FINISH_1009", event = EventType.EVENT_QUEST_FINISH, source = "4006507", condition = "", action = "action_EVENT_QUEST_FINISH_1009", trigger_count = 0 },
{ config_id = 1001010, name = "SELECT_OPTION_1010", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1010", action = "action_EVENT_SELECT_OPTION_1010", trigger_count = 0 },
{ config_id = 1001011, name = "SELECT_OPTION_1011", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1011", action = "action_EVENT_SELECT_OPTION_1011", trigger_count = 0 },
{ config_id = 1001012, name = "SELECT_OPTION_1012", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1012", action = "action_EVENT_SELECT_OPTION_1012", trigger_count = 0 },
{ config_id = 1001013, name = "GROUP_LOAD_1013", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_1013", trigger_count = 0 },
{ config_id = 1001014, name = "ENTER_REGION_1014", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1014", action = "action_EVENT_ENTER_REGION_1014", trigger_count = 0 },
{ config_id = 1001015, name = "SELECT_OPTION_1015", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "", action = "action_EVENT_SELECT_OPTION_1015", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 2, name = "room2", value = 0, no_refresh = true },
{ config_id = 3, name = "message", value = 0, no_refresh = true },
{ config_id = 4, name = "open", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001, 1003 },
regions = { 1014 },
triggers = { "SELECT_OPTION_1002", "TIME_AXIS_PASS_1004", "TIME_AXIS_PASS_1005", "TIME_AXIS_PASS_1006", "SELECT_OPTION_1007", "TIME_AXIS_PASS_1008", "QUEST_FINISH_1009", "SELECT_OPTION_1010", "SELECT_OPTION_1011", "SELECT_OPTION_1012", "GROUP_LOAD_1013", "ENTER_REGION_1014", "SELECT_OPTION_1015" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_SELECT_OPTION_1002(context, evt)
if evt.param2 == 603 then
ScriptLib.SetGadgetStateByConfigId(context,1003, GadgetState.Default)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 1001, 603)
ScriptLib.InitTimeAxis(context, "temp", {2,7}, false)
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 then
ScriptLib.DelWorktopOptionByGroupId(context, 0, 1001, 604)
else
ScriptLib.DelWorktopOptionByGroupId(context, 0, 1001, 614)
end
else
if evt.param2 == 604 then
ScriptLib.SetGadgetStateByConfigId(context,1003, GadgetState.Default)
ScriptLib.InitTimeAxis(context, "temp2", {2,7}, false)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 1001, 603)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 1001, 604)
end
if evt.param2 == 614 then
ScriptLib.SetGroupVariableValue(context, "room2", 1)
ScriptLib.SetGadgetStateByConfigId(context,1003, GadgetState.Default)
ScriptLib.InitTimeAxis(context, "temp3", {2,7}, false)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 1001, 603)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 1001, 614)
end
end
return 0
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_1004(context, evt)
if evt.source_name == "temp" and evt.param1 == 1 then
ScriptLib.ChangeToTargetLevelTag(context, 23)
ScriptLib.SetGadgetStateByConfigId(context,1003, GadgetState.GearStart)
end
if evt.source_name == "temp" and evt.param1 == 2 then
if ScriptLib.GetGroupVariableValue(context, "room2") == 0 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 1001, {603,614})
else
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 1001, {603,604})
end
end
return 0
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_1005(context, evt)
if evt.source_name == "temp2" and evt.param1 == 1 then
ScriptLib.ChangeToTargetLevelTag(context, 25)
ScriptLib.SetGadgetStateByConfigId(context,1003, GadgetState.GearStart)
end
if evt.source_name == "temp2" and evt.param1 == 2 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 1001, {603,604})
end
return 0
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_1006(context, evt)
if evt.source_name == "temp3" and evt.param1 == 1 then
ScriptLib.ChangeToTargetLevelTag(context, 25)
ScriptLib.SetGadgetStateByConfigId(context,1003, GadgetState.GearStart)
end
if evt.source_name == "temp3" and evt.param1 == 2 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 1001, {603,604})
end
return 0
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1007(context, evt)
if evt.param2 == 621 and ScriptLib.GetGroupVariableValue(context, "message") == 0 then
ScriptLib.ShowReminder(context, 201420101)
ScriptLib.InitTimeAxis(context, "message1", {3}, false)
ScriptLib.SetGroupVariableValue(context, "message", 1)
end
if evt.param2 == 622 and ScriptLib.GetGroupVariableValue(context, "message") == 0 then
ScriptLib.ShowReminder(context, 201420101)
ScriptLib.InitTimeAxis(context, "message1", {3}, false)
ScriptLib.SetGroupVariableValue(context, "message", 1)
end
return 0
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_1008(context, evt)
if evt.source_name == "message1" and evt.param1 == 1 and ScriptLib.GetGroupVariableValue(context, "message") == 1 then
ScriptLib.SetGroupVariableValue(context, "message", 0)
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_FINISH_1009(context, evt)
-- 将本组内变量名为 "open" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "open", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220142001, 1001, {603,614}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1010(context, evt)
-- 判断是gadgetid 1001 option_id 603
if 1001 ~= evt.param1 then
return false
end
if 603 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1010(context, evt)
-- 触发镜头注目,注目位置为坐标{x=70.19164, y=2.3, z=100.0085},持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=70.19164, y=2.3, z=100.0085}
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
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1011(context, evt)
-- 判断是gadgetid 1001 option_id 604
if 1001 ~= evt.param1 then
return false
end
if 604 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1011(context, evt)
-- 触发镜头注目,注目位置为坐标{x=70.19164, y=2.3, z=100.0085},持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=70.19164, y=2.3, z=100.0085}
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
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1012(context, evt)
-- 判断是gadgetid 1001 option_id 614
if 1001 ~= evt.param1 then
return false
end
if 614 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1012(context, evt)
-- 触发镜头注目,注目位置为坐标{x=70.19164, y=2.3, z=100.0085},持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=70.19164, y=2.3, z=100.0085}
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
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_1013(context, evt)
ScriptLib.SetGroupVariableValue(context, "message", 0)
if ScriptLib.GetGroupVariableValue(context, "open") == 1 and ScriptLib.GetGroupVariableValue(context, "room2") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 1001, {603,604})
else
if ScriptLib.GetGroupVariableValue(context, "open") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 1001, {603,614})
else
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 1001, {621,622})
end
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1014(context, evt)
if evt.param1 ~= 1014 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_1014(context, evt)
ScriptLib.ActivateDungeonCheckPoint(context, 6)
ScriptLib.ActivateDungeonCheckPoint(context, 3)
return 0
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1015(context, evt)
if evt.param1 == 1001 then
if evt.param2 == 603 or evt.param2 == 604 or evt.param2 == 614 then
if ScriptLib.GetGadgetStateByConfigId(context, 0, 1001) == 0 then
ScriptLib.SetGadgetStateByConfigId(context,1001, GadgetState.GearStart)
else
ScriptLib.SetGadgetStateByConfigId(context,1001, GadgetState.Default)
end
end
end
return 0
end
@@ -0,0 +1,494 @@
-- 基础信息
local base_info = {
group_id = 220142002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70360170, pos = { x = 85.752, y = 5.451, z = 52.205 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 2002, gadget_id = 70290137, pos = { x = 93.589, y = 4.250, z = 50.016 }, rot = { x = 0.000, y = 90.183, z = 0.000 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
{ config_id = 2018, shape = RegionShape.SPHERE, radius = 5, pos = { x = 86.946, y = 3.175, z = 50.075 } }
}
-- 触发器
triggers = {
{ config_id = 1002003, name = "SELECT_OPTION_2003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "", action = "action_EVENT_SELECT_OPTION_2003", trigger_count = 0 },
{ config_id = 1002004, name = "TIME_AXIS_PASS_2004", event = EventType.EVENT_TIME_AXIS_PASS, source = "temp", condition = "", action = "action_EVENT_TIME_AXIS_PASS_2004", trigger_count = 0 },
{ config_id = 1002005, name = "TIME_AXIS_PASS_2005", event = EventType.EVENT_TIME_AXIS_PASS, source = "temp2", condition = "", action = "action_EVENT_TIME_AXIS_PASS_2005", trigger_count = 0 },
{ config_id = 1002006, name = "TIME_AXIS_PASS_2006", event = EventType.EVENT_TIME_AXIS_PASS, source = "temp3", condition = "", action = "action_EVENT_TIME_AXIS_PASS_2006", trigger_count = 0 },
{ config_id = 1002007, name = "TIME_AXIS_PASS_2007", event = EventType.EVENT_TIME_AXIS_PASS, source = "temp4", condition = "", action = "action_EVENT_TIME_AXIS_PASS_2007", trigger_count = 0 },
{ config_id = 1002008, name = "TIME_AXIS_PASS_2008", event = EventType.EVENT_TIME_AXIS_PASS, source = "temp5", condition = "", action = "action_EVENT_TIME_AXIS_PASS_2008", trigger_count = 0 },
{ config_id = 1002009, name = "SELECT_OPTION_2009", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "", action = "action_EVENT_SELECT_OPTION_2009", trigger_count = 0 },
{ config_id = 1002010, name = "TIME_AXIS_PASS_2010", event = EventType.EVENT_TIME_AXIS_PASS, source = "message1", condition = "", action = "action_EVENT_TIME_AXIS_PASS_2010", trigger_count = 0 },
{ config_id = 1002011, name = "QUEST_FINISH_2011", event = EventType.EVENT_QUEST_FINISH, source = "4006516", condition = "", action = "action_EVENT_QUEST_FINISH_2011", trigger_count = 0 },
{ config_id = 1002012, name = "SELECT_OPTION_2012", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2012", action = "action_EVENT_SELECT_OPTION_2012", trigger_count = 0 },
{ config_id = 1002013, name = "SELECT_OPTION_2013", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2013", action = "action_EVENT_SELECT_OPTION_2013", trigger_count = 0 },
{ config_id = 1002014, name = "SELECT_OPTION_2014", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2014", action = "action_EVENT_SELECT_OPTION_2014", trigger_count = 0 },
{ config_id = 1002015, name = "SELECT_OPTION_2015", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2015", action = "action_EVENT_SELECT_OPTION_2015", trigger_count = 0 },
{ config_id = 1002016, name = "SELECT_OPTION_2016", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2016", action = "action_EVENT_SELECT_OPTION_2016", trigger_count = 0 },
{ config_id = 1002017, name = "GROUP_LOAD_2017", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_2017", trigger_count = 0 },
{ config_id = 1002018, name = "ENTER_REGION_2018", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2018", action = "action_EVENT_ENTER_REGION_2018", trigger_count = 0 },
{ config_id = 1002019, name = "SELECT_OPTION_2019", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "", action = "action_EVENT_SELECT_OPTION_2019", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "room2", value = 0, no_refresh = true },
{ config_id = 2, name = "room3", value = 0, no_refresh = true },
{ config_id = 3, name = "message", value = 0, no_refresh = true },
{ config_id = 4, name = "open", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2002 },
regions = { 2018 },
triggers = { "SELECT_OPTION_2003", "TIME_AXIS_PASS_2004", "TIME_AXIS_PASS_2005", "TIME_AXIS_PASS_2006", "TIME_AXIS_PASS_2007", "TIME_AXIS_PASS_2008", "SELECT_OPTION_2009", "TIME_AXIS_PASS_2010", "QUEST_FINISH_2011", "SELECT_OPTION_2012", "SELECT_OPTION_2013", "SELECT_OPTION_2014", "SELECT_OPTION_2015", "SELECT_OPTION_2016", "GROUP_LOAD_2017", "ENTER_REGION_2018", "SELECT_OPTION_2019" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_SELECT_OPTION_2003(context, evt)
if evt.param2 == 606 then
ScriptLib.SetGadgetStateByConfigId(context,2002, GadgetState.Default)
ScriptLib.InitTimeAxis(context, "temp", {2,7}, false)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 605)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 606)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 607)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 615)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 616)
else
if evt.param2 == 605 then
ScriptLib.SetGadgetStateByConfigId(context,2002, GadgetState.Default)
ScriptLib.InitTimeAxis(context, "temp2", {2,7}, false)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 605)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 606)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 607)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 615)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 616)
end
if evt.param2 == 607 then
ScriptLib.SetGadgetStateByConfigId(context,2002, GadgetState.Default)
ScriptLib.InitTimeAxis(context, "temp3", {2,3,7}, false)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 605)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 606)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 607)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 615)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 616)
end
if evt.param2 == 615 then
ScriptLib.SetGadgetStateByConfigId(context,2002, GadgetState.Default)
ScriptLib.InitTimeAxis(context, "temp4", {2,7}, false)
ScriptLib.SetGroupVariableValue(context, "room2", 1)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 605)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 606)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 607)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 615)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 616)
end
if evt.param2 == 616 then
ScriptLib.SetGadgetStateByConfigId(context,2002, GadgetState.Default)
ScriptLib.InitTimeAxis(context, "temp5", {2,3,7}, false)
ScriptLib.SetGroupVariableValue(context, "room3", 1)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 605)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 606)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 607)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 615)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 616)
end
end
return 0
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_2004(context, evt)
if evt.source_name == "temp" and evt.param1 == 1 then
ScriptLib.ChangeToTargetLevelTag(context, 25)
ScriptLib.SetGadgetStateByConfigId(context,2002, GadgetState.GearStart)
end
if evt.source_name == "temp" and evt.param1 == 2 then
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room3") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {606,605,607})
else
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {606,605,616})
else
if ScriptLib.GetGroupVariableValue(context, "room3") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {606,615,607})
else
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {606,615,616})
end
end
end
end
return 0
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_2005(context, evt)
if evt.source_name == "temp2" and evt.param1 == 1 then
ScriptLib.ChangeToTargetLevelTag(context, 24)
ScriptLib.SetGadgetStateByConfigId(context,2002, GadgetState.GearStart)
end
if evt.source_name == "temp2" and evt.param1 == 2 then
if ScriptLib.GetGroupVariableValue(context, "room3") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {606,605,607})
else
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {606,605,616})
end
end
return 0
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_2006(context, evt)
if evt.source_name == "temp3" and evt.param1 == 1 then
ScriptLib.ChangeToTargetLevelTag(context, 26)
end
if evt.source_name == "temp3" and evt.param1 == 2 then
ScriptLib.SetGadgetStateByConfigId(context,2002, GadgetState.GearStart)
end
if evt.source_name == "temp3" and evt.param1 == 3 then
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {606,605,607})
else
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {606,615,607})
end
end
return 0
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_2007(context, evt)
if evt.source_name == "temp4" and evt.param1 == 1 then
ScriptLib.ChangeToTargetLevelTag(context, 24)
ScriptLib.SetGadgetStateByConfigId(context,2002, GadgetState.GearStart)
end
if evt.source_name == "temp4" and evt.param1 == 2 then
if ScriptLib.GetGroupVariableValue(context, "room3") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {606,605,607})
else
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {606,605,616})
end
end
return 0
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_2008(context, evt)
if evt.source_name == "temp5" and evt.param1 == 1 then
ScriptLib.ChangeToTargetLevelTag(context, 26)
end
if evt.source_name == "temp5" and evt.param1 == 2 then
ScriptLib.SetGadgetStateByConfigId(context,2002, GadgetState.GearStart)
end
if evt.source_name == "temp5" and evt.param1 == 3 then
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {606,605,607})
else
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {606,615,607})
end
end
return 0
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2009(context, evt)
if evt.param2 == 623 and ScriptLib.GetGroupVariableValue(context, "message") == 0 then
ScriptLib.ShowReminder(context, 201420101)
ScriptLib.InitTimeAxis(context, "message1", {3}, false)
ScriptLib.SetGroupVariableValue(context, "message", 1)
end
if evt.param2 == 624 and ScriptLib.GetGroupVariableValue(context, "message") == 0 then
ScriptLib.ShowReminder(context, 201420101)
ScriptLib.InitTimeAxis(context, "message1", {3}, false)
ScriptLib.SetGroupVariableValue(context, "message", 1)
end
if evt.param2 == 625 and ScriptLib.GetGroupVariableValue(context, "message") == 0 then
ScriptLib.ShowReminder(context, 201420101)
ScriptLib.InitTimeAxis(context, "message1", {3}, false)
ScriptLib.SetGroupVariableValue(context, "message", 1)
end
return 0
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_2010(context, evt)
if evt.source_name == "message1" and evt.param1 == 1 and ScriptLib.GetGroupVariableValue(context, "message") == 1 then
ScriptLib.SetGroupVariableValue(context, "message", 0)
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_FINISH_2011(context, evt)
-- 将本组内变量名为 "open" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "open", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220142002, 2001, {606,615,616}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2012(context, evt)
-- 判断是gadgetid 2001 option_id 605
if 2001 ~= evt.param1 then
return false
end
if 605 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2012(context, evt)
-- 触发镜头注目,注目位置为坐标{x=93.5885, y=5.5, z=50.01584},持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=93.5885, y=5.5, z=50.01584}
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
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2013(context, evt)
-- 判断是gadgetid 2001 option_id 606
if 2001 ~= evt.param1 then
return false
end
if 606 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2013(context, evt)
-- 触发镜头注目,注目位置为坐标{x=93.5885, y=5.5, z=50.01584},持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=93.5885, y=5.5, z=50.01584}
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
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2014(context, evt)
-- 判断是gadgetid 2001 option_id 607
if 2001 ~= evt.param1 then
return false
end
if 607 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2014(context, evt)
-- 触发镜头注目,注目位置为坐标{x=93.5885, y=5.5, z=50.01584},持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=93.5885, y=5.5, z=50.01584}
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
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2015(context, evt)
-- 判断是gadgetid 2001 option_id 615
if 2001 ~= evt.param1 then
return false
end
if 615 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2015(context, evt)
-- 触发镜头注目,注目位置为坐标{x=93.5885, y=5.5, z=50.01584},持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=93.5885, y=5.5, z=50.01584}
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
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2016(context, evt)
-- 判断是gadgetid 2001 option_id 616
if 2001 ~= evt.param1 then
return false
end
if 616 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2016(context, evt)
-- 触发镜头注目,注目位置为坐标{x=93.5885, y=5.5, z=50.01584},持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=93.5885, y=5.5, z=50.01584}
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
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_2017(context, evt)
ScriptLib.SetGroupVariableValue(context, "message", 0)
if ScriptLib.GetGroupVariableValue(context, "open") == 1 and ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room3") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {606,605,607})
else
if ScriptLib.GetGroupVariableValue(context, "open") == 1 and ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room3") == 0 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {606,605,616})
else
if ScriptLib.GetGroupVariableValue(context, "open") == 1 and ScriptLib.GetGroupVariableValue(context, "room2") == 0 and ScriptLib.GetGroupVariableValue(context, "room3") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {606,615,607})
else
if ScriptLib.GetGroupVariableValue(context, "open") == 1 and ScriptLib.GetGroupVariableValue(context, "room2") == 0 and ScriptLib.GetGroupVariableValue(context, "room3") == 0 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {606,615,616})
else
if ScriptLib.GetGroupVariableValue(context, "open") == 0 and ScriptLib.GetGroupVariableValue(context, "room2") == 0 and ScriptLib.GetGroupVariableValue(context, "room3") == 0 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {624,623,625})
end
end
end
end
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2018(context, evt)
if evt.param1 ~= 2018 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_2018(context, evt)
ScriptLib.ActivateDungeonCheckPoint(context, 4)
ScriptLib.ActivateDungeonCheckPoint(context, 3)
return 0
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2019(context, evt)
if evt.param1 == 2001 then
if evt.param2 == 605 or evt.param2 == 606 or evt.param2 == 607 or evt.param2 == 615 or evt.param2 == 616 then
if ScriptLib.GetGadgetStateByConfigId(context, 0, 2001) == 0 then
ScriptLib.SetGadgetStateByConfigId(context,2001, GadgetState.GearStart)
else
ScriptLib.SetGadgetStateByConfigId(context,2001, GadgetState.Default)
end
end
end
return 0
end
@@ -0,0 +1,645 @@
-- 基础信息
local base_info = {
group_id = 220142003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70360170, pos = { x = 150.679, y = 5.549, z = 52.569 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 3002, gadget_id = 70290137, pos = { x = 158.293, y = 4.131, z = 49.962 }, rot = { x = 0.000, y = 90.183, z = 0.000 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
{ config_id = 3019, shape = RegionShape.SPHERE, radius = 5, pos = { x = 150.183, y = 4.316, z = 50.366 } }
}
-- 触发器
triggers = {
{ config_id = 1003003, name = "SELECT_OPTION_3003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "", action = "action_EVENT_SELECT_OPTION_3003", trigger_count = 0 },
{ config_id = 1003004, name = "TIME_AXIS_PASS_3004", event = EventType.EVENT_TIME_AXIS_PASS, source = "temp", condition = "", action = "action_EVENT_TIME_AXIS_PASS_3004", trigger_count = 0 },
{ config_id = 1003005, name = "TIME_AXIS_PASS_3005", event = EventType.EVENT_TIME_AXIS_PASS, source = "temp2", condition = "", action = "action_EVENT_TIME_AXIS_PASS_3005", trigger_count = 0 },
{ config_id = 1003006, name = "TIME_AXIS_PASS_3006", event = EventType.EVENT_TIME_AXIS_PASS, source = "temp3", condition = "", action = "action_EVENT_TIME_AXIS_PASS_3006", trigger_count = 0 },
{ config_id = 1003007, name = "TIME_AXIS_PASS_3007", event = EventType.EVENT_TIME_AXIS_PASS, source = "temp4", condition = "", action = "action_EVENT_TIME_AXIS_PASS_3007", trigger_count = 0 },
{ config_id = 1003008, name = "TIME_AXIS_PASS_3008", event = EventType.EVENT_TIME_AXIS_PASS, source = "temp5", condition = "", action = "action_EVENT_TIME_AXIS_PASS_3008", trigger_count = 0 },
{ config_id = 1003009, name = "TIME_AXIS_PASS_3009", event = EventType.EVENT_TIME_AXIS_PASS, source = "temp6", condition = "", action = "action_EVENT_TIME_AXIS_PASS_3009", trigger_count = 0 },
{ config_id = 1003010, name = "TIME_AXIS_PASS_3010", event = EventType.EVENT_TIME_AXIS_PASS, source = "temp7", condition = "", action = "action_EVENT_TIME_AXIS_PASS_3010", trigger_count = 0 },
{ config_id = 1003011, name = "SELECT_OPTION_3011", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3011", action = "action_EVENT_SELECT_OPTION_3011", trigger_count = 0 },
{ config_id = 1003012, name = "SELECT_OPTION_3012", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3012", action = "action_EVENT_SELECT_OPTION_3012", trigger_count = 0 },
{ config_id = 1003013, name = "SELECT_OPTION_3013", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3013", action = "action_EVENT_SELECT_OPTION_3013", trigger_count = 0 },
{ config_id = 1003014, name = "SELECT_OPTION_3014", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3014", action = "action_EVENT_SELECT_OPTION_3014", trigger_count = 0 },
{ config_id = 1003015, name = "SELECT_OPTION_3015", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3015", action = "action_EVENT_SELECT_OPTION_3015", trigger_count = 0 },
{ config_id = 1003016, name = "SELECT_OPTION_3016", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3016", action = "action_EVENT_SELECT_OPTION_3016", trigger_count = 0 },
{ config_id = 1003017, name = "SELECT_OPTION_3017", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3017", action = "action_EVENT_SELECT_OPTION_3017", trigger_count = 0 },
{ config_id = 1003018, name = "GROUP_LOAD_3018", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_3018", trigger_count = 0 },
{ config_id = 1003019, name = "ENTER_REGION_3019", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3019", action = "action_EVENT_ENTER_REGION_3019", trigger_count = 0 },
{ config_id = 1003020, name = "SELECT_OPTION_3020", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "", action = "action_EVENT_SELECT_OPTION_3020", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "room2", value = 0, no_refresh = true },
{ config_id = 2, name = "room3", value = 0, no_refresh = true },
{ config_id = 3, name = "room4", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001, 3002 },
regions = { 3019 },
triggers = { "SELECT_OPTION_3003", "TIME_AXIS_PASS_3004", "TIME_AXIS_PASS_3005", "TIME_AXIS_PASS_3006", "TIME_AXIS_PASS_3007", "TIME_AXIS_PASS_3008", "TIME_AXIS_PASS_3009", "TIME_AXIS_PASS_3010", "SELECT_OPTION_3011", "SELECT_OPTION_3012", "SELECT_OPTION_3013", "SELECT_OPTION_3014", "SELECT_OPTION_3015", "SELECT_OPTION_3016", "SELECT_OPTION_3017", "GROUP_LOAD_3018", "ENTER_REGION_3019", "SELECT_OPTION_3020" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_SELECT_OPTION_3003(context, evt)
if evt.param2 == 608 then
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.Default)
ScriptLib.InitTimeAxis(context, "temp", {2,7}, false)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 608)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 609)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 610)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 611)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 617)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 618)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 619)
else
if evt.param2 == 609 then
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.Default)
ScriptLib.InitTimeAxis(context, "temp2", {2,7}, false)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 608)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 609)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 610)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 611)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 617)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 618)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 619)
end
if evt.param2 == 610 then
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.Default)
ScriptLib.InitTimeAxis(context, "temp3", {2,7}, false)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 608)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 609)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 610)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 611)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 617)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 618)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 619)
end
if evt.param2 == 611 then
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.Default)
ScriptLib.InitTimeAxis(context, "temp4", {2,7}, false)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 608)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 609)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 610)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 611)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 617)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 618)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 619)
end
if evt.param2 == 617 then
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.Default)
ScriptLib.InitTimeAxis(context, "temp5", {2,7}, false)
ScriptLib.SetGroupVariableValue(context, "room2", 1)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 608)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 609)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 610)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 611)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 617)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 618)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 619)
end
if evt.param2 == 618 then
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.Default)
ScriptLib.InitTimeAxis(context, "temp6", {2,7}, false)
ScriptLib.SetGroupVariableValue(context, "room3", 1)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 608)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 609)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 610)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 611)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 617)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 618)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 619)
end
if evt.param2 == 619 then
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.Default)
ScriptLib.InitTimeAxis(context, "temp7", {2,7}, false)
ScriptLib.SetGroupVariableValue(context, "room4", 1)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 608)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 609)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 610)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 611)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 617)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 618)
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 619)
end
end
return 0
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_3004(context, evt)
if evt.source_name == "temp" and evt.param1 == 1 then
ScriptLib.ChangeToTargetLevelTag(context, 26)
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.GearStart)
end
if evt.source_name == "temp" and evt.param1 == 2 then
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room3") == 1 and ScriptLib.GetGroupVariableValue(context, "room4") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,610,611})
else
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room3") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,610,619})
else
if ScriptLib.GetGroupVariableValue(context, "room4") == 0 then
if ScriptLib.GetGroupVariableValue(context, "room2") == 0 and ScriptLib.GetGroupVariableValue(context, "room3") == 0 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,617,618,619})
else
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,618,619})
else
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,617,610,619})
end
end
else
if ScriptLib.GetGroupVariableValue(context, "room2") == 0 and ScriptLib.GetGroupVariableValue(context, "room3") == 0 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,617,618,611})
else
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,618,611})
else
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,617,610,611})
end
end
end
end
end
end
return 0
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_3005(context, evt)
if evt.source_name == "temp2" and evt.param1 == 1 then
ScriptLib.ChangeToTargetLevelTag(context, 27)
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.GearStart)
end
if evt.source_name == "temp2" and evt.param1 == 2 then
if ScriptLib.GetGroupVariableValue(context, "room3") == 1 and ScriptLib.GetGroupVariableValue(context, "room4") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,610,611})
else
if ScriptLib.GetGroupVariableValue(context, "room3") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,610,619})
else
if ScriptLib.GetGroupVariableValue(context, "room4") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,618,611})
else
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,618,619})
end
end
end
end
return 0
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_3006(context, evt)
if evt.source_name == "temp3" and evt.param1 == 1 then
ScriptLib.ChangeToTargetLevelTag(context, 28)
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.GearStart)
end
if evt.source_name == "temp3" and evt.param1 == 2 then
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room4") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,610,611})
else
if ScriptLib.GetGroupVariableValue(context, "room2") == 0 and ScriptLib.GetGroupVariableValue(context, "room4") == 0 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,617,610,619})
end
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room4") == 0 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,610,619})
end
if ScriptLib.GetGroupVariableValue(context, "room2") == 0 and ScriptLib.GetGroupVariableValue(context, "room4") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,617,610,611})
end
end
end
return 0
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_3007(context, evt)
if evt.source_name == "temp4" and evt.param1 == 1 then
ScriptLib.ChangeToTargetLevelTag(context, 29)
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.GearStart)
end
if evt.source_name == "temp4" and evt.param1 == 2 then
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room3") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,610,611})
else
if ScriptLib.GetGroupVariableValue(context, "room2") == 0 and ScriptLib.GetGroupVariableValue(context, "room3") == 0 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,617,618,611})
end
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room3") == 0 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,618,611})
end
if ScriptLib.GetGroupVariableValue(context, "room2") == 0 and ScriptLib.GetGroupVariableValue(context, "room3") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,617,610,611})
end
end
end
return 0
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_3008(context, evt)
if evt.source_name == "temp5" and evt.param1 == 1 then
ScriptLib.ChangeToTargetLevelTag(context, 27)
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.GearStart)
end
if evt.source_name == "temp5" and evt.param1 == 2 then
if ScriptLib.GetGroupVariableValue(context, "room3") == 1 and ScriptLib.GetGroupVariableValue(context, "room4") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,610,611})
else
if ScriptLib.GetGroupVariableValue(context, "room3") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,610,619})
else
if ScriptLib.GetGroupVariableValue(context, "room4") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,618,611})
else
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,618,619})
end
end
end
end
return 0
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_3009(context, evt)
if evt.source_name == "temp6" and evt.param1 == 1 then
ScriptLib.ChangeToTargetLevelTag(context, 28)
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.GearStart)
end
if evt.source_name == "temp6" and evt.param1 == 2 then
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room4") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,610,611})
else
if ScriptLib.GetGroupVariableValue(context, "room2") == 0 and ScriptLib.GetGroupVariableValue(context, "room4") == 0 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,617,610,619})
end
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room4") == 0 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,610,619})
end
if ScriptLib.GetGroupVariableValue(context, "room2") == 0 and ScriptLib.GetGroupVariableValue(context, "room4") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,617,610,611})
end
end
end
return 0
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_3010(context, evt)
if evt.source_name == "temp7" and evt.param1 == 1 then
ScriptLib.ChangeToTargetLevelTag(context, 29)
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.GearStart)
end
if evt.source_name == "temp7" and evt.param1 == 2 then
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room3") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,610,611})
else
if ScriptLib.GetGroupVariableValue(context, "room2") == 0 and ScriptLib.GetGroupVariableValue(context, "room3") == 0 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,617,618,611})
end
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room3") == 0 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,618,611})
end
if ScriptLib.GetGroupVariableValue(context, "room2") == 0 and ScriptLib.GetGroupVariableValue(context, "room3") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,617,610,611})
end
end
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3011(context, evt)
-- 判断是gadgetid 3001 option_id 608
if 3001 ~= evt.param1 then
return false
end
if 608 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3011(context, evt)
-- 触发镜头注目,注目位置为坐标{x=158.2933, y=5.5, z=49.96225},持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=158.2933, y=5.5, z=49.96225}
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
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3012(context, evt)
-- 判断是gadgetid 3001 option_id 609
if 3001 ~= evt.param1 then
return false
end
if 609 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3012(context, evt)
-- 触发镜头注目,注目位置为坐标{x=158.2933, y=5.5, z=49.96225},持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=158.2933, y=5.5, z=49.96225}
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
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3013(context, evt)
-- 判断是gadgetid 3001 option_id 610
if 3001 ~= evt.param1 then
return false
end
if 610 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3013(context, evt)
-- 触发镜头注目,注目位置为坐标{x=158.2933, y=5.5, z=49.96225},持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=158.2933, y=5.5, z=49.96225}
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
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3014(context, evt)
-- 判断是gadgetid 3001 option_id 611
if 3001 ~= evt.param1 then
return false
end
if 611 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3014(context, evt)
-- 触发镜头注目,注目位置为坐标{x=158.2933, y=5.5, z=49.96225},持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=158.2933, y=5.5, z=49.96225}
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
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3015(context, evt)
-- 判断是gadgetid 3001 option_id 617
if 3001 ~= evt.param1 then
return false
end
if 617 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3015(context, evt)
-- 触发镜头注目,注目位置为坐标{x=158.2933, y=5.5, z=49.96225},持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=158.2933, y=5.5, z=49.96225}
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
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3016(context, evt)
-- 判断是gadgetid 3001 option_id 618
if 3001 ~= evt.param1 then
return false
end
if 618 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3016(context, evt)
-- 触发镜头注目,注目位置为坐标{x=158.2933, y=5.5, z=49.96225},持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=158.2933, y=5.5, z=49.96225}
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
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3017(context, evt)
-- 判断是gadgetid 3001 option_id 619
if 3001 ~= evt.param1 then
return false
end
if 619 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3017(context, evt)
-- 触发镜头注目,注目位置为坐标{x=158.2933, y=5.5, z=49.96225},持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=158.2933, y=5.5, z=49.96225}
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
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_3018(context, evt)
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room3") == 1 and ScriptLib.GetGroupVariableValue(context, "room4") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,610,611})
else
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room3") == 1 and ScriptLib.GetGroupVariableValue(context, "room4") == 0 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,610,619})
else
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room3") == 0 and ScriptLib.GetGroupVariableValue(context, "room4") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,618,611})
else
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room3") == 0 and ScriptLib.GetGroupVariableValue(context, "room4") == 0 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,618,619})
else
if ScriptLib.GetGroupVariableValue(context, "room2") == 0 and ScriptLib.GetGroupVariableValue(context, "room3") == 1 and ScriptLib.GetGroupVariableValue(context, "room4") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,617,610,611})
else
if ScriptLib.GetGroupVariableValue(context, "room2") == 0 and ScriptLib.GetGroupVariableValue(context, "room3") == 1 and ScriptLib.GetGroupVariableValue(context, "room4") == 0 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,617,610,619})
else
if ScriptLib.GetGroupVariableValue(context, "room2") == 0 and ScriptLib.GetGroupVariableValue(context, "room3") == 0 and ScriptLib.GetGroupVariableValue(context, "room4") == 1 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,617,618,611})
else
if ScriptLib.GetGroupVariableValue(context, "room2") == 0 and ScriptLib.GetGroupVariableValue(context, "room3") == 0 and ScriptLib.GetGroupVariableValue(context, "room4") == 0 then
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,617,618,619})
end
end
end
end
end
end
end
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3019(context, evt)
if evt.param1 ~= 3019 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_3019(context, evt)
ScriptLib.ActivateDungeonCheckPoint(context, 2)
ScriptLib.ActivateDungeonCheckPoint(context, 3)
return 0
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3020(context, evt)
if evt.param1 == 3001 then
if evt.param2 == 608 or evt.param2 == 609 or evt.param2 == 610 or evt.param2 == 611 or evt.param2 == 617 or evt.param2 == 618 or evt.param2 == 619 then
if ScriptLib.GetGadgetStateByConfigId(context, 0, 3001) == 0 then
ScriptLib.SetGadgetStateByConfigId(context,3001, GadgetState.GearStart)
else
ScriptLib.SetGadgetStateByConfigId(context,3001, GadgetState.Default)
end
end
end
return 0
end
@@ -0,0 +1,542 @@
-- 基础信息
local base_info = {
group_id = 220142004
}
-- DEFS_MISCS
local defs = {
--本Group中发射器gadget的configID,最多3个,
fireMachineList = {
4001
},
--key为发射器configIDvalue为ColorDefine
initConfig = {
[4001] = 1,
},
--Key为操作台。value为发射器。允许有多个操作台控制同一个发射器
controlRelation = {
},
--左右旋转的SelectOptionID
selectID_horizon = 613,
--上下俯仰的SelectOptionID
selectID_vertical = 612,
--定义左右旋转的步长,key为传递装置configIDvalue为GadgetState
horizon_steps = {
[4004] = {0, 102, 103, 104},
[4005] = {0, 102, 103, 104},
[4006] = {0, 102, 103, 104},
[4010] = {0, 102, 103, 104},
[4011] = {0, 102, 103, 104},
[4012] = {0, 102, 103, 104},
[4013] = {0, 102, 103, 104},
[4016] = {0, 102, 103, 104},
[4017] = {0, 102, 103, 104},
[4018] = {0, 102, 103, 104},
[4019] = {0, 102, 103, 104},
[4020] = {0, 102, 103, 104},
[4025] = {0, 102, 103, 104},
[4026] = {0, 102, 103, 104},
[4027] = {0, 102, 103, 104},
[4028] = {0, 102, 103, 104},
[4029] = {0, 102, 103, 104},
[4030] = {0, 102, 103, 104},
[4031] = {0, 102, 103, 104},
[4037] = {0, 102, 103, 104},
[4039] = {0, 102, 103, 104},
[4040] = {0, 102, 103, 104},
},
--定义上下俯仰的步长,key为传递装置configIDvalue为GadgetState
vertical_steps = {
[4004] = {0, 302, 303, 304},
[4005] = {0, 302, 303, 304},
[4006] = {0, 302, 303, 304},
[4010] = {0, 302, 303, 304},
[4011] = {0, 302, 303, 304},
[4012] = {0, 302, 303, 304},
[4013] = {0, 302, 303, 304},
[4016] = {0, 302, 303, 304},
[4017] = {0, 302, 303, 304},
[4018] = {0, 302, 303, 304},
[4019] = {0, 302, 303, 304},
[4020] = {0, 302, 303, 304},
[4025] = {0, 302, 303, 304},
[4026] = {0, 302, 303, 304},
[4027] = {0, 302, 303, 304},
[4028] = {0, 302, 303, 304},
[4029] = {0, 302, 303, 304},
[4030] = {0, 302, 303, 304},
[4031] = {0, 302, 303, 304},
[4037] = {0, 302, 303, 304},
[4039] = {0, 302, 303, 304},
[4040] = {0, 302, 303, 304},
},
--反射装置初始state
init_state = {
[4006] = 303
},
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70310158, pos = { x = 147.357, y = 4.819, z = 49.725 }, rot = { x = 0.000, y = 91.723, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 4002, gadget_id = 70211101, pos = { x = 180.299, y = 11.070, z = 52.251 }, rot = { x = 0.043, y = 91.104, z = 359.684 }, level = 16, drop_tag = "解谜低级群岛", isOneoff = true, persistent = true, autopick = true },
{ config_id = 4003, gadget_id = 70211111, pos = { x = 196.173, y = 11.015, z = 50.530 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 16, drop_tag = "解谜中级群岛", state = GadgetState.ChestLocked, isOneoff = true, persistent = true, autopick = true },
{ config_id = 4004, gadget_id = 70310159, pos = { x = 181.929, y = 12.090, z = 49.359 }, rot = { x = 0.000, y = 90.000, z = 90.000 }, level = 1 },
{ config_id = 4005, gadget_id = 70310159, pos = { x = 159.483, y = 4.819, z = 49.608 }, rot = { x = 0.000, y = 110.000, z = 0.000 }, level = 1, persistent = true, worktop_config = { init_options = { 613 } } },
{ config_id = 4006, gadget_id = 70310159, pos = { x = 181.986, y = 12.214, z = 54.749 }, rot = { x = 0.000, y = 270.000, z = 90.000 }, level = 1, persistent = true, worktop_config = { init_options = { 612 } } },
{ config_id = 4007, gadget_id = 70300118, pos = { x = 168.072, y = -19.149, z = 42.767 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true },
{ config_id = 4009, gadget_id = 70211101, pos = { x = 168.192, y = -2.823, z = 55.530 }, rot = { x = 0.043, y = 180.000, z = 359.684 }, level = 16, drop_tag = "解谜低级群岛", isOneoff = true, persistent = true, autopick = true },
{ config_id = 4010, gadget_id = 70310159, pos = { x = 168.122, y = 4.848, z = 46.725 }, rot = { x = 0.000, y = 45.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 4011, gadget_id = 70310159, pos = { x = 175.448, y = 4.511, z = 54.051 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 612 } } },
{ config_id = 4012, gadget_id = 70310159, pos = { x = 179.467, y = 7.684, z = 54.051 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 4013, gadget_id = 70310159, pos = { x = 187.854, y = 9.019, z = 55.080 }, rot = { x = 270.000, y = 0.001, z = 0.000 }, level = 1 },
{ config_id = 4014, gadget_id = 70310188, pos = { x = 196.036, y = 11.259, z = 50.467 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop, isOneoff = true, persistent = true },
{ config_id = 4016, gadget_id = 70310159, pos = { x = 166.536, y = 5.294, z = 49.725 }, rot = { x = 2.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 4017, gadget_id = 70310159, pos = { x = 167.029, y = 4.834, z = 55.068 }, rot = { x = 11.000, y = 330.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 4018, gadget_id = 70310159, pos = { x = 163.549, y = 3.481, z = 61.096 }, rot = { x = 11.000, y = 30.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 4019, gadget_id = 70310159, pos = { x = 166.975, y = 2.149, z = 67.030 }, rot = { x = 14.000, y = 330.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 4020, gadget_id = 70310159, pos = { x = 163.391, y = 0.362, z = 73.238 }, rot = { x = 14.000, y = 30.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 4021, gadget_id = 70310164, pos = { x = 199.821, y = 5.064, z = 49.254 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 4022, gadget_id = 70220048, pos = { x = 162.981, y = -2.834, z = 54.961 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4023, gadget_id = 70220051, pos = { x = 179.483, y = -3.156, z = 49.553 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4024, gadget_id = 70310386, pos = { x = 199.821, y = 5.692, z = 49.254 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true, persistent = true },
{ config_id = 4025, gadget_id = 70310159, pos = { x = 166.880, y = -1.378, z = 79.282 }, rot = { x = 14.000, y = 345.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 4026, gadget_id = 70220048, pos = { x = 196.709, y = -3.156, z = 54.181 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4027, gadget_id = 70220048, pos = { x = 186.295, y = -3.156, z = 49.729 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4028, gadget_id = 70310159, pos = { x = 164.768, y = -2.401, z = 88.197 }, rot = { x = 90.000, y = 180.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 4029, gadget_id = 70310159, pos = { x = 164.456, y = -9.237, z = 88.010 }, rot = { x = 90.000, y = 180.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 612 } } },
{ config_id = 4030, gadget_id = 70310159, pos = { x = 164.739, y = -10.486, z = 82.190 }, rot = { x = 15.000, y = 180.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 4031, gadget_id = 70310159, pos = { x = 164.688, y = -12.922, z = 73.021 }, rot = { x = 15.000, y = 180.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 4032, gadget_id = 70310165, pos = { x = 164.483, y = -18.527, z = 45.760 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.ChestLocked, isOneoff = true, persistent = true, server_global_value_config = { ["SGV_Kazuha_CrystalDis"]= 35 } },
{ config_id = 4033, gadget_id = 70310188, pos = { x = 164.634, y = -18.054, z = 45.760 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, isOneoff = true, persistent = true },
{ config_id = 4037, gadget_id = 70310159, pos = { x = 187.898, y = 12.214, z = 54.749 }, rot = { x = 0.000, y = 270.000, z = 90.000 }, level = 1, persistent = true },
{ config_id = 4038, gadget_id = 71700386, pos = { x = 167.930, y = -18.753, z = 43.016 }, rot = { x = 0.000, y = 350.158, z = 0.000 }, level = 1 },
{ config_id = 4039, gadget_id = 70310159, pos = { x = 164.544, y = -15.019, z = 65.124 }, rot = { x = 17.000, y = 180.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 4040, gadget_id = 70310159, pos = { x = 164.688, y = -18.718, z = 51.893 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 612 } } },
{ config_id = 4041, gadget_id = 70211101, pos = { x = 153.905, y = -16.968, z = 48.518 }, rot = { x = 0.000, y = 94.107, z = 0.000 }, level = 16, drop_tag = "解谜低级群岛", isOneoff = true, persistent = true, autopick = true }
}
-- 区域
regions = {
{ config_id = 4008, shape = RegionShape.SPHERE, radius = 2, pos = { x = 168.072, y = -19.149, z = 42.767 } }
}
-- 触发器
triggers = {
{ config_id = 1004008, name = "ENTER_REGION_4008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4008", action = "action_EVENT_ENTER_REGION_4008", trigger_count = 0 },
{ config_id = 1004015, name = "ANY_GADGET_DIE_4015", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_4015", action = "action_EVENT_ANY_GADGET_DIE_4015", trigger_count = 0 },
{ config_id = 1004034, name = "ANY_GADGET_DIE_4034", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_4034", action = "action_EVENT_ANY_GADGET_DIE_4034", trigger_count = 0 },
{ config_id = 1004035, name = "GADGET_STATE_CHANGE_4035", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_4035", action = "action_EVENT_GADGET_STATE_CHANGE_4035", trigger_count = 0 },
{ config_id = 1004036, name = "ANY_GADGET_DIE_4036", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_4036", action = "action_EVENT_ANY_GADGET_DIE_4036", trigger_count = 0 },
{ config_id = 1004042, name = "GADGET_STATE_CHANGE_4042", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_4042", action = "action_EVENT_GADGET_STATE_CHANGE_4042", trigger_count = 0 },
{ config_id = 1004043, name = "TIME_AXIS_PASS_4043", event = EventType.EVENT_TIME_AXIS_PASS, source = "stone1", condition = "condition_EVENT_TIME_AXIS_PASS_4043", action = "action_EVENT_TIME_AXIS_PASS_4043", trigger_count = 0 },
{ config_id = 1004044, name = "VARIABLE_CHANGE_4044", event = EventType.EVENT_VARIABLE_CHANGE, source = "stone1", condition = "", action = "action_EVENT_VARIABLE_CHANGE_4044", trigger_count = 0 },
{ config_id = 1004045, name = "VARIABLE_CHANGE_4045", event = EventType.EVENT_VARIABLE_CHANGE, source = "stone2", condition = "", action = "action_EVENT_VARIABLE_CHANGE_4045", trigger_count = 0 },
{ config_id = 1004046, name = "LEVEL_TAG_CHANGE_4046", event = EventType.EVENT_LEVEL_TAG_CHANGE, source = "", condition = "", action = "action_EVENT_LEVEL_TAG_CHANGE_4046", trigger_count = 0 },
{ config_id = 1004047, name = "GROUP_LOAD_4047", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_4047", trigger_count = 0 },
{ config_id = 1004048, name = "TIME_AXIS_PASS_4048", event = EventType.EVENT_TIME_AXIS_PASS, source = "stone2", condition = "condition_EVENT_TIME_AXIS_PASS_4048", action = "action_EVENT_TIME_AXIS_PASS_4048", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "temp", value = 0, no_refresh = true },
{ config_id = 2, name = "stone1", value = 0, no_refresh = true },
{ config_id = 3, name = "stone2", value = 0, no_refresh = true },
{ config_id = 4, name = "chest", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4001 },
regions = { },
triggers = { "ANY_GADGET_DIE_4015", "ANY_GADGET_DIE_4034", "GADGET_STATE_CHANGE_4035", "ANY_GADGET_DIE_4036", "GADGET_STATE_CHANGE_4042", "TIME_AXIS_PASS_4043", "VARIABLE_CHANGE_4044", "VARIABLE_CHANGE_4045", "LEVEL_TAG_CHANGE_4046", "GROUP_LOAD_4047", "TIME_AXIS_PASS_4048" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 4002, 4003, 4004, 4005, 4006, 4009, 4010, 4011, 4012, 4013, 4014, 4022, 4023, 4026, 4027, 4037 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 4007, 4016, 4017, 4018, 4019, 4020, 4025, 4028, 4029, 4030, 4031, 4032, 4033, 4038, 4039, 4040, 4041 },
regions = { 4008 },
triggers = { "ENTER_REGION_4008" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 4021, 4024 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_4008(context, evt)
if evt.param1 ~= 4008 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_4008(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 4007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_4015(context, evt)
if 4014 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_4015(context, evt)
-- 将本组内变量名为 "chest" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "chest", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将configid为 4003 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4003, 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_4034(context, evt)
if 4033 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_4034(context, evt)
-- 将本组内变量名为 "stone2" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "stone2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将configid为 4032 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4032, 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_4035(context, evt)
-- 检测config_id为4021的gadget是否从GadgetState.Default变为GadgetState.GearStop
if 4021 ~= evt.param2 or GadgetState.GearStop ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_4035(context, evt)
-- 将本组内变量名为 "stone1" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "stone1", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 创建标识为"stone1",时间节点为{30}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "stone1", {30}, false)
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_4036(context, evt)
if 4024 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_4036(context, evt)
-- 将本组内变量名为 "temp" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "temp", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "stone1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "stone1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将configid为 4021 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4021, 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_4042(context, evt)
-- 检测config_id为4032的gadget是否从GadgetState.Default变为GadgetState.GearStop
if 4032 ~= evt.param2 or GadgetState.GearStop ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_4042(context, evt)
-- 将本组内变量名为 "stone2" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "stone2", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 创建标识为"stone2",时间节点为{35}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "stone2", {35}, false)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_4043(context, evt)
if "stone1" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_4043(context, evt)
-- 将本组内变量名为 "stone1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "stone1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_4044(context, evt)
if ScriptLib.GetGroupVariableValue(context, "stone1") == 1 and ScriptLib.CheckSceneTag(context, 20142,1056 ) then
ScriptLib.SetGadgetStateByConfigId(context,4021, GadgetState.Default)
end
return 0
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_4045(context, evt)
if ScriptLib.GetGroupVariableValue(context, "stone2") == 1 and ScriptLib.CheckSceneTag(context, 20142,1057 ) then
ScriptLib.SetGadgetStateByConfigId(context,4032, GadgetState.Default)
end
return 0
end
-- 触发操作
function action_EVENT_LEVEL_TAG_CHANGE_4046(context, evt)
if ScriptLib.CheckSceneTag(context, 20142,1056 ) then
ScriptLib.AddExtraGroupSuite(context, 0, 4)
if ScriptLib.GetGroupVariableValue(context, "stone1") == 0 then
ScriptLib.SetGadgetStateByConfigId(context,4021, GadgetState.ChestLocked)
end
if ScriptLib.GetGroupVariableValue(context, "stone1") == 1 or ScriptLib.GetGroupVariableValue(context, "stone1") == 3 then
ScriptLib.SetGadgetStateByConfigId(context,4021, GadgetState.Default)
ScriptLib.SetGroupVariableValue(context, "stone1", 1)
end
if ScriptLib.GetGroupVariableValue(context, "stone1") == 2 then
ScriptLib.SetGadgetStateByConfigId(context,4021, GadgetState.GearStop)
end
else
ScriptLib.RemoveExtraGroupSuite(context, 220142004, 4)
end
if ScriptLib.CheckSceneTag(context, 20142,1057 ) then
ScriptLib.AddExtraGroupSuite(context, 0, 3)
if ScriptLib.GetGroupVariableValue(context, "stone2") == 0 then
ScriptLib.SetGadgetStateByConfigId(context,4032, GadgetState.ChestLocked)
end
if ScriptLib.GetGroupVariableValue(context, "stone2") == 1 or ScriptLib.GetGroupVariableValue(context, "stone2") == 3 then
ScriptLib.SetGadgetStateByConfigId(context,4032, GadgetState.Default)
ScriptLib.SetGroupVariableValue(context, "stone2", 1)
end
if ScriptLib.GetGroupVariableValue(context, "stone2") == 2 then
ScriptLib.SetGadgetStateByConfigId(context,4032, GadgetState.GearStop)
end
else
ScriptLib.RemoveExtraGroupSuite(context, 220142004, 3)
end
if ScriptLib.CheckSceneTag(context, 20142,1058 ) then
ScriptLib.AddExtraGroupSuite(context, 0, 2)
if ScriptLib.GetGroupVariableValue(context, "chest") == 0 then
ScriptLib.SetGadgetStateByConfigId(context,4003, GadgetState.ChestLocked)
end
if ScriptLib.GetGroupVariableValue(context, "chest") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,4003, GadgetState.Default)
end
else
ScriptLib.RemoveExtraGroupSuite(context, 220142004, 2)
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_4047(context, evt)
if ScriptLib.CheckSceneTag(context, 20142,1056 ) then
ScriptLib.AddExtraGroupSuite(context, 0, 4)
if ScriptLib.GetGroupVariableValue(context, "stone1") == 0 then
ScriptLib.SetGadgetStateByConfigId(context,4021, GadgetState.ChestLocked)
end
if ScriptLib.GetGroupVariableValue(context, "stone1") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,4021, GadgetState.Default)
end
if ScriptLib.GetGroupVariableValue(context, "stone1") == 2 then
ScriptLib.SetGadgetStateByConfigId(context,4021, GadgetState.Default)
ScriptLib.SetGroupVariableValue(context, "stone1", 1)
end
else
if ScriptLib.GetGroupVariableValue(context, "stone1") == 2 then
ScriptLib.SetGroupVariableValue(context, "stone1", 1)
end
end
if ScriptLib.CheckSceneTag(context, 20142,1057 ) then
ScriptLib.AddExtraGroupSuite(context, 0, 3)
if ScriptLib.GetGroupVariableValue(context, "stone2") == 0 then
ScriptLib.SetGadgetStateByConfigId(context,4032, GadgetState.ChestLocked)
end
if ScriptLib.GetGroupVariableValue(context, "stone2") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,4032, GadgetState.Default)
end
if ScriptLib.GetGroupVariableValue(context, "stone2") == 2 then
ScriptLib.SetGadgetStateByConfigId(context,4032, GadgetState.Default)
ScriptLib.SetGroupVariableValue(context, "stone2", 1)
end
else
if ScriptLib.GetGroupVariableValue(context, "stone2") == 2 then
ScriptLib.SetGroupVariableValue(context, "stone2", 1)
end
end
if ScriptLib.CheckSceneTag(context, 20142,1058 ) then
ScriptLib.AddExtraGroupSuite(context, 0, 2)
if ScriptLib.GetGroupVariableValue(context, "chest") == 0 then
ScriptLib.SetGadgetStateByConfigId(context,4003, GadgetState.ChestLocked)
end
if ScriptLib.GetGroupVariableValue(context, "chest") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,4003, GadgetState.Default)
end
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_4048(context, evt)
if "stone2" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_4048(context, evt)
-- 将本组内变量名为 "stone2" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "stone2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
require "V2_8/FireMachineColorHandle"
@@ -0,0 +1,234 @@
-- 基础信息
local base_info = {
group_id = 220142005
}
-- DEFS_MISCS
local defs = {
--本Group中发射器gadget的configID,最多3个,
fireMachineList = {
5001
},
--key为发射器configIDvalue为ColorDefine
initConfig = {
[5001] = 1,
},
--Key为操作台。value为发射器。允许有多个操作台控制同一个发射器
controlRelation = {
},
--左右旋转的SelectOptionID
selectID_horizon = 613,
--上下俯仰的SelectOptionID
selectID_vertical = 612,
--定义左右旋转的步长,key为传递装置configIDvalue为GadgetState
horizon_steps = {
[5006] = {0, 102, 103, 104},
[5008] = {0, 102, 103, 104},
[5013] = {0, 102, 103, 104},
},
--定义上下俯仰的步长,key为传递装置configIDvalue为GadgetState
vertical_steps = {
[5006] = {0, 302, 303, 304},
[5008] = {0, 302, 303, 304},
[5013] = {0, 302, 303, 304},
},
--反射装置初始state
init_state = {
},
--本Group用哪组LevelTag控制,请查LevelTagData表
levelTagGroupID = 7,
--是否由re-quire控制切suite,填0则不需要配置switchByLevelTag_suites
switchByLevelTag = 1,
--切入该LevelTag时,加载且仅加载的suite。
--注意,被此操作Remove掉的物件不会保留GadgetState
switchByLevelTag_suites = {
["2_8_Kazuha_04"] = {1,2},
["2_8_Kazuha_01"] = {1},
["2_8_Kazuha_02"] = {1,2},
["2_8_Kazuha_03"] = {1,2},
["2_8_Kazuha_05"] = {1,2},
["2_8_Kazuha_06"] = {1,2},
["2_8_Kazuha_07"] = {1,2},
},
--需要保存gadgetState的物件configID,最多9个
saved_gadget =
{
5003,5005,5001
}
,
--特判万叶晶石物件,这些物件在GroupLoad时,若为State 202则切成
spec_gadget=
{
5005
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5001, gadget_id = 70310158, pos = { x = 67.355, y = 1.076, z = 92.498 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 5003, gadget_id = 70211001, pos = { x = 71.607, y = 0.688, z = 100.009 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 16, drop_tag = "战斗低级群岛", state = GadgetState.ChestLocked, isOneoff = true, persistent = true, autopick = true },
{ config_id = 5004, gadget_id = 70310188, pos = { x = 57.521, y = 1.951, z = 92.482 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true, persistent = true },
{ config_id = 5005, gadget_id = 70310164, pos = { x = 57.521, y = 1.459, z = 92.482 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 5006, gadget_id = 70310159, pos = { x = 61.282, y = 1.387, z = 92.482 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 5008, gadget_id = 70310159, pos = { x = 61.282, y = 1.314, z = 106.952 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 5011, gadget_id = 70310188, pos = { x = 71.675, y = 1.009, z = 100.047 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, isOneoff = true, persistent = true },
{ config_id = 5013, gadget_id = 70310159, pos = { x = 65.530, y = 1.346, z = 106.876 }, rot = { x = 0.000, y = 141.396, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
{ config_id = 5002, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 8.000 }, pos = { x = 63.235, y = 0.538, z = 107.968 } },
{ config_id = 5007, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 8.000 }, pos = { x = 65.502, y = 0.538, z = 92.591 } },
{ config_id = 5009, shape = RegionShape.CUBIC, size = { x = 25.000, y = 10.000, z = 20.000 }, pos = { x = 87.047, y = 4.668, z = 50.065 } }
}
-- 触发器
triggers = {
{ config_id = 1005002, name = "ENTER_REGION_5002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_5002", trigger_count = 0 },
{ config_id = 1005007, name = "ENTER_REGION_5007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_5007" },
{ config_id = 1005009, name = "ENTER_REGION_5009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_5009", trigger_count = 0 },
{ config_id = 1005014, name = "ANY_GADGET_DIE_5014", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_5014", action = "action_EVENT_ANY_GADGET_DIE_5014" },
{ config_id = 1005015, name = "ANY_GADGET_DIE_5015", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_5015", action = "action_EVENT_ANY_GADGET_DIE_5015" }
}
-- 变量
variables = {
{ config_id = 2, name = "show", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5001, 5004, 5005, 5006, 5008, 5013 },
regions = { 5002, 5007, 5009 },
triggers = { "ENTER_REGION_5002", "ENTER_REGION_5007", "ENTER_REGION_5009", "ANY_GADGET_DIE_5015" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 5003, 5011 },
regions = { },
triggers = { "ANY_GADGET_DIE_5014" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ENTER_REGION_5002(context, evt)
if evt.param1 == 5002 and ScriptLib.GetRegionEntityCount(context, {region_eid = evt.source_eid, entity_type = EntityType.AVATAR}) == 1 and ScriptLib.TryRecordActivityPushTips(context, 2014002) == 0 then
ScriptLib.ShowClientTutorial(context, 1178, {})
end
return 0
end
-- 触发操作
function action_EVENT_ENTER_REGION_5007(context, evt)
if evt.param1 == 5007 and ScriptLib.GetRegionEntityCount(context, {region_eid = evt.source_eid, entity_type = EntityType.AVATAR}) == 1 and ScriptLib.TryRecordActivityPushTips(context, 2014002) == 0 then
ScriptLib.ShowClientTutorial(context, 1178, {})
end
return 0
end
-- 触发操作
function action_EVENT_ENTER_REGION_5009(context, evt)
if evt.param1 == 5009 and ScriptLib.GetRegionEntityCount(context, {region_eid = evt.source_eid, entity_type = EntityType.AVATAR}) == 1 and ScriptLib.TryRecordActivityPushTips(context, 2014002) == 0 then
ScriptLib.ShowClientTutorial(context, 1178, {})
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_5014(context, evt)
if 5011 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_5014(context, evt)
-- 将configid为 5003 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5003, 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_5015(context, evt)
if 5004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_5015(context, evt)
-- 将configid为 5005 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,312 @@
-- 基础信息
local base_info = {
group_id = 220142006
}
-- DEFS_MISCS
local defs = {
--本Group中发射器gadget的configID,最多3个,
fireMachineList = {
6001
},
--key为发射器configIDvalue为ColorDefine
initConfig = {
[6001] = 1,
},
--Key为操作台。value为发射器。允许有多个操作台控制同一个发射器
controlRelation = {
},
--左右旋转的SelectOptionID
selectID_horizon = 613,
--上下俯仰的SelectOptionID
selectID_vertical = 612,
--定义左右旋转的步长,key为传递装置configIDvalue为GadgetState
horizon_steps = {
[6002] = {0, 102, 103, 104},
[6005] = {0, 102, 103, 104},
[6006] = {0, 102, 103, 104},
[6013] = {0, 102, 103, 104},
},
--定义上下俯仰的步长,key为传递装置configIDvalue为GadgetState
vertical_steps = {
[6002] = {0, 302, 303, 304, 305},
[6005] = {0, 302, 303, 304, 305},
[6006] = {0, 302, 303, 304, 305},
[6013] = {0, 302, 303, 304, 305},
},
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6001, gadget_id = 70310158, pos = { x = 80.234, y = 4.785, z = 50.689 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 6002, gadget_id = 70310159, pos = { x = 106.359, y = 4.718, z = 50.029 }, rot = { x = 0.000, y = 45.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 6003, gadget_id = 70211111, pos = { x = 116.730, y = 4.669, z = 57.418 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 16, drop_tag = "解谜中级群岛", state = GadgetState.ChestLocked, isOneoff = true, persistent = true, autopick = true },
{ config_id = 6004, gadget_id = 70310188, pos = { x = 116.669, y = 4.718, z = 57.418 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, isOneoff = true, persistent = true },
{ config_id = 6005, gadget_id = 70310159, pos = { x = 109.672, y = 4.718, z = 53.081 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 6006, gadget_id = 70310159, pos = { x = 109.672, y = 4.718, z = 47.505 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } },
{ config_id = 6011, gadget_id = 70310164, pos = { x = 134.621, y = 7.642, z = 50.114 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 6012, gadget_id = 70310386, pos = { x = 134.746, y = 7.952, z = 50.114 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true, persistent = true },
{ config_id = 6013, gadget_id = 70310159, pos = { x = 116.438, y = 4.718, z = 47.505 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 613 } } }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1006007, name = "GADGET_STATE_CHANGE_6007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_6007", action = "action_EVENT_GADGET_STATE_CHANGE_6007", trigger_count = 0 },
{ config_id = 1006008, name = "ANY_GADGET_DIE_6008", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_6008", action = "action_EVENT_ANY_GADGET_DIE_6008", trigger_count = 0 },
{ config_id = 1006009, name = "TIME_AXIS_PASS_6009", event = EventType.EVENT_TIME_AXIS_PASS, source = "stone", condition = "condition_EVENT_TIME_AXIS_PASS_6009", action = "action_EVENT_TIME_AXIS_PASS_6009", trigger_count = 0 },
{ config_id = 1006010, name = "ANY_GADGET_DIE_6010", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_6010", action = "action_EVENT_ANY_GADGET_DIE_6010", trigger_count = 0 },
{ config_id = 1006014, name = "VARIABLE_CHANGE_6014", event = EventType.EVENT_VARIABLE_CHANGE, source = "stone", condition = "", action = "action_EVENT_VARIABLE_CHANGE_6014", trigger_count = 0 },
{ config_id = 1006015, name = "LEVEL_TAG_CHANGE_6015", event = EventType.EVENT_LEVEL_TAG_CHANGE, source = "", condition = "", action = "action_EVENT_LEVEL_TAG_CHANGE_6015", trigger_count = 0 },
{ config_id = 1006016, name = "GROUP_LOAD_6016", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_6016", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "stone", value = 0, no_refresh = true },
{ config_id = 2, name = "chest", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6001 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_6007", "ANY_GADGET_DIE_6008", "TIME_AXIS_PASS_6009", "ANY_GADGET_DIE_6010", "VARIABLE_CHANGE_6014", "LEVEL_TAG_CHANGE_6015", "GROUP_LOAD_6016" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 6002, 6003, 6004, 6005, 6006, 6013 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 6011, 6012 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_6007(context, evt)
-- 检测config_id为6011的gadget是否从GadgetState.Default变为GadgetState.GearStop
if 6011 ~= evt.param2 or GadgetState.GearStop ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_6007(context, evt)
-- 将本组内变量名为 "stone" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "stone", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 创建标识为"stone",时间节点为{30}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "stone", {30}, false)
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_6008(context, evt)
if 6004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_6008(context, evt)
-- 将本组内变量名为 "chest" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "chest", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将configid为 6003 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_6009(context, evt)
if "stone" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_6009(context, evt)
-- 将本组内变量名为 "stone" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "stone", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_6010(context, evt)
if 6012 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_6010(context, evt)
-- 将本组内变量名为 "stone" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "stone", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将configid为 6011 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6011, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_6014(context, evt)
if ScriptLib.GetGroupVariableValue(context, "stone") == 1 and ScriptLib.CheckSceneTag(context, 20142,1053 ) then
ScriptLib.SetGadgetStateByConfigId(context,6011, GadgetState.Default)
end
return 0
end
-- 触发操作
function action_EVENT_LEVEL_TAG_CHANGE_6015(context, evt)
if ScriptLib.CheckSceneTag(context, 20142,1053 ) then
ScriptLib.AddExtraGroupSuite(context, 0, 3)
if ScriptLib.GetGroupVariableValue(context, "stone") == 0 then
ScriptLib.SetGadgetStateByConfigId(context,6011, GadgetState.ChestLocked)
end
if ScriptLib.GetGroupVariableValue(context, "stone") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,6011, GadgetState.Default)
end
if ScriptLib.GetGroupVariableValue(context, "stone") == 2 then
ScriptLib.SetGadgetStateByConfigId(context,6011, GadgetState.GearStop)
end
else
ScriptLib.RemoveExtraGroupSuite(context, 220142006, 3)
end
if ScriptLib.CheckSceneTag(context, 20142,1054 ) then
ScriptLib.AddExtraGroupSuite(context, 0, 2)
if ScriptLib.GetGroupVariableValue(context, "chest") == 0 then
ScriptLib.SetGadgetStateByConfigId(context,6003, GadgetState.ChestLocked)
end
if ScriptLib.GetGroupVariableValue(context, "chest") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,6003, GadgetState.Default)
end
else
ScriptLib.RemoveExtraGroupSuite(context, 220142006, 2)
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_6016(context, evt)
if ScriptLib.CheckSceneTag(context, 20142,1053 ) then
ScriptLib.AddExtraGroupSuite(context, 0, 3)
if ScriptLib.GetGroupVariableValue(context, "stone") == 0 then
ScriptLib.SetGadgetStateByConfigId(context,6011, GadgetState.ChestLocked)
end
if ScriptLib.GetGroupVariableValue(context, "stone") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,6011, GadgetState.Default)
end
if ScriptLib.GetGroupVariableValue(context, "stone") == 2 then
ScriptLib.SetGroupVariableValue(context, "stone", 1)
ScriptLib.SetGadgetStateByConfigId(context,6011, GadgetState.Default)
end
end
if ScriptLib.CheckSceneTag(context, 20142,1054 ) then
ScriptLib.AddExtraGroupSuite(context, 0, 2)
if ScriptLib.GetGroupVariableValue(context, "chest") == 0 then
ScriptLib.SetGadgetStateByConfigId(context,6003, GadgetState.ChestLocked)
end
if ScriptLib.GetGroupVariableValue(context, "chest") == 1 then
ScriptLib.SetGadgetStateByConfigId(context,6003, GadgetState.Default)
end
end
return 0
end
require "V2_8/FireMachineColorHandle"
@@ -0,0 +1,277 @@
-- 基础信息
local base_info = {
group_id = 220142007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 7004, monster_id = 25080201, pos = { x = 125.471, y = 7.150, z = 42.953 }, rot = { x = 0.000, y = 259.516, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 },
{ config_id = 7005, monster_id = 25080201, pos = { x = 124.132, y = 7.150, z = 57.632 }, rot = { x = 0.000, y = 259.516, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 },
{ config_id = 7006, monster_id = 25100201, pos = { x = 129.455, y = 7.150, z = 54.500 }, rot = { x = 0.000, y = 262.954, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 },
{ config_id = 7007, monster_id = 25100101, pos = { x = 130.346, y = 7.150, z = 45.305 }, rot = { x = 0.000, y = 263.450, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 },
{ config_id = 7013, monster_id = 25080101, pos = { x = 128.366, y = 7.198, z = 66.291 }, rot = { x = 0.000, y = 212.663, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 },
{ config_id = 7014, monster_id = 25080101, pos = { x = 121.144, y = 7.198, z = 65.098 }, rot = { x = 0.000, y = 212.663, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 },
{ config_id = 7015, monster_id = 25080301, pos = { x = 126.725, y = 7.210, z = 36.630 }, rot = { x = 0.000, y = 308.852, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 },
{ config_id = 7016, monster_id = 25080301, pos = { x = 118.378, y = 7.210, z = 36.590 }, rot = { x = 0.000, y = 308.852, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 },
{ config_id = 7018, monster_id = 25080101, pos = { x = 111.107, y = 7.198, z = 65.089 }, rot = { x = 0.000, y = 176.733, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 },
{ config_id = 7020, monster_id = 25080301, pos = { x = 110.566, y = 7.210, z = 36.182 }, rot = { x = 0.000, y = 29.216, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7001, gadget_id = 70360001, pos = { x = 120.815, y = 7.150, z = 52.536 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 7009, shape = RegionShape.SPHERE, radius = 5, pos = { x = 102.574, y = 7.422, z = 49.953 } }
}
-- 触发器
triggers = {
{ config_id = 1007008, name = "LEVEL_TAG_CHANGE_7008", event = EventType.EVENT_LEVEL_TAG_CHANGE, source = "", condition = "", action = "action_EVENT_LEVEL_TAG_CHANGE_7008", trigger_count = 0 },
{ config_id = 1007009, name = "ENTER_REGION_7009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_7009", action = "action_EVENT_ENTER_REGION_7009", trigger_count = 0 },
{ config_id = 1007010, name = "ANY_MONSTER_DIE_7010", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_7010", action = "action_EVENT_ANY_MONSTER_DIE_7010", trigger_count = 0 },
{ config_id = 1007011, name = "GROUP_LOAD_7011", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_7011", trigger_count = 0 },
{ config_id = 1007012, name = "ANY_MONSTER_DIE_7012", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_7012", action = "action_EVENT_ANY_MONSTER_DIE_7012", trigger_count = 0 },
{ config_id = 1007017, name = "DUNGEON_ALL_AVATAR_DIE_7017", event = EventType.EVENT_DUNGEON_ALL_AVATAR_DIE, source = "", condition = "", action = "action_EVENT_DUNGEON_ALL_AVATAR_DIE_7017", trigger_count = 0 },
{ config_id = 1007019, name = "DUNGEON_AVATAR_SLIP_DIE_7019", event = EventType.EVENT_DUNGEON_AVATAR_SLIP_DIE, source = "", condition = "", action = "action_EVENT_DUNGEON_AVATAR_SLIP_DIE_7019", trigger_count = 0 },
{ config_id = 1007021, name = "DUNGEON_ALL_AVATAR_DIE_7021", event = EventType.EVENT_DUNGEON_ALL_AVATAR_DIE, source = "", condition = "", action = "action_EVENT_DUNGEON_ALL_AVATAR_DIE_7021", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 2, name = "temp", value = 0, no_refresh = true }
}
-- 废弃数据
garbages = {
monsters = {
{ config_id = 7002, monster_id = 25080201, pos = { x = 119.123, y = 7.150, z = 52.214 }, rot = { x = 0.000, y = 259.516, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 },
{ config_id = 7003, monster_id = 25080201, pos = { x = 119.723, y = 7.150, z = 48.256 }, rot = { x = 0.000, y = 259.516, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7001 },
regions = { },
triggers = { "LEVEL_TAG_CHANGE_7008", "GROUP_LOAD_7011", "DUNGEON_ALL_AVATAR_DIE_7017", "DUNGEON_AVATAR_SLIP_DIE_7019", "DUNGEON_ALL_AVATAR_DIE_7021" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 7004, 7005, 7006, 7007 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_7012" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { 7009 },
triggers = { "ENTER_REGION_7009" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 7013, 7014, 7015, 7016, 7018, 7020 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_7010" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_LEVEL_TAG_CHANGE_7008(context, evt)
ScriptLib.RefreshGroup(context, { suite=1})
if evt.param2 == 24 then
ScriptLib.AddExtraGroupSuite(context, 0, 3)
else
ScriptLib.RemoveExtraGroupSuite(context, 220142007, 2)
ScriptLib.RemoveExtraGroupSuite(context, 220142007, 3)
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_7009(context, evt)
if evt.param1 ~= 7009 then return false end
-- 判断变量"temp"为0
if ScriptLib.GetGroupVariableValueByGroup(context, "temp", 220142007) ~= 0 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_7009(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220142007, 2)
-- 改变指定group组220142002中, configid为2002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220142002, 2002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_7010(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_7010(context, evt)
-- 将本组内变量名为 "temp" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "temp", 2, 220142007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 改变指定group组220142002中, configid为2002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220142002, 2002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220142006中, configid为6011的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220142006, 6011, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220142006, monsters = {}, gadgets = {6012} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_7011(context, evt)
ScriptLib.RefreshGroup(context, { suite=1})
if ScriptLib.CheckSceneTag(context, 20142,1053 ) then
ScriptLib.AddExtraGroupSuite(context, 0, 3)
end
if ScriptLib.GetGroupVariableValue(context, "temp") == 1 then
ScriptLib.SetGroupVariableValue(context, "temp", 0)
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_7012(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"temp"为0
if ScriptLib.GetGroupVariableValue(context, "temp") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_7012(context, evt)
-- 将本组内变量名为 "temp" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "temp", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 220142007, 4)
return 0
end
-- 触发操作
function action_EVENT_DUNGEON_ALL_AVATAR_DIE_7017(context, evt)
if ScriptLib.GetGroupVariableValue(context, "temp") == 1 then
ScriptLib.SetGroupVariableValue(context, "temp", 0)
end
ScriptLib.RemoveExtraGroupSuite(context, 220142007, 2)
return 0
end
-- 触发操作
function action_EVENT_DUNGEON_AVATAR_SLIP_DIE_7019(context, evt)
ScriptLib.RefreshGroup(context, { suite=1})
if ScriptLib.CheckSceneTag(context, 20142,1053 ) then
ScriptLib.AddExtraGroupSuite(context, 0, 3)
end
if ScriptLib.GetGroupVariableValue(context, "temp") == 1 then
ScriptLib.SetGroupVariableValue(context, "temp", 0)
end
return 0
end
-- 触发操作
function action_EVENT_DUNGEON_ALL_AVATAR_DIE_7021(context, evt)
ScriptLib.RemoveExtraGroupSuite(context, 220142007, 4)
return 0
end
@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 220142008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8001, gadget_id = 71700392, pos = { x = 171.944, y = 30.237, z = 27.698 }, rot = { x = 0.000, y = 270.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 = { 8001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,277 @@
-- 基础信息
local base_info = {
group_id = 220142009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 9001, monster_id = 25080401, pos = { x = 180.535, y = 5.090, z = 46.822 }, rot = { x = 0.000, y = 271.495, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 },
{ config_id = 9002, monster_id = 25050301, pos = { x = 184.557, y = 5.095, z = 56.185 }, rot = { x = 0.000, y = 260.052, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 9005, monster_id = 25050301, pos = { x = 184.878, y = 5.095, z = 42.668 }, rot = { x = 0.000, y = 266.828, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 9011, monster_id = 25080401, pos = { x = 180.684, y = 5.090, z = 52.545 }, rot = { x = 0.000, y = 271.495, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 },
{ config_id = 9012, monster_id = 25050401, pos = { x = 191.753, y = 5.150, z = 63.625 }, rot = { x = 0.000, y = 216.852, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 9013, monster_id = 25050401, pos = { x = 190.890, y = 5.150, z = 36.901 }, rot = { x = 0.000, y = 338.940, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 9014, monster_id = 25050301, pos = { x = 181.712, y = 5.150, z = 63.811 }, rot = { x = 0.000, y = 185.748, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 9015, monster_id = 25050301, pos = { x = 173.342, y = 5.150, z = 63.881 }, rot = { x = 0.000, y = 185.748, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 9016, monster_id = 25050301, pos = { x = 182.729, y = 5.150, z = 36.941 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 9017, monster_id = 25050301, pos = { x = 174.074, y = 5.150, z = 36.950 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9007, gadget_id = 70360001, pos = { x = 181.771, y = 5.181, z = 52.536 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 9009, shape = RegionShape.SPHERE, radius = 5, pos = { x = 167.152, y = 5.206, z = 49.953 } }
}
-- 触发器
triggers = {
{ config_id = 1009006, name = "ANY_MONSTER_DIE_9006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_9006", action = "action_EVENT_ANY_MONSTER_DIE_9006", trigger_count = 0 },
{ config_id = 1009008, name = "LEVEL_TAG_CHANGE_9008", event = EventType.EVENT_LEVEL_TAG_CHANGE, source = "", condition = "", action = "action_EVENT_LEVEL_TAG_CHANGE_9008", trigger_count = 0 },
{ config_id = 1009009, name = "ENTER_REGION_9009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9009", action = "action_EVENT_ENTER_REGION_9009", trigger_count = 0 },
{ config_id = 1009010, name = "ANY_MONSTER_DIE_9010", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_9010", action = "action_EVENT_ANY_MONSTER_DIE_9010", trigger_count = 0 },
{ config_id = 1009018, name = "GROUP_LOAD_9018", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_9018", trigger_count = 0 },
{ config_id = 1009019, name = "DUNGEON_ALL_AVATAR_DIE_9019", event = EventType.EVENT_DUNGEON_ALL_AVATAR_DIE, source = "", condition = "", action = "action_EVENT_DUNGEON_ALL_AVATAR_DIE_9019", trigger_count = 0 },
{ config_id = 1009020, name = "DUNGEON_AVATAR_SLIP_DIE_9020", event = EventType.EVENT_DUNGEON_AVATAR_SLIP_DIE, source = "", condition = "", action = "action_EVENT_DUNGEON_AVATAR_SLIP_DIE_9020", trigger_count = 0 },
{ config_id = 1009021, name = "DUNGEON_ALL_AVATAR_DIE_9021", event = EventType.EVENT_DUNGEON_ALL_AVATAR_DIE, source = "", condition = "", action = "action_EVENT_DUNGEON_ALL_AVATAR_DIE_9021", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "temp", value = 0, no_refresh = true }
}
-- 废弃数据
garbages = {
monsters = {
{ config_id = 9003, monster_id = 25050301, pos = { x = 184.420, y = 5.095, z = 50.929 }, rot = { x = 0.000, y = 266.828, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 9004, monster_id = 25050301, pos = { x = 184.577, y = 5.095, z = 48.095 }, rot = { x = 0.000, y = 266.828, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 9007 },
regions = { },
triggers = { "LEVEL_TAG_CHANGE_9008", "GROUP_LOAD_9018", "DUNGEON_ALL_AVATAR_DIE_9019", "DUNGEON_AVATAR_SLIP_DIE_9020", "DUNGEON_ALL_AVATAR_DIE_9021" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 9001, 9002, 9005, 9011 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_9006" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { 9009 },
triggers = { "ENTER_REGION_9009" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 9012, 9013, 9014, 9015, 9016, 9017 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_9010" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_9006(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220142009) ~= 0 then
return false
end
-- 判断变量"temp"为0
if ScriptLib.GetGroupVariableValue(context, "temp") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_9006(context, evt)
-- 将本组内变量名为 "temp" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "temp", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 220142009, 4)
return 0
end
-- 触发操作
function action_EVENT_LEVEL_TAG_CHANGE_9008(context, evt)
ScriptLib.RefreshGroup(context, { suite=1})
if evt.param2 == 27 then
ScriptLib.AddExtraGroupSuite(context, 0, 3)
else
ScriptLib.RemoveExtraGroupSuite(context, 220142009, 2)
ScriptLib.RemoveExtraGroupSuite(context, 220142009, 3)
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_9009(context, evt)
if evt.param1 ~= 9009 then return false end
-- 判断变量"temp"为0
if ScriptLib.GetGroupVariableValue(context, "temp") ~= 0 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_9009(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220142009, 2)
-- 改变指定group组220142003中, configid为3002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220142003, 3002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_9010(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_9010(context, evt)
-- 将本组内变量名为 "temp" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "temp", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 改变指定group组220142003中, configid为3002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220142003, 3002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220142004中, configid为4021的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220142004, 4021, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220142004, monsters = {}, gadgets = {4024} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_9018(context, evt)
ScriptLib.RefreshGroup(context, { suite=1})
if ScriptLib.GetGroupVariableValue(context, "temp") == 1 then
ScriptLib.SetGroupVariableValue(context, "temp", 0)
end
if ScriptLib.CheckSceneTag(context, 20142,1056 ) then
ScriptLib.AddExtraGroupSuite(context, 0, 3)
end
return 0
end
-- 触发操作
function action_EVENT_DUNGEON_ALL_AVATAR_DIE_9019(context, evt)
if ScriptLib.GetGroupVariableValue(context, "temp") == 1 then
ScriptLib.SetGroupVariableValue(context, "temp", 0)
end
ScriptLib.RemoveExtraGroupSuite(context, 220142009, 2)
return 0
end
-- 触发操作
function action_EVENT_DUNGEON_AVATAR_SLIP_DIE_9020(context, evt)
ScriptLib.RefreshGroup(context, { suite=1})
if ScriptLib.CheckSceneTag(context, 20142,1056 ) then
ScriptLib.AddExtraGroupSuite(context, 0, 3)
end
if ScriptLib.GetGroupVariableValue(context, "temp") == 1 then
ScriptLib.SetGroupVariableValue(context, "temp", 0)
end
return 0
end
-- 触发操作
function action_EVENT_DUNGEON_ALL_AVATAR_DIE_9021(context, evt)
ScriptLib.RemoveExtraGroupSuite(context, 220142009, 4)
return 0
end
@@ -0,0 +1,171 @@
-- 基础信息
local base_info = {
group_id = 220142010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10001, gadget_id = 71700384, pos = { x = 77.708, y = 2.077, z = 98.146 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10006, gadget_id = 70710470, pos = { x = 77.708, y = 2.077, z = 98.146 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 10007, gadget_id = 70360001, pos = { x = 76.509, y = 9.064, z = 104.201 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1010002, name = "LEVEL_TAG_CHANGE_10002", event = EventType.EVENT_LEVEL_TAG_CHANGE, source = "", condition = "", action = "action_EVENT_LEVEL_TAG_CHANGE_10002", trigger_count = 0 },
{ config_id = 1010003, name = "GROUP_LOAD_10003", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_10003", trigger_count = 0 },
{ config_id = 1010004, name = "QUEST_START_10004", event = EventType.EVENT_QUEST_START, source = "4006524", condition = "", action = "action_EVENT_QUEST_START_10004", trigger_count = 0 },
{ config_id = 1010005, name = "QUEST_FINISH_10005", event = EventType.EVENT_QUEST_FINISH, source = "4006507", condition = "", action = "action_EVENT_QUEST_FINISH_10005", trigger_count = 0 },
{ config_id = 1010008, name = "QUEST_FINISH_10008", event = EventType.EVENT_QUEST_FINISH, source = "4006524", condition = "", action = "action_EVENT_QUEST_FINISH_10008", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "start", value = 0, no_refresh = true },
{ config_id = 2, name = "letter", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 10007 },
regions = { },
triggers = { "LEVEL_TAG_CHANGE_10002", "GROUP_LOAD_10003", "QUEST_START_10004", "QUEST_FINISH_10005", "QUEST_FINISH_10008" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 10006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 10001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_LEVEL_TAG_CHANGE_10002(context, evt)
if ScriptLib.CheckSceneTag(context, 20142,1051 ) and ScriptLib.GetGroupVariableValue(context, "start") == 1 then
ScriptLib.AddExtraGroupSuite(context, 0, 3)
else
ScriptLib.RemoveExtraGroupSuite(context, 220142010, 3)
ScriptLib.KillEntityByConfigId(context, {group_id=220142010, config_id=10006, entity_type=EntityType.GADGET})
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_10003(context, evt)
if ScriptLib.CheckSceneTag(context, 20142,1051 ) and ScriptLib.GetGroupVariableValue(context, "start") == 1 then
ScriptLib.AddExtraGroupSuite(context, 0, 3)
else
ScriptLib.RemoveExtraGroupSuite(context, 220142010, 3)
ScriptLib.RemoveExtraGroupSuite(context, 220142010, 2)
end
if ScriptLib.CheckSceneTag(context, 20142,1051 ) and ScriptLib.GetGroupVariableValue(context, "letter") == 0 then
ScriptLib.AddExtraGroupSuite(context, 0, 2)
else
ScriptLib.RemoveExtraGroupSuite(context, 220142010, 2)
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_START_10004(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220142010, 2)
return 0
end
-- 触发操作
function action_EVENT_QUEST_FINISH_10005(context, evt)
-- 将本组内变量名为 "start" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "start", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220142010, 3)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220142010, monsters = {}, gadgets = {10006} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_FINISH_10008(context, evt)
-- 将本组内变量名为 "letter" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "letter", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220142010, EntityType.GADGET, 10006 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,142 @@
-- 基础信息
local base_info = {
group_id = 220142011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 11001, gadget_id = 71700385, pos = { x = 114.003, y = 5.424, z = 50.227 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11004, gadget_id = 70360001, pos = { x = 76.522, y = 9.068, z = 104.201 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11006, gadget_id = 70710470, pos = { x = 113.942, y = 5.424, z = 50.286 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1011002, name = "LEVEL_TAG_CHANGE_11002", event = EventType.EVENT_LEVEL_TAG_CHANGE, source = "", condition = "", action = "action_EVENT_LEVEL_TAG_CHANGE_11002", trigger_count = 0 },
{ config_id = 1011003, name = "GROUP_LOAD_11003", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_11003", trigger_count = 0 },
{ config_id = 1011005, name = "QUEST_START_11005", event = EventType.EVENT_QUEST_START, source = "4006516", condition = "", action = "action_EVENT_QUEST_START_11005", trigger_count = 0 },
{ config_id = 1011007, name = "QUEST_FINISH_11007", event = EventType.EVENT_QUEST_FINISH, source = "4006516", condition = "", action = "action_EVENT_QUEST_FINISH_11007", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "start", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 11004 },
regions = { },
triggers = { "LEVEL_TAG_CHANGE_11002", "GROUP_LOAD_11003", "QUEST_START_11005", "QUEST_FINISH_11007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 11006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 11001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_LEVEL_TAG_CHANGE_11002(context, evt)
if ScriptLib.CheckSceneTag(context, 20142,1054 ) and ScriptLib.GetGroupVariableValue(context, "start") == 1 then
ScriptLib.AddExtraGroupSuite(context, 0, 3)
else
ScriptLib.RemoveExtraGroupSuite(context, 220142011, 3)
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_11003(context, evt)
if ScriptLib.CheckSceneTag(context, 20142,1054 ) and ScriptLib.GetGroupVariableValue(context, "start") == 1 then
ScriptLib.AddExtraGroupSuite(context, 0, 3)
else
ScriptLib.RemoveExtraGroupSuite(context, 220142011, 3)
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_START_11005(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220142011, 2)
return 0
end
-- 触发操作
function action_EVENT_QUEST_FINISH_11007(context, evt)
-- 将本组内变量名为 "start" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "start", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220142011, 3)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220142011, 2)
return 0
end
@@ -0,0 +1,413 @@
-- 基础信息
local base_info = {
group_id = 220142012
}
-- DEFS_MISCS
defs = {
--本Group用哪组LevelTag控制,请查LevelTagData表
levelTagGroupID = 7,
--是否由re-quire控制切suite,填0则不需要配置switchByLevelTag_suites
switchByLevelTag = 1,
--切入该LevelTag时,加载且仅加载的suite。
--注意,被此操作Remove掉的物件不会保留GadgetState
switchByLevelTag_suites = {
["2_8_Kazuha_04"] = {2},
["2_8_Kazuha_01"] = {},
["2_8_Kazuha_02"] = {},
["2_8_Kazuha_03"] = {},
["2_8_Kazuha_05"] = {2},
["2_8_Kazuha_06"] = {2},
["2_8_Kazuha_07"] = {2},
},
--需要保存gadgetState的物件configID,最多9个
saved_gadget =
{
12001,12002,12005
}
,
serve_items = {12011,12012},
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 12001, gadget_id = 70290137, pos = { x = 107.407, y = 4.098, z = 50.026 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 12002, gadget_id = 70290373, pos = { x = 104.629, y = 4.020, z = 47.003 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 12004, gadget_id = 70360001, pos = { x = 102.218, y = 4.020, z = 49.995 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12005, gadget_id = 70290373, pos = { x = 104.629, y = 4.020, z = 53.585 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 12009, gadget_id = 70690034, pos = { x = 83.525, y = -13.023, z = -2.667 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12011, gadget_id = 70290374, pos = { x = 102.484, y = 14.550, z = 34.731 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, isOneoff = true },
{ config_id = 12012, gadget_id = 70290374, pos = { x = 100.698, y = 4.323, z = 39.772 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, isOneoff = true },
{ config_id = 12020, gadget_id = 70360280, pos = { x = 74.602, y = 8.514, z = 31.916 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 12021, gadget_id = 70360291, pos = { x = 74.517, y = 8.480, z = 22.655 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12022, gadget_id = 70360280, pos = { x = 84.556, y = 13.847, z = 31.916 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 12023, gadget_id = 70360280, pos = { x = 84.556, y = 11.835, z = 31.916 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 12024, gadget_id = 70360291, pos = { x = 84.501, y = 11.775, z = 22.655 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12025, gadget_id = 70360291, pos = { x = 84.501, y = 13.784, z = 22.655 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12026, gadget_id = 70360280, pos = { x = 94.692, y = 15.114, z = 31.916 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 12027, gadget_id = 70360280, pos = { x = 94.692, y = 17.160, z = 31.916 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 12028, gadget_id = 70360291, pos = { x = 95.081, y = 15.006, z = 22.655 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12029, gadget_id = 70360291, pos = { x = 95.017, y = 16.975, z = 22.655 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12030, gadget_id = 70211111, pos = { x = 102.504, y = 14.724, z = 37.629 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 16, drop_tag = "解谜中级群岛", isOneoff = true, persistent = true, autopick = true }
}
-- 区域
regions = {
-- 任务保底4006512
{ config_id = 12008, shape = RegionShape.CUBIC, size = { x = 40.000, y = 15.000, z = 40.000 }, pos = { x = 95.405, y = 10.650, z = 50.026 } },
{ config_id = 12010, shape = RegionShape.CUBIC, size = { x = 10.000, y = 8.000, z = 10.000 }, pos = { x = 81.555, y = -1.885, z = -2.764 } },
{ config_id = 12014, shape = RegionShape.SPHERE, radius = 10, pos = { x = 103.152, y = 4.020, z = 49.655 } },
{ config_id = 12016, shape = RegionShape.SPHERE, radius = 8, pos = { x = 65.245, y = 8.289, z = -0.658 } },
{ config_id = 12032, shape = RegionShape.SPHERE, radius = 5, pos = { x = 103.298, y = 14.129, z = 32.843 } },
{ config_id = 12033, shape = RegionShape.SPHERE, radius = 5, pos = { x = 68.463, y = 4.834, z = 24.559 } }
}
-- 触发器
triggers = {
{ config_id = 1012003, name = "LEVEL_TAG_CHANGE_12003", event = EventType.EVENT_LEVEL_TAG_CHANGE, source = "", condition = "", action = "action_EVENT_LEVEL_TAG_CHANGE_12003", trigger_count = 0 },
{ config_id = 1012006, name = "GADGET_STATE_CHANGE_12006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "action_EVENT_GADGET_STATE_CHANGE_12006", trigger_count = 0 },
-- 任务保底4006512
{ config_id = 1012007, name = "QUEST_START_12007", event = EventType.EVENT_QUEST_START, source = "4006512", condition = "condition_EVENT_QUEST_START_12007", action = "action_EVENT_QUEST_START_12007", trigger_count = 0 },
-- 任务保底4006512
{ config_id = 1012008, name = "ENTER_REGION_12008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_12008", action = "action_EVENT_ENTER_REGION_12008", trigger_count = 0 },
{ config_id = 1012010, name = "ENTER_REGION_12010", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_12010", action = "action_EVENT_ENTER_REGION_12010", trigger_count = 0 },
{ config_id = 1012013, name = "TIME_AXIS_PASS_12013", event = EventType.EVENT_TIME_AXIS_PASS, source = "temp1", condition = "condition_EVENT_TIME_AXIS_PASS_12013", action = "action_EVENT_TIME_AXIS_PASS_12013", trigger_count = 0 },
{ config_id = 1012014, name = "ENTER_REGION_12014", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_12014", trigger_count = 0 },
{ config_id = 1012016, name = "ENTER_REGION_12016", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_12016", action = "action_EVENT_ENTER_REGION_12016", trigger_count = 0 },
{ config_id = 1012032, name = "ENTER_REGION_12032", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_12032", action = "action_EVENT_ENTER_REGION_12032", trigger_count = 0 },
{ config_id = 1012033, name = "ENTER_REGION_12033", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_12033", action = "action_EVENT_ENTER_REGION_12033", trigger_count = 0 },
{ config_id = 1012034, name = "GROUP_LOAD_12034", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_12034", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "temp", value = 0, no_refresh = true },
{ config_id = 2, name = "show", value = 0, no_refresh = true }
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1012015, name = "TIME_AXIS_PASS_12015", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_12015", action = "action_EVENT_TIME_AXIS_PASS_12015", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 12004 },
regions = { },
triggers = { "LEVEL_TAG_CHANGE_12003", "GROUP_LOAD_12034" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 12001, 12002, 12005, 12011, 12012, 12020, 12021, 12022, 12023, 12024, 12025, 12026, 12027, 12028, 12029, 12030 },
regions = { 12008, 12010, 12014, 12016, 12032, 12033 },
triggers = { "GADGET_STATE_CHANGE_12006", "QUEST_START_12007", "ENTER_REGION_12008", "ENTER_REGION_12010", "TIME_AXIS_PASS_12013", "ENTER_REGION_12014", "ENTER_REGION_12016", "ENTER_REGION_12032", "ENTER_REGION_12033" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 12009 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_LEVEL_TAG_CHANGE_12003(context, evt)
if evt.param2 == 26 then
ScriptLib.AddExtraGroupSuite(context, 0, 2)
else
ScriptLib.RemoveExtraGroupSuite(context, 220142012, 2)
ScriptLib.RemoveExtraGroupSuite(context, 220142012, 3)
end
return 0
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_12006(context, evt)
if ScriptLib.GetGadgetStateByConfigId(context, 0, 12002) == 201 and ScriptLib.GetGadgetStateByConfigId(context, 0, 12005) == 201 then
ScriptLib.AddQuestProgress(context, "4006512")
ScriptLib.SetGadgetStateByConfigId(context,12001, GadgetState.GearStart)
ScriptLib.SetGroupVariableValue(context, "temp", 1)
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_12007(context, evt)
-- 判断变量"temp"为1
if ScriptLib.GetGroupVariableValue(context, "temp") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_12007(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006512") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_12008(context, evt)
if evt.param1 ~= 12008 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"temp"为1
if ScriptLib.GetGroupVariableValue(context, "temp") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_12008(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006512") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_12010(context, evt)
if evt.param1 ~= 12010 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_12010(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220142012, 3)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_12013(context, evt)
if "temp1" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_12013(context, evt)
-- 将configid为 12020 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 12020, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 12022 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 12022, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 12023 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 12023, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 12026 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 12026, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 12027 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 12027, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_ENTER_REGION_12014(context, evt)
if evt.param1 == 12014 and ScriptLib.GetRegionEntityCount(context, {region_eid = evt.source_eid, entity_type = EntityType.AVATAR}) == 1 and ScriptLib.TryRecordActivityPushTips(context, 2014009) == 0 then
ScriptLib.ShowClientTutorial(context, 1179, {})
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_12016(context, evt)
if evt.param1 ~= 12016 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_12016(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 12009 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_12032(context, evt)
if evt.param1 ~= 12032 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_12032(context, evt)
-- 停止标识为"temp1"的时间轴
ScriptLib.EndTimeAxis(context, "temp1")
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_12033(context, evt)
if evt.param1 ~= 12033 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_12033(context, evt)
-- 将configid为 12020 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 12020, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 12022 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 12022, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 12023 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 12023, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 12026 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 12026, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 12027 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 12027, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建标识为"temp1",时间节点为{4}的时间轴,true用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "temp1", {4}, true)
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_12034(context, evt)
if ScriptLib.CheckSceneTag(context, 20142,1055 ) then
ScriptLib.AddExtraGroupSuite(context, 0, 2)
end
return 0
end
@@ -0,0 +1,455 @@
-- 基础信息
local base_info = {
group_id = 220142013
}
-- DEFS_MISCS
defs = {
--本Group用哪组LevelTag控制,请查LevelTagData表
levelTagGroupID = 7,
--是否由re-quire控制切suite,填0则不需要配置switchByLevelTag_suites
switchByLevelTag = 1,
--切入该LevelTag时,加载且仅加载的suite。
--注意,被此操作Remove掉的物件不会保留GadgetState
switchByLevelTag_suites = {
["2_8_Kazuha_04"] = {2},
["2_8_Kazuha_01"] = {},
["2_8_Kazuha_02"] = {},
["2_8_Kazuha_03"] = {},
["2_8_Kazuha_05"] = {},
["2_8_Kazuha_06"] = {},
["2_8_Kazuha_07"] = {},
},
--需要保存gadgetState的物件configID,最多9个
saved_gadget =
{
13002,13004,13005,13008
}
,
serve_items = {13010,13011,13012},
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 13001, gadget_id = 70360001, pos = { x = 165.603, y = 26.768, z = 45.400 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13002, gadget_id = 70290373, pos = { x = 164.767, y = 27.273, z = 46.082 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 13004, gadget_id = 70290137, pos = { x = 168.488, y = 29.873, z = 42.280 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13005, gadget_id = 70290373, pos = { x = 171.319, y = 7.001, z = 34.764 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 13007, gadget_id = 70211101, pos = { x = 172.598, y = 24.495, z = 62.627 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 16, drop_tag = "解谜低级群岛", isOneoff = true, persistent = true, autopick = true },
{ config_id = 13008, gadget_id = 70290373, pos = { x = 166.451, y = 13.773, z = 61.224 }, rot = { x = 0.000, y = 90.525, z = 0.000 }, level = 1, persistent = true },
{ config_id = 13009, gadget_id = 70220070, pos = { x = 174.306, y = 13.997, z = 65.548 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13010, gadget_id = 70290374, pos = { x = 171.599, y = 4.540, z = 50.075 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.ChestLocked, isOneoff = true },
{ config_id = 13011, gadget_id = 70290374, pos = { x = 183.662, y = 8.536, z = 58.168 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.ChestLocked, isOneoff = true },
{ config_id = 13012, gadget_id = 70290374, pos = { x = 167.334, y = 18.596, z = 38.991 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.ChestLocked, isOneoff = true },
{ config_id = 13013, gadget_id = 70211101, pos = { x = 174.390, y = 13.997, z = 67.430 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 16, drop_tag = "解谜低级群岛", isOneoff = true, persistent = true, autopick = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1013003, name = "GADGET_STATE_CHANGE_13003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_13003", action = "action_EVENT_GADGET_STATE_CHANGE_13003", trigger_count = 0 },
{ config_id = 1013006, name = "GADGET_STATE_CHANGE_13006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "action_EVENT_GADGET_STATE_CHANGE_13006", trigger_count = 0 },
{ config_id = 1013014, name = "QUEST_FINISH_13014", event = EventType.EVENT_QUEST_FINISH, source = "4006501", condition = "condition_EVENT_QUEST_FINISH_13014", action = "action_EVENT_QUEST_FINISH_13014", trigger_count = 0 },
{ config_id = 1013015, name = "QUEST_FINISH_13015", event = EventType.EVENT_QUEST_FINISH, source = "4006518", condition = "condition_EVENT_QUEST_FINISH_13015", action = "action_EVENT_QUEST_FINISH_13015", trigger_count = 0 },
{ config_id = 1013016, name = "QUEST_FINISH_13016", event = EventType.EVENT_QUEST_FINISH, source = "4006519", condition = "condition_EVENT_QUEST_FINISH_13016", action = "action_EVENT_QUEST_FINISH_13016", trigger_count = 0 },
-- 供奉保底-断线
{ config_id = 1013017, name = "QUEST_START_13017", event = EventType.EVENT_QUEST_START, source = "4006522", condition = "condition_EVENT_QUEST_START_13017", action = "action_EVENT_QUEST_START_13017", trigger_count = 0 },
{ config_id = 1013018, name = "GADGET_STATE_CHANGE_13018", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_13018", action = "action_EVENT_GADGET_STATE_CHANGE_13018", trigger_count = 0 },
{ config_id = 1013019, name = "GADGET_STATE_CHANGE_13019", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_13019", action = "action_EVENT_GADGET_STATE_CHANGE_13019", trigger_count = 0 },
{ config_id = 1013020, name = "QUEST_START_13020", event = EventType.EVENT_QUEST_START, source = "4006520", condition = "", action = "action_EVENT_QUEST_START_13020", trigger_count = 0 },
{ config_id = 1013021, name = "QUEST_START_13021", event = EventType.EVENT_QUEST_START, source = "4006521", condition = "", action = "action_EVENT_QUEST_START_13021", trigger_count = 0 },
{ config_id = 1013022, name = "QUEST_START_13022", event = EventType.EVENT_QUEST_START, source = "4006508", condition = "", action = "action_EVENT_QUEST_START_13022", trigger_count = 0 },
-- 供奉物已解锁保底4006501
{ config_id = 1013023, name = "QUEST_START_13023", event = EventType.EVENT_QUEST_START, source = "4006501", condition = "condition_EVENT_QUEST_START_13023", action = "action_EVENT_QUEST_START_13023", trigger_count = 0 },
-- 供奉物已解锁保底4006518
{ config_id = 1013024, name = "QUEST_START_13024", event = EventType.EVENT_QUEST_START, source = "4006518", condition = "condition_EVENT_QUEST_START_13024", action = "action_EVENT_QUEST_START_13024", trigger_count = 0 },
-- 供奉物已解锁保底4006519
{ config_id = 1013025, name = "QUEST_START_13025", event = EventType.EVENT_QUEST_START, source = "4006519", condition = "condition_EVENT_QUEST_START_13025", action = "action_EVENT_QUEST_START_13025", trigger_count = 0 },
-- 供奉保底-断线
{ config_id = 1013026, name = "QUEST_START_13026", event = EventType.EVENT_QUEST_START, source = "4006522", condition = "condition_EVENT_QUEST_START_13026", action = "action_EVENT_QUEST_START_13026", trigger_count = 0 },
-- 供奉保底-断线
{ config_id = 1013027, name = "QUEST_START_13027", event = EventType.EVENT_QUEST_START, source = "4006522", condition = "condition_EVENT_QUEST_START_13027", action = "action_EVENT_QUEST_START_13027", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 4, name = "isLock_1", value = 1, no_refresh = true },
{ config_id = 5, name = "isLock_2", value = 1, no_refresh = true },
{ config_id = 6, name = "isLock_3", value = 1, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 13001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 13002, 13004, 13005, 13007, 13008, 13009, 13010, 13011, 13012, 13013 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_13003", "GADGET_STATE_CHANGE_13006", "QUEST_FINISH_13014", "QUEST_FINISH_13015", "QUEST_FINISH_13016", "QUEST_START_13017", "GADGET_STATE_CHANGE_13018", "GADGET_STATE_CHANGE_13019", "QUEST_START_13020", "QUEST_START_13021", "QUEST_START_13022", "QUEST_START_13023", "QUEST_START_13024", "QUEST_START_13025", "QUEST_START_13026", "QUEST_START_13027" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_13003(context, evt)
if 13005 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_13003(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006508") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_13006(context, evt)
if ScriptLib.GetGadgetStateByConfigId(context, 0, 13002) == 201 and ScriptLib.GetGadgetStateByConfigId(context, 0, 13005) == 201 and ScriptLib.GetGadgetStateByConfigId(context, 0, 13008) == 201 then
ScriptLib.SetGadgetStateByConfigId(context,13004, GadgetState.GearStart)
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_13014(context, evt)
if GadgetState.ChestLocked ~= ScriptLib.GetGadgetStateByConfigId(context, 220142013, 13010) then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_13014(context, evt)
-- 将本组内变量名为 "isLock_1" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "isLock_1", 0, 220142013) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将configid为 13010 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 13010, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_13015(context, evt)
if GadgetState.ChestLocked ~= ScriptLib.GetGadgetStateByConfigId(context, 220142013, 13011) then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_13015(context, evt)
-- 将本组内变量名为 "isLock_2" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isLock_2", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将configid为 13011 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 13011, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_13016(context, evt)
if GadgetState.ChestLocked ~= ScriptLib.GetGadgetStateByConfigId(context, 220142013, 13012) then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_13016(context, evt)
-- 将本组内变量名为 "isLock_3" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isLock_3", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将configid为 13012 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 13012, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_13017(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220142013, 13010) then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_13017(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006501") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_13018(context, evt)
if 13008 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_13018(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006520") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_13019(context, evt)
if 13002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_13019(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006521") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_START_13020(context, evt)
if ScriptLib.GetGadgetStateByConfigId(context, 0, 13002) == 201 then
ScriptLib.AddQuestProgress(context, "4006521")
end
if ScriptLib.GetGadgetStateByConfigId(context, 0, 13005) == 201 then
ScriptLib.AddQuestProgress(context, "4006508")
end
if ScriptLib.GetGadgetStateByConfigId(context, 0, 13008) == 201 then
ScriptLib.AddQuestProgress(context, "4006520")
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_START_13021(context, evt)
if ScriptLib.GetGadgetStateByConfigId(context, 0, 13002) == 201 then
ScriptLib.AddQuestProgress(context, "4006521")
end
if ScriptLib.GetGadgetStateByConfigId(context, 0, 13005) == 201 then
ScriptLib.AddQuestProgress(context, "4006508")
end
if ScriptLib.GetGadgetStateByConfigId(context, 0, 13008) == 201 then
ScriptLib.AddQuestProgress(context, "4006520")
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_START_13022(context, evt)
if ScriptLib.GetGadgetStateByConfigId(context, 0, 13002) == 201 then
ScriptLib.AddQuestProgress(context, "4006521")
end
if ScriptLib.GetGadgetStateByConfigId(context, 0, 13005) == 201 then
ScriptLib.AddQuestProgress(context, "4006508")
end
if ScriptLib.GetGadgetStateByConfigId(context, 0, 13008) == 201 then
ScriptLib.AddQuestProgress(context, "4006520")
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_13023(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220142013, 13010) then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_13023(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006501") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_13024(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220142013, 13011) then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_13024(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006518") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_13025(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220142013, 13012) then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_13025(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006519") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_13026(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220142013, 13011) then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_13026(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006518") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_13027(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 220142013, 13012) then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_13027(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "4006519") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,549 @@
{
"areas": {},
"doors": {},
"entities": {
"2": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 400.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": 135.4193,
"y": -62.34701,
"z": 13.43367
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 20.0,
"heightType": "Center",
"length": 500.0,
"useHeight": true,
"width": 500.0
},
"stringParam": "",
"tranPos": {
"x": 96.98752,
"y": 13.7549095,
"z": -8.27117348
},
"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
},
"3": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 300.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": 135.4193,
"y": -11.80172,
"z": -28.66608
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 100.0,
"heightType": "Center",
"length": 20.0,
"useHeight": true,
"width": 500.0
},
"stringParam": "",
"tranPos": {
"x": 96.98752,
"y": 13.7549095,
"z": -8.27117348
},
"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
},
"4": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 300.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": 223.2652,
"y": -11.80172,
"z": 60.41078
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 100.0,
"heightType": "Center",
"length": 200.0,
"useHeight": true,
"width": 20.0
},
"stringParam": "",
"tranPos": {
"x": 96.98752,
"y": 13.7549095,
"z": -8.27117348
},
"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
},
"5": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 300.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": 135.4193,
"y": -11.80172,
"z": 135.0911
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 100.0,
"heightType": "Center",
"length": 20.0,
"useHeight": true,
"width": 500.0
},
"stringParam": "",
"tranPos": {
"x": 96.98752,
"y": 13.7549095,
"z": -8.27117348
},
"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
},
"6": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 300.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": 34.93403,
"y": -11.80172,
"z": 60.41078
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 100.0,
"heightType": "Center",
"length": 200.0,
"useHeight": true,
"width": 20.0
},
"stringParam": "",
"tranPos": {
"x": 96.98752,
"y": 13.7549095,
"z": -8.27117348
},
"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": 59.65471,
"y": 0.7850001,
"z": 99.95486
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranPos": {
"x": 51.7593079,
"y": 0.7850001,
"z": 99.95486
},
"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": 150.638,
"y": 4.778734,
"z": 49.61718
},
"rot": {
"x": 0.0,
"y": 98.37,
"z": 0.0
},
"size": {
"x": 10.0,
"y": 10.0,
"z": 15.0
},
"tranPos": {
"x": 150.638,
"y": 4.778734,
"z": 49.61718
},
"tranRot": {
"x": 0.0,
"y": 98.36996,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
},
"3": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": 150.638,
"y": 4.778734,
"z": 49.61718
},
"rot": {
"x": 0.0,
"y": 98.37,
"z": 0.0
},
"size": {
"x": 10.0,
"y": 10.0,
"z": 15.0
},
"tranPos": {
"x": 59.91386,
"y": 0.7189806,
"z": 100.7054
},
"tranRot": {
"x": 0.0,
"y": 98.36996,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
},
"4": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 82.79601,
"y": 4.789,
"z": 48.24961
},
"rot": {
"x": 0.0,
"y": 98.37,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 10.0,
"z": 25.0
},
"tranPos": {
"x": 82.7960052,
"y": 4.789,
"z": 48.24961
},
"tranRot": {
"x": 0.0,
"y": 98.36996,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
},
"5": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": 82.79601,
"y": 4.789,
"z": 48.24961
},
"rot": {
"x": 0.0,
"y": 98.37,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 10.0,
"z": 25.0
},
"tranPos": {
"x": 59.91386,
"y": 0.7189806,
"z": 100.7054
},
"tranRot": {
"x": 0.0,
"y": 98.36996,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
},
"6": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 59.91386,
"y": 0.7189806,
"z": 100.7054
},
"rot": {
"x": 0.0,
"y": 98.37,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 10.0,
"z": 25.0
},
"tranPos": {
"x": 59.91386,
"y": 0.7189806,
"z": 100.7054
},
"tranRot": {
"x": 0.0,
"y": 98.37,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
}
},
"transRadius": 0.0
}