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

124 lines
3.1 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 = 250041006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 6001, monster_id = 20011201, pos = { x = 0.237, y = 0.002, z = -0.159 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6003, gadget_id = 70270004, pos = { x = 0.392, y = -0.422, z = 0.113 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 6004, gadget_id = 70300088, pos = { x = 0.271, y = -0.154, z = -26.840 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 6005, gadget_id = 70360002, pos = { x = 0.334, y = -0.012, z = -24.075 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 刷新无相火
{ config_id = 1006002, name = "SELECT_OPTION_6002", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6002", action = "action_EVENT_SELECT_OPTION_6002", trigger_count = 0 },
{ config_id = 1006006, name = "GADGET_CREATE_6006", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_6006", action = "action_EVENT_GADGET_CREATE_6006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 6001 },
gadgets = { 6003, 6004, 6005 },
regions = { },
triggers = { "SELECT_OPTION_6002", "GADGET_CREATE_6006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_6002(context, evt)
-- 判断是gadgetid 6005 option_id 4
if 6005 ~= evt.param1 then
return false
end
if 4 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6002(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250041006, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_6006(context, evt)
if 6005 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_6006(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250041006, 6005, {4}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end