Files
hk4e-go/gdconf/game_data_config/lua/scene/3/scene3_group133103292.lua
T
2022-11-30 00:00:20 +08:00

160 lines
8.3 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 基础信息
local base_info = {
group_id = 133103292
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 292001, monster_id = 21010101, pos = { x = 707.591, y = 320.049, z = 1768.881 }, rot = { x = 0.000, y = 331.117, z = 0.000 }, level = 1, drop_tag = "丘丘人", pose_id = 9011, area_id = 6 },
{ config_id = 292002, monster_id = 21010101, pos = { x = 696.302, y = 318.757, z = 1769.213 }, rot = { x = 353.385, y = 44.248, z = 3.181 }, level = 1, drop_tag = "丘丘人", pose_id = 9011, area_id = 6 },
{ config_id = 292003, monster_id = 21020201, pos = { x = 700.765, y = 318.730, z = 1774.653 }, rot = { x = 350.523, y = 173.310, z = 356.426 }, level = 1, drop_tag = "丘丘暴徒", area_id = 6 },
{ config_id = 292004, monster_id = 21030101, pos = { x = 693.629, y = 318.009, z = 1764.600 }, rot = { x = 352.711, y = 68.433, z = 6.270 }, level = 1, drop_tag = "丘丘萨满", area_id = 6 },
{ config_id = 292005, monster_id = 20011201, pos = { x = 706.778, y = 320.514, z = 1770.061 }, rot = { x = 0.000, y = 338.588, z = 0.000 }, level = 1, drop_tag = "史莱姆", area_id = 6 },
{ config_id = 292006, monster_id = 20011201, pos = { x = 697.467, y = 319.409, z = 1770.119 }, rot = { x = 0.000, y = 154.534, z = 0.000 }, level = 1, drop_tag = "史莱姆", area_id = 6 },
{ config_id = 292007, monster_id = 21020101, pos = { x = 718.357, y = 319.300, z = 1759.729 }, rot = { x = 0.000, y = 298.857, z = 0.000 }, level = 1, drop_tag = "丘丘暴徒", area_id = 6 },
{ config_id = 292008, monster_id = 21010201, pos = { x = 712.805, y = 318.819, z = 1754.075 }, rot = { x = 359.611, y = 325.447, z = 359.512 }, level = 1, drop_tag = "丘丘人", area_id = 6 },
{ config_id = 292009, monster_id = 21010601, pos = { x = 714.556, y = 319.307, z = 1755.943 }, rot = { x = 0.000, y = 317.532, z = 0.000 }, level = 1, drop_tag = "丘丘人", area_id = 6 },
{ config_id = 292010, monster_id = 21010601, pos = { x = 719.117, y = 319.508, z = 1763.103 }, rot = { x = 0.000, y = 281.747, z = 0.000 }, level = 1, drop_tag = "丘丘人", area_id = 6 },
{ config_id = 292024, monster_id = 21030301, pos = { x = 720.559, y = 321.933, z = 1770.824 }, rot = { x = 12.035, y = 243.929, z = 21.374 }, level = 1, drop_tag = "丘丘萨满", area_id = 6 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 292011, gadget_id = 70300102, pos = { x = 697.270, y = 318.476, z = 1770.572 }, rot = { x = 0.233, y = 338.192, z = 7.333 }, level = 1, area_id = 6 },
{ config_id = 292012, gadget_id = 70300102, pos = { x = 706.756, y = 319.592, z = 1770.262 }, rot = { x = 0.000, y = 338.588, z = 0.000 }, level = 1, area_id = 6 },
{ config_id = 292013, gadget_id = 70300087, pos = { x = 697.548, y = 318.954, z = 1770.160 }, rot = { x = 0.233, y = 338.192, z = 7.333 }, level = 1, area_id = 6 },
{ config_id = 292014, gadget_id = 70220035, pos = { x = 710.233, y = 319.974, z = 1768.592 }, rot = { x = 349.686, y = 338.016, z = 14.287 }, level = 1, area_id = 6 },
{ config_id = 292015, gadget_id = 70220035, pos = { x = 705.746, y = 319.138, z = 1760.688 }, rot = { x = 0.000, y = 338.588, z = 0.000 }, level = 1, area_id = 6 },
{ config_id = 292016, gadget_id = 70300084, pos = { x = 695.638, y = 318.389, z = 1780.604 }, rot = { x = 355.701, y = 242.787, z = 358.304 }, level = 1, area_id = 6 },
{ config_id = 292017, gadget_id = 70300087, pos = { x = 706.799, y = 320.051, z = 1770.145 }, rot = { x = 0.000, y = 338.588, z = 0.000 }, level = 1, area_id = 6 },
{ config_id = 292019, gadget_id = 70300084, pos = { x = 699.446, y = 317.276, z = 1756.152 }, rot = { x = 0.873, y = 100.989, z = 344.132 }, level = 1, area_id = 6 },
{ config_id = 292020, gadget_id = 70300084, pos = { x = 690.673, y = 318.213, z = 1775.032 }, rot = { x = 359.953, y = 202.916, z = 359.005 }, level = 1, area_id = 6 },
{ config_id = 292021, gadget_id = 70310001, pos = { x = 705.179, y = 318.480, z = 1759.124 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, area_id = 6 },
{ config_id = 292022, gadget_id = 70300084, pos = { x = 693.132, y = 317.154, z = 1758.774 }, rot = { x = 350.610, y = 130.456, z = 352.831 }, level = 1, area_id = 6 },
{ config_id = 292023, gadget_id = 70300084, pos = { x = 688.455, y = 316.751, z = 1763.670 }, rot = { x = 1.366, y = 152.919, z = 350.691 }, level = 1, area_id = 6 },
{ config_id = 292025, gadget_id = 70220013, pos = { x = 689.849, y = 317.906, z = 1769.391 }, rot = { x = 356.259, y = 20.338, z = 357.165 }, level = 1, area_id = 6 },
{ config_id = 292026, gadget_id = 70220013, pos = { x = 703.412, y = 318.123, z = 1758.552 }, rot = { x = 351.289, y = 49.537, z = 356.812 }, level = 1, area_id = 6 },
{ config_id = 292027, gadget_id = 70220014, pos = { x = 689.103, y = 317.782, z = 1767.844 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, area_id = 6 },
{ config_id = 292028, gadget_id = 70220014, pos = { x = 694.526, y = 318.469, z = 1774.676 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, area_id = 6 },
{ config_id = 292029, gadget_id = 70220013, pos = { x = 689.236, y = 318.076, z = 1771.368 }, rot = { x = 2.194, y = 100.967, z = 355.851 }, level = 1, area_id = 6 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1292018, name = "ANY_MONSTER_DIE_292018", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_292018", action = "action_EVENT_ANY_MONSTER_DIE_292018" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 292001, 292002, 292003, 292004, 292005, 292006 },
gadgets = { 292011, 292012, 292013, 292014, 292015, 292016, 292017, 292019, 292020, 292021, 292022, 292023, 292025, 292026, 292027, 292028, 292029 },
regions = { },
triggers = { "ANY_MONSTER_DIE_292018" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_292018(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_292018(context, evt)
-- play_type含义:1·代表开始播放; 2·代表停止播放
-- 在指定位置播放或停止音效资源
local pos = {x=703, y=319, z=1770}
if 0 ~= ScriptLib.ScenePlaySound(context, {play_pos = pos, sound_name = "LevelHornSound001", play_type= 1, is_broadcast = false }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_soundplay")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 292007, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 292008, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 292009, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 292010, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 292024, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 在指定位置对应半径范围播放reminder
local pos = {x=703,y=319,z=1770}
if 0 ~= ScriptLib.ShowReminderRadius(context, 400004, pos, 50) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui_bypos")
return -1
end
return 0
end