添加配置表

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,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -512.0, z = -512.0 },
size = { x = 1024.0, z = 1024.0 },
born_pos = { x = -49.671, y = 13.334, z = 85.712 },
born_rot = { x = 0.000, y = 270.000, z = 0.000 },
die_y = -20,
city_id = 2,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 35821 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -512.0, z = -512.0 }, max = { x = 512.0, z = 512.0 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }
@@ -0,0 +1,6 @@
-- 所有的group
groups = {
{ id = 235821006, refresh_id = 1, pos = { x = -58.650, y = 13.295, z = 84.830 } },
{ id = 235821007, refresh_id = 1, pos = { x = -56.467, y = 13.310, z = 74.230 } },
{ id = 235821008, refresh_id = 1002, pos = { x = -50.068, y = 13.136, z = 86.299 } }
}
@@ -0,0 +1,73 @@
-- 基础信息
local base_info = {
group_id = 235821006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6001, gadget_id = 70350005, pos = { x = -73.110, y = 13.130, z = 83.410 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
{ config_id = 1, name = "stage", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,141 @@
-- 基础信息
local base_info = {
group_id = 235821007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7001, gadget_id = 70360010, pos = { x = -58.337, y = 13.267, z = 85.579 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1007002, name = "GADGET_CREATE_7002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_7002", action = "action_EVENT_GADGET_CREATE_7002" },
{ config_id = 1007003, name = "SELECT_OPTION_7003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_7003", action = "action_EVENT_SELECT_OPTION_7003" }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1007004, name = "SELECT_OPTION_7004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_7004", action = "action_EVENT_SELECT_OPTION_7004", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7001 },
regions = { },
triggers = { "GADGET_CREATE_7002", "SELECT_OPTION_7003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_7002(context, evt)
if 7001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_7002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 235821007, 7001, {177}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_7003(context, evt)
-- 判断是gadgetid 7001 option_id 177
if 7001 ~= evt.param1 then
return false
end
if 177 ~= evt.param2 then
return false
end
-- 判断变量"stage"为0
if ScriptLib.GetGroupVariableValueByGroup(context, "stage", 235821006) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_7003(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 235821008, 4)
-- 删除指定group 235821007 ;指定config7001;物件身上指定option177
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 235821007, 7001, 177) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 改变指定group组235821007中, configid为7001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 235821007, 7001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,252 @@
-- 基础信息
local base_info = {
group_id = 235821008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 8001, monster_id = 20011501, pos = { x = -61.036, y = 13.323, z = 83.762 }, rot = { x = 0.000, y = 84.057, z = 0.000 }, level = 1, disableWander = true, affix = { 1007 } },
{ config_id = 8002, monster_id = 20011501, pos = { x = -61.143, y = 13.318, z = 88.210 }, rot = { x = 0.000, y = 89.375, z = 0.000 }, level = 1, disableWander = true, affix = { 1007 } },
{ config_id = 8003, monster_id = 20011401, pos = { x = -60.088, y = 13.317, z = 81.216 }, rot = { x = 0.000, y = 74.375, z = 0.000 }, level = 1, disableWander = true, affix = { 1007 } },
{ config_id = 8004, monster_id = 20011401, pos = { x = -60.030, y = 13.317, z = 90.745 }, rot = { x = 0.000, y = 104.375, z = 0.000 }, level = 1, disableWander = true, affix = { 1007 } },
{ config_id = 8005, monster_id = 21020501, pos = { x = -65.434, y = 13.318, z = 86.217 }, rot = { x = 0.000, y = 89.375, z = 0.000 }, level = 1, disableWander = true, affix = { 1008, 6110, 1007 } },
{ config_id = 8006, monster_id = 21010701, pos = { x = -59.020, y = 13.314, z = 77.777 }, rot = { x = 0.000, y = 44.375, z = 0.000 }, level = 1, disableWander = true, affix = { 6111, 1007 } },
{ config_id = 8007, monster_id = 21020201, pos = { x = -62.955, y = 13.322, z = 81.299 }, rot = { x = 0.000, y = 89.375, z = 0.000 }, level = 1, disableWander = true, affix = { 6111, 1007 } },
{ config_id = 8008, monster_id = 21030101, pos = { x = -64.244, y = 13.350, z = 86.394 }, rot = { x = 0.000, y = 89.375, z = 0.000 }, level = 1, disableWander = true, affix = { 6111, 1007 } },
{ config_id = 8009, monster_id = 21020201, pos = { x = -62.846, y = 13.322, z = 90.531 }, rot = { x = 0.000, y = 89.375, z = 0.000 }, level = 1, disableWander = true, affix = { 6111, 1007 } },
{ config_id = 8010, monster_id = 21010701, pos = { x = -58.297, y = 13.315, z = 93.458 }, rot = { x = 0.000, y = 134.375, z = 0.000 }, level = 1, disableWander = true, affix = { 6111, 1007 } },
{ config_id = 8012, monster_id = 21010701, pos = { x = -59.020, y = 13.314, z = 77.777 }, rot = { x = 0.000, y = 44.375, z = 0.000 }, level = 1, disableWander = true, affix = { 6111, 1007 } },
{ config_id = 8013, monster_id = 21020201, pos = { x = -62.955, y = 13.322, z = 81.299 }, rot = { x = 0.000, y = 89.375, z = 0.000 }, level = 1, disableWander = true, affix = { 6111, 1007 } },
{ config_id = 8014, monster_id = 21030101, pos = { x = -64.244, y = 13.350, z = 86.394 }, rot = { x = 0.000, y = 89.375, z = 0.000 }, level = 1, disableWander = true, affix = { 6111, 1007 } },
{ config_id = 8015, monster_id = 21020201, pos = { x = -62.846, y = 13.322, z = 90.531 }, rot = { x = 0.000, y = 89.375, z = 0.000 }, level = 1, disableWander = true, affix = { 6111, 1007 } },
{ config_id = 8016, monster_id = 21010701, pos = { x = -58.297, y = 13.315, z = 93.458 }, rot = { x = 0.000, y = 134.375, z = 0.000 }, level = 1, disableWander = true, affix = { 6111, 1007 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8018, gadget_id = 70900205, pos = { x = -50.287, y = 11.127, z = 83.399 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1008011, name = "ANY_MONSTER_DIE_8011", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_8011", action = "action_EVENT_ANY_MONSTER_DIE_8011" },
{ config_id = 1008017, name = "ANY_MONSTER_DIE_8017", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_8017", action = "action_EVENT_ANY_MONSTER_DIE_8017" },
{ config_id = 1008019, name = "ANY_MONSTER_LIVE_8019", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_8019", action = "action_EVENT_ANY_MONSTER_LIVE_8019" },
{ config_id = 1008020, name = "CHALLENGE_SUCCESS_8020", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "1", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_8020" },
{ config_id = 1008021, name = "CHALLENGE_FAIL_8021", event = EventType.EVENT_CHALLENGE_FAIL, source = "1", condition = "", action = "action_EVENT_CHALLENGE_FAIL_8021" },
{ config_id = 1008022, name = "SPECIFIC_MONSTER_HP_CHANGE_8022", event = EventType.EVENT_SPECIFIC_MONSTER_HP_CHANGE, source = "8005", condition = "condition_EVENT_SPECIFIC_MONSTER_HP_CHANGE_8022", action = "action_EVENT_SPECIFIC_MONSTER_HP_CHANGE_8022" },
{ config_id = 1008023, name = "DUNGEON_ALL_AVATAR_DIE_8023", event = EventType.EVENT_DUNGEON_ALL_AVATAR_DIE, source = "", condition = "", action = "action_EVENT_DUNGEON_ALL_AVATAR_DIE_8023" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8018 },
regions = { },
triggers = { "ANY_MONSTER_LIVE_8019", "CHALLENGE_SUCCESS_8020", "CHALLENGE_FAIL_8021", "DUNGEON_ALL_AVATAR_DIE_8023" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 精英,
monsters = { 8005 },
gadgets = { },
regions = { },
triggers = { "SPECIFIC_MONSTER_HP_CHANGE_8022" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = 援军1,
monsters = { 8006, 8007, 8008, 8009, 8010 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_8017" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = 开局白给,
monsters = { 8001, 8002, 8003, 8004 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_8011" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = 援军2,
monsters = { 8012, 8013, 8014, 8015, 8016 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_8011(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_8011(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 235821008, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_8017(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_8017(context, evt)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 235821008, 5)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_8019(context, evt)
if 8001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_8019(context, evt)
-- 创建编号为1(该挑战的识别id),挑战内容为256的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 1, 256, 300, 235821008, 15, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_8020(context, evt)
-- 将本组内变量名为 "stage" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage", 1, 235821006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_8021(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 235821008, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 235821007, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 235821008, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SPECIFIC_MONSTER_HP_CHANGE_8022(context, evt)
--[[判断指定configid的怪物的血量小于%60时触发指定后续操作]]--
if evt.type ~= EventType.EVENT_SPECIFIC_MONSTER_HP_CHANGE or evt.param3 > 60 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SPECIFIC_MONSTER_HP_CHANGE_8022(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 235821008, 3)
return 0
end
-- 触发操作
function action_EVENT_DUNGEON_ALL_AVATAR_DIE_8023(context, evt)
-- 地城失败结算
if 0 ~= ScriptLib.CauseDungeonFail(context) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cause_dungeonfail")
return -1
end
return 0
end
require "V2_4/PotionStage"
@@ -0,0 +1,45 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": -81.30722,
"y": 12.64164,
"z": 83.73338
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 3.0,
"y": 3.0,
"z": 3.0
},
"tranPos": {
"x": -81.30722,
"y": 12.6416445,
"z": 83.7333755
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
}
},
"transRadius": 0.0
}