125 lines
3.0 KiB
Lua
125 lines
3.0 KiB
Lua
-- 基础信息
|
|
local base_info = {
|
|
group_id = 155008080
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 配置
|
|
--
|
|
--================================================================
|
|
|
|
-- 怪物
|
|
monsters = {
|
|
}
|
|
|
|
-- NPC
|
|
npcs = {
|
|
}
|
|
|
|
-- 装置
|
|
gadgets = {
|
|
{ config_id = 80001, gadget_id = 70710599, pos = { x = -555.891, y = 218.787, z = 522.399 }, rot = { x = 0.000, y = 99.901, z = 0.000 }, level = 1, isOneoff = true, persistent = true, interact_id = 79, area_id = 200 }
|
|
}
|
|
|
|
-- 区域
|
|
regions = {
|
|
}
|
|
|
|
-- 触发器
|
|
triggers = {
|
|
{ config_id = 1080002, name = "GADGET_STATE_CHANGE_80002", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_80002", action = "action_EVENT_GADGET_STATE_CHANGE_80002" },
|
|
{ config_id = 1080003, name = "GADGET_CREATE_80003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_80003", action = "action_EVENT_GADGET_CREATE_80003", trigger_count = 0 }
|
|
}
|
|
|
|
-- 变量
|
|
variables = {
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 初始化配置
|
|
--
|
|
--================================================================
|
|
|
|
-- 初始化时创建
|
|
init_config = {
|
|
suite = 1,
|
|
end_suite = 0,
|
|
rand_suite = false
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 小组配置
|
|
--
|
|
--================================================================
|
|
|
|
suites = {
|
|
{
|
|
-- suite_id = 1,
|
|
-- description = ,
|
|
monsters = { },
|
|
gadgets = { },
|
|
regions = { },
|
|
triggers = { },
|
|
rand_weight = 100,
|
|
ban_refresh = true
|
|
},
|
|
{
|
|
-- suite_id = 2,
|
|
-- description = ,
|
|
monsters = { },
|
|
gadgets = { 80001 },
|
|
regions = { },
|
|
triggers = { "GADGET_STATE_CHANGE_80002", "GADGET_CREATE_80003" },
|
|
rand_weight = 100,
|
|
ban_refresh = true
|
|
}
|
|
}
|
|
|
|
--================================================================
|
|
--
|
|
-- 触发器
|
|
--
|
|
--================================================================
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_GADGET_STATE_CHANGE_80002(context, evt)
|
|
if 80001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
|
|
return false
|
|
end
|
|
|
|
return true
|
|
end
|
|
|
|
-- 触发操作
|
|
function action_EVENT_GADGET_STATE_CHANGE_80002(context, evt)
|
|
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
|
|
if 0 ~= ScriptLib.AddQuestProgress(context, "Quest7223707") then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end
|
|
|
|
-- 触发条件
|
|
function condition_EVENT_GADGET_CREATE_80003(context, evt)
|
|
if 80001 ~= evt.param1 or GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 0, evt.param1) then
|
|
return false
|
|
end
|
|
|
|
return true
|
|
end
|
|
|
|
-- 触发操作
|
|
function action_EVENT_GADGET_CREATE_80003(context, evt)
|
|
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
|
|
if 0 ~= ScriptLib.AddQuestProgress(context, "Quest7223707") then
|
|
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
|
|
return -1
|
|
end
|
|
|
|
return 0
|
|
end |