0
0
mirror of https://gitlab.com/YuukiPS/GC-Resources.git synced 2025-04-28 09:05:26 +00:00
GC-Resources/Resources/Scripts/Scene/20138/scene20138_group220138037.lua
KingRainbow44 8dd3a721e5
Revert "The Great De-Local'ifying of defs and base_info"
This reverts commit 0989747b
2023-08-30 21:15:50 -04:00

97 lines
1.9 KiB
Lua

-- 基础信息
local base_info = {
group_id = 220138037
}
-- DEFS_MISCS
--激活梦境复苏之门
--key填regionid
--value为pointid
local Check_Point_List = {
[37001] = 13
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
-- 进入此区域触发梦境复苏之门
{ config_id = 37001, shape = RegionShape.SPHERE, radius = 10, pos = { x = 85.556, y = 30.347, z = -25.426 } }
}
-- 触发器
triggers = {
-- 进入此区域触发梦境复苏之门
{ config_id = 1037001, name = "ENTER_REGION_37001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_37001", action = "", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 37001 },
triggers = { "ENTER_REGION_37001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_37001(context, evt)
if evt.param1 ~= 37001 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
require "CheckPoint_Handler"