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

484 lines
21 KiB
Go

-- 基础信息
local base_info = {
group_id = 247010031
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 31001, gadget_id = 70310154, pos = { x = 38.097, y = 0.372, z = 8.701 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 31003, gadget_id = 70360291, pos = { x = 38.097, y = 0.372, z = -9.123 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 31004, gadget_id = 70310154, pos = { x = 29.055, y = 0.307, z = 84.647 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 31005, gadget_id = 70360291, pos = { x = 29.055, y = 0.307, z = 75.386 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 31008, gadget_id = 70360291, pos = { x = 41.907, y = 0.307, z = 75.386 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 31009, gadget_id = 70310154, pos = { x = 41.907, y = 0.307, z = 84.647 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 31011, gadget_id = 70360291, pos = { x = 48.484, y = 0.307, z = 75.386 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 31012, gadget_id = 70310154, pos = { x = 48.484, y = 0.307, z = 84.647 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 31014, gadget_id = 70360291, pos = { x = 55.113, y = 0.307, z = 75.386 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 31015, gadget_id = 70310154, pos = { x = 55.113, y = 0.307, z = 84.647 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 31017, gadget_id = 70360291, pos = { x = 137.918, y = 1.091, z = 75.599 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 31018, gadget_id = 70310154, pos = { x = 137.918, y = 1.091, z = 84.860 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 31019, gadget_id = 70360291, pos = { x = 124.487, y = 1.815, z = 154.820 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 31020, gadget_id = 70310154, pos = { x = 124.487, y = 1.815, z = 164.768 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 31022, gadget_id = 70360291, pos = { x = 204.193, y = 0.370, z = 154.699 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 31023, gadget_id = 70310154, pos = { x = 204.193, y = 0.370, z = 164.647 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 31025, gadget_id = 70360291, pos = { x = 285.418, y = 1.731, z = 234.859 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 31026, gadget_id = 70310154, pos = { x = 285.418, y = 1.731, z = 244.808 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 31028, gadget_id = 70360291, pos = { x = 364.432, y = 0.280, z = 394.696 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 31029, gadget_id = 70310154, pos = { x = 364.432, y = 0.280, z = 404.644 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 31031, gadget_id = 70360291, pos = { x = 364.400, y = 0.240, z = 314.917 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 31032, gadget_id = 70310154, pos = { x = 364.400, y = 0.240, z = 324.866 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 31034, gadget_id = 70360291, pos = { x = 370.095, y = 0.240, z = 314.917 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 31035, gadget_id = 70310154, pos = { x = 370.095, y = 0.240, z = 324.866 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 31037, gadget_id = 70360291, pos = { x = 376.243, y = 0.240, z = 314.917 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 31038, gadget_id = 70310154, pos = { x = 376.243, y = 0.240, z = 324.866 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
-- boss1
{ config_id = 31040, gadget_id = 70310154, pos = { x = 424.672, y = -2.466, z = 507.684 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
-- boss1
{ config_id = 31041, gadget_id = 70360291, pos = { x = 373.803, y = -2.466, z = 507.479 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
-- boss1
{ config_id = 31043, gadget_id = 70310154, pos = { x = 424.672, y = -2.466, z = 487.585 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
-- boss1
{ config_id = 31044, gadget_id = 70360291, pos = { x = 373.803, y = -2.466, z = 487.570 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 31002, shape = RegionShape.CUBIC, size = { x = 6.000, y = 10.000, z = 25.000 }, pos = { x = 38.097, y = 0.372, z = -1.816 } },
{ config_id = 31006, shape = RegionShape.CUBIC, size = { x = 6.000, y = 10.000, z = 25.000 }, pos = { x = 29.055, y = 0.307, z = 77.891 } },
{ config_id = 31007, shape = RegionShape.CUBIC, size = { x = 6.000, y = 10.000, z = 25.000 }, pos = { x = 41.907, y = 0.307, z = 77.891 } },
{ config_id = 31010, shape = RegionShape.CUBIC, size = { x = 6.000, y = 10.000, z = 25.000 }, pos = { x = 48.484, y = 0.307, z = 77.891 } },
{ config_id = 31013, shape = RegionShape.CUBIC, size = { x = 6.000, y = 10.000, z = 25.000 }, pos = { x = 55.113, y = 0.307, z = 77.891 } },
{ config_id = 31016, shape = RegionShape.CUBIC, size = { x = 6.000, y = 10.000, z = 25.000 }, pos = { x = 137.918, y = 1.091, z = 78.104 } },
{ config_id = 31021, shape = RegionShape.CUBIC, size = { x = 6.000, y = 10.000, z = 25.000 }, pos = { x = 124.487, y = 1.815, z = 158.012 } },
{ config_id = 31024, shape = RegionShape.CUBIC, size = { x = 6.000, y = 10.000, z = 25.000 }, pos = { x = 204.193, y = 0.370, z = 157.891 } },
{ config_id = 31027, shape = RegionShape.CUBIC, size = { x = 6.000, y = 10.000, z = 25.000 }, pos = { x = 285.418, y = 1.731, z = 238.051 } },
{ config_id = 31030, shape = RegionShape.CUBIC, size = { x = 6.000, y = 10.000, z = 25.000 }, pos = { x = 364.432, y = 0.280, z = 397.888 } },
{ config_id = 31033, shape = RegionShape.CUBIC, size = { x = 6.000, y = 10.000, z = 25.000 }, pos = { x = 364.400, y = 0.240, z = 318.109 } },
{ config_id = 31036, shape = RegionShape.CUBIC, size = { x = 6.000, y = 10.000, z = 25.000 }, pos = { x = 370.095, y = 0.240, z = 318.109 } },
{ config_id = 31039, shape = RegionShape.CUBIC, size = { x = 6.000, y = 10.000, z = 25.000 }, pos = { x = 376.243, y = 0.240, z = 318.109 } },
-- boss1
{ config_id = 31042, shape = RegionShape.CUBIC, size = { x = 50.000, y = 10.000, z = 4.000 }, pos = { x = 400.550, y = -3.470, z = 507.714 } },
-- boss1
{ config_id = 31045, shape = RegionShape.CUBIC, size = { x = 50.000, y = 10.000, z = 4.000 }, pos = { x = 400.550, y = -3.470, z = 487.805 } }
}
-- 触发器
triggers = {
{ config_id = 1031002, name = "ENTER_REGION_31002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_31002", action = "action_EVENT_ENTER_REGION_31002", trigger_count = 0 },
{ config_id = 1031006, name = "ENTER_REGION_31006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_31006", action = "action_EVENT_ENTER_REGION_31006", trigger_count = 0 },
{ config_id = 1031007, name = "ENTER_REGION_31007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_31007", action = "action_EVENT_ENTER_REGION_31007", trigger_count = 0 },
{ config_id = 1031010, name = "ENTER_REGION_31010", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_31010", action = "action_EVENT_ENTER_REGION_31010", trigger_count = 0 },
{ config_id = 1031013, name = "ENTER_REGION_31013", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_31013", action = "action_EVENT_ENTER_REGION_31013", trigger_count = 0 },
{ config_id = 1031016, name = "ENTER_REGION_31016", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_31016", action = "action_EVENT_ENTER_REGION_31016", trigger_count = 0 },
{ config_id = 1031021, name = "ENTER_REGION_31021", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_31021", action = "action_EVENT_ENTER_REGION_31021", trigger_count = 0 },
{ config_id = 1031024, name = "ENTER_REGION_31024", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_31024", action = "action_EVENT_ENTER_REGION_31024", trigger_count = 0 },
{ config_id = 1031027, name = "ENTER_REGION_31027", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_31027", action = "action_EVENT_ENTER_REGION_31027", trigger_count = 0 },
{ config_id = 1031030, name = "ENTER_REGION_31030", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_31030", action = "action_EVENT_ENTER_REGION_31030", trigger_count = 0 },
{ config_id = 1031033, name = "ENTER_REGION_31033", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_31033", action = "action_EVENT_ENTER_REGION_31033", trigger_count = 0 },
{ config_id = 1031036, name = "ENTER_REGION_31036", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_31036", action = "action_EVENT_ENTER_REGION_31036", trigger_count = 0 },
{ config_id = 1031039, name = "ENTER_REGION_31039", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_31039", action = "action_EVENT_ENTER_REGION_31039", trigger_count = 0 },
-- boss1
{ config_id = 1031042, name = "ENTER_REGION_31042", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_31042", action = "action_EVENT_ENTER_REGION_31042", trigger_count = 0 },
-- boss1
{ config_id = 1031045, name = "ENTER_REGION_31045", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_31045", action = "action_EVENT_ENTER_REGION_31045", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 31001, 31003, 31004, 31005, 31008, 31009, 31011, 31012, 31014, 31015, 31017, 31018, 31019, 31020, 31022, 31023, 31025, 31026, 31028, 31029, 31031, 31032, 31034, 31035, 31037, 31038, 31040, 31041, 31043, 31044 },
regions = { 31002, 31006, 31007, 31010, 31013, 31016, 31021, 31024, 31027, 31030, 31033, 31036, 31039, 31042, 31045 },
triggers = { "ENTER_REGION_31002", "ENTER_REGION_31006", "ENTER_REGION_31007", "ENTER_REGION_31010", "ENTER_REGION_31013", "ENTER_REGION_31016", "ENTER_REGION_31021", "ENTER_REGION_31024", "ENTER_REGION_31027", "ENTER_REGION_31030", "ENTER_REGION_31033", "ENTER_REGION_31036", "ENTER_REGION_31039", "ENTER_REGION_31042", "ENTER_REGION_31045" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_31002(context, evt)
if evt.param1 ~= 31002 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_31002(context, evt)
-- 将configid为 31001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 31001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_31006(context, evt)
if evt.param1 ~= 31006 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_31006(context, evt)
-- 将configid为 31004 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 31004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_31007(context, evt)
if evt.param1 ~= 31007 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_31007(context, evt)
-- 将configid为 31009 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 31009, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_31010(context, evt)
if evt.param1 ~= 31010 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_31010(context, evt)
-- 将configid为 31012 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 31012, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_31013(context, evt)
if evt.param1 ~= 31013 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_31013(context, evt)
-- 将configid为 31015 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 31015, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_31016(context, evt)
if evt.param1 ~= 31016 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_31016(context, evt)
-- 将configid为 31018 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 31018, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_31021(context, evt)
if evt.param1 ~= 31021 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_31021(context, evt)
-- 将configid为 31020 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 31020, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_31024(context, evt)
if evt.param1 ~= 31024 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_31024(context, evt)
-- 将configid为 31023 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 31023, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_31027(context, evt)
if evt.param1 ~= 31027 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_31027(context, evt)
-- 将configid为 31026 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 31026, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_31030(context, evt)
if evt.param1 ~= 31030 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_31030(context, evt)
-- 将configid为 31029 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 31029, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_31033(context, evt)
if evt.param1 ~= 31033 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_31033(context, evt)
-- 将configid为 31032 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 31032, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_31036(context, evt)
if evt.param1 ~= 31036 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_31036(context, evt)
-- 将configid为 31035 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 31035, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_31039(context, evt)
if evt.param1 ~= 31039 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_31039(context, evt)
-- 将configid为 31038 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 31038, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_31042(context, evt)
if evt.param1 ~= 31042 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_31042(context, evt)
-- 将configid为 31040 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 31040, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_31045(context, evt)
if evt.param1 ~= 31045 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_31045(context, evt)
-- 将configid为 31043 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 31043, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end