mirror of
https://gitlab.com/YuukiPS/GC-Resources.git
synced 2025-04-28 09:05:26 +00:00
166 lines
4.4 KiB
Lua
166 lines
4.4 KiB
Lua
-- 基础信息
|
|
local base_info = {
|
|
group_id = 250008129
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 配置
|
|
--
|
|
--================================================================
|
|
|
|
-- 怪物
|
|
monsters = {
|
|
}
|
|
|
|
-- NPC
|
|
npcs = {
|
|
}
|
|
|
|
-- 装置
|
|
gadgets = {
|
|
{ config_id = 129001, gadget_id = 70360006, pos = { x = -70.636, y = 4.000, z = -208.989 }, rot = { x = 0.000, y = 196.100, z = 0.000 }, level = 18 },
|
|
{ config_id = 129002, gadget_id = 70211001, pos = { x = -70.636, y = 4.000, z = -206.889 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", showcutscene = true, isOneoff = true, persistent = true }
|
|
}
|
|
|
|
-- 区域
|
|
regions = {
|
|
}
|
|
|
|
-- 触发器
|
|
triggers = {
|
|
{ config_id = 1129003, name = "GADGET_STATE_CHANGE_129003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_129003", action = "action_EVENT_GADGET_STATE_CHANGE_129003" },
|
|
{ config_id = 1129004, name = "GADGET_STATE_CHANGE_129004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_129004", action = "action_EVENT_GADGET_STATE_CHANGE_129004", trigger_count = 0 },
|
|
{ config_id = 1129005, name = "GADGET_STATE_CHANGE_129005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_129005", action = "action_EVENT_GADGET_STATE_CHANGE_129005", trigger_count = 0 },
|
|
{ config_id = 1129006, name = "GADGET_CREATE_129006", event = EventType.EVENT_GADGET_CREATE, source = "111", condition = "condition_EVENT_GADGET_CREATE_129006", action = "action_EVENT_GADGET_CREATE_129006", trigger_count = 0 }
|
|
}
|
|
|
|
-- 变量
|
|
variables = {
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 初始化配置
|
|
--
|
|
--================================================================
|
|
|
|
-- 初始化时创建
|
|
init_config = {
|
|
suite = 1,
|
|
end_suite = 3,
|
|
rand_suite = false
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 小组配置
|
|
--
|
|
--================================================================
|
|
|
|
suites = {
|
|
{
|
|
-- suite_id = 1,
|
|
-- description = suite_1,
|
|
monsters = { },
|
|
gadgets = { 129001 },
|
|
regions = { },
|
|
triggers = { "GADGET_STATE_CHANGE_129003", "GADGET_STATE_CHANGE_129004", "GADGET_STATE_CHANGE_129005", "GADGET_CREATE_129006" },
|
|
rand_weight = 100
|
|
},
|
|
{
|
|
-- suite_id = 2,
|
|
-- description = suite_2,
|
|
monsters = { },
|
|
gadgets = { 129002 },
|
|
regions = { },
|
|
triggers = { },
|
|
rand_weight = 100
|
|
},
|
|
{
|
|
-- suite_id = 3,
|
|
-- description = suite_3,
|
|
monsters = { },
|
|
gadgets = { },
|
|
regions = { },
|
|
triggers = { },
|
|
rand_weight = 100
|
|
}
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 触发器
|
|
--
|
|
--================================================================
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_GADGET_STATE_CHANGE_129003(context, evt)
|
|
if 129002 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
|
|
return false
|
|
end
|
|
|
|
return true
|
|
end
|
|
|
|
-- 触发操作
|
|
function action_EVENT_GADGET_STATE_CHANGE_129003(context, evt)
|
|
-- group调整group进度,只对非randSuite有效
|
|
if 0 ~= ScriptLib.GoToGroupSuite(context, 250008129, 3) then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_GADGET_STATE_CHANGE_129004(context, evt)
|
|
if 129001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
|
|
return false
|
|
end
|
|
|
|
return true
|
|
end
|
|
|
|
-- 触发操作
|
|
function action_EVENT_GADGET_STATE_CHANGE_129004(context, evt)
|
|
-- 添加suite2的新内容
|
|
ScriptLib.AddExtraGroupSuite(context, 250008129, 2)
|
|
|
|
return 0
|
|
end
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_GADGET_STATE_CHANGE_129005(context, evt)
|
|
if 129001 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
|
|
return false
|
|
end
|
|
|
|
return true
|
|
end
|
|
|
|
-- 触发操作
|
|
function action_EVENT_GADGET_STATE_CHANGE_129005(context, evt)
|
|
-- 删除suite2的所有内容
|
|
ScriptLib.RemoveExtraGroupSuite(context, 250008129, 2)
|
|
|
|
return 0
|
|
end
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_GADGET_CREATE_129006(context, evt)
|
|
if 129001 ~= evt.param1 or GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 0, evt.param1) then
|
|
return false
|
|
end
|
|
|
|
return true
|
|
end
|
|
|
|
-- 触发操作
|
|
function action_EVENT_GADGET_CREATE_129006(context, evt)
|
|
-- 删除suite2的所有内容
|
|
ScriptLib.RemoveExtraGroupSuite(context, 250008129, 2)
|
|
|
|
return 0
|
|
end |