0
0
mirror of https://gitlab.com/YuukiPS/GC-Resources.git synced 2025-04-29 09:35:48 +00:00
GC-Resources/Resources/Scripts/Scene/20123/scene20123_group220123006.lua
KingRainbow44 8dd3a721e5
Revert "The Great De-Local'ifying of defs and base_info"
This reverts commit 0989747b
2023-08-30 21:15:50 -04:00

134 lines
4.6 KiB
Lua

-- 基础信息
local base_info = {
group_id = 220123006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 6001, monster_id = 25100301, pos = { x = 22.715, y = -17.860, z = -14.517 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 }, pose_id = 1003 },
{ config_id = 6002, monster_id = 25100401, pos = { x = 22.496, y = -17.858, z = -9.201 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1101 }, pose_id = 1003 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6003, gadget_id = 70220065, pos = { x = 12.124, y = -17.545, z = -10.924 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 6004, gadget_id = 70220048, pos = { x = 11.972, y = -17.545, z = -9.334 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6005, gadget_id = 70211012, pos = { x = 12.155, y = -17.545, z = -13.867 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, drop_tag = "战斗中级稻妻", state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 6007, gadget_id = 70220065, pos = { x = 13.689, y = -17.545, z = -9.337 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 6008, gadget_id = 70220065, pos = { x = 15.917, y = -17.495, z = -1.798 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 6009, gadget_id = 70220048, pos = { x = 17.727, y = -17.514, z = -2.461 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6010, gadget_id = 70220065, pos = { x = 29.606, y = -17.549, z = -1.707 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 },
{ config_id = 6011, gadget_id = 70220066, pos = { x = 28.364, y = -17.514, z = -1.758 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1 }
}
-- 区域
regions = {
{ config_id = 6012, shape = RegionShape.SPHERE, radius = 7, pos = { x = -0.069, y = -4.737, z = -28.625 } }
}
-- 触发器
triggers = {
{ config_id = 1006006, name = "ANY_MONSTER_DIE_6006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6006", action = "action_EVENT_ANY_MONSTER_DIE_6006" },
{ config_id = 1006012, name = "ENTER_REGION_6012", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6012", action = "action_EVENT_ENTER_REGION_6012" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6003, 6004, 6005, 6007, 6008, 6009, 6010, 6011 },
regions = { 6012 },
triggers = { "ANY_MONSTER_DIE_6006", "ENTER_REGION_6012" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 6001, 6002 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6006(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6006(context, evt)
-- 将configid为 6005 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_6012(context, evt)
if evt.param1 ~= 6012 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_6012(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220123006, 2)
return 0
end