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

293 lines
12 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 = 240016004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1004001, name = "GROUP_REFRESH_4001", event = EventType.EVENT_GROUP_REFRESH, source = "", condition = "", action = "action_EVENT_GROUP_REFRESH_4001", trigger_count = 0 },
{ config_id = 1004002, name = "TIMER_EVENT_4002", event = EventType.EVENT_TIMER_EVENT, source = "timeStart", condition = "", action = "action_EVENT_TIMER_EVENT_4002", trigger_count = 0 },
{ config_id = 1004003, name = "TIMER_EVENT_4003", event = EventType.EVENT_TIMER_EVENT, source = "time1", condition = "", action = "action_EVENT_TIMER_EVENT_4003", trigger_count = 0 },
{ config_id = 1004004, name = "TIMER_EVENT_4004", event = EventType.EVENT_TIMER_EVENT, source = "time2", condition = "", action = "action_EVENT_TIMER_EVENT_4004", trigger_count = 0 },
{ config_id = 1004005, name = "TIMER_EVENT_4005", event = EventType.EVENT_TIMER_EVENT, source = "time3", condition = "", action = "action_EVENT_TIMER_EVENT_4005", trigger_count = 0 },
{ config_id = 1004006, name = "TIMER_EVENT_4006", event = EventType.EVENT_TIMER_EVENT, source = "time4", condition = "", action = "action_EVENT_TIMER_EVENT_4006", trigger_count = 0 },
{ config_id = 1004007, name = "TIMER_EVENT_4007", event = EventType.EVENT_TIMER_EVENT, source = "time5", condition = "", action = "action_EVENT_TIMER_EVENT_4007", trigger_count = 0 },
{ config_id = 1004008, name = "TIMER_EVENT_4008", event = EventType.EVENT_TIMER_EVENT, source = "time6", condition = "", action = "action_EVENT_TIMER_EVENT_4008", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "GROUP_REFRESH_4001", "TIMER_EVENT_4002", "TIMER_EVENT_4003", "TIMER_EVENT_4004", "TIMER_EVENT_4005", "TIMER_EVENT_4006", "TIMER_EVENT_4007", "TIMER_EVENT_4008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GROUP_REFRESH_4001(context, evt)
-- 延迟2秒后,向groupId为:240016004的对象,请求一次调用,并将string参数:"timeStart" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240016004, "timeStart", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组240016001中, configid为1002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240016001, 1002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240016001中, configid为1003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240016001, 1003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240016001中, configid为1004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240016001, 1004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240016001中, configid为1005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240016001, 1005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240016001中, configid为1006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240016001, 1006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240016001中, configid为1007的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240016001, 1007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240016001中, configid为1008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240016001, 1008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240016001中, configid为1009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240016001, 1009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240016001中, configid为1010的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240016001, 1010, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4002(context, evt)
-- 改变指定group组240016001中, configid为1002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240016001, 1002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为:240016004的对象,请求一次调用,并将string参数:"time1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240016004, "time1", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4003(context, evt)
-- 改变指定group组240016001中, configid为1002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240016001, 1002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240016001中, configid为1008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240016001, 1008, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为:240016004的对象,请求一次调用,并将string参数:"time2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240016004, "time2", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4004(context, evt)
-- 改变指定group组240016001中, configid为1008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240016001, 1008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240016001中, configid为1007的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240016001, 1007, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为:240016004的对象,请求一次调用,并将string参数:"time3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240016004, "time3", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4005(context, evt)
-- 改变指定group组240016001中, configid为1007的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240016001, 1007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240016001中, configid为1004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240016001, 1004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为:240016004的对象,请求一次调用,并将string参数:"time4" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240016004, "time4", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4006(context, evt)
-- 改变指定group组240016001中, configid为1004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240016001, 1004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240016001中, configid为1010的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240016001, 1010, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为:240016004的对象,请求一次调用,并将string参数:"time5" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240016004, "time5", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4007(context, evt)
-- 改变指定group组240016001中, configid为1010的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240016001, 1010, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240016001中, configid为1009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240016001, 1009, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为:240016004的对象,请求一次调用,并将string参数:"time6" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240016004, "time6", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4008(context, evt)
-- 改变指定group组240016001中, configid为1009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240016001, 1009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 将本组内变量名为 "type" 的变量设置为 3
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "type", 3, 240016001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end