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

132 lines
3.5 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 = 177005182
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 182001, gadget_id = 70360001, pos = { x = 233.387, y = 325.547, z = 288.598 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, area_id = 210 }
}
-- 区域
regions = {
-- 第二次进入房间 切氛围和天气
{ config_id = 182004, shape = RegionShape.CUBIC, size = { x = 10.000, y = 1.000, z = 10.000 }, pos = { x = 240.118, y = 324.980, z = 281.795 }, area_id = 210 },
-- 离开区域失败任务
{ config_id = 182008, shape = RegionShape.POLYGON, pos = { x = 236.824, y = 325.100, z = 285.912 }, height = 26.540, point_array = { { x = 231.165, y = 296.345 }, { x = 248.205, y = 283.068 }, { x = 241.066, y = 275.479 }, { x = 225.443, y = 287.935 } }, area_id = 210 }
}
-- 触发器
triggers = {
-- 第二次进入房间 切氛围和天气
{ config_id = 1182004, name = "ENTER_REGION_182004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_182004", action = "action_EVENT_ENTER_REGION_182004", trigger_count = 0 },
-- 离开区域失败任务
{ config_id = 1182008, name = "LEAVE_REGION_182008", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_182008", action = "action_EVENT_LEAVE_REGION_182008", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 182001 },
regions = { 182004, 182008 },
triggers = { "ENTER_REGION_182004", "LEAVE_REGION_182008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_182004(context, evt)
if evt.param1 ~= 182004 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_182004(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "7227610") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_182008(context, evt)
-- 判断是区域182008
if ScriptLib.GetRegionConfigId(context, { region_eid = evt.source_eid }) ~= 182008 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_182008(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "722761001") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end