-- 基础信息 local base_info = { group_id = 133008648 } --================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { { config_id = 648001, monster_id = 21030501, pos = { x = 882.443, y = 414.388, z = -841.010 }, rot = { x = 0.000, y = 52.628, z = 0.000 }, level = 30, drop_tag = "丘丘萨满", pose_id = 9012, climate_area_id = 1, area_id = 10 } } -- NPC npcs = { } -- 装置 gadgets = { } -- 区域 regions = { } -- 触发器 triggers = { { config_id = 1648004, name = "ANY_MONSTER_DIE_648004", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_648004", action = "action_EVENT_ANY_MONSTER_DIE_648004", trigger_count = 0 } } -- 变量 variables = { } --================================================================ -- -- 初始化配置 -- --================================================================ -- 初始化时创建 init_config = { suite = 1, end_suite = 0, rand_suite = false } --================================================================ -- -- 小组配置 -- --================================================================ suites = { { -- suite_id = 1, -- description = , monsters = { 648001 }, gadgets = { }, regions = { }, triggers = { "ANY_MONSTER_DIE_648004" }, rand_weight = 100 } } --================================================================ -- -- 触发器 -- --================================================================ -- 触发条件 function condition_EVENT_ANY_MONSTER_DIE_648004(context, evt) -- 判断剩余怪物数量是否是0 if ScriptLib.GetGroupMonsterCount(context) ~= 0 then return false end return true end -- 触发操作 function action_EVENT_ANY_MONSTER_DIE_648004(context, evt) -- 将本组内变量名为 "monster_killed" 的变量设置为 1 if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "monster_killed", 1, 133008647) then ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group") return -1 end return 0 end