-- 基础信息
local base_info = {
	group_id = 133212575
}

--================================================================
-- 
-- 配置
-- 
--================================================================

-- 怪物
monsters = {
}

-- NPC
npcs = {
}

-- 装置
gadgets = {
	{ config_id = 575001, gadget_id = 70710422, pos = { x = -3703.724, y = 228.357, z = -2067.115 }, rot = { x = 0.000, y = 78.100, z = 0.000 }, level = 1, area_id = 13 },
	{ config_id = 575002, gadget_id = 70710424, pos = { x = -3704.527, y = 228.400, z = -2063.179 }, rot = { x = 0.000, y = 82.600, z = 0.000 }, level = 1, area_id = 13 },
	{ config_id = 575003, gadget_id = 70710424, pos = { x = -3702.509, y = 227.926, z = -2064.904 }, rot = { x = 0.000, y = 82.160, z = 0.000 }, level = 1, area_id = 13 },
	{ config_id = 575004, gadget_id = 70710424, pos = { x = -3704.125, y = 228.381, z = -2065.095 }, rot = { x = 0.000, y = 78.800, z = 0.000 }, level = 1, area_id = 13 },
	{ config_id = 575005, gadget_id = 70710422, pos = { x = -3705.502, y = 229.763, z = -2065.463 }, rot = { x = 0.000, y = 85.200, z = 0.000 }, level = 1, area_id = 13 },
	{ config_id = 575006, gadget_id = 70710424, pos = { x = -3696.111, y = 227.988, z = -2071.998 }, rot = { x = 0.000, y = 20.500, z = 0.000 }, level = 1, area_id = 13 },
	{ config_id = 575008, gadget_id = 70710422, pos = { x = -3700.755, y = 229.489, z = -2056.283 }, rot = { x = 0.000, y = 143.200, z = 0.000 }, level = 1, area_id = 13 },
	{ config_id = 575010, gadget_id = 70710422, pos = { x = -3695.179, y = 229.307, z = -2051.801 }, rot = { x = 0.000, y = 144.300, z = 0.000 }, level = 1, area_id = 13 },
	{ config_id = 575011, gadget_id = 70710422, pos = { x = -3696.358, y = 227.563, z = -2056.471 }, rot = { x = 0.000, y = 143.900, z = 0.000 }, level = 1, area_id = 13 },
	{ config_id = 575012, gadget_id = 70710424, pos = { x = -3698.461, y = 228.039, z = -2056.273 }, rot = { x = 0.000, y = 146.000, z = 0.000 }, level = 1, area_id = 13 },
	{ config_id = 575013, gadget_id = 70710424, pos = { x = -3695.690, y = 227.982, z = -2053.859 }, rot = { x = 0.000, y = 141.100, z = 0.000 }, level = 1, area_id = 13 },
	{ config_id = 575014, gadget_id = 70710422, pos = { x = -3690.389, y = 227.627, z = -2072.634 }, rot = { x = 0.000, y = 20.700, z = 0.000 }, level = 1, area_id = 13 },
	{ config_id = 575015, gadget_id = 70710422, pos = { x = -3694.771, y = 228.898, z = -2073.182 }, rot = { x = 0.000, y = 17.700, z = 0.000 }, level = 1, area_id = 13 },
	{ config_id = 575016, gadget_id = 70710422, pos = { x = -3696.106, y = 227.988, z = -2071.983 }, rot = { x = 0.000, y = 20.500, z = 0.000 }, level = 1, area_id = 13 },
	{ config_id = 575017, gadget_id = 70710424, pos = { x = -3693.686, y = 227.565, z = -2071.312 }, rot = { x = 0.000, y = 26.400, z = 0.000 }, level = 1, area_id = 13 },
	{ config_id = 575018, gadget_id = 70710424, pos = { x = -3696.716, y = 227.543, z = -2070.008 }, rot = { x = 0.000, y = 26.300, z = 0.000 }, level = 1, area_id = 13 },
	{ config_id = 575019, gadget_id = 70710422, pos = { x = -3692.658, y = 228.047, z = -2073.421 }, rot = { x = 0.000, y = 24.700, z = 0.000 }, level = 1, area_id = 13 },
	{ config_id = 575021, gadget_id = 70710424, pos = { x = -3693.429, y = 227.350, z = -2054.145 }, rot = { x = 0.000, y = 144.300, z = 0.000 }, level = 1, area_id = 13 },
	{ config_id = 575022, gadget_id = 70710424, pos = { x = -3703.724, y = 228.357, z = -2067.115 }, rot = { x = 0.000, y = 78.100, z = 0.000 }, level = 1, area_id = 13 },
	{ config_id = 575023, gadget_id = 70710424, pos = { x = -3699.073, y = 227.632, z = -2058.531 }, rot = { x = 0.000, y = 143.200, z = 0.000 }, level = 1, area_id = 13 },
	{ config_id = 575024, gadget_id = 70710424, pos = { x = -3704.527, y = 228.400, z = -2063.179 }, rot = { x = 0.000, y = 82.600, z = 0.000 }, level = 1, area_id = 13 },
	{ config_id = 575025, gadget_id = 70710424, pos = { x = -3697.811, y = 229.432, z = -2054.141 }, rot = { x = 0.000, y = 146.700, z = 0.000 }, level = 1, area_id = 13 },
	{ config_id = 575026, gadget_id = 70710424, pos = { x = -3692.650, y = 228.047, z = -2073.401 }, rot = { x = 0.000, y = 24.700, z = 0.000 }, level = 1, area_id = 13 },
	{ config_id = 575039, gadget_id = 70710422, pos = { x = -3696.357, y = 227.632, z = -2056.499 }, rot = { x = 0.000, y = 143.200, z = 0.000 }, level = 1, area_id = 13 },
	{ config_id = 575040, gadget_id = 70710422, pos = { x = -3690.342, y = 227.565, z = -2072.790 }, rot = { x = 0.000, y = 26.400, z = 0.000 }, level = 1, area_id = 13 },
	{ config_id = 575041, gadget_id = 70710422, pos = { x = -3696.660, y = 227.565, z = -2069.940 }, rot = { x = 0.000, y = 26.400, z = 0.000 }, level = 1, area_id = 13 },
	{ config_id = 575042, gadget_id = 70710422, pos = { x = -3705.211, y = 229.779, z = -2065.310 }, rot = { x = 0.000, y = 78.800, z = 0.000 }, level = 1, area_id = 13 }
}

-- 区域
regions = {
	{ config_id = 575048, shape = RegionShape.SPHERE, radius = 4, pos = { x = -3692.900, y = 228.800, z = -2063.300 }, area_id = 13 }
}

-- 触发器
triggers = {
	{ config_id = 1575007, name = "ANY_GADGET_DIE_575007", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575007", action = "", tag = "888" },
	{ config_id = 1575009, name = "ANY_GADGET_DIE_575009", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575009", action = "", tag = "888" },
	{ config_id = 1575020, name = "ANY_GADGET_DIE_575020", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575020", action = "", trigger_count = 2, tag = "888" },
	{ config_id = 1575027, name = "ANY_GADGET_DIE_575027", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575027", action = "", trigger_count = 2, tag = "888" },
	{ config_id = 1575028, name = "ANY_GADGET_DIE_575028", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575028", action = "", trigger_count = 2, tag = "888" },
	{ config_id = 1575029, name = "ANY_GADGET_DIE_575029", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575029", action = "", trigger_count = 2, tag = "888" },
	{ config_id = 1575030, name = "ANY_GADGET_DIE_575030", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575030", action = "", trigger_count = 2, tag = "888" },
	{ config_id = 1575031, name = "ANY_GADGET_DIE_575031", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575031", action = "", trigger_count = 7, tag = "888" },
	{ config_id = 1575032, name = "ANY_GADGET_DIE_575032", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575032", action = "", trigger_count = 7, tag = "888" },
	{ config_id = 1575033, name = "ANY_GADGET_DIE_575033", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575033", action = "", trigger_count = 7, tag = "888" },
	{ config_id = 1575034, name = "ANY_GADGET_DIE_575034", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575034", action = "", trigger_count = 7, tag = "888" },
	{ config_id = 1575035, name = "ANY_GADGET_DIE_575035", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575035", action = "", trigger_count = 7, tag = "888" },
	{ config_id = 1575036, name = "ANY_GADGET_DIE_575036", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575036", action = "", trigger_count = 7, tag = "888" },
	{ config_id = 1575037, name = "ANY_GADGET_DIE_575037", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575037", action = "", trigger_count = 7, tag = "888" },
	{ config_id = 1575038, name = "ANY_GADGET_DIE_575038", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575038", action = "action_EVENT_ANY_GADGET_DIE_575038", trigger_count = 0 },
	{ config_id = 1575048, name = "ENTER_REGION_575048", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_575048" },
	{ config_id = 1575049, name = "CHALLENGE_SUCCESS_575049", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "666", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_575049" },
	{ config_id = 1575050, name = "ANY_GADGET_DIE_575050", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575050", action = "action_EVENT_ANY_GADGET_DIE_575050", trigger_count = 0 },
	{ config_id = 1575051, name = "CHALLENGE_FAIL_575051", event = EventType.EVENT_CHALLENGE_FAIL, source = "666", condition = "", action = "action_EVENT_CHALLENGE_FAIL_575051", trigger_count = 0 },
	{ config_id = 1575053, name = "ANY_GADGET_DIE_575053", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575053", action = "action_EVENT_ANY_GADGET_DIE_575053" },
	{ config_id = 1575055, name = "ANY_GADGET_DIE_575055", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575055", action = "action_EVENT_ANY_GADGET_DIE_575055", trigger_count = 2 },
	{ config_id = 1575057, name = "ANY_GADGET_DIE_575057", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575057", action = "action_EVENT_ANY_GADGET_DIE_575057", trigger_count = 2 },
	{ config_id = 1575060, name = "ANY_GADGET_DIE_575060", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575060", action = "action_EVENT_ANY_GADGET_DIE_575060", trigger_count = 2 },
	{ config_id = 1575063, name = "ANY_GADGET_DIE_575063", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575063", action = "action_EVENT_ANY_GADGET_DIE_575063", trigger_count = 0 },
	{ config_id = 1575065, name = "ANY_GADGET_DIE_575065", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575065", action = "action_EVENT_ANY_GADGET_DIE_575065", trigger_count = 0 },
	{ config_id = 1575066, name = "ANY_GADGET_DIE_575066", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575066", action = "action_EVENT_ANY_GADGET_DIE_575066", trigger_count = 0 },
	{ config_id = 1575067, name = "ANY_GADGET_DIE_575067", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575067", action = "action_EVENT_ANY_GADGET_DIE_575067", trigger_count = 7 },
	{ config_id = 1575082, name = "ANY_GADGET_DIE_575082", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575082", action = "", trigger_count = 2, tag = "888" },
	{ config_id = 1575083, name = "ANY_GADGET_DIE_575083", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575083", action = "action_EVENT_ANY_GADGET_DIE_575083", trigger_count = 0 },
	{ config_id = 1575084, name = "ANY_GADGET_DIE_575084", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575084", action = "action_EVENT_ANY_GADGET_DIE_575084", trigger_count = 0 },
	{ config_id = 1575085, name = "ANY_GADGET_DIE_575085", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575085", action = "action_EVENT_ANY_GADGET_DIE_575085", trigger_count = 0 },
	{ config_id = 1575086, name = "ANY_GADGET_DIE_575086", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575086", action = "action_EVENT_ANY_GADGET_DIE_575086", trigger_count = 0 },
	{ config_id = 1575087, name = "ANY_GADGET_DIE_575087", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575087", action = "action_EVENT_ANY_GADGET_DIE_575087", trigger_count = 0 },
	{ config_id = 1575089, name = "ANY_GADGET_DIE_575089", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575089", action = "action_EVENT_ANY_GADGET_DIE_575089", trigger_count = 0 },
	{ config_id = 1575090, name = "ANY_GADGET_DIE_575090", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575090", action = "action_EVENT_ANY_GADGET_DIE_575090", trigger_count = 0 },
	{ config_id = 1575091, name = "ANY_GADGET_DIE_575091", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_575091", action = "action_EVENT_ANY_GADGET_DIE_575091", trigger_count = 0 }
}

-- 变量
variables = {
}

--================================================================
-- 
-- 初始化配置
-- 
--================================================================

-- 初始化时创建
init_config = {
	suite = 1,
	end_suite = 0,
	rand_suite = false
}

--================================================================
-- 
-- 小组配置
-- 
--================================================================

suites = {
	{
		-- suite_id = 1,
		-- description = ,
		monsters = { },
		gadgets = { 575001, 575002 },
		regions = { 575048 },
		triggers = { "ANY_GADGET_DIE_575007", "ENTER_REGION_575048", "CHALLENGE_SUCCESS_575049", "ANY_GADGET_DIE_575050", "CHALLENGE_FAIL_575051", "ANY_GADGET_DIE_575053" },
		rand_weight = 100,
		ban_refresh = true
	},
	{
		-- suite_id = 2,
		-- description = ,
		monsters = { },
		gadgets = { 575003, 575004, 575005 },
		regions = { },
		triggers = { "ANY_GADGET_DIE_575020", "ANY_GADGET_DIE_575055", "ANY_GADGET_DIE_575063", "ANY_GADGET_DIE_575082" },
		rand_weight = 100,
		ban_refresh = true
	},
	{
		-- suite_id = 3,
		-- description = ,
		monsters = { },
		gadgets = { 575008, 575010, 575011, 575012, 575013 },
		regions = { },
		triggers = { "ANY_GADGET_DIE_575027", "ANY_GADGET_DIE_575028", "ANY_GADGET_DIE_575057", "ANY_GADGET_DIE_575066", "ANY_GADGET_DIE_575083", "ANY_GADGET_DIE_575084" },
		rand_weight = 100,
		ban_refresh = true
	},
	{
		-- suite_id = 4,
		-- description = ,
		monsters = { },
		gadgets = { 575014, 575015, 575016, 575017, 575018, 575019 },
		regions = { },
		triggers = { "ANY_GADGET_DIE_575029", "ANY_GADGET_DIE_575030", "ANY_GADGET_DIE_575060", "ANY_GADGET_DIE_575065", "ANY_GADGET_DIE_575085", "ANY_GADGET_DIE_575086", "ANY_GADGET_DIE_575087" },
		rand_weight = 100,
		ban_refresh = true
	},
	{
		-- suite_id = 5,
		-- description = ,
		monsters = { },
		gadgets = { 575006, 575021, 575022, 575023, 575024, 575025, 575026, 575039, 575040, 575041, 575042 },
		regions = { },
		triggers = { "ANY_GADGET_DIE_575031", "ANY_GADGET_DIE_575032", "ANY_GADGET_DIE_575033", "ANY_GADGET_DIE_575034", "ANY_GADGET_DIE_575035", "ANY_GADGET_DIE_575036", "ANY_GADGET_DIE_575037", "ANY_GADGET_DIE_575038", "ANY_GADGET_DIE_575067", "ANY_GADGET_DIE_575089", "ANY_GADGET_DIE_575090", "ANY_GADGET_DIE_575091" },
		rand_weight = 100,
		ban_refresh = true
	}
}

--================================================================
-- 
-- 触发器
-- 
--================================================================

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575007(context, evt)
	if 575002 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575009(context, evt)
	if 575002 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575020(context, evt)
	if 575003 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575027(context, evt)
	if 575012 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575028(context, evt)
	if 575013 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575029(context, evt)
	if 575017 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575030(context, evt)
	if 575018 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575031(context, evt)
	if 575006 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575032(context, evt)
	if 575021 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575033(context, evt)
	if 575022 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575034(context, evt)
	if 575023 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575035(context, evt)
	if 575024 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575036(context, evt)
	if 575025 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575037(context, evt)
	if 575026 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575038(context, evt)
	if 575039 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_ANY_GADGET_DIE_575038(context, evt)
	-- 终止识别id为666的挑战，并判定成功
		ScriptLib.StopChallenge(context, 666, 1)
	
	return 0
end

-- 触发操作
function action_EVENT_ENTER_REGION_575048(context, evt)
	-- 创建编号为666（该挑战的识别id),挑战内容为75的区域挑战，具体参数填写方式，见DungeonChallengeData表中的注释，所有填写的值都必须是int类型
	if 0 ~= ScriptLib.ActiveChallenge(context, 666, 75, 90, 2, 888, 14) then
	  ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
		return -1
	end
	
	-- 调用提示id为 400079 的提示UI，会显示在屏幕中央偏下位置，id索引自 ReminderData表格
	if 0 ~= ScriptLib.ShowReminder(context, 400079) then
	  ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
		return -1
	end
	
	return 0
end

-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_575049(context, evt)
	-- 通知任务系统完成条件类型"LUA通知"，复杂参数为quest_param的进度+1
	if 0 ~= ScriptLib.AddQuestProgress(context, "220470201") then
		ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
	  return -1
	end
	
	-- 删除suite5的所有内容
	    ScriptLib.RemoveExtraGroupSuite(context, 133212575, 5)
	
	return 0
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575050(context, evt)
	if 575001 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_ANY_GADGET_DIE_575050(context, evt)
	-- 终止识别id为666的挑战，并判定失败
		ScriptLib.StopChallenge(context, 666, 0)
	
	return 0
end

-- 触发操作
function action_EVENT_CHALLENGE_FAIL_575051(context, evt)
	-- 通知任务系统完成条件类型"LUA通知"，复杂参数为quest_param的进度+1
	if 0 ~= ScriptLib.AddQuestProgress(context, "220470202") then
		ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
	  return -1
	end
	
	-- 删除suite1的所有内容
	    ScriptLib.RemoveExtraGroupSuite(context, 133212575, 1)
	
	-- 删除suite2的所有内容
	    ScriptLib.RemoveExtraGroupSuite(context, 133212575, 2)
	
	-- 删除suite3的所有内容
	    ScriptLib.RemoveExtraGroupSuite(context, 133212575, 3)
	
	-- 删除suite4的所有内容
	    ScriptLib.RemoveExtraGroupSuite(context, 133212575, 4)
	
	-- 删除suite5的所有内容
	    ScriptLib.RemoveExtraGroupSuite(context, 133212575, 5)
	
	return 0
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575053(context, evt)
	-- 判断指定group组剩余gadget数量是否是1 
	if ScriptLib.CheckRemainGadgetCountByGroupId(context, {group_id = 133212575}) ~= 1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_ANY_GADGET_DIE_575053(context, evt)
	-- 添加suite2的新内容
	    ScriptLib.AddExtraGroupSuite(context, 133212575, 2)
	
		-- 卸载指定gadget
		if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 133212575, EntityType.GADGET, 575001 ) then
	    ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
			return -1
		end
	
	-- 调用提示id为 400080 的提示UI，会显示在屏幕中央偏下位置，id索引自 ReminderData表格
	if 0 ~= ScriptLib.ShowReminder(context, 400080) then
	  ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
		return -1
	end
	
	return 0
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575055(context, evt)
	-- 判断指定group组剩余gadget数量是否是1 
	if ScriptLib.CheckRemainGadgetCountByGroupId(context, {group_id = 133212575}) ~= 1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_ANY_GADGET_DIE_575055(context, evt)
	-- 添加suite3的新内容
	    ScriptLib.AddExtraGroupSuite(context, 133212575, 3)
	
		-- 卸载指定gadget
		if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 133212575, EntityType.GADGET, 575005 ) then
	    ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
			return -1
		end
	
	-- 调用提示id为 400081 的提示UI，会显示在屏幕中央偏下位置，id索引自 ReminderData表格
	if 0 ~= ScriptLib.ShowReminder(context, 400081) then
	  ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
		return -1
	end
	
	return 0
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575057(context, evt)
	-- 判断指定group组剩余gadget数量是否是3 
	if ScriptLib.CheckRemainGadgetCountByGroupId(context, {group_id = 133212575}) ~= 3 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_ANY_GADGET_DIE_575057(context, evt)
	-- 添加suite4的新内容
	    ScriptLib.AddExtraGroupSuite(context, 133212575, 4)
	
		-- 卸载指定gadget
		if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 133212575, EntityType.GADGET, 575008 ) then
	    ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
			return -1
		end
	
		-- 卸载指定gadget
		if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 133212575, EntityType.GADGET, 575010 ) then
	    ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
			return -1
		end
	
		-- 卸载指定gadget
		if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 133212575, EntityType.GADGET, 575011 ) then
	    ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
			return -1
		end
	
	-- 调用提示id为 400082 的提示UI，会显示在屏幕中央偏下位置，id索引自 ReminderData表格
	if 0 ~= ScriptLib.ShowReminder(context, 400082) then
	  ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
		return -1
	end
	
	return 0
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575060(context, evt)
	-- 判断指定group组剩余gadget数量是否是4 
	if ScriptLib.CheckRemainGadgetCountByGroupId(context, {group_id = 133212575}) ~= 4 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_ANY_GADGET_DIE_575060(context, evt)
	-- 添加suite5的新内容
	    ScriptLib.AddExtraGroupSuite(context, 133212575, 5)
	
		-- 卸载指定gadget
		if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 133212575, EntityType.GADGET, 575014 ) then
	    ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
			return -1
		end
	
		-- 卸载指定gadget
		if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 133212575, EntityType.GADGET, 575015 ) then
	    ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
			return -1
		end
	
		-- 卸载指定gadget
		if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 133212575, EntityType.GADGET, 575016 ) then
	    ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
			return -1
		end
	
		-- 卸载指定gadget
		if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 133212575, EntityType.GADGET, 575019 ) then
	    ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
			return -1
		end
	
	-- 调用提示id为 400083 的提示UI，会显示在屏幕中央偏下位置，id索引自 ReminderData表格
	if 0 ~= ScriptLib.ShowReminder(context, 400083) then
	  ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
		return -1
	end
	
	return 0
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575063(context, evt)
	if 575005 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_ANY_GADGET_DIE_575063(context, evt)
	-- 终止识别id为666的挑战，并判定失败
		ScriptLib.StopChallenge(context, 666, 0)
	
	return 0
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575065(context, evt)
	if 575014 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_ANY_GADGET_DIE_575065(context, evt)
	-- 终止识别id为666的挑战，并判定失败
		ScriptLib.StopChallenge(context, 666, 0)
	
	return 0
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575066(context, evt)
	if 575008 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_ANY_GADGET_DIE_575066(context, evt)
	-- 终止识别id为666的挑战，并判定失败
		ScriptLib.StopChallenge(context, 666, 0)
	
	return 0
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575067(context, evt)
	-- 判断指定group组剩余gadget数量是否是4 
	if ScriptLib.CheckRemainGadgetCountByGroupId(context, {group_id = 133212575}) ~= 4 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_ANY_GADGET_DIE_575067(context, evt)
		-- 卸载指定gadget
		if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 133212575, EntityType.GADGET, 575039 ) then
	    ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
			return -1
		end
	
		-- 卸载指定gadget
		if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 133212575, EntityType.GADGET, 575040 ) then
	    ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
			return -1
		end
	
		-- 卸载指定gadget
		if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 133212575, EntityType.GADGET, 575041 ) then
	    ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
			return -1
		end
	
		-- 卸载指定gadget
		if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 133212575, EntityType.GADGET, 575042 ) then
	    ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
			return -1
		end
	
	return 0
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575082(context, evt)
	if 575004 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575083(context, evt)
	if 575010 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_ANY_GADGET_DIE_575083(context, evt)
	-- 终止识别id为666的挑战，并判定失败
		ScriptLib.StopChallenge(context, 666, 0)
	
	return 0
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575084(context, evt)
	if 575011 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_ANY_GADGET_DIE_575084(context, evt)
	-- 终止识别id为666的挑战，并判定失败
		ScriptLib.StopChallenge(context, 666, 0)
	
	return 0
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575085(context, evt)
	if 575015 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_ANY_GADGET_DIE_575085(context, evt)
	-- 终止识别id为666的挑战，并判定失败
		ScriptLib.StopChallenge(context, 666, 0)
	
	return 0
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575086(context, evt)
	if 575016 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_ANY_GADGET_DIE_575086(context, evt)
	-- 终止识别id为666的挑战，并判定失败
		ScriptLib.StopChallenge(context, 666, 0)
	
	return 0
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575087(context, evt)
	if 575019 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_ANY_GADGET_DIE_575087(context, evt)
	-- 终止识别id为666的挑战，并判定失败
		ScriptLib.StopChallenge(context, 666, 0)
	
	return 0
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575089(context, evt)
	if 575040 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_ANY_GADGET_DIE_575089(context, evt)
	-- 终止识别id为666的挑战，并判定失败
		ScriptLib.StopChallenge(context, 666, 0)
	
	return 0
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575090(context, evt)
	if 575041 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_ANY_GADGET_DIE_575090(context, evt)
	-- 终止识别id为666的挑战，并判定失败
		ScriptLib.StopChallenge(context, 666, 0)
	
	return 0
end

-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_575091(context, evt)
	if 575042 ~= evt.param1 then
		return false
	end
	
	return true
end

-- 触发操作
function action_EVENT_ANY_GADGET_DIE_575091(context, evt)
	-- 终止识别id为666的挑战，并判定失败
		ScriptLib.StopChallenge(context, 666, 0)
	
	return 0
end