-- 基础信息 local base_info = { group_id = 133103904 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { } -- NPC npcs = { } -- 装置 gadgets = { } -- 区域 regions = { { config_id = 904001, shape = RegionShape.SPHERE, radius = 20, pos = { x = 775.572, y = 322.386, z = 1524.591 }, area_id = 6 } } -- 触发器 triggers = { { config_id = 1904001, name = "ENTER_REGION_904001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_904001", action = "", trigger_count = 0 } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 0, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { }, gadgets = { }, regions = { 904001 }, triggers = { "ENTER_REGION_904001" }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_ENTER_REGION_904001(context, evt) if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 100201) == QuestState.UNFINISHED and evt.param1 == 904001 then return true end return false end