Files
hk4e-go/gdconf/game_data_config/lua/scene/50034/scene50034_group250034018.lua
T
2022-11-30 00:00:20 +08:00

320 lines
8.3 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 基础信息
local base_info = {
group_id = 250034018
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 18001, gadget_id = 70350107, pos = { x = 65.522, y = 26.603, z = -2.902 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 18002, gadget_id = 70350099, pos = { x = 65.522, y = 26.603, z = -2.902 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 18003, gadget_id = 70350100, pos = { x = 65.522, y = 26.603, z = -2.902 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 18004, gadget_id = 70350101, pos = { x = 65.522, y = 26.603, z = -2.902 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 18005, gadget_id = 70350102, pos = { x = 65.522, y = 26.603, z = -2.902 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 18006, gadget_id = 70350103, pos = { x = 65.522, y = 26.603, z = -2.902 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1018007, name = "GADGET_CREATE_18007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_18007", action = "action_EVENT_GADGET_CREATE_18007" },
{ config_id = 1018008, name = "SELECT_OPTION_18008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_18008", action = "action_EVENT_SELECT_OPTION_18008" },
{ config_id = 1018009, name = "SELECT_OPTION_18009", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_18009", action = "action_EVENT_SELECT_OPTION_18009" },
{ config_id = 1018010, name = "SELECT_OPTION_18010", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_18010", action = "action_EVENT_SELECT_OPTION_18010" },
{ config_id = 1018011, name = "SELECT_OPTION_18011", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_18011", action = "action_EVENT_SELECT_OPTION_18011" },
{ config_id = 1018012, name = "SELECT_OPTION_18012", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_18012", action = "action_EVENT_SELECT_OPTION_18012" },
{ config_id = 1018013, name = "SELECT_OPTION_18013", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_18013", action = "action_EVENT_SELECT_OPTION_18013" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 18001 },
regions = { },
triggers = { "GADGET_CREATE_18007", "SELECT_OPTION_18008", "SELECT_OPTION_18009", "SELECT_OPTION_18010", "SELECT_OPTION_18011", "SELECT_OPTION_18012", "SELECT_OPTION_18013" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 18002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 18003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 18004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 18005 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 18006 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_18007(context, evt)
if 18001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_18007(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250034018, 18001, {41,42,43,44,45,46}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_18008(context, evt)
-- 判断是gadgetid 18001 option_id 41
if 18001 ~= evt.param1 then
return false
end
if 41 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_18008(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250034018, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250034018, 2)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_18009(context, evt)
-- 判断是gadgetid 18001 option_id 42
if 18001 ~= evt.param1 then
return false
end
if 42 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_18009(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250034018, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250034018, 3)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_18010(context, evt)
-- 判断是gadgetid 18001 option_id 43
if 18001 ~= evt.param1 then
return false
end
if 43 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_18010(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250034018, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 250034018, 4)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_18011(context, evt)
-- 判断是gadgetid 18001 option_id 44
if 18001 ~= evt.param1 then
return false
end
if 44 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_18011(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250034018, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 250034018, 5)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_18012(context, evt)
-- 判断是gadgetid 18001 option_id 45
if 18001 ~= evt.param1 then
return false
end
if 45 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_18012(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250034018, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 添加suite6的新内容
ScriptLib.AddExtraGroupSuite(context, 250034018, 6)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_18013(context, evt)
-- 判断是gadgetid 18001 option_id 46
if 18001 ~= evt.param1 then
return false
end
if 46 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_18013(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250034018, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end