mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-23 14:32:27 +08:00
更新配置表
This commit is contained in:
24
gdconf/game_data_config/lua/scene/35884/scene35884.lua
Normal file
24
gdconf/game_data_config/lua/scene/35884/scene35884.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
-- 地图配置
|
||||
scene_config = {
|
||||
begin_pos = { x = -269.9, z = -266.9 },
|
||||
size = { x = 535.3, z = 530.4 },
|
||||
born_pos = { x = 235.537, y = 92.054, z = 183.730 },
|
||||
born_rot = { x = 0.000, y = 334.775, z = 0.000 },
|
||||
die_y = -20,
|
||||
city_id = 4,
|
||||
vision_anchor = { x = -1000.0, z = -1000.0 }
|
||||
}
|
||||
|
||||
-- 所有的区块
|
||||
blocks = { 35884 }
|
||||
|
||||
-- 所有的区块范围坐标
|
||||
block_rects = {
|
||||
{ min = { x = -269.9, z = -266.9 }, max = { x = 265.4, z = 263.5 } }
|
||||
}
|
||||
|
||||
-- Dummy Points
|
||||
dummy_points = { }
|
||||
|
||||
-- Routes
|
||||
routes_config = { }
|
||||
@@ -0,0 +1,7 @@
|
||||
-- 所有的group
|
||||
groups = {
|
||||
{ id = 235884001, refresh_id = 1, pos = { x = 219.144, y = 90.179, z = 213.590 } },
|
||||
{ id = 235884002, refresh_id = 1002, pos = { x = 219.548, y = 88.419, z = 205.132 } },
|
||||
{ id = 235884003, refresh_id = 1002, pos = { x = 219.730, y = 90.180, z = 213.382 } },
|
||||
{ id = 235884004, refresh_id = 1002, pos = { x = 221.889, y = 109.122, z = 205.474 } }
|
||||
}
|
||||
@@ -0,0 +1,180 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 235884001
|
||||
}
|
||||
|
||||
-- DEFS_MISCS
|
||||
local defs =
|
||||
{
|
||||
--操作台id
|
||||
starter_gadget = 1001,
|
||||
--gallery id
|
||||
gallery_id = 35005,
|
||||
--传送点 id
|
||||
teleportPos_id = 1005,
|
||||
groups_info =
|
||||
{
|
||||
--主控group 怪物数量不用管
|
||||
[1] = {id = 235884001, monster_num = 0,},
|
||||
--第一组玩法group
|
||||
[2] = {id = 235884002, monster_num = 4,},
|
||||
--第二组玩法group
|
||||
[3] = {id = 235884003, monster_num = 5,},
|
||||
--第三组玩法group
|
||||
[4] = {id = 235884004, monster_num = 7,},
|
||||
},
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
[1001] = { config_id = 1001, gadget_id = 70800446, pos = { x = 219.037, y = 90.180, z = 213.396 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ config_id = 1001002, name = "VARIABLE_CHANGE_1002", event = EventType.EVENT_VARIABLE_CHANGE, source = "GALLERY_STATE", condition = "condition_EVENT_VARIABLE_CHANGE_1002", action = "action_EVENT_VARIABLE_CHANGE_1002", trigger_count = 0 },
|
||||
{ config_id = 1001003, name = "VARIABLE_CHANGE_1003", event = EventType.EVENT_VARIABLE_CHANGE, source = "GALLERY_STATE", condition = "condition_EVENT_VARIABLE_CHANGE_1003", action = "action_EVENT_VARIABLE_CHANGE_1003", trigger_count = 0 },
|
||||
{ config_id = 1001004, name = "VARIABLE_CHANGE_1004", event = EventType.EVENT_VARIABLE_CHANGE, source = "GALLERY_STATE", condition = "condition_EVENT_VARIABLE_CHANGE_1004", action = "action_EVENT_VARIABLE_CHANGE_1004", trigger_count = 0 }
|
||||
}
|
||||
|
||||
-- 点位
|
||||
points = {
|
||||
{ config_id = 1005, pos = { x = 235.523, y = 92.061, z = 183.913 }, rot = { x = 0.000, y = 329.394, z = 0.000 } }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
{ config_id = 1, name = "GALLERY_STATE", value = 0, no_refresh = false }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 1001 },
|
||||
regions = { },
|
||||
triggers = { "VARIABLE_CHANGE_1002", "VARIABLE_CHANGE_1003", "VARIABLE_CHANGE_1004" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_VARIABLE_CHANGE_1002(context, evt)
|
||||
if evt.param1 == evt.param2 then return false end
|
||||
|
||||
-- 判断变量"GALLERY_STATE"为1
|
||||
if ScriptLib.GetGroupVariableValue(context, "GALLERY_STATE") ~= 1 then
|
||||
return false
|
||||
end
|
||||
|
||||
-- 判断变量"GROUP_INDEX"为2
|
||||
if ScriptLib.GetGroupVariableValue(context, "GROUP_INDEX") ~= 2 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_VARIABLE_CHANGE_1002(context, evt)
|
||||
-- 添加suite3的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 235884002, 3)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_VARIABLE_CHANGE_1003(context, evt)
|
||||
if evt.param1 == evt.param2 then return false end
|
||||
|
||||
-- 判断变量"GALLERY_STATE"为1
|
||||
if ScriptLib.GetGroupVariableValue(context, "GALLERY_STATE") ~= 1 then
|
||||
return false
|
||||
end
|
||||
|
||||
-- 判断变量"GROUP_INDEX"为3
|
||||
if ScriptLib.GetGroupVariableValue(context, "GROUP_INDEX") ~= 3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_VARIABLE_CHANGE_1003(context, evt)
|
||||
-- 添加suite3的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 235884003, 3)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_VARIABLE_CHANGE_1004(context, evt)
|
||||
if evt.param1 == evt.param2 then return false end
|
||||
|
||||
-- 判断变量"GALLERY_STATE"为1
|
||||
if ScriptLib.GetGroupVariableValue(context, "GALLERY_STATE") ~= 1 then
|
||||
return false
|
||||
end
|
||||
|
||||
-- 判断变量"GROUP_INDEX"为4
|
||||
if ScriptLib.GetGroupVariableValue(context, "GROUP_INDEX") ~= 4 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_VARIABLE_CHANGE_1004(context, evt)
|
||||
-- 添加suite3的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 235884004, 3)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
require "V3_4/Activity_TeamChainChallenge"
|
||||
@@ -0,0 +1,168 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 235884002
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
[2001] = { config_id = 2001, monster_id = 24010101, pos = { x = 210.710, y = 90.182, z = 214.139 }, rot = { x = 0.000, y = 108.105, z = 0.000 }, level = 1, disableWander = true, affix = { 5259, 5265 }, pose_id = 100 },
|
||||
[2002] = { config_id = 2002, monster_id = 24010101, pos = { x = 223.809, y = 90.183, z = 222.629 }, rot = { x = 0.000, y = 189.194, z = 0.000 }, level = 1, disableWander = true, affix = { 5259, 5265 }, pose_id = 100 },
|
||||
[2003] = { config_id = 2003, monster_id = 24030201, pos = { x = 217.821, y = 90.184, z = 205.437 }, rot = { x = 0.000, y = 13.619, z = 0.000 }, level = 1, disableWander = true, affix = { 5259, 5265 }, pose_id = 101 },
|
||||
[2004] = { config_id = 2004, monster_id = 24030201, pos = { x = 226.519, y = 90.183, z = 210.509 }, rot = { x = 0.000, y = 298.537, z = 0.000 }, level = 1, disableWander = true, affix = { 5259, 5265 }, pose_id = 101 }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
[2005] = { config_id = 2005, gadget_id = 70900205, pos = { x = 218.140, y = 89.155, z = 217.621 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
[2007] = { config_id = 2007, gadget_id = 70710535, pos = { x = 219.071, y = 84.095, z = 213.377 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ config_id = 1002006, name = "ANY_MONSTER_DIE_2006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_2006", action = "action_EVENT_ANY_MONSTER_DIE_2006", trigger_count = 0 },
|
||||
{ config_id = 1002008, name = "ANY_MONSTER_DIE_2008", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_2008", action = "action_EVENT_ANY_MONSTER_DIE_2008", trigger_count = 0 }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
{ config_id = 1, 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 = { 2005 },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 2,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 2007 },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 3,
|
||||
-- description = ,
|
||||
monsters = { 2001, 2002 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { "ANY_MONSTER_DIE_2006" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 4,
|
||||
-- description = ,
|
||||
monsters = { 2003, 2004 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { "ANY_MONSTER_DIE_2008" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_2006(context, evt)
|
||||
-- 判断剩余怪物数量是否是0
|
||||
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
|
||||
return false
|
||||
end
|
||||
|
||||
-- 判断变量"monster_wave"为0
|
||||
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 0 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_2006(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
|
||||
|
||||
-- 添加suite4的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 235884002, 4)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_2008(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_2008(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
|
||||
|
||||
-- 将本组内变量名为 "GALLERY_STATE" 的变量设置为 2
|
||||
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "GALLERY_STATE", 2, 235884001) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
@@ -0,0 +1,169 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 235884003
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
[3002] = { config_id = 3002, monster_id = 24030101, pos = { x = 212.723, y = 90.184, z = 217.620 }, rot = { x = 0.000, y = 120.982, z = 0.000 }, level = 1, disableWander = true, affix = { 5259, 5265 }, pose_id = 101 },
|
||||
[3003] = { config_id = 3003, monster_id = 24030101, pos = { x = 220.488, y = 90.183, z = 221.666 }, rot = { x = 0.000, y = 181.433, z = 0.000 }, level = 1, disableWander = true, affix = { 5259, 5265 }, pose_id = 101 },
|
||||
[3005] = { config_id = 3005, monster_id = 25310101, pos = { x = 222.499, y = 90.184, z = 207.792 }, rot = { x = 0.000, y = 330.583, z = 0.000 }, level = 1, disableWander = true, affix = { 5259, 5265 }, pose_id = 1 },
|
||||
[3006] = { config_id = 3006, monster_id = 25310301, pos = { x = 213.936, y = 90.183, z = 206.663 }, rot = { x = 0.000, y = 41.133, z = 0.000 }, level = 1, disableWander = true, affix = { 5259, 5265 } },
|
||||
[3007] = { config_id = 3007, monster_id = 25310201, pos = { x = 223.459, y = 90.184, z = 220.482 }, rot = { x = 0.000, y = 200.422, z = 0.000 }, level = 1, disableWander = true, affix = { 5259, 5265 }, pose_id = 1 }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
[3001] = { config_id = 3001, gadget_id = 70710535, pos = { x = 219.071, y = 84.095, z = 213.377 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
[3009] = { config_id = 3009, gadget_id = 70900205, pos = { x = 218.140, y = 89.155, z = 217.621 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ config_id = 1003010, name = "ANY_MONSTER_DIE_3010", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3010", action = "action_EVENT_ANY_MONSTER_DIE_3010", trigger_count = 0 },
|
||||
{ config_id = 1003011, name = "ANY_MONSTER_DIE_3011", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3011", action = "action_EVENT_ANY_MONSTER_DIE_3011", trigger_count = 0 }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
{ config_id = 1, 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 = { 3009 },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 2,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 3001 },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 3,
|
||||
-- description = ,
|
||||
monsters = { 3005, 3006, 3007 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { "ANY_MONSTER_DIE_3010" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 4,
|
||||
-- description = ,
|
||||
monsters = { 3002, 3003 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { "ANY_MONSTER_DIE_3011" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_3010(context, evt)
|
||||
-- 判断剩余怪物数量是否是0
|
||||
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
|
||||
return false
|
||||
end
|
||||
|
||||
-- 判断变量"monster_wave"为0
|
||||
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 0 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_3010(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
|
||||
|
||||
-- 添加suite4的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 235884003, 4)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_3011(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_3011(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
|
||||
|
||||
-- 将本组内变量名为 "GALLERY_STATE" 的变量设置为 2
|
||||
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "GALLERY_STATE", 2, 235884001) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
@@ -0,0 +1,210 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 235884004
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
[4002] = { config_id = 4002, monster_id = 25410101, pos = { x = 219.544, y = 90.183, z = 224.539 }, rot = { x = 0.000, y = 187.506, z = 0.000 }, level = 1, disableWander = true, affix = { 5259, 5265 } },
|
||||
[4003] = { config_id = 4003, monster_id = 23010101, pos = { x = 223.518, y = 90.183, z = 221.726 }, rot = { x = 0.000, y = 196.623, z = 0.000 }, level = 1, disableWander = true, affix = { 5259, 5265 } },
|
||||
[4004] = { config_id = 4004, monster_id = 23010601, pos = { x = 212.857, y = 90.183, z = 214.607 }, rot = { x = 0.000, y = 92.356, z = 0.000 }, level = 1, disableWander = true, affix = { 5259, 5265 } },
|
||||
[4005] = { config_id = 4005, monster_id = 25410201, pos = { x = 214.403, y = 90.186, z = 221.753 }, rot = { x = 0.000, y = 141.916, z = 0.000 }, level = 1, disableWander = true, affix = { 5259, 5265 }, pose_id = 1 },
|
||||
[4006] = { config_id = 4006, monster_id = 23050101, pos = { x = 223.007, y = 90.184, z = 207.258 }, rot = { x = 0.000, y = 325.251, z = 0.000 }, level = 1, disableWander = true, affix = { 5259, 5265 } },
|
||||
[4007] = { config_id = 4007, monster_id = 25310101, pos = { x = 209.645, y = 90.176, z = 214.345 }, rot = { x = 0.000, y = 89.899, z = 0.000 }, level = 1, disableWander = true, affix = { 5259, 5265 }, pose_id = 1 },
|
||||
[4008] = { config_id = 4008, monster_id = 25310101, pos = { x = 230.571, y = 90.183, z = 214.068 }, rot = { x = 0.000, y = 265.587, z = 0.000 }, level = 1, disableWander = true, affix = { 5259, 5265 }, pose_id = 1 }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
[4001] = { config_id = 4001, gadget_id = 70710535, pos = { x = 219.071, y = 84.095, z = 213.377 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
[4009] = { config_id = 4009, gadget_id = 70900205, pos = { x = 218.140, y = 89.155, z = 217.621 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ config_id = 1004010, name = "ANY_MONSTER_DIE_4010", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4010", action = "action_EVENT_ANY_MONSTER_DIE_4010", trigger_count = 0 },
|
||||
{ config_id = 1004011, name = "ANY_MONSTER_DIE_4011", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4011", action = "action_EVENT_ANY_MONSTER_DIE_4011", trigger_count = 0 },
|
||||
{ config_id = 1004012, name = "ANY_MONSTER_DIE_4012", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4012", action = "action_EVENT_ANY_MONSTER_DIE_4012", trigger_count = 0 }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
{ config_id = 1, 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 = { 4009 },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 2,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 4001 },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 3,
|
||||
-- description = ,
|
||||
monsters = { 4003, 4004 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { "ANY_MONSTER_DIE_4010" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 4,
|
||||
-- description = ,
|
||||
monsters = { 4006, 4007, 4008 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { "ANY_MONSTER_DIE_4012" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 5,
|
||||
-- description = ,
|
||||
monsters = { 4002, 4005 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { "ANY_MONSTER_DIE_4011" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_4010(context, evt)
|
||||
-- 判断剩余怪物数量是否是0
|
||||
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
|
||||
return false
|
||||
end
|
||||
|
||||
-- 判断变量"monster_wave"为0
|
||||
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 0 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_4010(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
|
||||
|
||||
-- 添加suite4的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 235884004, 4)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_4011(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_4011(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
|
||||
|
||||
-- 将本组内变量名为 "GALLERY_STATE" 的变量设置为 2
|
||||
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "GALLERY_STATE", 2, 235884001) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_4012(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_4012(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
|
||||
|
||||
-- 添加suite5的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 235884004, 5)
|
||||
|
||||
return 0
|
||||
end
|
||||
189
gdconf/game_data_config/lua/scene/35884/scene35884_point.json
Normal file
189
gdconf/game_data_config/lua/scene/35884/scene35884_point.json
Normal file
@@ -0,0 +1,189 @@
|
||||
{
|
||||
"areas": {},
|
||||
"doors": {},
|
||||
"entities": {
|
||||
"1": {
|
||||
"$type": "ConfigLocalTrigger",
|
||||
"alias": "",
|
||||
"areaId": 0,
|
||||
"checkCount": 0,
|
||||
"checkDist": 150.0,
|
||||
"floatParam": 0.0,
|
||||
"gadgetId": 70010006,
|
||||
"groupLimit": false,
|
||||
"isModelHidden": false,
|
||||
"meta": {
|
||||
"floatParam": 0.0,
|
||||
"stringParam": "",
|
||||
"vectorParam": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
}
|
||||
},
|
||||
"pointType": "Other",
|
||||
"pos": {
|
||||
"x": 227.3795,
|
||||
"y": 80.35374,
|
||||
"z": 213.2799
|
||||
},
|
||||
"rot": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"shape": {
|
||||
"$type": "ConfigShapeRect",
|
||||
"centerType": "Center",
|
||||
"height": 3.0,
|
||||
"heightType": "Center",
|
||||
"length": 150.0,
|
||||
"useHeight": true,
|
||||
"width": 150.0
|
||||
},
|
||||
"stringParam": "",
|
||||
"tranPos": {
|
||||
"x": 227.38,
|
||||
"y": 90.18361,
|
||||
"z": 213.2803
|
||||
},
|
||||
"tranRot": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"triggerFlag": "DeadRegion",
|
||||
"triggerInterval": 0.1,
|
||||
"type": "NORMAL",
|
||||
"unlocked": true,
|
||||
"vectorParam": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"withGO": false
|
||||
}
|
||||
},
|
||||
"forces": {},
|
||||
"points": {
|
||||
"1": {
|
||||
"$type": "DungeonSlipRevivePoint",
|
||||
"alias": "",
|
||||
"areaId": 0,
|
||||
"disableClientTrigger": false,
|
||||
"gadgetId": 70010006,
|
||||
"groupIds": [],
|
||||
"groupLimit": false,
|
||||
"isActive": false,
|
||||
"isModelHidden": false,
|
||||
"pointType": "DungeonSlipRevivePoint",
|
||||
"pos": {
|
||||
"x": 218.9426,
|
||||
"y": 90.17912,
|
||||
"z": 213.5474
|
||||
},
|
||||
"rot": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"size": {
|
||||
"x": 15.0,
|
||||
"y": 10.0,
|
||||
"z": 15.0
|
||||
},
|
||||
"tranPos": {
|
||||
"x": 235.767212,
|
||||
"y": 92.08606,
|
||||
"z": 183.584167
|
||||
},
|
||||
"tranRot": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"type": "NORMAL",
|
||||
"unlocked": true
|
||||
},
|
||||
"2": {
|
||||
"$type": "DungeonSlipRevivePoint",
|
||||
"alias": "",
|
||||
"areaId": 0,
|
||||
"disableClientTrigger": false,
|
||||
"gadgetId": 70010006,
|
||||
"groupIds": [],
|
||||
"groupLimit": false,
|
||||
"isActive": false,
|
||||
"isModelHidden": false,
|
||||
"pointType": "DungeonSlipRevivePoint",
|
||||
"pos": {
|
||||
"x": 234.5587,
|
||||
"y": 92.25927,
|
||||
"z": 183.584
|
||||
},
|
||||
"rot": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"size": {
|
||||
"x": 15.0,
|
||||
"y": 10.0,
|
||||
"z": 15.0
|
||||
},
|
||||
"tranPos": {
|
||||
"x": 235.767212,
|
||||
"y": 92.08606,
|
||||
"z": 183.584167
|
||||
},
|
||||
"tranRot": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"type": "NORMAL",
|
||||
"unlocked": true
|
||||
},
|
||||
"3": {
|
||||
"$type": "DungeonWayPoint",
|
||||
"alias": "",
|
||||
"areaId": 0,
|
||||
"disableClientTrigger": false,
|
||||
"gadgetId": 70010006,
|
||||
"groupIds": [],
|
||||
"groupLimit": false,
|
||||
"isActive": false,
|
||||
"isBoss": false,
|
||||
"isModelHidden": false,
|
||||
"pointType": "DungeonWayPoint",
|
||||
"pos": {
|
||||
"x": 248.5004,
|
||||
"y": 101.1226,
|
||||
"z": 169.9791
|
||||
},
|
||||
"rot": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"size": {
|
||||
"x": 20.0,
|
||||
"y": 10.0,
|
||||
"z": 20.0
|
||||
},
|
||||
"tranPos": {
|
||||
"x": 248.500443,
|
||||
"y": 101.1226,
|
||||
"z": 169.979065
|
||||
},
|
||||
"tranRot": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"type": "NORMAL",
|
||||
"unlocked": true
|
||||
}
|
||||
},
|
||||
"transRadius": 0.0
|
||||
}
|
||||
Reference in New Issue
Block a user