添加配置表

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 = -150.0, z = -180.0 },
size = { x = 300.0, z = 600.0 },
born_pos = { x = 111.451, y = 101.599, z = 0.000 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
die_y = -200,
city_id = 1,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 50080 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -150.0, z = -180.0 }, max = { x = 150.0, z = 420.0 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }
@@ -0,0 +1,10 @@
-- 所有的group
groups = {
{ id = 250080001, refresh_id = 1, pos = { x = 17.055, y = -8.938, z = 29.112 }, business = { type = 2 } },
{ id = 250080002, refresh_id = 1, pos = { x = 0.974, y = -0.365, z = 40.230 } },
{ id = 250080003, refresh_id = 1, pos = { x = 11.405, y = -2.323, z = 36.473 } },
{ id = 250080004, refresh_id = 1, pos = { x = 0.974, y = -0.365, z = 40.230 } },
{ id = 250080006, refresh_id = 1, pos = { x = 0.974, y = -0.365, z = 40.230 } },
{ id = 250080007, refresh_id = 1, pos = { x = 0.974, y = -0.365, z = 40.230 } },
{ id = 250080008, refresh_id = 1, pos = { x = 0.974, y = -0.365, z = 40.230 } }
}
@@ -0,0 +1,83 @@
-- 基础信息
local base_info = {
group_id = 250080001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1002, gadget_id = 70360002, pos = { x = 15.091, y = 0.905, z = 16.375 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1005, gadget_id = 70900064, pos = { x = 22.692, y = -3.108, z = 22.576 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1006, gadget_id = 70900064, pos = { x = 12.330, y = -2.952, z = 22.929 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1007, gadget_id = 70900064, pos = { x = 17.145, y = -3.108, z = 35.807 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1001003, name = "GADGET_CREATE_1003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1003", action = "action_EVENT_GADGET_CREATE_1003" },
{ config_id = 1001004, name = "SELECT_OPTION_1004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1004", action = "action_EVENT_SELECT_OPTION_1004" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1002, 1005, 1006, 1007 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,158 @@
-- 基础信息
local base_info = {
group_id = 250080002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70590060, pos = { x = 100.056, y = 102.578, z = 40.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_LITTLE_REMOTE },
-- followMove示例物件
{ config_id = 2004, gadget_id = 70290375, pos = { x = 92.941, y = 100.002, z = 34.300 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2005, gadget_id = 70360002, pos = { x = 103.172, y = 99.419, z = 26.630 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 7 } } }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1002006, name = "SELECT_OPTION_2006", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2006", action = "action_EVENT_SELECT_OPTION_2006", trigger_count = 0 },
{ config_id = 1002007, name = "SELECT_OPTION_2007", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2007", action = "action_EVENT_SELECT_OPTION_2007", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "turn", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2004, 2005 },
regions = { },
triggers = { "SELECT_OPTION_2006", "SELECT_OPTION_2007" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_2006(context, evt)
-- 判断是gadgetid 2005 option_id 7
if 2005 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
-- 判断变量"turn"为0
if ScriptLib.GetGroupVariableValue(context, "turn") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2006(context, evt)
-- 将本组内变量名为 "turn" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "turn", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = true}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 2001, 1, {1}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2007(context, evt)
-- 判断是gadgetid 2005 option_id 7
if 2005 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
-- 判断变量"turn"为1
if ScriptLib.GetGroupVariableValue(context, "turn") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2007(context, evt)
-- 将本组内变量名为 "turn" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "turn", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = true}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 2001, 1, {2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
return 0
end
@@ -0,0 +1,110 @@
-- 基础信息
local base_info = {
group_id = 250080003
}
-- DEFS_MISCS
local defs =
{
--本Group中发射器gadget的configID 最多3个
fireMachineList =
{
3001
},
--key为发射器configID value为ColorDefine。见re。quire开头定义
initConfig = {
[3001] = 2,
},
--Key为操作台。value为发射器。允许有多个操作台控制同一个发射器
controlRelation =
{
[3007] =3001,
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70310158, pos = { x = 98.769, y = 99.628, z = 32.125 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3002, gadget_id = 70310163, pos = { x = 91.509, y = 100.783, z = 41.832 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3003, gadget_id = 70310164, pos = { x = 103.414, y = 100.877, z = 39.931 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3004, gadget_id = 70310165, pos = { x = 97.847, y = 100.702, z = 48.946 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3005, gadget_id = 70310159, pos = { x = 98.728, y = 99.628, z = 42.357 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 3006, gadget_id = 70310159, pos = { x = 106.709, y = 99.990, z = 42.357 }, rot = { x = 0.000, y = 187.053, z = 0.000 }, level = 1, state = GadgetState.ChestLocked },
{ config_id = 3007, gadget_id = 70360001, pos = { x = 98.769, y = 99.314, z = 32.125 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 79 } } },
{ config_id = 3008, gadget_id = 70310188, pos = { x = 106.514, y = 100.648, z = 42.399 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1003009, name = "ANY_GADGET_DIE_3009", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "", action = "action_EVENT_ANY_GADGET_DIE_3009", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008 },
regions = { },
triggers = { "ANY_GADGET_DIE_3009" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_3009(context, evt)
if evt.param1 == 3008 then
ScriptLib.SetGadgetStateByConfigId(context,3006, GadgetState.Default)
end
return 0
end
require "V2_8/FireMachineColorHandle"
@@ -0,0 +1,156 @@
-- 基础信息
local base_info = {
group_id = 250080004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70590060, pos = { x = 69.380, y = 130.000, z = 69.380 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_LITTLE_REMOTE },
{ config_id = 4003, gadget_id = 70360002, pos = { x = 81.684, y = 127.375, z = 66.399 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 7 } } }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1004004, name = "SELECT_OPTION_4004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4004", action = "action_EVENT_SELECT_OPTION_4004", trigger_count = 0 },
{ config_id = 1004005, name = "SELECT_OPTION_4005", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4005", action = "action_EVENT_SELECT_OPTION_4005", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "turn", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4001, 4003 },
regions = { },
triggers = { "SELECT_OPTION_4004", "SELECT_OPTION_4005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_4004(context, evt)
-- 判断是gadgetid 4003 option_id 7
if 4003 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
-- 判断变量"turn"为0
if ScriptLib.GetGroupVariableValue(context, "turn") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4004(context, evt)
-- 将本组内变量名为 "turn" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "turn", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = true}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 4001, 4, {1}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_4005(context, evt)
-- 判断是gadgetid 4003 option_id 7
if 4003 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
-- 判断变量"turn"为1
if ScriptLib.GetGroupVariableValue(context, "turn") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4005(context, evt)
-- 将本组内变量名为 "turn" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "turn", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = true}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 4001, 4, {2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
return 0
end
@@ -0,0 +1,156 @@
-- 基础信息
local base_info = {
group_id = 250080006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6001, gadget_id = 70590060, pos = { x = 50.830, y = 123.660, z = 31.480 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_LITTLE_REMOTE },
{ config_id = 6002, gadget_id = 70360002, pos = { x = 47.897, y = 121.304, z = 45.906 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 7 } } }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1006003, name = "SELECT_OPTION_6003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6003", action = "action_EVENT_SELECT_OPTION_6003", trigger_count = 0 },
{ config_id = 1006004, name = "SELECT_OPTION_6004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6004", action = "action_EVENT_SELECT_OPTION_6004", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "turn", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6001, 6002 },
regions = { },
triggers = { "SELECT_OPTION_6003", "SELECT_OPTION_6004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_6003(context, evt)
-- 判断是gadgetid 6002 option_id 7
if 6002 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
-- 判断变量"turn"为0
if ScriptLib.GetGroupVariableValue(context, "turn") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6003(context, evt)
-- 将本组内变量名为 "turn" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "turn", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = true}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 6001, 1, {1}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_6004(context, evt)
-- 判断是gadgetid 6002 option_id 7
if 6002 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
-- 判断变量"turn"为1
if ScriptLib.GetGroupVariableValue(context, "turn") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6004(context, evt)
-- 将本组内变量名为 "turn" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "turn", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = true}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 6001, 1, {2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
return 0
end
@@ -0,0 +1,156 @@
-- 基础信息
local base_info = {
group_id = 250080007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7001, gadget_id = 70590060, pos = { x = 121.430, y = 72.280, z = 74.540 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_LITTLE_REMOTE },
{ config_id = 7002, gadget_id = 70360002, pos = { x = 108.006, y = 69.713, z = 71.903 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 7 } } }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ 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", trigger_count = 0 },
{ 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 }
}
-- 变量
variables = {
{ config_id = 1, name = "turn", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7001, 7002 },
regions = { },
triggers = { "SELECT_OPTION_7003", "SELECT_OPTION_7004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_7003(context, evt)
-- 判断是gadgetid 7002 option_id 7
if 7002 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
-- 判断变量"turn"为0
if ScriptLib.GetGroupVariableValue(context, "turn") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_7003(context, evt)
-- 将本组内变量名为 "turn" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "turn", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = true}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 7001, 4, {1}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_7004(context, evt)
-- 判断是gadgetid 7002 option_id 7
if 7002 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
-- 判断变量"turn"为1
if ScriptLib.GetGroupVariableValue(context, "turn") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_7004(context, evt)
-- 将本组内变量名为 "turn" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "turn", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = true}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 7001, 4, {2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
return 0
end
@@ -0,0 +1,156 @@
-- 基础信息
local base_info = {
group_id = 250080008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8001, gadget_id = 70590060, pos = { x = 149.100, y = 79.720, z = 21.600 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_LITTLE_REMOTE },
{ config_id = 8002, gadget_id = 70360002, pos = { x = 146.844, y = 76.866, z = 34.130 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 7 } } }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1008003, name = "SELECT_OPTION_8003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_8003", action = "action_EVENT_SELECT_OPTION_8003", trigger_count = 0 },
{ config_id = 1008004, name = "SELECT_OPTION_8004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_8004", action = "action_EVENT_SELECT_OPTION_8004", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "turn", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8001, 8002 },
regions = { },
triggers = { "SELECT_OPTION_8003", "SELECT_OPTION_8004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_8003(context, evt)
-- 判断是gadgetid 8002 option_id 7
if 8002 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
-- 判断变量"turn"为0
if ScriptLib.GetGroupVariableValue(context, "turn") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_8003(context, evt)
-- 将本组内变量名为 "turn" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "turn", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = true}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 8001, 1, {1}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_8004(context, evt)
-- 判断是gadgetid 8002 option_id 7
if 8002 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
-- 判断变量"turn"为1
if ScriptLib.GetGroupVariableValue(context, "turn") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_8004(context, evt)
-- 将本组内变量名为 "turn" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "turn", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = true}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 8001, 1, {2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
return 0
end
@@ -0,0 +1,45 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 50080,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 100.1,
"y": 101.03,
"z": -9.24
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 3.0,
"y": 3.0,
"z": 3.0
},
"tranPos": {
"x": -13.3111715,
"y": 1.031,
"z": 0.0276821852
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "TOWER",
"unlocked": false
}
},
"transRadius": 0.0
}
@@ -0,0 +1,155 @@
[
{
"pointArrayId": 1,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 23.8033886,
"y": 16.7359123,
"z": 0.518059254
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 3.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 23.8033886,
"y": 16.7359123,
"z": 0.518059254
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 180.0
},
"velocity": 0.0,
"time": 3.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 3,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 23.8033886,
"y": 16.7359123,
"z": 0.518059254
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 3.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 23.8033886,
"y": 16.7359123,
"z": 0.518059254
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 180.0
},
"velocity": 0.0,
"time": 3.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 4,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 23.8033886,
"y": 16.7359123,
"z": 0.518059254
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 3.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 23.8033886,
"y": 16.7359123,
"z": 0.518059254
},
"rotation": {
"x": 0.0,
"y": 180.0,
"z": 180.0
},
"velocity": 0.0,
"time": 3.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
}
]