0
0
mirror of https://gitlab.com/YuukiPS/GC-Resources.git synced 2025-04-28 09:05:26 +00:00
GC-Resources/Resources/Scripts/Scene/50008/scene50008_group250008023.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

259 lines
8.2 KiB
Lua
Raw Permalink 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 = 250008023
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 114, gadget_id = 70900303, pos = { x = -66.854, y = 6.377, z = -684.559 }, rot = { x = 0.000, y = 53.000, z = 0.000 }, level = 1 },
{ config_id = 115, gadget_id = 70211001, pos = { x = -61.975, y = 4.000, z = -686.800 }, rot = { x = 0.000, y = 320.386, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true, persistent = true },
{ config_id = 116, gadget_id = 70360001, pos = { x = -67.192, y = 5.767, z = -682.596 }, rot = { x = 0.000, y = 327.600, z = 0.000 }, level = 1 },
{ config_id = 117, gadget_id = 70360001, pos = { x = -61.384, y = 4.728, z = -692.237 }, rot = { x = 0.000, y = 327.600, z = 0.000 }, level = 1 },
{ config_id = 197, gadget_id = 70900310, pos = { x = -54.743, y = 4.000, z = -697.547 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000060, name = "TIMER_EVENT_60", event = EventType.EVENT_TIMER_EVENT, source = "SpawnChest", condition = "", action = "action_EVENT_TIMER_EVENT_60" },
{ config_id = 1000061, name = "GADGET_CREATE_61", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_61", action = "action_EVENT_GADGET_CREATE_61" },
{ config_id = 1000062, name = "SELECT_OPTION_62", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_62", action = "action_EVENT_SELECT_OPTION_62", trigger_count = 0, forbid_guest = false },
{ config_id = 1000063, name = "GADGET_CREATE_63", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_63", action = "action_EVENT_GADGET_CREATE_63" },
{ config_id = 1000064, name = "SELECT_OPTION_64", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_64", action = "action_EVENT_SELECT_OPTION_64", trigger_count = 0, forbid_guest = false },
{ config_id = 1000067, name = "GADGET_STATE_CHANGE_67", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_67", action = "action_EVENT_GADGET_STATE_CHANGE_67", trigger_count = 0 },
{ config_id = 1000128, name = "GADGET_STATE_CHANGE_128", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_128", action = "action_EVENT_GADGET_STATE_CHANGE_128" },
{ config_id = 1000129, name = "GADGET_STATE_CHANGE_129", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_129", action = "action_EVENT_GADGET_STATE_CHANGE_129", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 114, 116, 117, 197 },
regions = { },
triggers = { "TIMER_EVENT_60", "GADGET_CREATE_61", "SELECT_OPTION_62", "GADGET_CREATE_63", "SELECT_OPTION_64", "GADGET_STATE_CHANGE_67", "GADGET_STATE_CHANGE_128", "GADGET_STATE_CHANGE_129" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_TIMER_EVENT_60(context, evt)
-- 创建id为115的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 115 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 删除指定group 250008023 指定config116物件身上指定option172
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250008023, 116, 172) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 250008023 指定config117物件身上指定option172
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250008023, 117, 172) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_61(context, evt)
if 116 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_61(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250008023, 116, {172}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_62(context, evt)
-- 判断是gadgetid 116 option_id 172
if 116 ~= evt.param1 then
return false
end
if 172 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_62(context, evt)
-- 调用提示id为 500090101 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 500090101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_63(context, evt)
if 117 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_63(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250008023, 117, {172}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_64(context, evt)
-- 判断是gadgetid 117 option_id 172
if 117 ~= evt.param1 then
return false
end
if 172 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_64(context, evt)
-- 调用提示id为 500090101 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 500090101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_67(context, evt)
if 197 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_67(context, evt)
-- 将configid为 114 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 114, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_128(context, evt)
if 114 ~= evt.param2 or GadgetState.GearAction1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_128(context, evt)
-- 延迟1秒后,向groupId为250008023的对象,请求一次调用,并将string参数"SpawnChest" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250008023, "SpawnChest", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_129(context, evt)
if 197 ~= evt.param2 or GadgetState.GearStop ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_129(context, evt)
-- 将configid为 114 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 114, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end