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

320 lines
8.2 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 = 250034009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9001, gadget_id = 70350107, pos = { x = 37.843, y = 30.500, z = 7.113 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 9002, gadget_id = 70350099, pos = { x = 37.843, y = 30.500, z = 7.113 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 9003, gadget_id = 70350100, pos = { x = 37.843, y = 30.500, z = 7.113 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 9004, gadget_id = 70350101, pos = { x = 37.843, y = 30.500, z = 7.113 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 9005, gadget_id = 70350102, pos = { x = 37.843, y = 30.500, z = 7.113 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 9006, gadget_id = 70350103, pos = { x = 37.843, y = 30.500, z = 7.113 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1009007, name = "GADGET_CREATE_9007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_9007", action = "action_EVENT_GADGET_CREATE_9007" },
{ config_id = 1009008, name = "SELECT_OPTION_9008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_9008", action = "action_EVENT_SELECT_OPTION_9008" },
{ config_id = 1009009, name = "SELECT_OPTION_9009", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_9009", action = "action_EVENT_SELECT_OPTION_9009" },
{ config_id = 1009010, name = "SELECT_OPTION_9010", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_9010", action = "action_EVENT_SELECT_OPTION_9010" },
{ config_id = 1009011, name = "SELECT_OPTION_9011", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_9011", action = "action_EVENT_SELECT_OPTION_9011" },
{ config_id = 1009012, name = "SELECT_OPTION_9012", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_9012", action = "action_EVENT_SELECT_OPTION_9012" },
{ config_id = 1009013, name = "SELECT_OPTION_9013", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_9013", action = "action_EVENT_SELECT_OPTION_9013" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 9001 },
regions = { },
triggers = { "GADGET_CREATE_9007", "SELECT_OPTION_9008", "SELECT_OPTION_9009", "SELECT_OPTION_9010", "SELECT_OPTION_9011", "SELECT_OPTION_9012", "SELECT_OPTION_9013" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 9002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 9003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 9004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 9005 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 9006 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_9007(context, evt)
if 9001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_9007(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250034009, 9001, {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_9008(context, evt)
-- 判断是gadgetid 9001 option_id 41
if 9001 ~= evt.param1 then
return false
end
if 41 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_9008(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250034009, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250034009, 2)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_9009(context, evt)
-- 判断是gadgetid 9001 option_id 42
if 9001 ~= evt.param1 then
return false
end
if 42 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_9009(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250034009, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250034009, 3)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_9010(context, evt)
-- 判断是gadgetid 9001 option_id 43
if 9001 ~= evt.param1 then
return false
end
if 43 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_9010(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250034009, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 250034009, 4)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_9011(context, evt)
-- 判断是gadgetid 9001 option_id 44
if 9001 ~= evt.param1 then
return false
end
if 44 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_9011(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250034009, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 250034009, 5)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_9012(context, evt)
-- 判断是gadgetid 9001 option_id 45
if 9001 ~= evt.param1 then
return false
end
if 45 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_9012(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250034009, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 添加suite6的新内容
ScriptLib.AddExtraGroupSuite(context, 250034009, 6)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_9013(context, evt)
-- 判断是gadgetid 9001 option_id 46
if 9001 ~= evt.param1 then
return false
end
if 46 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_9013(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250034009, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end