-- 基础信息 local base_info = { group_id = 199002172 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { } -- NPC npcs = { } -- 装置 gadgets = { { config_id = 172001, gadget_id = 70310332, pos = { x = 477.551, y = 145.725, z = -371.887 }, rot = { x = 0.000, y = 85.632, z = 0.000 }, level = 1, area_id = 401 } } -- 区域 regions = { } -- 触发器 triggers = { { config_id = 1172002, name = "GADGETTALK_DONE_172002", event = EventType.EVENT_GADGETTALK_DONE, source = "6800354", condition = "", action = "action_EVENT_GADGETTALK_DONE_172002", trigger_count = 0 } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 0, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { }, gadgets = { 172001 }, regions = { }, triggers = { "GADGETTALK_DONE_172002" }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发操作 function action_EVENT_GADGETTALK_DONE_172002(context, evt) -- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配 if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 172001 }) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId") return -1 end return 0 end