添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions
@@ -0,0 +1,30 @@
-- 地图配置
scene_config = {
begin_pos = { x = -32.0, z = -32.0 },
size = { x = 256.0, z = 256.0 },
born_pos = { x = 0.187, y = 0.000, z = 14.504 },
born_rot = { x = 0.000, y = 180.000, z = 0.000 },
born_point_list = {
{ pos = { x = 0.191, y = 0.000, z = 17.502 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = 0.191, y = 0.000, z = 23.279 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = 3.175, y = 0.000, z = 20.188 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = -2.686, y = 0.000, z = 20.417 }, rot = { x = 0.000, y = 180.000, z = 0.000 } }
},
die_y = -20,
city_id = 1,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 40058 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -32.0, z = -32.0 }, max = { x = 224.0, z = 224.0 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }
@@ -0,0 +1,7 @@
-- 所有的group
groups = {
{ id = 240058001, refresh_id = 1002, pos = { x = 0.000, y = 0.000, z = 0.000 } },
{ id = 240058002, refresh_id = 1002, pos = { x = 0.171, y = 0.000, z = 0.000 } },
{ id = 240058003, refresh_id = 1002, pos = { x = 0.185, y = 0.000, z = 0.000 } },
{ id = 240058004, refresh_id = 1003, pos = { x = 0.210, y = 0.000, z = 0.000 } }
}
@@ -0,0 +1,333 @@
-- 基础信息
local base_info = {
group_id = 240058001
}
-- DEFS_MISCS
local defs = {
worktop_id = 1003, --操作台gadget的id
gallery_id = 29027, --对应gallery的id
recovergadget_id = 1009, --恢复gadget的id
battle_region_id = 1024, --td region的id
cleaner_id = 1001, --local gadget(能量球)清理gadget的id
trans_p1 = 1017, --P1玩家传送点
trans_p2 = 1018, --P2玩家传送点
trans_p3 = 1019, --P3玩家传送点
trans_p4 = 1020, --P4玩家传送点
monster_num = 2, --刷怪总数量
is_first_group = true, --是否是第一个group
next_group_id = 240058002 --下一个group的id,最后一个group不需要这条
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
[1006] = { config_id = 1006, monster_id = 26050601, pos = { x = -5.608, y = 0.079, z = -5.885 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
[1007] = { config_id = 1007, monster_id = 22040201, pos = { x = -5.608, y = 0.073, z = -8.758 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
[1008] = { config_id = 1008, monster_id = 22040201, pos = { x = -11.561, y = 0.082, z = 2.824 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
[1012] = { config_id = 1012, monster_id = 22040201, pos = { x = 6.045, y = 0.073, z = -8.758 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
[1021] = { config_id = 1021, monster_id = 26050601, pos = { x = 6.045, y = 0.079, z = -5.884 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
[1022] = { config_id = 1022, monster_id = 22040201, pos = { x = -11.561, y = 0.082, z = -3.051 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
[1023] = { config_id = 1023, monster_id = 22040201, pos = { x = 11.885, y = 0.082, z = -3.051 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
[1031] = { config_id = 1031, monster_id = 22040201, pos = { x = 11.885, y = 0.082, z = 2.824 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[1001] = { config_id = 1001, gadget_id = 44000456, pos = { x = 0.172, y = 0.000, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[1002] = { config_id = 1002, gadget_id = 70900205, pos = { x = 2.243, y = -0.535, z = -1.458 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[1003] = { config_id = 1003, gadget_id = 70360367, pos = { x = 0.192, y = 0.082, z = 8.736 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 175 } } },
[1004] = { config_id = 1004, gadget_id = 70950042, pos = { x = 0.000, y = 0.000, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[1009] = { config_id = 1009, gadget_id = 44000006, pos = { x = 0.163, y = 0.089, z = 20.326 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
[1024] = { config_id = 1024, shape = RegionShape.SPHERE, radius = 35, pos = { x = 0.000, y = 0.000, z = 0.000 } }
}
-- 触发器
triggers = {
{ config_id = 1001005, name = "ANY_MONSTER_LIVE_1005", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_1005", action = "action_EVENT_ANY_MONSTER_LIVE_1005" },
{ config_id = 1001010, name = "SELECT_OPTION_1010", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1010", action = "action_EVENT_SELECT_OPTION_1010" },
{ config_id = 1001011, name = "ANY_MONSTER_DIE_1011", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_1011", action = "action_EVENT_ANY_MONSTER_DIE_1011" },
{ config_id = 1001013, name = "ANY_MONSTER_DIE_1013", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_1013", action = "action_EVENT_ANY_MONSTER_DIE_1013" },
{ config_id = 1001014, name = "ANY_MONSTER_DIE_1014", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_1014", action = "action_EVENT_ANY_MONSTER_DIE_1014" },
{ config_id = 1001015, name = "ANY_MONSTER_DIE_1015", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_1015", trigger_count = 0 },
{ config_id = 1001016, name = "VARIABLE_CHANGE_1016", event = EventType.EVENT_VARIABLE_CHANGE, source = "monster_count", condition = "condition_EVENT_VARIABLE_CHANGE_1016", action = "action_EVENT_VARIABLE_CHANGE_1016", trigger_count = 0 }
}
-- 点位
points = {
{ config_id = 1017, pos = { x = 0.191, y = 0.000, z = 17.427 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ config_id = 1018, pos = { x = 0.191, y = 0.000, z = 23.304 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ config_id = 1019, pos = { x = 3.104, y = 0.000, z = 20.332 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ config_id = 1020, pos = { x = -2.720, y = 0.000, z = 20.332 }, rot = { x = 0.000, y = 180.000, z = 0.000 } }
}
-- 变量
variables = {
{ config_id = 1, name = "GALLERY_STATE", value = 0, no_refresh = false },
{ config_id = 2, name = "monster_wave", value = 0, no_refresh = false },
{ config_id = 3, name = "monster_count", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001, 1002, 1003, 1004, 1009 },
regions = { 1024 },
triggers = { "SELECT_OPTION_1010", "ANY_MONSTER_DIE_1015", "VARIABLE_CHANGE_1016" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 1007, 1008, 1012, 1022, 1023, 1031 },
gadgets = { 1002 },
regions = { },
triggers = { "ANY_MONSTER_DIE_1011" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 1006, 1021 },
gadgets = { 1002 },
regions = { },
triggers = { "ANY_MONSTER_LIVE_1005", "ANY_MONSTER_DIE_1013" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 1002 },
regions = { },
triggers = { "ANY_MONSTER_DIE_1014" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 1002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_1005(context, evt)
if 1006 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_1005(context, evt)
-- 将本组内变量名为 "GALLERY_STATE" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "GALLERY_STATE", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 针对当前group内变量名为 "monster_wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1010(context, evt)
-- 判断是gadgetid 1003 option_id 175
if 1003 ~= evt.param1 then
return false
end
if 175 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1010(context, evt)
-- 将configid为 1003 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1003, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 240058001 ;指定config1003;物件身上指定option175
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240058001, 1003, 175) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 240058001, 3)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_1011(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"monster_wave"为1
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_1011(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 240058001, 3)
-- 针对当前group内变量名为 "monster_wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_1013(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"monster_wave"为2
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_1013(context, evt)
-- 针对当前group内变量名为 "monster_wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_1014(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"monster_wave"为3
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_1014(context, evt)
-- 针对当前group内变量名为 "monster_wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_1015(context, evt)
-- 针对当前group内变量名为 "monster_count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1016(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"monster_count"为2
if ScriptLib.GetGroupVariableValue(context, "monster_count") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1016(context, evt)
-- 将本组内变量名为 "GALLERY_STATE" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "GALLERY_STATE", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
require "V3_2/HypostasisChallenge"
@@ -0,0 +1,341 @@
-- 基础信息
local base_info = {
group_id = 240058002
}
-- DEFS_MISCS
local defs = {
worktop_id = 2007, --操作台gadget的id
gallery_id = 29028, --对应gallery的id
recovergadget_id = 2009, --恢复gadget的id
battle_region_id = 2022, --td region的id
cleaner_id = 2005, --local gadget(能量球)清理gadget的id
trans_p1 = 2017, --P1玩家传送点
trans_p2 = 2018, --P2玩家传送点
trans_p3 = 2019, --P3玩家传送点
trans_p4 = 2020, --P4玩家传送点
monster_num = 2, --刷怪总数量
is_first_group = false, --是否是第一个group
next_group_id = 240058003 --下一个group的id,最后一个group不需要这条
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
[2001] = { config_id = 2001, monster_id = 25310301, pos = { x = 0.156, y = 0.079, z = -8.683 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 6104 }, isElite = true },
[2002] = { config_id = 2002, monster_id = 23010201, pos = { x = -8.480, y = 0.080, z = -2.933 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, disableWander = true },
[2003] = { config_id = 2003, monster_id = 24030101, pos = { x = -5.629, y = 0.079, z = -5.958 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 },
[2004] = { config_id = 2004, monster_id = 23010501, pos = { x = -8.651, y = 0.080, z = 2.978 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, disableWander = true },
[2021] = { config_id = 2021, monster_id = 25210201, pos = { x = 8.818, y = 0.080, z = -2.944 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, disableWander = true },
[2024] = { config_id = 2024, monster_id = 25210201, pos = { x = 8.818, y = 0.080, z = 2.892 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, disableWander = true },
[2025] = { config_id = 2025, monster_id = 24030201, pos = { x = 6.077, y = 0.079, z = -5.915 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 101 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[2005] = { config_id = 2005, gadget_id = 44000456, pos = { x = -0.131, y = 0.074, z = 0.290 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[2006] = { config_id = 2006, gadget_id = 70900205, pos = { x = 1.941, y = -0.461, z = -1.168 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[2007] = { config_id = 2007, gadget_id = 70360367, pos = { x = 0.116, y = 0.000, z = 8.749 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 175 } } },
[2008] = { config_id = 2008, gadget_id = 70950042, pos = { x = 0.000, y = 0.000, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[2009] = { config_id = 2009, gadget_id = 44000006, pos = { x = 0.163, y = 0.089, z = 20.326 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
[2022] = { config_id = 2022, shape = RegionShape.SPHERE, radius = 35, pos = { x = 0.000, y = 0.000, z = 0.000 } }
}
-- 触发器
triggers = {
{ config_id = 1002010, name = "ANY_MONSTER_LIVE_2010", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_2010", action = "action_EVENT_ANY_MONSTER_LIVE_2010" },
{ config_id = 1002011, name = "SELECT_OPTION_2011", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2011", action = "action_EVENT_SELECT_OPTION_2011" },
{ config_id = 1002012, name = "ANY_MONSTER_DIE_2012", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_2012", action = "action_EVENT_ANY_MONSTER_DIE_2012" },
{ config_id = 1002013, name = "ANY_MONSTER_DIE_2013", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_2013", action = "action_EVENT_ANY_MONSTER_DIE_2013" },
{ config_id = 1002014, name = "ANY_MONSTER_DIE_2014", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_2014", action = "action_EVENT_ANY_MONSTER_DIE_2014" },
{ config_id = 1002015, name = "VARIABLE_CHANGE_2015", event = EventType.EVENT_VARIABLE_CHANGE, source = "monster_count", condition = "condition_EVENT_VARIABLE_CHANGE_2015", action = "action_EVENT_VARIABLE_CHANGE_2015", trigger_count = 0 },
{ config_id = 1002016, name = "ANY_MONSTER_DIE_2016", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_2016", trigger_count = 0 }
}
-- 点位
points = {
{ config_id = 2017, pos = { x = 0.191, y = 0.000, z = 17.427 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ config_id = 2018, pos = { x = 0.191, y = 0.000, z = 23.304 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ config_id = 2019, pos = { x = 3.104, y = 0.000, z = 20.332 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ config_id = 2020, pos = { x = -2.720, y = 0.000, z = 20.332 }, rot = { x = 0.000, y = 180.000, z = 0.000 } }
}
-- 变量
variables = {
{ config_id = 1, name = "GALLERY_STATE", value = 0, no_refresh = false },
{ config_id = 2, name = "monster_wave", value = 0, no_refresh = false },
{ config_id = 3, name = "monster_count", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 2005, 2006, 2007, 2008, 2009 },
regions = { 2022 },
triggers = { "SELECT_OPTION_2011", "VARIABLE_CHANGE_2015", "ANY_MONSTER_DIE_2016" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 2001, 2002, 2004, 2021, 2024 },
gadgets = { 2006 },
regions = { },
triggers = { "ANY_MONSTER_DIE_2012" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 2003, 2025 },
gadgets = { 2006 },
regions = { },
triggers = { "ANY_MONSTER_LIVE_2010", "ANY_MONSTER_DIE_2013" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 2006 },
regions = { },
triggers = { "ANY_MONSTER_DIE_2014" },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 2006 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_2010(context, evt)
if 2003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_2010(context, evt)
-- 将本组内变量名为 "GALLERY_STATE" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "GALLERY_STATE", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 针对当前group内变量名为 "monster_wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2011(context, evt)
-- 判断是gadgetid 2007 option_id 175
if 2007 ~= evt.param1 then
return false
end
if 175 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2011(context, evt)
-- 将configid为 2007 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2007, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 240058002 ;指定config2007;物件身上指定option175
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240058002, 2007, 175) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 240058002, 4)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_2012(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"monster_wave"为1
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_2012(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 240058002, 4)
-- 针对当前group内变量名为 "monster_wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_2013(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"monster_wave"为2
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_2013(context, evt)
-- 针对当前group内变量名为 "monster_wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_2014(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"monster_wave"为3
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_2014(context, evt)
-- 针对当前group内变量名为 "monster_wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_2015(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"monster_count"为2
if ScriptLib.GetGroupVariableValue(context, "monster_count") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_2015(context, evt)
-- 将本组内变量名为 "GALLERY_STATE" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "GALLERY_STATE", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_2016(context, evt)
-- 针对当前group内变量名为 "monster_count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
require "V3_2/HypostasisChallenge"
@@ -0,0 +1,342 @@
-- 基础信息
local base_info = {
group_id = 240058003
}
-- DEFS_MISCS
local defs = {
worktop_id = 3007, --操作台gadget的id
gallery_id = 29029, --对应gallery的id
recovergadget_id = 3009, --恢复gadget的id
battle_region_id = 3025, --td region的id
cleaner_id = 3005, --local gadget(能量球)清理gadget的id
trans_p1 = 3017, --P1玩家传送点
trans_p2 = 3018, --P2玩家传送点
trans_p3 = 3019, --P3玩家传送点
trans_p4 = 3020, --P4玩家传送点
monster_num = 4, --刷怪总数量
is_first_group = false, --是否是第一个group
next_group_id = 240058004 --下一个group的id,最后一个group不需要这条
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
[3001] = { config_id = 3001, monster_id = 24010301, pos = { x = 0.167, y = 0.084, z = -14.489 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 6110 }, isElite = true, pose_id = 100 },
[3002] = { config_id = 3002, monster_id = 24020401, pos = { x = 0.167, y = 0.075, z = -2.766 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 6111 }, pose_id = 100 },
[3003] = { config_id = 3003, monster_id = 25410101, pos = { x = 0.160, y = 0.082, z = -11.818 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 6110 }, isElite = true },
[3004] = { config_id = 3004, monster_id = 24040101, pos = { x = 0.178, y = 0.077, z = -5.763 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 6111 }, pose_id = 1 },
[3021] = { config_id = 3021, monster_id = 24040201, pos = { x = -8.465, y = 0.079, z = -0.032 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, disableWander = true, affix = { 6111 }, pose_id = 1 },
[3022] = { config_id = 3022, monster_id = 24020101, pos = { x = 6.059, y = 0.081, z = -8.716 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 6111 }, pose_id = 100 },
[3023] = { config_id = 3023, monster_id = 24020101, pos = { x = -5.593, y = 0.081, z = -8.778 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 6111 }, pose_id = 100 },
[3024] = { config_id = 3024, monster_id = 24040301, pos = { x = 8.925, y = 0.079, z = 0.103 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, disableWander = true, affix = { 6111 }, pose_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[3005] = { config_id = 3005, gadget_id = 44000456, pos = { x = -0.171, y = 0.150, z = 0.119 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[3006] = { config_id = 3006, gadget_id = 70900205, pos = { x = 1.901, y = -0.385, z = -1.339 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[3007] = { config_id = 3007, gadget_id = 70360367, pos = { x = 0.122, y = 0.000, z = 8.731 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 175 } } },
[3008] = { config_id = 3008, gadget_id = 70950042, pos = { x = 0.000, y = 0.000, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[3009] = { config_id = 3009, gadget_id = 44000006, pos = { x = 0.163, y = 0.089, z = 20.326 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
[3025] = { config_id = 3025, shape = RegionShape.SPHERE, radius = 35, pos = { x = 0.000, y = 0.000, z = 0.000 } }
}
-- 触发器
triggers = {
{ config_id = 1003010, name = "ANY_MONSTER_LIVE_3010", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_3010", action = "action_EVENT_ANY_MONSTER_LIVE_3010" },
{ config_id = 1003011, name = "SELECT_OPTION_3011", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3011", action = "action_EVENT_SELECT_OPTION_3011" },
{ config_id = 1003012, name = "ANY_MONSTER_DIE_3012", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3012", action = "action_EVENT_ANY_MONSTER_DIE_3012" },
{ config_id = 1003013, name = "ANY_MONSTER_DIE_3013", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3013", action = "action_EVENT_ANY_MONSTER_DIE_3013" },
{ config_id = 1003014, name = "ANY_MONSTER_DIE_3014", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3014", action = "action_EVENT_ANY_MONSTER_DIE_3014" },
{ config_id = 1003015, name = "VARIABLE_CHANGE_3015", event = EventType.EVENT_VARIABLE_CHANGE, source = "monster_count", condition = "condition_EVENT_VARIABLE_CHANGE_3015", action = "action_EVENT_VARIABLE_CHANGE_3015", trigger_count = 0 },
{ config_id = 1003016, name = "ANY_MONSTER_DIE_3016", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_3016", trigger_count = 0 }
}
-- 点位
points = {
{ config_id = 3017, pos = { x = 0.191, y = 0.000, z = 17.427 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ config_id = 3018, pos = { x = 0.191, y = 0.000, z = 23.304 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ config_id = 3019, pos = { x = 3.104, y = 0.000, z = 20.332 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ config_id = 3020, pos = { x = -2.720, y = 0.000, z = 20.332 }, rot = { x = 0.000, y = 180.000, z = 0.000 } }
}
-- 变量
variables = {
{ config_id = 1, name = "GALLERY_STATE", value = 0, no_refresh = false },
{ config_id = 2, name = "monster_wave", value = 0, no_refresh = false },
{ config_id = 3, name = "monster_count", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 3005, 3006, 3007, 3008, 3009 },
regions = { 3025 },
triggers = { "SELECT_OPTION_3011", "VARIABLE_CHANGE_3015", "ANY_MONSTER_DIE_3016" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 3001, 3002, 3022, 3023 },
gadgets = { 3006 },
regions = { },
triggers = { "ANY_MONSTER_DIE_3012" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 3003, 3004, 3021, 3024 },
gadgets = { 3006 },
regions = { },
triggers = { "ANY_MONSTER_LIVE_3010", "ANY_MONSTER_DIE_3013" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 3006 },
regions = { },
triggers = { "ANY_MONSTER_DIE_3014" },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 3006 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_3010(context, evt)
if 3003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_3010(context, evt)
-- 将本组内变量名为 "GALLERY_STATE" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "GALLERY_STATE", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 针对当前group内变量名为 "monster_wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3011(context, evt)
-- 判断是gadgetid 3007 option_id 175
if 3007 ~= evt.param1 then
return false
end
if 175 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3011(context, evt)
-- 将configid为 3007 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3007, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 240058003 ;指定config3007;物件身上指定option175
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240058003, 3007, 175) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 240058003, 4)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3012(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"monster_wave"为1
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3012(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 240058003, 4)
-- 针对当前group内变量名为 "monster_wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3013(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"monster_wave"为2
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3013(context, evt)
-- 针对当前group内变量名为 "monster_wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3014(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
-- 判断变量"monster_wave"为3
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3014(context, evt)
-- 针对当前group内变量名为 "monster_wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_3015(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"monster_count"为4
if ScriptLib.GetGroupVariableValue(context, "monster_count") ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_3015(context, evt)
-- 将本组内变量名为 "GALLERY_STATE" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "GALLERY_STATE", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3016(context, evt)
-- 针对当前group内变量名为 "monster_count" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_count", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
require "V3_2/HypostasisChallenge"
@@ -0,0 +1,207 @@
-- 基础信息
local base_info = {
group_id = 240058004
}
-- DEFS_MISCS
local defs = {
worktop_id = 4007, --操作台gadget的id
gallery_id = 29030, --对应gallery的id
recovergadget_id = 4009, --恢复gadget的id
battle_region_id = 4013, --td region的id
cleaner_id = 4005, --local gadget(能量球)清理gadget的id
trans_p1 = 4002, --P1玩家传送点
trans_p2 = 4003, --P2玩家传送点
trans_p3 = 4004, --P3玩家传送点
trans_p4 = 4012, --P4玩家传送点
monster_num = 1, --刷怪总数量
is_first_group = false, --是否是第一个group
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
[4001] = { config_id = 4001, monster_id = 20040702, pos = { x = 0.181, y = 0.000, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[4005] = { config_id = 4005, gadget_id = 44000456, pos = { x = -2.758, y = 0.231, z = 3.958 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4006] = { config_id = 4006, gadget_id = 70900205, pos = { x = -0.686, y = -0.304, z = 2.500 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4007] = { config_id = 4007, gadget_id = 70360367, pos = { x = 0.158, y = 0.000, z = 8.702 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 175 } } },
[4008] = { config_id = 4008, gadget_id = 70950042, pos = { x = 0.000, y = 0.000, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4009] = { config_id = 4009, gadget_id = 44000006, pos = { x = 0.163, y = 0.089, z = 20.326 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
[4013] = { config_id = 4013, shape = RegionShape.SPHERE, radius = 35, pos = { x = 0.000, y = 0.000, z = 0.000 } }
}
-- 触发器
triggers = {
{ config_id = 1004010, name = "ANY_MONSTER_LIVE_4010", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_4010", action = "action_EVENT_ANY_MONSTER_LIVE_4010" },
{ config_id = 1004011, name = "SELECT_OPTION_4011", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4011", action = "action_EVENT_SELECT_OPTION_4011" },
{ config_id = 1004015, name = "ANY_MONSTER_DIE_4015", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4015", action = "action_EVENT_ANY_MONSTER_DIE_4015", trigger_count = 0 }
}
-- 点位
points = {
{ config_id = 4002, pos = { x = 0.191, y = 0.000, z = 17.427 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ config_id = 4003, pos = { x = 0.191, y = 0.000, z = 23.304 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ config_id = 4004, pos = { x = 3.104, y = 0.000, z = 20.332 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ config_id = 4012, pos = { x = -2.720, y = 0.000, z = 20.332 }, rot = { x = 0.000, y = 180.000, z = 0.000 } }
}
-- 变量
variables = {
{ config_id = 1, name = "GALLERY_STATE", value = 0, no_refresh = false },
{ config_id = 2, name = "monster_wave", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 4005, 4006, 4007, 4008, 4009 },
regions = { 4013 },
triggers = { "SELECT_OPTION_4011", "ANY_MONSTER_DIE_4015" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 4001 },
gadgets = { 4006 },
regions = { },
triggers = { "ANY_MONSTER_LIVE_4010" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_4010(context, evt)
if 4001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_4010(context, evt)
-- 将本组内变量名为 "GALLERY_STATE" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "GALLERY_STATE", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 针对当前group内变量名为 "monster_wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_4011(context, evt)
-- 判断是gadgetid 4007 option_id 175
if 4007 ~= evt.param1 then
return false
end
if 175 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4011(context, evt)
-- 将configid为 4007 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4007, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 240058004 ;指定config4007;物件身上指定option175
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240058004, 4007, 175) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 240058004, 3)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4015(context, evt)
if 4001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4015(context, evt)
-- 将本组内变量名为 "GALLERY_STATE" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "GALLERY_STATE", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
require "V3_2/HypostasisChallenge"
@@ -0,0 +1,8 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {},
"transRadius": 0.0
}