添加配置表

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,36 @@
-- 地图配置
scene_config = {
begin_pos = { x = -256.0, z = -256.0 },
size = { x = 512.0, z = 512.0 },
born_pos = { x = 3.583, y = 0.000, z = 4.232 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
die_y = -20,
room_safe_pos = {
scene_id = 3,
safe_pos = {
x = 2300.000,
y = 214.000,
z = -922.000
},
safe_rot = {
x = 0.000,
y = 0.000,
z = 0.000
}
},
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 1068 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -256.0, z = -256.0 }, max = { x = 256.0, z = 256.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { }
@@ -0,0 +1,9 @@
-- 所有的group
groups = {
{ id = 201068001, pos = { x = 2.708, y = 0.000, z = 6.798 }, is_replaceable = { value = false, version = 0, new_bin_only = true }, business = { type = 99 } },
{ id = 201068002, pos = { x = 0.569, y = 0.000, z = 8.040 }, is_replaceable = { value = false, version = 0, new_bin_only = true }, business = { type = 99 } },
{ id = 201068003, pos = { x = -1.980, y = 1.102, z = 5.843 }, is_replaceable = { value = false, version = 0, new_bin_only = true }, business = { type = 99 } },
{ id = 201068004, pos = { x = 4.704, y = 1.155, z = -2.912 }, is_replaceable = { value = false, version = 0, new_bin_only = true }, business = { type = 99 } },
{ id = 201068005, pos = { x = -7.019, y = 1.155, z = -4.572 }, is_replaceable = { value = false, version = 0, new_bin_only = true }, business = { type = 99 } },
{ id = 201068006, pos = { x = 4.812, y = 1.155, z = -2.790 }, is_replaceable = { value = false, version = 0, new_bin_only = true }, business = { type = 99 } }
}
@@ -0,0 +1,66 @@
dummy_points = {
["OpenBartender_guide"] = { pos = { x = -1.800, y = 1.388, z = 5.844 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q7050202_N30114"] = { pos = { x = 1.080, y = 0.000, z = 7.691 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["Q7050202_Trans"] = { pos = { x = 3.721, y = 0.000, z = 4.334 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["Q7050204_Play"] = { pos = { x = -3.149, y = 0.000, z = 5.601 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["Q7050205_Paimon"] = { pos = { x = 0.679, y = 0.000, z = 6.964 }, rot = { x = 0.000, y = 45.000, z = 0.000 } },
["Q7050205_Play"] = { pos = { x = 1.166, y = 0.000, z = 6.837 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q7050301_N1029"] = { pos = { x = -4.189, y = 0.429, z = -6.787 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["Q7050301_Paimon"] = { pos = { x = -4.936, y = 0.410, z = -6.042 }, rot = { x = 0.000, y = 150.000, z = 0.000 } },
["Q7050301_Play"] = { pos = { x = -4.442, y = 0.410, z = -5.868 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["Q7050303_coffee_cup"] = { pos = { x = -4.565, y = 1.180, z = -6.821 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["Q7050303_N1029"] = { pos = { x = -4.189, y = 0.429, z = -6.787 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["Q7050303_Paimon"] = { pos = { x = -4.936, y = 0.410, z = -6.042 }, rot = { x = 0.000, y = 150.000, z = 0.000 } },
["Q7050303_Play"] = { pos = { x = -4.442, y = 0.410, z = -5.868 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["Q7050401_N1004"] = { pos = { x = 3.881, y = 0.000, z = 6.281 }, rot = { x = 0.000, y = 282.819, z = 0.000 } },
["Q7050401_N1020"] = { pos = { x = -0.268, y = 0.000, z = 3.498 }, rot = { x = 0.000, y = 300.000, z = 0.000 } },
["Q7050401_Paimon"] = { pos = { x = 2.908, y = 0.000, z = 5.925 }, rot = { x = 0.000, y = 22.098, z = 0.000 } },
["Q7050401_Player"] = { pos = { x = 2.335, y = 0.000, z = 6.339 }, rot = { x = 0.000, y = 43.444, z = 0.000 } },
["Q7050404_coffee_cup"] = { pos = { x = 4.325, y = 1.232, z = 5.818 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["Q7050404_N1004"] = { pos = { x = 3.881, y = 0.000, z = 6.281 }, rot = { x = 0.000, y = 282.819, z = 0.000 } },
["Q7050404_N1020"] = { pos = { x = 2.200, y = 0.000, z = 6.985 }, rot = { x = 0.000, y = 100.000, z = 0.000 } },
["Q7050404_Paimon"] = { pos = { x = 2.908, y = 0.000, z = 5.925 }, rot = { x = 0.000, y = 22.098, z = 0.000 } },
["Q7050404_Player"] = { pos = { x = 2.335, y = 0.000, z = 6.339 }, rot = { x = 0.000, y = 43.444, z = 0.000 } },
["Q7050404_tea_cup"] = { pos = { x = 2.799, y = 0.772, z = 7.387 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["Q7050501_N1009"] = { pos = { x = -1.862, y = 0.410, z = -1.767 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["Q7050501_Paimon"] = { pos = { x = -0.731, y = 0.410, z = -2.921 }, rot = { x = 0.000, y = 315.000, z = 0.000 } },
["Q7050501_Player"] = { pos = { x = -0.221, y = 0.410, z = -2.712 }, rot = { x = 0.000, y = 310.000, z = 0.000 } },
["Q7050503_juice_cup"] = { pos = { x = -1.529, y = 1.155, z = -1.864 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["Q7050503_N1009"] = { pos = { x = -1.862, y = 0.410, z = -1.767 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["Q7050503_Paimon"] = { pos = { x = -0.731, y = 0.410, z = -2.921 }, rot = { x = 0.000, y = 315.000, z = 0.000 } },
["Q7050503_Player"] = { pos = { x = -0.221, y = 0.410, z = -2.712 }, rot = { x = 0.000, y = 310.000, z = 0.000 } },
["Q7050601_N1006"] = { pos = { x = -1.167, y = 0.410, z = -6.859 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["Q7050601_N1007"] = { pos = { x = 0.203, y = 0.410, z = -6.681 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["Q7050601_Paimon"] = { pos = { x = -0.054, y = 0.410, z = -5.664 }, rot = { x = 0.000, y = 190.000, z = 0.000 } },
["Q7050601_Player"] = { pos = { x = -0.618, y = 0.410, z = -5.662 }, rot = { x = 0.000, y = 170.000, z = 0.000 } },
["Q7050604_coffee_cup"] = { pos = { x = -0.025, y = 1.180, z = -6.741 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["Q7050604_N1006"] = { pos = { x = -1.167, y = 0.410, z = -6.859 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["Q7050604_N1007"] = { pos = { x = 0.203, y = 0.410, z = -6.681 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["Q7050604_Paimon"] = { pos = { x = -0.054, y = 0.410, z = -5.664 }, rot = { x = 0.000, y = 190.000, z = 0.000 } },
["Q7050604_Player"] = { pos = { x = -0.618, y = 0.410, z = -5.662 }, rot = { x = 0.000, y = 170.000, z = 0.000 } },
["Q7050604_tea_cup"] = { pos = { x = -0.679, y = 1.180, z = -6.672 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["Q7050701_N10232"] = { pos = { x = -0.409, y = 0.410, z = -1.851 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["Q7050701_Paimon"] = { pos = { x = -1.591, y = 0.410, z = -3.003 }, rot = { x = 0.000, y = 30.962, z = 0.000 } },
["Q7050701_Player"] = { pos = { x = -2.257, y = 0.410, z = -2.644 }, rot = { x = 0.000, y = 70.000, z = 0.000 } },
["Q7050703_N10232"] = { pos = { x = -0.409, y = 0.410, z = -1.851 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["Q7050703_Paimon"] = { pos = { x = -1.591, y = 0.410, z = -3.003 }, rot = { x = 0.000, y = 30.962, z = 0.000 } },
["Q7050703_Player"] = { pos = { x = -2.257, y = 0.410, z = -2.644 }, rot = { x = 0.000, y = 70.000, z = 0.000 } },
["Q7050703_tea_cup"] = { pos = { x = -0.824, y = 1.155, z = -1.888 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["Q7050801_N10211"] = { pos = { x = -1.138, y = 0.410, z = -6.795 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["Q7050801_N1031"] = { pos = { x = 0.317, y = 0.410, z = -6.604 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["Q7050801_Paimon"] = { pos = { x = -0.054, y = 0.410, z = -5.664 }, rot = { x = 0.000, y = 190.000, z = 0.000 } },
["Q7050801_Player"] = { pos = { x = -0.618, y = 0.410, z = -5.662 }, rot = { x = 0.000, y = 170.000, z = 0.000 } },
["Q7050804_juice_cup"] = { pos = { x = -0.777, y = 1.180, z = -6.651 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["Q7050804_N10211"] = { pos = { x = -1.138, y = 0.410, z = -6.795 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["Q7050804_N1031"] = { pos = { x = 0.317, y = 0.410, z = -6.604 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["Q7050804_Paimon"] = { pos = { x = -0.054, y = 0.410, z = -5.664 }, rot = { x = 0.000, y = 190.000, z = 0.000 } },
["Q7050804_Player"] = { pos = { x = -0.618, y = 0.410, z = -5.662 }, rot = { x = 0.000, y = 170.000, z = 0.000 } },
["Q7050804_tea_cup"] = { pos = { x = -0.191, y = 1.180, z = -6.762 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["Q7050901_N1045"] = { pos = { x = -6.302, y = 0.410, z = -5.902 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["Q7050901_Paimon"] = { pos = { x = -6.006, y = 0.410, z = -5.127 }, rot = { x = 0.000, y = 300.000, z = 0.000 } },
["Q7050901_Player"] = { pos = { x = -6.040, y = 0.410, z = -4.634 }, rot = { x = 0.000, y = 280.000, z = 0.000 } },
["Q7050903_juice_cup"] = { pos = { x = -6.930, y = 1.155, z = -5.214 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["Q7050903_N1045"] = { pos = { x = -6.302, y = 0.410, z = -5.894 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["Q7050903_Paimon"] = { pos = { x = -6.006, y = 0.410, z = -5.127 }, rot = { x = 0.000, y = 300.000, z = 0.000 } },
["Q7050903_Player"] = { pos = { x = -6.040, y = 0.410, z = -4.634 }, rot = { x = 0.000, y = 280.000, z = 0.000 } }
}
@@ -0,0 +1,107 @@
-- 基础信息
local base_info = {
group_id = 201068001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 1001, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = 0.569, y = 0.734, z = 4.771 }, room = 1 }
}
-- 触发器
triggers = {
{ config_id = 1001001, name = "ENTER_REGION_1001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1001", action = "action_EVENT_ENTER_REGION_1001" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100,
ban_refresh = true
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { 1001 },
triggers = { "ENTER_REGION_1001" },
rand_weight = 100,
ban_refresh = true
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_1001(context, evt)
if evt.param1 ~= 1001 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_1001(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "7050202") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,82 @@
-- 基础信息
local base_info = {
group_id = 201068002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
{ config_id = 2001, npc_id = 30114, pos = { x = 0.438, y = 0.000, z = 8.257 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, room = 1 }
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = 剧情模式完成前 空suite,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 剧情模式完成后 显示查尔斯,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
npcs = { 2001 },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,131 @@
-- 基础信息
local base_info = {
group_id = 201068003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70360001, pos = { x = -1.800, y = 1.102, z = 5.841 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true, room = 1 },
{ config_id = 3002, gadget_id = 71700288, pos = { x = -1.800, y = 1.102, z = 5.841 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, room = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 设置交互id
{ config_id = 1003003, name = "GADGET_CREATE_3003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_3003", action = "action_EVENT_GADGET_CREATE_3003" },
{ config_id = 1003004, name = "SELECT_OPTION_3004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3004", action = "action_EVENT_SELECT_OPTION_3004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = 空suite,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 交互suite,
monsters = { },
gadgets = { 3001, 3002 },
regions = { },
triggers = { "GADGET_CREATE_3003", "SELECT_OPTION_3004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_3003(context, evt)
if 3001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_3003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 201068003, 3001, {405}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3004(context, evt)
-- 判断是gadgetid 3001 option_id 405
if 3001 ~= evt.param1 then
return false
end
if 405 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3004(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2010680031") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,211 @@
-- 基础信息
local base_info = {
group_id = 201068004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70710668, pos = { x = 1.764, y = 1.155, z = -7.634 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, room = 1 }
}
-- 区域
regions = {
-- variable为3则切suite
{ config_id = 4005, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1.815, y = 0.433, z = -7.440 }, room = 1 }
}
-- 触发器
triggers = {
-- 检查7050303完成
{ config_id = 1004002, name = "QUEST_FINISH_4002", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_4002", action = "action_EVENT_QUEST_FINISH_4002" },
-- 检查7050903完成
{ config_id = 1004003, name = "QUEST_FINISH_4003", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_4003", action = "action_EVENT_QUEST_FINISH_4003" },
-- 检查7050804完成
{ config_id = 1004004, name = "QUEST_FINISH_4004", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_4004", action = "action_EVENT_QUEST_FINISH_4004" },
-- variable为3则切suite
{ config_id = 1004005, name = "ENTER_REGION_4005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4005", action = "action_EVENT_ENTER_REGION_4005" }
}
-- 变量
variables = {
{ config_id = 1, name = "questFinishCount", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = Day3任务完成则切显示,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 显示,
monsters = { },
gadgets = { 4001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { 4005 },
triggers = { "QUEST_FINISH_4002", "QUEST_FINISH_4003", "QUEST_FINISH_4004", "ENTER_REGION_4005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_QUEST_FINISH_4002(context, evt)
--检查ID为7050303的任务的完成状态是否为1(1=完成,0=失败)
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
--检查任务ID
if 7050303 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_4002(context, evt)
-- 针对当前group内变量名为 "questFinishCount" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "questFinishCount", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_4003(context, evt)
--检查ID为7050903的任务的完成状态是否为1(1=完成,0=失败)
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
--检查任务ID
if 7050903 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_4003(context, evt)
-- 针对当前group内变量名为 "questFinishCount" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "questFinishCount", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_4004(context, evt)
--检查ID为7050804的任务的完成状态是否为1(1=完成,0=失败)
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
--检查任务ID
if 7050804 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_4004(context, evt)
-- 针对当前group内变量名为 "questFinishCount" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "questFinishCount", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_4005(context, evt)
if evt.param1 ~= 4005 then return false end
-- 判断变量"questFinishCount"为3
if ScriptLib.GetGroupVariableValue(context, "questFinishCount") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_4005(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 201068004, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,208 @@
-- 基础信息
local base_info = {
group_id = 201068005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5001, gadget_id = 70710667, pos = { x = -5.783, y = 1.181, z = -1.731 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, room = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1005002, name = "QUEST_FINISH_5002", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_5002", action = "action_EVENT_QUEST_FINISH_5002" },
{ config_id = 1005003, name = "QUEST_FINISH_5003", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_5003", action = "action_EVENT_QUEST_FINISH_5003" },
{ config_id = 1005004, name = "QUEST_FINISH_5004", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_5004", action = "action_EVENT_QUEST_FINISH_5004" },
{ config_id = 1005005, name = "VARIABLE_CHANGE_5005", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_5005", action = "action_EVENT_VARIABLE_CHANGE_5005" }
}
-- 变量
variables = {
{ config_id = 1, name = "questFinishCount", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = 空,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 显示,
monsters = { },
gadgets = { 5001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "QUEST_FINISH_5002", "QUEST_FINISH_5003", "QUEST_FINISH_5004", "VARIABLE_CHANGE_5005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_QUEST_FINISH_5002(context, evt)
--检查ID为7050303的任务的完成状态是否为1(1=完成,0=失败)
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
--检查任务ID
if 7050303 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_5002(context, evt)
-- 针对当前group内变量名为 "questFinishCount" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "questFinishCount", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_5003(context, evt)
--检查ID为7050903的任务的完成状态是否为1(1=完成,0=失败)
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
--检查任务ID
if 7050903 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_5003(context, evt)
-- 针对当前group内变量名为 "questFinishCount" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "questFinishCount", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_5004(context, evt)
--检查ID为7050804的任务的完成状态是否为1(1=完成,0=失败)
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
--检查任务ID
if 7050804 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_5004(context, evt)
-- 针对当前group内变量名为 "questFinishCount" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "questFinishCount", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_5005(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"questFinishCount"为3
if ScriptLib.GetGroupVariableValue(context, "questFinishCount") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5005(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 201068005, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 变量"questFinishCount"赋值为0
ScriptLib.SetGroupVariableValue(context, "questFinishCount", 0)
return 0
end
@@ -0,0 +1,81 @@
-- 基础信息
local base_info = {
group_id = 201068006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6001, gadget_id = 70710666, pos = { x = 4.834, y = 1.155, z = -2.932 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, room = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = 空,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 显示,
monsters = { },
gadgets = { 6001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,50 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {
"1": {
"$type": "PersonalSceneJumpPoint",
"alias": "",
"areaId": 0,
"close_time": 24.0,
"gadgetId": 70010002,
"groupLimit": false,
"isHomeworldDoor": false,
"isModelHidden": false,
"open_time": 0.0,
"pointType": "PersonalSceneJumpPoint",
"pos": {
"x": 4.5,
"y": 0.0,
"z": 4.26
},
"rot": {
"x": 0.0,
"y": 270.0,
"z": 0.0
},
"titleTextID": "UI_SCENE_ENTRY_EXIT_ANGELSHARE",
"tranPos": {
"x": 2301.487,
"y": 214.0912,
"z": -921.837
},
"tranRot": {
"x": 0.0,
"y": 60.0,
"z": 0.0
},
"tranSceneId": 3,
"triggerSize": {
"x": 1.5,
"y": 1.5,
"z": 1.5
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}