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/43002/scene43002_group243002015.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

95 lines
2.0 KiB
Lua

-- 基础信息
local base_info = {
group_id = 243002015
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 15002, gadget_id = 70900205, pos = { x = 25.910, y = 18.618, z = -42.466 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1015001, name = "DUNGEON_ALL_AVATAR_DIE_15001", event = EventType.EVENT_DUNGEON_ALL_AVATAR_DIE, source = "", condition = "condition_EVENT_DUNGEON_ALL_AVATAR_DIE_15001", action = "action_EVENT_DUNGEON_ALL_AVATAR_DIE_15001" }
}
-- 变量
variables = {
{ config_id = 1, name = "AvatarDie", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 15002 },
regions = { },
triggers = { "DUNGEON_ALL_AVATAR_DIE_15001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_DUNGEON_ALL_AVATAR_DIE_15001(context, evt)
-- 判断变量"AvatarDie"为0
if ScriptLib.GetGroupVariableValue(context, "AvatarDie") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_DUNGEON_ALL_AVATAR_DIE_15001(context, evt)
-- 挑战失败触发结算
if 0 ~= ScriptLib.FailMistTrialDungeonChallenge(context, 999) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : 结束挑战失败!!!!")
return -1
end
return 0
end