添加配置表

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 = -500.0, z = -500.0 },
size = { x = 2000.0, z = 2000.0 },
born_pos = { x = 499.280, y = 100.544, z = 498.613 },
born_rot = { x = 0.000, y = 210.000, z = 0.000 },
die_y = -40,
city_id = 3,
vision_anchor = { x = -500.0, z = -500.0 }
}
-- 所有的区块
blocks = { 20112 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -500.0, z = -500.0 }, max = { x = 1500.0, z = 1500.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { }
@@ -0,0 +1,5 @@
-- 所有的group
groups = {
{ id = 220112001, refresh_id = 1004, pos = { x = 488.955, y = 99.483, z = 479.967 } },
{ id = 220112002, pos = { x = 495.239, y = 100.542, z = 492.011 } }
}
@@ -0,0 +1,4 @@
dummy_points = {
["Q2008born"] = { pos = { x = 497.811, y = 100.544, z = 489.169 }, rot = { x = 0.000, y = 292.300, z = 0.000 } },
["Q2008paimon"] = { pos = { x = 498.215, y = 100.544, z = 490.840 }, rot = { x = 0.000, y = 265.610, z = 0.000 } }
}
@@ -0,0 +1,124 @@
-- 基础信息
local base_info = {
group_id = 220112001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1001, monster_id = 29060101, pos = { x = 487.626, y = 100.544, z = 477.251 }, rot = { x = 0.000, y = 30.000, z = 0.000 }, level = 1, title_id = 151, special_name_id = 8, mark_flag = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1002, gadget_id = 42906005, pos = { x = 492.268, y = 100.544, z = 488.951 }, rot = { x = 0.000, y = 40.000, z = 0.000 }, level = 1, mark_flag = 10 },
{ config_id = 1003, gadget_id = 70290108, pos = { x = 0.000, y = 0.000, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1005, gadget_id = 42906006, pos = { x = 492.268, y = 100.544, z = 488.951 }, rot = { x = 0.000, y = 40.000, z = 0.000 }, level = 1, mark_flag = 11 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1001004, name = "ANY_MONSTER_DIE_1004", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_1004", action = "action_EVENT_ANY_MONSTER_DIE_1004" },
{ config_id = 1001006, name = "GADGET_STATE_CHANGE_1006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_1006", action = "action_EVENT_GADGET_STATE_CHANGE_1006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 1001 },
gadgets = { 1002, 1003, 1005 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_1006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_1004(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220112001) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_1004(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "20080301") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_1006(context, evt)
if 1005 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_1006(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "20080301") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 将本组内变量名为 "point" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "point", 1, 220112002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
@@ -0,0 +1,105 @@
-- 基础信息
local base_info = {
group_id = 220112002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1002001, name = "QUEST_START_2001", event = EventType.EVENT_QUEST_START, source = "200804", condition = "condition_EVENT_QUEST_START_2001", action = "action_EVENT_QUEST_START_2001", trigger_count = 0 },
{ config_id = 1002002, name = "TIMER_EVENT_2002", event = EventType.EVENT_TIMER_EVENT, source = "1", condition = "", action = "action_EVENT_TIMER_EVENT_2002", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "point", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "QUEST_START_2001", "TIMER_EVENT_2002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_QUEST_START_2001(context, evt)
-- 判断变量"point"为1
if ScriptLib.GetGroupVariableValue(context, "point") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_2001(context, evt)
-- 延迟0.5秒后,向groupId为:220112002的对象,请求一次调用,并将string参数:"1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220112002, "1", 0.5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_2002(context, evt)
-- 移除指定monster
ScriptLib.RemoveEntityByConfigId(context, 220112001, EntityType.MONSTER, 1001)
return 0
end
@@ -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": 492.3885,
"y": 100.5439,
"z": 488.5671
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 2.0,
"y": 2.0,
"z": 2.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}