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

283 lines
10 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 = 250010008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 36, gadget_id = 70900033, pos = { x = 447.205, y = 3.200, z = -37.999 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 37, gadget_id = 70220020, pos = { x = 453.393, y = 4.000, z = -33.031 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 38, gadget_id = 70220020, pos = { x = 453.766, y = 4.000, z = -43.079 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 39, gadget_id = 70220020, pos = { x = 457.028, y = 4.000, z = -35.459 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 40, gadget_id = 70220020, pos = { x = 460.757, y = 4.000, z = -41.159 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 41, gadget_id = 70220020, pos = { x = 464.615, y = 4.000, z = -34.623 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 42, gadget_id = 70220020, pos = { x = 469.254, y = 4.000, z = -37.676 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 43, gadget_id = 70220020, pos = { x = 472.954, y = 4.000, z = -42.724 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 44, gadget_id = 70220020, pos = { x = 473.226, y = 4.000, z = -32.298 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 45, gadget_id = 70220020, pos = { x = 465.582, y = 4.000, z = -42.980 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 46, gadget_id = 70220020, pos = { x = 461.141, y = 4.000, z = -32.102 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 47, gadget_id = 70220020, pos = { x = 457.030, y = 4.000, z = -39.012 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 48, gadget_id = 70211032, pos = { x = 479.167, y = 4.000, z = -38.135 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, drop_tag = "战斗超级蒙德", state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 49, gadget_id = 70300057, pos = { x = 479.200, y = 4.000, z = -38.100 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000022, name = "GADGET_STATE_CHANGE_22", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_22", action = "action_EVENT_GADGET_STATE_CHANGE_22", trigger_count = 0 },
{ config_id = 1000023, name = "GADGET_STATE_CHANGE_23", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_23", action = "action_EVENT_GADGET_STATE_CHANGE_23", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 36, 48 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_22", "GADGET_STATE_CHANGE_23" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_22(context, evt)
if 36 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_22(context, evt)
-- 创建id为37的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 37 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为38的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 38 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为39的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 39 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为40的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 40 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为41的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 41 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为42的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 42 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为43的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 43 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为44的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 44 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为45的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 45 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为46的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 46 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为47的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 47 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 解锁目标48
if 0 ~= ScriptLib.ChangeGroupGadget(context, { config_id = 48, state = GadgetState.Default }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : unlock_gadget")
return -1
end
-- 创建id为49的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 49 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_23(context, evt)
if 36 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_23(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 37 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 38 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 39 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 40 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 41 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 42 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 43 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 44 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 45 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 46 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 47 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 将configid为 48 的物件更改为状态 GadgetState.ChestLocked
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 48, GadgetState.ChestLocked) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 49 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end