添加配置表

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

View File

@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -597.8, z = -412.9 },
size = { x = 1319.2, z = 1197.6 },
born_pos = { x = -91.950, y = 33.532, z = 19.758 },
born_rot = { x = 0.000, y = 320.560, z = 0.000 },
die_y = -245.5204,
city_id = 2,
vision_anchor = { x = -597.8, z = -412.9 }
}
-- 所有的区块
blocks = { 1053 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -597.8, z = -412.9 }, max = { x = 721.5, z = 784.8 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { "routes" }

View File

@@ -0,0 +1,225 @@
{
"sceneId": 1053,
"routes": [
{
"localId": 2,
"name": "Platform_002",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -69.46343,
"y": 33.3683853,
"z": 100.83802
},
"waitTime": 0.0,
"targetVelocity": 0.8,
"hasReachEvent": true
},
{
"pos": {
"x": -69.46342,
"y": 37.4,
"z": 100.837929
},
"waitTime": 0.0,
"targetVelocity": 0.8,
"hasReachEvent": true
}
]
},
{
"localId": 3,
"name": "Platform_002",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -69.46342,
"y": 37.4,
"z": 100.837929
},
"waitTime": 0.0,
"targetVelocity": 0.8
},
{
"pos": {
"x": -69.46342,
"y": 42.0,
"z": 100.837929
},
"waitTime": 0.0,
"targetVelocity": 0.8,
"hasReachEvent": true
},
{
"pos": {
"x": -69.46342,
"y": 47.1,
"z": 100.837929
},
"waitTime": 0.0,
"targetVelocity": 0.5,
"hasReachEvent": true,
"reachStop": true
}
]
},
{
"localId": 4,
"name": "Platform_002",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -69.46342,
"y": 47.1,
"z": 100.837929
},
"waitTime": 0.0,
"targetVelocity": 0.8
},
{
"pos": {
"x": -69.46342,
"y": 56.0,
"z": 100.837929
},
"waitTime": 0.0,
"targetVelocity": 0.8,
"hasReachEvent": true,
"reachStop": true
}
]
},
{
"localId": 5,
"name": "Platform_002",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -69.46342,
"y": 56.0,
"z": 100.837929
},
"waitTime": 0.0,
"targetVelocity": 0.3
},
{
"pos": {
"x": -69.46342,
"y": 65.7,
"z": 100.837929
},
"waitTime": 0.0,
"targetVelocity": 0.3,
"hasReachEvent": true,
"reachStop": true
}
]
},
{
"localId": 6,
"name": "Platform_002",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -69.46342,
"y": 69.6,
"z": 100.837929
},
"waitTime": 0.0,
"targetVelocity": 1.5
},
{
"pos": {
"x": -69.46342,
"y": 112.0,
"z": 100.837929
},
"waitTime": 0.0,
"targetVelocity": 1.5,
"hasReachEvent": true,
"reachStop": true
}
]
},
{
"localId": 7,
"name": "Platform_002",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -69.46342,
"y": 112.0,
"z": 100.837929
},
"waitTime": 0.0,
"targetVelocity": 1.5
},
{
"pos": {
"x": -69.46342,
"y": 126.6,
"z": 100.837929
},
"waitTime": 0.0,
"targetVelocity": 1.5,
"hasReachEvent": true,
"reachStop": true
}
]
},
{
"localId": 8,
"name": "Platform_002",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -69.46342,
"y": 65.7,
"z": 100.837929
},
"waitTime": 0.0,
"targetVelocity": 1.0
},
{
"pos": {
"x": -69.46342,
"y": 69.6,
"z": 100.837929
},
"waitTime": 0.0,
"targetVelocity": 1.0,
"hasReachEvent": true,
"reachStop": true
}
]
}
]
}

View File

@@ -0,0 +1,23 @@
-- 所有的group
groups = {
{ id = 201053001, refresh_id = 1, pos = { x = -101.126, y = 30.466, z = 16.592 } },
{ id = 201053002, refresh_id = 1, pos = { x = -137.785, y = 36.476, z = 84.767 } },
{ id = 201053003, refresh_id = 1001, pos = { x = -136.468, y = 37.294, z = 82.202 } },
{ id = 201053006, refresh_id = 1001, pos = { x = -121.748, y = 37.406, z = 138.076 } },
{ id = 201053008, refresh_id = 1, pos = { x = -91.564, y = 60.155, z = 154.140 } },
{ id = 201053009, refresh_id = 1, pos = { x = -24.646, y = 63.100, z = 113.550 } },
{ id = 201053010, refresh_id = 1, pos = { x = -2.529, y = 65.580, z = 79.600 } },
{ id = 201053011, refresh_id = 1001, pos = { x = -3.750, y = 65.580, z = 80.226 } },
{ id = 201053012, refresh_id = 1001, pos = { x = -0.097, y = 65.580, z = 82.717 } },
{ id = 201053013, refresh_id = 1001, pos = { x = -17.765, y = 111.700, z = 67.492 } },
{ id = 201053014, refresh_id = 1001, pos = { x = -100.952, y = 111.814, z = 35.020 } },
{ id = 201053015, refresh_id = 1001, pos = { x = -90.405, y = 117.548, z = 108.210 } },
{ id = 201053016, refresh_id = 1, pos = { x = -67.329, y = 125.590, z = 74.567 } },
{ id = 201053018, refresh_id = 1, pos = { x = -136.603, y = 37.293, z = 82.153 } },
{ id = 201053019, refresh_id = 1, pos = { x = -129.600, y = 34.290, z = 49.009 } },
{ id = 201053020, pos = { x = -129.600, y = 34.290, z = 49.009 } },
{ id = 201053021, refresh_id = 1, pos = { x = -129.600, y = 34.290, z = 49.009 } },
{ id = 201053022, refresh_id = 1, pos = { x = -71.991, y = 33.368, z = 100.732 } },
{ id = 201053023, pos = { x = -93.444, y = 33.368, z = 108.503 } },
{ id = 201053024, refresh_id = 1, pos = { x = -71.991, y = 33.368, z = 100.732 } }
}

View File

@@ -0,0 +1,113 @@
-- 基础信息
local base_info = {
group_id = 201053001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1003, gadget_id = 70350070, pos = { x = -116.620, y = 33.180, z = 39.140 }, rot = { x = 294.700, y = 308.808, z = 178.700 }, level = 1 },
{ config_id = 1005, gadget_id = 70220036, pos = { x = -118.860, y = 36.360, z = 40.840 }, rot = { x = 352.342, y = 121.046, z = 354.958 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 1001, shape = RegionShape.SPHERE, radius = 8, pos = { x = -104.891, y = 33.351, z = 27.995 } }
}
-- 触发器
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 = 区域1,
monsters = { },
gadgets = { 1003, 1005 },
regions = { 1001 },
triggers = { "ENTER_REGION_1001" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
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)
-- 将configid为 1003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将本组内变量名为 "icon1Appear" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "icon1Appear", 1, 201053021) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end

View File

@@ -0,0 +1,182 @@
-- 基础信息
local base_info = {
group_id = 201053002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70350072, pos = { x = -126.481, y = 39.680, z = 105.403 }, rot = { x = 281.340, y = 72.541, z = 182.299 }, level = 1 },
{ config_id = 2004, gadget_id = 70350070, pos = { x = -119.400, y = 44.010, z = 123.390 }, rot = { x = 282.700, y = 349.531, z = 179.640 }, level = 1 },
{ config_id = 2006, gadget_id = 70360002, pos = { x = -136.595, y = 37.367, z = 102.594 }, rot = { x = 0.000, y = 187.649, z = 0.000 }, level = 1, state = GadgetState.GearStop }
}
-- 区域
regions = {
{ config_id = 2003, shape = RegionShape.SPHERE, radius = 8, pos = { x = -121.700, y = 40.933, z = 106.801 } }
}
-- 触发器
triggers = {
{ config_id = 1002003, name = "ENTER_REGION_2003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2003", action = "action_EVENT_ENTER_REGION_2003" },
{ config_id = 1002013, name = "SELECT_OPTION_2013", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2013", action = "action_EVENT_SELECT_OPTION_2013" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2004, 2006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { 2003 },
triggers = { "ENTER_REGION_2003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_2003(context, evt)
if evt.param1 ~= 2003 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_2003(context, evt)
-- 将configid为 2004 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2013(context, evt)
-- 判断是gadgetid 2006 option_id 7
if 2006 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2013(context, evt)
-- 将configid为 2001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2006 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 201053002 指定config2006物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201053002, 2006, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201053006, 2)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 201053006, 5)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 2002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-12639105持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=-126, y=39, z=105}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 201053002, 3)
return 0
end

View File

@@ -0,0 +1,201 @@
-- 基础信息
local base_info = {
group_id = 201053003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3002, monster_id = 20011001, pos = { x = -142.778, y = 37.240, z = 84.021 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3003, monster_id = 20011001, pos = { x = -132.674, y = 37.242, z = 86.156 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3004, monster_id = 20011001, pos = { x = -139.702, y = 37.234, z = 80.020 }, rot = { x = 0.000, y = 139.798, z = 0.000 }, level = 1 },
{ config_id = 3005, monster_id = 20011001, pos = { x = -133.394, y = 37.259, z = 81.889 }, rot = { x = 0.000, y = 175.192, z = 0.000 }, level = 1 },
{ config_id = 3006, monster_id = 20011001, pos = { x = -140.025, y = 37.231, z = 87.754 }, rot = { x = 0.000, y = 143.057, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3008, gadget_id = 70300116, pos = { x = -140.874, y = 37.216, z = 77.111 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1003001, name = "ANY_MONSTER_DIE_3001", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3001", action = "action_EVENT_ANY_MONSTER_DIE_3001", trigger_count = 0 },
{ config_id = 1003007, name = "ANY_MONSTER_DIE_3007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3007", action = "action_EVENT_ANY_MONSTER_DIE_3007", trigger_count = 0 },
{ config_id = 1003009, name = "TIMER_EVENT_3009", event = EventType.EVENT_TIMER_EVENT, source = "waitTillWaterRaise", condition = "", action = "action_EVENT_TIMER_EVENT_3009" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 3002, 3003, 3004, 3005, 3006 },
gadgets = { 3008 },
regions = { },
triggers = { "ANY_MONSTER_DIE_3001", "TIMER_EVENT_3009" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = 原Suite1,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_3007" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3001(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 201053003) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3001(context, evt)
-- 触发镜头注目,注目位置为坐标(-13637132持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=-136, y=37, z=132}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
-- 延迟3秒后,向groupId为201053003的对象,请求一次调用,并将string参数"waitTillWaterRaise" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201053003, "waitTillWaterRaise", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3007(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 201053003) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3007(context, evt)
-- 针对当前group内变量名为 "icon3Appear" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "icon3Appear", 1, 201053021) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
-- 改变指定group组201053002中 configid为2006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201053002, 2006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 201053002, 2006, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 触发镜头注目,注目位置为坐标(-13637132持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=-136, y=37, z=132}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
-- 将本组内变量名为 "waterPath" 的变量设置为 3
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "waterPath", 3, 201053019) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 调用提示id为 10530104 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 10530104) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3009(context, evt)
-- 将本组内变量名为 "waterPath" 的变量设置为 3
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "waterPath", 3, 201053019) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 调用提示id为 10530104 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 10530104) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end

View File

@@ -0,0 +1,240 @@
-- 基础信息
local base_info = {
group_id = 201053006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 6008, monster_id = 20010501, pos = { x = -116.698, y = 47.050, z = 147.680 }, rot = { x = 0.000, y = 133.979, z = 0.000 }, level = 1 },
{ config_id = 6009, monster_id = 20010501, pos = { x = -112.350, y = 47.032, z = 147.330 }, rot = { x = 0.000, y = 161.440, z = 0.000 }, level = 1 },
{ config_id = 6013, monster_id = 20010701, pos = { x = -114.389, y = 47.049, z = 149.189 }, rot = { x = 0.000, y = 119.355, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6002, gadget_id = 70360002, pos = { x = -120.899, y = 47.042, z = 156.520 }, rot = { x = 0.000, y = 119.633, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 6005, gadget_id = 70220036, pos = { x = -113.990, y = 48.878, z = 152.680 }, rot = { x = 342.623, y = 154.935, z = 354.045 }, level = 1 },
{ config_id = 6006, gadget_id = 70690008, pos = { x = -124.927, y = 44.510, z = 148.663 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 6003, shape = RegionShape.SPHERE, radius = 8, pos = { x = -125.233, y = 54.074, z = 148.418 } },
{ config_id = 6012, shape = RegionShape.SPHERE, radius = 10, pos = { x = -121.558, y = 47.374, z = 137.699 } }
}
-- 触发器
triggers = {
{ config_id = 1006003, name = "ENTER_REGION_6003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6003", action = "action_EVENT_ENTER_REGION_6003" },
{ config_id = 1006007, name = "ANY_MONSTER_DIE_6007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6007", action = "action_EVENT_ANY_MONSTER_DIE_6007" },
{ config_id = 1006011, name = "SELECT_OPTION_6011", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6011", action = "action_EVENT_SELECT_OPTION_6011" },
{ config_id = 1006012, name = "ENTER_REGION_6012", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6012", action = "" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 6008, 6009, 6013 },
gadgets = { 6002, 6005 },
regions = { 6012 },
triggers = { "ANY_MONSTER_DIE_6007", "SELECT_OPTION_6011", "ENTER_REGION_6012" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 6006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { },
regions = { 6003 },
triggers = { "ENTER_REGION_6003" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_6003(context, evt)
if evt.param1 ~= 6003 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_6003(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201053008, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6007(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6007(context, evt)
-- 将configid为 6002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 201053006, 6002, {2}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 将本组内变量名为 "icon4Appear" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "icon4Appear", 1, 201053021) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 调用提示id为 10530113 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 10530113) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_6011(context, evt)
-- 判断是gadgetid 6002 option_id 2
if 6002 ~= evt.param1 then
return false
end
if 2 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6011(context, evt)
-- 创建id为6006的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 6006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 删除指定group 201053006 指定config6002物件身上指定option2
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201053006, 6002, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 6002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将本组内变量名为 "icon4Appear" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "icon4Appear", 2, 201053021) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "icon5Appear" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "icon5Appear", 1, 201053021) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_6012(context, evt)
if evt.param1 ~= 6012 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

View File

@@ -0,0 +1,322 @@
-- 基础信息
local base_info = {
group_id = 201053008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8001, gadget_id = 70310013, pos = { x = -46.768, y = 66.533, z = 124.087 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8002, gadget_id = 70310013, pos = { x = -42.452, y = 66.339, z = 120.631 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8003, gadget_id = 70310013, pos = { x = -37.990, y = 66.047, z = 117.754 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8004, gadget_id = 70310013, pos = { x = -33.660, y = 65.766, z = 115.106 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8010, gadget_id = 70900201, pos = { x = -97.742, y = 64.095, z = 153.214 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8016, gadget_id = 70350061, pos = { x = -66.060, y = 64.460, z = 136.630 }, rot = { x = 291.100, y = 120.516, z = 179.704 }, level = 1 },
{ config_id = 8018, gadget_id = 70900201, pos = { x = -44.688, y = 60.662, z = 162.794 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 8009, shape = RegionShape.SPHERE, radius = 10, pos = { x = -94.918, y = 64.586, z = 151.389 } },
{ config_id = 8015, shape = RegionShape.SPHERE, radius = 5, pos = { x = -124.696, y = 63.393, z = 148.597 } },
{ config_id = 8017, shape = RegionShape.SPHERE, radius = 5, pos = { x = -81.525, y = 64.586, z = 145.965 } }
}
-- 触发器
triggers = {
{ config_id = 1008005, name = "ANY_GADGET_DIE_8005", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_8005", action = "action_EVENT_ANY_GADGET_DIE_8005", trigger_count = 0 },
{ config_id = 1008006, name = "ANY_GADGET_DIE_8006", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_8006", action = "action_EVENT_ANY_GADGET_DIE_8006", trigger_count = 0 },
{ config_id = 1008007, name = "ANY_GADGET_DIE_8007", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_8007", action = "action_EVENT_ANY_GADGET_DIE_8007", trigger_count = 0 },
{ config_id = 1008008, name = "ANY_GADGET_DIE_8008", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_8008", action = "action_EVENT_ANY_GADGET_DIE_8008", trigger_count = 0 },
{ config_id = 1008009, name = "ENTER_REGION_8009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8009", action = "action_EVENT_ENTER_REGION_8009" },
{ config_id = 1008011, name = "TIMER_EVENT_8011", event = EventType.EVENT_TIMER_EVENT, source = "time1", condition = "", action = "action_EVENT_TIMER_EVENT_8011", trigger_count = 0 },
{ config_id = 1008012, name = "TIMER_EVENT_8012", event = EventType.EVENT_TIMER_EVENT, source = "time2", condition = "", action = "action_EVENT_TIMER_EVENT_8012", trigger_count = 0 },
{ config_id = 1008013, name = "TIMER_EVENT_8013", event = EventType.EVENT_TIMER_EVENT, source = "time3", condition = "", action = "action_EVENT_TIMER_EVENT_8013", trigger_count = 0 },
{ config_id = 1008014, name = "TIMER_EVENT_8014", event = EventType.EVENT_TIMER_EVENT, source = "time4", condition = "", action = "action_EVENT_TIMER_EVENT_8014", trigger_count = 0 },
{ config_id = 1008015, name = "ENTER_REGION_8015", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8015", action = "action_EVENT_ENTER_REGION_8015" },
{ config_id = 1008017, name = "ENTER_REGION_8017", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8017", action = "action_EVENT_ENTER_REGION_8017" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8016 },
regions = { 8009, 8017 },
triggers = { "ENTER_REGION_8009", "ENTER_REGION_8017" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 8001, 8002, 8003, 8004, 8010 },
regions = { 8015 },
triggers = { "ANY_GADGET_DIE_8005", "ANY_GADGET_DIE_8006", "ANY_GADGET_DIE_8007", "ANY_GADGET_DIE_8008", "TIMER_EVENT_8011", "TIMER_EVENT_8012", "TIMER_EVENT_8013", "TIMER_EVENT_8014", "ENTER_REGION_8015" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = 原Suite1,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_8005(context, evt)
if 8001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_8005(context, evt)
-- 延迟3秒后,向groupId为201053008的对象,请求一次调用,并将string参数"time1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201053008, "time1", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_8006(context, evt)
if 8002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_8006(context, evt)
-- 延迟3秒后,向groupId为201053008的对象,请求一次调用,并将string参数"time2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201053008, "time2", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_8007(context, evt)
if 8003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_8007(context, evt)
-- 延迟3秒后,向groupId为201053008的对象,请求一次调用,并将string参数"time3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201053008, "time3", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_8008(context, evt)
if 8004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_8008(context, evt)
-- 延迟3秒后,向groupId为201053008的对象,请求一次调用,并将string参数"time4" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201053008, "time4", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_8009(context, evt)
if evt.param1 ~= 8009 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_8009(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 8010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201053009, 2)
-- 将configid为 8016 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8016, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_8011(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 8002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_8012(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 8003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_8013(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 8004 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_8014(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 8001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_8015(context, evt)
if evt.param1 ~= 8015 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_8015(context, evt)
-- 触发镜头注目,注目位置为坐标(-9864153持续时间为1秒并且为强制注目形式不广播其他玩家
local pos = {x=-98, y=64, z=153}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 1, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_8017(context, evt)
if evt.param1 ~= 8017 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_8017(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 8001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,108 @@
-- 基础信息
local base_info = {
group_id = 201053009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9001, gadget_id = 70220036, pos = { x = -10.830, y = 71.832, z = 93.450 }, rot = { x = 354.861, y = 322.289, z = 335.049 }, level = 1 },
{ config_id = 9002, gadget_id = 70900201, pos = { x = -22.330, y = 63.100, z = 104.708 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 9003, shape = RegionShape.SPHERE, radius = 15, pos = { x = -20.248, y = 63.100, z = 105.324 } }
}
-- 触发器
triggers = {
{ config_id = 1009003, name = "ENTER_REGION_9003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9003", action = "action_EVENT_ENTER_REGION_9003" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 9001 },
regions = { 9003 },
triggers = { "ENTER_REGION_9003" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 9002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_9003(context, evt)
if evt.param1 ~= 9003 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_9003(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 9002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,182 @@
-- 基础信息
local base_info = {
group_id = 201053010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10001, gadget_id = 70690008, pos = { x = -1.537, y = 69.508, z = 78.128 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10008, gadget_id = 70690010, pos = { x = -1.745, y = 25.000, z = 78.737 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10010, gadget_id = 70360002, pos = { x = -1.941, y = 69.504, z = 78.598 }, rot = { x = 0.000, y = 327.695, z = 0.000 }, level = 1, state = GadgetState.GearStop }
}
-- 区域
regions = {
{ config_id = 10009, shape = RegionShape.SPHERE, radius = 8, pos = { x = -3.112, y = 114.776, z = 77.049 } }
}
-- 触发器
triggers = {
{ config_id = 1010005, name = "VARIABLE_CHANGE_10005", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_10005", action = "action_EVENT_VARIABLE_CHANGE_10005" },
{ config_id = 1010007, name = "SELECT_OPTION_10007", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_10007", action = "action_EVENT_SELECT_OPTION_10007" },
{ config_id = 1010009, name = "ENTER_REGION_10009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10009", action = "action_EVENT_ENTER_REGION_10009" }
}
-- 变量
variables = {
{ config_id = 1, name = "unlockOperator", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 10010 },
regions = { },
triggers = { "VARIABLE_CHANGE_10005", "SELECT_OPTION_10007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 10001, 10008 },
regions = { 10009 },
triggers = { "ENTER_REGION_10009" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_10005(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"unlockOperator"为1
if ScriptLib.GetGroupVariableValue(context, "unlockOperator") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_10005(context, evt)
-- 将configid为 10010 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10010, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 201053010, 10010, {2}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_10007(context, evt)
-- 判断是gadgetid 10010 option_id 2
if 10010 ~= evt.param1 then
return false
end
if 2 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_10007(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201053010, 2)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201053013, 2)
-- 将configid为 10010 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 10010, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 201053010 指定config10010物件身上指定option2
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201053010, 10010, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_10009(context, evt)
if evt.param1 ~= 10009 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_10009(context, evt)
-- 触发镜头注目,注目位置为坐标(-1811268持续时间为1秒并且为强制注目形式不广播其他玩家
local pos = {x=-18, y=112, z=68}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 1, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end

View File

@@ -0,0 +1,99 @@
-- 基础信息
local base_info = {
group_id = 201053011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 11001, monster_id = 20011001, pos = { x = 4.255, y = 69.432, z = 76.582 }, rot = { x = 0.000, y = 301.167, z = 0.000 }, level = 1 },
{ config_id = 11002, monster_id = 20011101, pos = { x = -6.758, y = 69.431, z = 75.375 }, rot = { x = 0.000, y = 301.167, z = 0.000 }, level = 1 },
{ config_id = 11003, monster_id = 20011001, pos = { x = 5.072, y = 69.504, z = 82.916 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11004, monster_id = 20011001, pos = { x = -3.469, y = 69.509, z = 76.118 }, rot = { x = 0.000, y = 301.167, z = 0.000 }, level = 1 },
{ config_id = 11005, monster_id = 20011001, pos = { x = 2.363, y = 69.507, z = 79.594 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11006, monster_id = 20011001, pos = { x = -5.319, y = 69.434, z = 72.702 }, rot = { x = 0.000, y = 301.167, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1011007, name = "ANY_MONSTER_DIE_11007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_11007", action = "action_EVENT_ANY_MONSTER_DIE_11007" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 11001, 11002, 11003, 11004, 11005, 11006 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_11007" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_11007(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_11007(context, evt)
-- 将本组内变量名为 "unlockOperator" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "unlockOperator", 1, 201053010) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end

View File

@@ -0,0 +1,104 @@
-- 基础信息
local base_info = {
group_id = 201053012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 12002, monster_id = 20010601, pos = { x = 1.303, y = 69.457, z = 71.880 }, rot = { x = 0.000, y = 333.870, z = 0.000 }, level = 1, affix = { 6104 } },
{ config_id = 12003, monster_id = 20010701, pos = { x = -4.669, y = 69.433, z = 71.470 }, rot = { x = 0.000, y = 14.264, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1012004, name = "ANY_MONSTER_DIE_12004", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_12004", action = "action_EVENT_ANY_MONSTER_DIE_12004", trigger_count = 0 }
}
-- 变量
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 = { 12002, 12003 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_12004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_12004(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_12004(context, evt)
-- 将本组内变量名为 "unlockOperator" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "unlockOperator", 1, 201053010) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end

View File

@@ -0,0 +1,486 @@
-- 基础信息
local base_info = {
group_id = 201053013
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 13024, monster_id = 20011501, pos = { x = -23.686, y = 111.593, z = 68.975 }, rot = { x = 0.000, y = 99.707, z = 0.000 }, level = 1 },
{ config_id = 13033, monster_id = 20011501, pos = { x = -16.810, y = 111.593, z = 71.502 }, rot = { x = 0.000, y = 193.060, z = 0.000 }, level = 1 },
{ config_id = 13034, monster_id = 20011501, pos = { x = -17.299, y = 111.593, z = 64.621 }, rot = { x = 0.000, y = 5.464, z = 0.000 }, level = 1 },
{ config_id = 13035, monster_id = 20010501, pos = { x = -98.739, y = 111.777, z = 31.064 }, rot = { x = 0.000, y = 5.464, z = 0.000 }, level = 1 },
{ config_id = 13038, monster_id = 20010501, pos = { x = -97.857, y = 111.765, z = 37.042 }, rot = { x = 0.000, y = 5.464, z = 0.000 }, level = 1 },
{ config_id = 13039, monster_id = 20010501, pos = { x = -105.048, y = 111.765, z = 33.603 }, rot = { x = 0.000, y = 62.202, z = 0.000 }, level = 1 },
{ config_id = 13040, monster_id = 20011201, pos = { x = -84.752, y = 117.414, z = 108.661 }, rot = { x = 0.000, y = 62.202, z = 0.000 }, level = 1 },
{ config_id = 13041, monster_id = 20011201, pos = { x = -88.542, y = 117.414, z = 111.468 }, rot = { x = 0.000, y = 62.202, z = 0.000 }, level = 1 },
{ config_id = 13042, monster_id = 20011201, pos = { x = -88.256, y = 117.414, z = 105.341 }, rot = { x = 0.000, y = 62.202, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 13001, gadget_id = 70900201, pos = { x = -18.278, y = 112.680, z = 68.650 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13002, gadget_id = 70690008, pos = { x = -37.833, y = 95.339, z = 56.017 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13003, gadget_id = 70690008, pos = { x = -76.060, y = 95.339, z = 36.160 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13004, gadget_id = 70690008, pos = { x = -101.776, y = 95.339, z = 56.820 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13005, gadget_id = 70690008, pos = { x = -90.604, y = 95.339, z = 87.506 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13006, gadget_id = 70690008, pos = { x = -69.194, y = 95.339, z = 109.659 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13007, gadget_id = 70690008, pos = { x = -31.169, y = 95.339, z = 85.632 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13008, gadget_id = 70690001, pos = { x = -38.598, y = 119.368, z = 92.594 }, rot = { x = 0.000, y = 307.991, z = 0.000 }, level = 1 },
{ config_id = 13009, gadget_id = 70690001, pos = { x = -52.586, y = 119.368, z = 103.816 }, rot = { x = 0.000, y = 304.694, z = 0.000 }, level = 1 },
{ config_id = 13010, gadget_id = 70690001, pos = { x = -50.402, y = 119.367, z = 48.111 }, rot = { x = 0.000, y = 245.880, z = 0.000 }, level = 1 },
{ config_id = 13011, gadget_id = 70690001, pos = { x = -64.345, y = 119.368, z = 40.850 }, rot = { x = 0.000, y = 249.922, z = 0.000 }, level = 1 },
{ config_id = 13012, gadget_id = 70690001, pos = { x = -93.877, y = 119.368, z = 77.114 }, rot = { x = 0.000, y = 189.529, z = 0.000 }, level = 1 },
{ config_id = 13013, gadget_id = 70690001, pos = { x = -98.128, y = 119.368, z = 64.569 }, rot = { x = 0.000, y = 193.113, z = 0.000 }, level = 1 },
{ config_id = 13015, gadget_id = 70360005, pos = { x = -89.947, y = 111.873, z = 35.343 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13016, gadget_id = 70360005, pos = { x = -78.711, y = 117.599, z = 111.110 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13020, gadget_id = 70350070, pos = { x = -39.244, y = 117.800, z = 71.630 }, rot = { x = 278.911, y = 86.249, z = 9.285 }, level = 1 },
{ config_id = 13021, gadget_id = 70350072, pos = { x = -79.360, y = 120.980, z = 94.620 }, rot = { x = 274.456, y = 338.583, z = 350.300 }, level = 1 },
{ config_id = 13022, gadget_id = 70350061, pos = { x = -84.930, y = 117.460, z = 52.020 }, rot = { x = 270.000, y = 219.210, z = 0.000 }, level = 1 },
{ config_id = 13023, gadget_id = 70360002, pos = { x = -18.394, y = 111.691, z = 68.548 }, rot = { x = 0.000, y = 99.723, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 13025, gadget_id = 70360005, pos = { x = -26.196, y = 111.716, z = 62.158 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13026, gadget_id = 70360005, pos = { x = -21.291, y = 111.735, z = 78.701 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13029, gadget_id = 70360005, pos = { x = -102.682, y = 111.853, z = 44.389 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13030, gadget_id = 70360005, pos = { x = -88.464, y = 117.626, z = 100.099 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13046, gadget_id = 70900201, pos = { x = -100.950, y = 111.814, z = 34.239 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13048, gadget_id = 70900201, pos = { x = -87.085, y = 117.418, z = 109.035 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 13047, shape = RegionShape.SPHERE, radius = 15, pos = { x = -100.950, y = 111.814, z = 34.239 } },
{ config_id = 13049, shape = RegionShape.SPHERE, radius = 15, pos = { x = -87.085, y = 117.418, z = 109.035 } }
}
-- 触发器
triggers = {
{ config_id = 1013017, name = "GADGET_STATE_CHANGE_13017", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_13017", action = "action_EVENT_GADGET_STATE_CHANGE_13017" },
{ config_id = 1013018, name = "GADGET_STATE_CHANGE_13018", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_13018", action = "action_EVENT_GADGET_STATE_CHANGE_13018" },
{ config_id = 1013019, name = "VARIABLE_CHANGE_13019", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_13019", action = "action_EVENT_VARIABLE_CHANGE_13019" },
{ config_id = 1013027, name = "GADGET_STATE_CHANGE_13027", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_13027", action = "action_EVENT_GADGET_STATE_CHANGE_13027" },
{ config_id = 1013028, name = "GADGET_STATE_CHANGE_13028", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_13028", action = "action_EVENT_GADGET_STATE_CHANGE_13028" },
{ config_id = 1013031, name = "GADGET_STATE_CHANGE_13031", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_13031", action = "action_EVENT_GADGET_STATE_CHANGE_13031" },
{ config_id = 1013032, name = "GADGET_STATE_CHANGE_13032", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_13032", action = "action_EVENT_GADGET_STATE_CHANGE_13032" },
{ config_id = 1013037, name = "SELECT_OPTION_13037", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_13037", action = "action_EVENT_SELECT_OPTION_13037" },
{ config_id = 1013045, name = "ANY_MONSTER_DIE_13045", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_13045", action = "action_EVENT_ANY_MONSTER_DIE_13045", trigger_count = 0 },
{ config_id = 1013047, name = "ENTER_REGION_13047", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13047", action = "action_EVENT_ENTER_REGION_13047" },
{ config_id = 1013049, name = "ENTER_REGION_13049", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13049", action = "action_EVENT_ENTER_REGION_13049" },
{ config_id = 1013050, name = "CHALLENGE_SUCCESS_13050", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "666", condition = "", action = "" },
{ config_id = 1013051, name = "CHALLENGE_FAIL_13051", event = EventType.EVENT_CHALLENGE_FAIL, source = "666", condition = "", action = "", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "deathCount", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 13024, 13033, 13034 },
gadgets = { 13020, 13021, 13022, 13023 },
regions = { },
triggers = { "SELECT_OPTION_13037", "ANY_MONSTER_DIE_13045" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 13001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = Sky Path,
monsters = { },
gadgets = { 13002, 13003, 13004, 13005, 13006, 13007, 13008, 13009, 13010, 13011, 13012, 13013, 13015, 13016, 13025, 13026, 13029, 13030 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_13017", "GADGET_STATE_CHANGE_13018", "GADGET_STATE_CHANGE_13027", "GADGET_STATE_CHANGE_13028", "GADGET_STATE_CHANGE_13031", "GADGET_STATE_CHANGE_13032", "CHALLENGE_SUCCESS_13050", "CHALLENGE_FAIL_13051" },
rand_weight = 100
},
{
-- suite_id = 8,
-- description = Monsters1,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 9,
-- description = Monsters2,
monsters = { 13035, 13038, 13039 },
gadgets = { 13046 },
regions = { 13047 },
triggers = { "ENTER_REGION_13047" },
rand_weight = 100
},
{
-- suite_id = 10,
-- description = Monsters3,
monsters = { 13040, 13041, 13042 },
gadgets = { 13048 },
regions = { 13049 },
triggers = { "ENTER_REGION_13049" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_13017(context, evt)
if 13015 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_13017(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 201053013, 4)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_13018(context, evt)
if 13016 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_13018(context, evt)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 201053013, 5)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_13019(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"deathCount"为2
if ScriptLib.GetGroupVariableValue(context, "deathCount") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13019(context, evt)
-- 将configid为 13020 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 13020, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 13021 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 13021, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 13022 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 13022, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201053016, 2)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_13027(context, evt)
if 13025 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_13027(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 201053013, 4)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_13028(context, evt)
if 13026 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_13028(context, evt)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 201053013, 5)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_13031(context, evt)
if 13029 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_13031(context, evt)
-- 添加suite6的新内容
ScriptLib.AddExtraGroupSuite(context, 201053013, 6)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_13032(context, evt)
if 13030 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_13032(context, evt)
-- 添加suite6的新内容
ScriptLib.AddExtraGroupSuite(context, 201053013, 6)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_13037(context, evt)
-- 判断是gadgetid 13023 option_id 7
if 13023 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_13037(context, evt)
-- 将本组内变量名为 "startPlatform7" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "startPlatform7", 1, 201053019) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 删除指定group 201053013 指定config13023物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201053013, 13023, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 13023 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 13023, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 13020 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 13020, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 13021 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 13021, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 13022 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 13022, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 13001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 调用提示id为 10530106 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 10530106) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_13045(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_13045(context, evt)
-- 将configid为 13023 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 13023, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 201053013, 13023, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_13047(context, evt)
if evt.param1 ~= 13047 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_13047(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 13046 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_13049(context, evt)
if evt.param1 ~= 13049 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_13049(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 13048 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,207 @@
-- 基础信息
local base_info = {
group_id = 201053014
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 14001, monster_id = 20011501, pos = { x = -104.826, y = 111.802, z = 29.970 }, rot = { x = 0.000, y = 301.167, z = 0.000 }, level = 1 },
{ config_id = 14002, monster_id = 20011501, pos = { x = -104.314, y = 111.749, z = 37.565 }, rot = { x = 0.000, y = 301.167, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 14004, gadget_id = 70220036, pos = { x = -110.730, y = 112.600, z = 32.209 }, rot = { x = 305.707, y = 85.638, z = 349.994 }, level = 1 },
{ config_id = 14006, gadget_id = 70900201, pos = { x = -101.001, y = 111.722, z = 34.250 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 14009, gadget_id = 70900202, pos = { x = -112.339, y = 112.541, z = 32.936 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 14005, shape = RegionShape.SPHERE, radius = 12, pos = { x = -101.157, y = 111.824, z = 34.104 } }
}
-- 触发器
triggers = {
{ config_id = 1014003, name = "ANY_MONSTER_DIE_14003", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_14003", action = "action_EVENT_ANY_MONSTER_DIE_14003" },
{ config_id = 1014005, name = "ENTER_REGION_14005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14005", action = "action_EVENT_ENTER_REGION_14005" },
{ config_id = 1014007, name = "ANY_GADGET_DIE_14007", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_14007", action = "action_EVENT_ANY_GADGET_DIE_14007" },
{ config_id = 1014008, name = "VARIABLE_CHANGE_14008", event = EventType.EVENT_VARIABLE_CHANGE, source = "deathCount", condition = "condition_EVENT_VARIABLE_CHANGE_14008", action = "action_EVENT_VARIABLE_CHANGE_14008" }
}
-- 变量
variables = {
{ config_id = 1, name = "deathCount", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
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 = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 14006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 14001, 14002 },
gadgets = { 14004, 14009 },
regions = { 14005 },
triggers = { "ANY_MONSTER_DIE_14003", "ENTER_REGION_14005", "ANY_GADGET_DIE_14007", "VARIABLE_CHANGE_14008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_14003(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_14003(context, evt)
-- 针对当前group内变量名为 "deathCount" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "deathCount", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_14005(context, evt)
if evt.param1 ~= 14005 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_14005(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201053014, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_14007(context, evt)
if 14004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_14007(context, evt)
-- 针对当前group内变量名为 "deathCount" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "deathCount", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 14009 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_14008(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"deathCount"为2
if ScriptLib.GetGroupVariableValue(context, "deathCount") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_14008(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 14006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 针对当前group内变量名为 "deathCount" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "deathCount", 1, 201053013) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
return 0
end

View File

@@ -0,0 +1,207 @@
-- 基础信息
local base_info = {
group_id = 201053015
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 15001, monster_id = 20011101, pos = { x = -91.736, y = 117.568, z = 107.713 }, rot = { x = 0.000, y = 301.167, z = 0.000 }, level = 1 },
{ config_id = 15002, monster_id = 20010901, pos = { x = -89.533, y = 117.566, z = 110.755 }, rot = { x = 0.000, y = 301.167, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 15004, gadget_id = 70220036, pos = { x = -95.962, y = 118.648, z = 111.402 }, rot = { x = 334.337, y = 111.552, z = 347.407 }, level = 1 },
{ config_id = 15006, gadget_id = 70900201, pos = { x = -87.153, y = 117.508, z = 108.760 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 15009, gadget_id = 70900202, pos = { x = -96.696, y = 119.528, z = 111.998 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 15005, shape = RegionShape.SPHERE, radius = 12, pos = { x = -90.621, y = 117.538, z = 107.294 } }
}
-- 触发器
triggers = {
{ config_id = 1015003, name = "ANY_MONSTER_DIE_15003", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_15003", action = "action_EVENT_ANY_MONSTER_DIE_15003" },
{ config_id = 1015005, name = "ENTER_REGION_15005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_15005", action = "action_EVENT_ENTER_REGION_15005" },
{ config_id = 1015007, name = "ANY_GADGET_DIE_15007", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_15007", action = "action_EVENT_ANY_GADGET_DIE_15007" },
{ config_id = 1015008, name = "VARIABLE_CHANGE_15008", event = EventType.EVENT_VARIABLE_CHANGE, source = "deathCount", condition = "condition_EVENT_VARIABLE_CHANGE_15008", action = "action_EVENT_VARIABLE_CHANGE_15008" }
}
-- 变量
variables = {
{ config_id = 1, name = "deathCount", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
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 = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 15006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 15001, 15002 },
gadgets = { 15004, 15009 },
regions = { 15005 },
triggers = { "ANY_MONSTER_DIE_15003", "ENTER_REGION_15005", "ANY_GADGET_DIE_15007", "VARIABLE_CHANGE_15008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_15003(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_15003(context, evt)
-- 针对当前group内变量名为 "deathCount" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "deathCount", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_15005(context, evt)
if evt.param1 ~= 15005 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_15005(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201053015, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_15007(context, evt)
if 15004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_15007(context, evt)
-- 针对当前group内变量名为 "deathCount" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "deathCount", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 15009 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_15008(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"deathCount"为2
if ScriptLib.GetGroupVariableValue(context, "deathCount") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_15008(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 15006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 针对当前group内变量名为 "deathCount" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "deathCount", 1, 201053013) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
return 0
end

View File

@@ -0,0 +1,162 @@
-- 基础信息
local base_info = {
group_id = 201053016
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 16001, gadget_id = 70900201, pos = { x = -71.284, y = 127.989, z = 75.019 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16002, gadget_id = 71700099, pos = { x = -71.313, y = 127.459, z = 75.019 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
{ config_id = 16005, shape = RegionShape.SPHERE, radius = 8, pos = { x = -66.750, y = 126.465, z = 74.812 } }
}
-- 触发器
triggers = {
{ config_id = 1016003, name = "QUEST_FINISH_16003", event = EventType.EVENT_QUEST_FINISH, source = "7180004", condition = "condition_EVENT_QUEST_FINISH_16003", action = "action_EVENT_QUEST_FINISH_16003" },
{ config_id = 1016004, name = "TIMER_EVENT_16004", event = EventType.EVENT_TIMER_EVENT, source = "outtime", condition = "", action = "action_EVENT_TIMER_EVENT_16004" },
{ config_id = 1016005, name = "ENTER_REGION_16005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_16005", action = "action_EVENT_ENTER_REGION_16005" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 16005 },
triggers = { "ENTER_REGION_16005" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 16001, 16002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_QUEST_FINISH_16003(context, evt)
--检查ID为7180004的任务的完成状态是否为11=完成0=失败)
--此事件需要配合Quest表使用在Quest表里的完成执行中配置“通知group脚本”则该任务完成后服务端会向对应的group发送通知参数1填写场景ID参数2填写group ID如果不填则会通知所有group
--检查任务ID
if 7180004 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_16003(context, evt)
-- 延迟1秒后,向groupId为201053016的对象,请求一次调用,并将string参数"outtime" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201053016, "outtime", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 16001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_16004(context, evt)
-- 调用提示id为 101700803 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 101700803) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "7180005") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_16005(context, evt)
if evt.param1 ~= 16005 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_16005(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "7180004") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end

View File

@@ -0,0 +1,117 @@
-- 基础信息
local base_info = {
group_id = 201053018
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 18001, gadget_id = 70220020, pos = { x = -137.161, y = 46.178, z = 148.491 }, rot = { x = 351.162, y = 5.714, z = 354.062 }, level = 1, isOneoff = true, persistent = true },
{ config_id = 18002, gadget_id = 70220036, pos = { x = -13.528, y = 72.327, z = 59.001 }, rot = { x = -0.005, y = 3.739, z = 11.662 }, level = 1 },
{ config_id = 18020, gadget_id = 70310001, pos = { x = -4.162, y = 69.480, z = 51.137 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 18021, gadget_id = 70310001, pos = { x = -6.146, y = 69.460, z = 54.202 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 18022, gadget_id = 70220004, pos = { x = -137.524, y = 37.210, z = 73.822 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18023, gadget_id = 70220004, pos = { x = -125.473, y = 37.223, z = 80.040 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18024, gadget_id = 70220004, pos = { x = -129.922, y = 37.214, z = 85.674 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18025, gadget_id = 70220004, pos = { x = -142.006, y = 37.253, z = 80.397 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18026, gadget_id = 70220004, pos = { x = -147.840, y = 37.230, z = 77.036 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18027, gadget_id = 70220004, pos = { x = -22.597, y = 65.473, z = 112.386 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18028, gadget_id = 70220004, pos = { x = -21.539, y = 65.473, z = 103.832 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18029, gadget_id = 70220004, pos = { x = 1.898, y = 69.436, z = 87.227 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18030, gadget_id = 70220004, pos = { x = -4.769, y = 69.509, z = 79.546 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18031, gadget_id = 70220004, pos = { x = 6.138, y = 69.432, z = 75.183 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18032, gadget_id = 70220004, pos = { x = -3.220, y = 69.430, z = 66.208 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18033, gadget_id = 70220004, pos = { x = 11.239, y = 69.433, z = 62.868 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18034, gadget_id = 70220004, pos = { x = 8.109, y = 69.504, z = 85.446 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18035, gadget_id = 70220004, pos = { x = -14.902, y = 69.437, z = 75.562 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18036, gadget_id = 70220003, pos = { x = 21.716, y = 69.435, z = 76.009 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18037, gadget_id = 70220020, pos = { x = -145.659, y = 37.253, z = 93.759 }, rot = { x = 0.000, y = 271.200, z = 0.000 }, level = 1 },
{ config_id = 18038, gadget_id = 70220020, pos = { x = -127.877, y = 37.209, z = 71.061 }, rot = { x = 0.000, y = 271.200, z = 0.000 }, level = 1 },
{ config_id = 18039, gadget_id = 70220020, pos = { x = -130.871, y = 47.039, z = 158.869 }, rot = { x = 0.000, y = 245.093, z = 0.000 }, level = 1 },
{ config_id = 18041, gadget_id = 70220020, pos = { x = -135.394, y = 46.334, z = 150.494 }, rot = { x = 351.162, y = 5.714, z = 354.062 }, level = 1, isOneoff = true, persistent = true },
{ config_id = 18042, gadget_id = 70211001, pos = { x = -5.952, y = 69.432, z = 52.010 }, rot = { x = 0.000, y = 55.152, z = 0.000 }, level = 11, drop_tag = "战斗低级璃月", isOneoff = true, persistent = true },
{ config_id = 18043, gadget_id = 70220013, pos = { x = -123.794, y = 37.219, z = 89.738 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18044, gadget_id = 70220013, pos = { x = -122.407, y = 37.231, z = 87.154 }, rot = { x = 0.000, y = 325.589, z = 0.000 }, level = 1 },
{ config_id = 18045, gadget_id = 70220013, pos = { x = 22.430, y = 69.439, z = 80.958 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18046, gadget_id = 70220013, pos = { x = -23.592, y = 65.473, z = 97.728 }, rot = { x = 0.000, y = 347.677, z = 0.000 }, level = 1 },
{ config_id = 18047, gadget_id = 70220013, pos = { x = -25.842, y = 65.473, z = 99.459 }, rot = { x = 0.000, y = 308.302, z = 0.000 }, level = 1 },
{ config_id = 18048, gadget_id = 70220013, pos = { x = -88.884, y = 63.373, z = 160.218 }, rot = { x = 0.000, y = 348.058, z = 0.000 }, level = 1 },
{ config_id = 18049, gadget_id = 70220014, pos = { x = -91.483, y = 63.373, z = 160.645 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18050, gadget_id = 70220014, pos = { x = -130.235, y = 34.285, z = 44.273 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18051, gadget_id = 70220014, pos = { x = -124.537, y = 37.219, z = 87.549 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18052, gadget_id = 70220014, pos = { x = -20.854, y = 69.440, z = 73.537 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18053, gadget_id = 70220014, pos = { x = -19.167, y = 69.436, z = 75.668 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18054, gadget_id = 70220014, pos = { x = -21.330, y = 69.436, z = 75.283 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18059, gadget_id = 70220020, pos = { x = -122.753, y = 37.210, z = 79.229 }, rot = { x = 0.000, y = 307.571, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 18001, 18002, 18020, 18021, 18027, 18028, 18029, 18030, 18031, 18032, 18033, 18034, 18035, 18036, 18037, 18038, 18039, 18041, 18042, 18043, 18044, 18045, 18046, 18047, 18048, 18049, 18050, 18051, 18052, 18053, 18054, 18059 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 原Suite1,
monsters = { },
gadgets = { 18022, 18023, 18024, 18025, 18026 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,441 @@
-- 基础信息
local base_info = {
group_id = 201053019
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 19007, gadget_id = 70380007, pos = { x = -69.463, y = 33.368, z = 100.838 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 2, start_route = false }
}
-- 区域
regions = {
{ config_id = 19001, shape = RegionShape.SPHERE, radius = 8, pos = { x = -129.601, y = 34.288, z = 49.288 } },
{ config_id = 19004, shape = RegionShape.SPHERE, radius = 3, pos = { x = -116.644, y = 41.383, z = 107.872 } },
{ config_id = 19005, shape = RegionShape.SPHERE, radius = 8, pos = { x = -125.233, y = 61.639, z = 148.554 } },
{ config_id = 19006, shape = RegionShape.SPHERE, radius = 15, pos = { x = -39.640, y = 63.100, z = 118.654 } },
{ config_id = 19009, shape = RegionShape.SPHERE, radius = 12, pos = { x = -18.818, y = 112.312, z = 69.035 } },
{ config_id = 19014, shape = RegionShape.SPHERE, radius = 5, pos = { x = -7.150, y = 70.197, z = 87.456 } }
}
-- 触发器
triggers = {
{ config_id = 1019001, name = "ENTER_REGION_19001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_19001", action = "action_EVENT_ENTER_REGION_19001" },
{ config_id = 1019002, name = "PLATFORM_REACH_POINT_19002", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_19002", action = "action_EVENT_PLATFORM_REACH_POINT_19002", trigger_count = 0 },
{ config_id = 1019003, name = "VARIABLE_CHANGE_19003", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_19003", action = "action_EVENT_VARIABLE_CHANGE_19003", trigger_count = 0 },
{ config_id = 1019004, name = "ENTER_REGION_19004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_19004", action = "action_EVENT_ENTER_REGION_19004" },
{ config_id = 1019005, name = "ENTER_REGION_19005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_19005", action = "action_EVENT_ENTER_REGION_19005" },
{ config_id = 1019006, name = "ENTER_REGION_19006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_19006", action = "action_EVENT_ENTER_REGION_19006" },
{ config_id = 1019008, name = "PLATFORM_REACH_POINT_19008", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_19008", action = "action_EVENT_PLATFORM_REACH_POINT_19008", trigger_count = 0 },
{ config_id = 1019009, name = "ENTER_REGION_19009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_19009", action = "action_EVENT_ENTER_REGION_19009" },
{ config_id = 1019011, name = "PLATFORM_REACH_POINT_19011", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_19011", action = "action_EVENT_PLATFORM_REACH_POINT_19011", trigger_count = 0 },
{ config_id = 1019012, name = "TIMER_EVENT_19012", event = EventType.EVENT_TIMER_EVENT, source = "waterRaise", condition = "", action = "action_EVENT_TIMER_EVENT_19012", trigger_count = 0 },
{ config_id = 1019013, name = "VARIABLE_CHANGE_19013", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_19013", action = "action_EVENT_VARIABLE_CHANGE_19013" },
{ config_id = 1019014, name = "ENTER_REGION_19014", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_19014", action = "action_EVENT_ENTER_REGION_19014" }
}
-- 变量
variables = {
{ config_id = 1, name = "waterPath", value = 0, no_refresh = false },
{ config_id = 2, name = "startPlatform7", value = 0, no_refresh = false },
{ config_id = 3, name = "startPlatform6", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 19007 },
regions = { 19001, 19004, 19005, 19006, 19009, 19014 },
triggers = { "ENTER_REGION_19001", "PLATFORM_REACH_POINT_19002", "VARIABLE_CHANGE_19003", "ENTER_REGION_19004", "ENTER_REGION_19005", "ENTER_REGION_19006", "PLATFORM_REACH_POINT_19008", "ENTER_REGION_19009", "PLATFORM_REACH_POINT_19011", "TIMER_EVENT_19012", "VARIABLE_CHANGE_19013", "ENTER_REGION_19014" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_19001(context, evt)
if evt.param1 ~= 19001 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_19001(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 19007, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 19007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_19002(context, evt)
-- 判断是gadgetid 为 19007的移动平台是否到达了2 的路线中的 1 点
if 19007 ~= evt.param1 then
return false
end
if 2 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_19002(context, evt)
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 19007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_19003(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"waterPath"为3
if ScriptLib.GetGroupVariableValueByGroup(context, "waterPath", 201053019) ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_19003(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 19007, 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 19007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_19004(context, evt)
if evt.param1 ~= 19004 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_19004(context, evt)
-- 将本组内变量名为 "icon6Appear" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "icon6Appear", 2, 201053021) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201053019的对象,请求一次调用,并将string参数"waterRaise" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201053019, "waterRaise", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_19005(context, evt)
if evt.param1 ~= 19005 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_19005(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 19007, 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 19007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_19006(context, evt)
if evt.param1 ~= 19006 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_19006(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 19007, 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 19007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 调用提示id为 10530108 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 10530108) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_19008(context, evt)
-- 判断是gadgetid 为 19007的移动平台是否到达了3 的路线中的 1 点
if 19007 ~= evt.param1 then
return false
end
if 3 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_19008(context, evt)
-- 将本组内变量名为 "icon6Appear" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "icon6Appear", 1, 201053021) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_19009(context, evt)
if evt.param1 ~= 19009 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_19009(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 19007, 6) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 19007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_19011(context, evt)
-- 判断是gadgetid 为 19007的移动平台是否到达了3 的路线中的 1 点
if 19007 ~= evt.param1 then
return false
end
if 3 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_19011(context, evt)
-- 将本组内变量名为 "icon3Appear" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "icon3Appear", 2, 201053021) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 19007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_19012(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 19007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_19013(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"startPlatform7"为1
if ScriptLib.GetGroupVariableValue(context, "startPlatform7") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_19013(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 19007, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 19007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_19014(context, evt)
if evt.param1 ~= 19014 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_19014(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 19007, 8) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 19007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end

View File

@@ -0,0 +1,183 @@
-- 基础信息
local base_info = {
group_id = 201053020
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 20001, shape = RegionShape.SPHERE, radius = 8, pos = { x = -104.891, y = 33.351, z = 27.995 } },
{ config_id = 20002, shape = RegionShape.SPHERE, radius = 8, pos = { x = -129.601, y = 34.288, z = 49.288 } },
{ config_id = 20003, shape = RegionShape.SPHERE, radius = 3, pos = { x = -116.535, y = 41.383, z = 107.919 } },
{ config_id = 20004, shape = RegionShape.SPHERE, radius = 10, pos = { x = -94.280, y = 63.347, z = 152.057 } }
}
-- 触发器
triggers = {
{ config_id = 1020001, name = "ENTER_REGION_20001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_20001", action = "action_EVENT_ENTER_REGION_20001" },
{ config_id = 1020002, name = "ENTER_REGION_20002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_20002", action = "action_EVENT_ENTER_REGION_20002" },
{ config_id = 1020003, name = "ENTER_REGION_20003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_20003", action = "action_EVENT_ENTER_REGION_20003" },
{ config_id = 1020004, name = "ENTER_REGION_20004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_20004", action = "action_EVENT_ENTER_REGION_20004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 20001, 20002, 20003 },
triggers = { "ENTER_REGION_20001", "ENTER_REGION_20002", "ENTER_REGION_20003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_20001(context, evt)
if evt.param1 ~= 20001 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_20001(context, evt)
-- 调用提示id为 10530101 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 10530101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_20002(context, evt)
if evt.param1 ~= 20002 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_20002(context, evt)
-- 调用提示id为 10530103 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 10530103) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "icon1Appear" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "icon1Appear", 2, 201053021) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "icon2Appear" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "icon2Appear", 1, 201053021) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_20003(context, evt)
if evt.param1 ~= 20003 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_20003(context, evt)
-- 将本组内变量名为 "icon6Appear" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "icon6Appear", 2, 201053020) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_20004(context, evt)
if evt.param1 ~= 20004 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_20004(context, evt)
-- 调用提示id为 10530108 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 10530108) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end

View File

@@ -0,0 +1,461 @@
-- 基础信息
local base_info = {
group_id = 201053021
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- icon1
{ config_id = 21001, gadget_id = 70900201, pos = { x = -129.489, y = 34.289, z = 49.089 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
-- icon2
{ config_id = 21003, gadget_id = 70900201, pos = { x = -136.634, y = 37.292, z = 82.015 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
-- icon3
{ config_id = 21005, gadget_id = 70900201, pos = { x = -136.560, y = 38.532, z = 102.621 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
-- icon4
{ config_id = 21007, gadget_id = 70900201, pos = { x = -120.937, y = 48.324, z = 156.556 }, rot = { x = 0.000, y = 11.778, z = 0.000 }, level = 1 },
-- icon5
{ config_id = 21011, gadget_id = 70900201, pos = { x = -125.231, y = 47.073, z = 148.525 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
-- icon6
{ config_id = 21017, gadget_id = 70900201, pos = { x = -116.503, y = 41.382, z = 107.701 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 21016, shape = RegionShape.SPHERE, radius = 12, pos = { x = -136.634, y = 37.292, z = 82.015 } },
{ config_id = 21020, shape = RegionShape.SPHERE, radius = 10, pos = { x = -121.558, y = 47.374, z = 137.699 } },
{ config_id = 21021, shape = RegionShape.SPHERE, radius = 5, pos = { x = -125.233, y = 48.272, z = 148.418 } }
}
-- 触发器
triggers = {
{ config_id = 1021002, name = "VARIABLE_CHANGE_21002", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_21002", action = "action_EVENT_VARIABLE_CHANGE_21002", trigger_count = 0 },
{ config_id = 1021004, name = "VARIABLE_CHANGE_21004", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_21004", action = "action_EVENT_VARIABLE_CHANGE_21004", trigger_count = 0 },
{ config_id = 1021006, name = "VARIABLE_CHANGE_21006", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_21006", action = "action_EVENT_VARIABLE_CHANGE_21006", trigger_count = 0 },
{ config_id = 1021008, name = "VARIABLE_CHANGE_21008", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_21008", action = "action_EVENT_VARIABLE_CHANGE_21008", trigger_count = 0 },
{ config_id = 1021009, name = "VARIABLE_CHANGE_21009", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_21009", action = "action_EVENT_VARIABLE_CHANGE_21009", trigger_count = 0 },
{ config_id = 1021010, name = "VARIABLE_CHANGE_21010", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_21010", action = "action_EVENT_VARIABLE_CHANGE_21010", trigger_count = 0 },
{ config_id = 1021012, name = "VARIABLE_CHANGE_21012", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_21012", action = "action_EVENT_VARIABLE_CHANGE_21012", trigger_count = 0 },
{ config_id = 1021013, name = "VARIABLE_CHANGE_21013", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_21013", action = "action_EVENT_VARIABLE_CHANGE_21013", trigger_count = 0 },
{ config_id = 1021014, name = "VARIABLE_CHANGE_21014", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_21014", action = "action_EVENT_VARIABLE_CHANGE_21014", trigger_count = 0 },
{ config_id = 1021015, name = "VARIABLE_CHANGE_21015", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_21015", action = "action_EVENT_VARIABLE_CHANGE_21015", trigger_count = 0 },
{ config_id = 1021016, name = "ENTER_REGION_21016", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_21016", action = "action_EVENT_ENTER_REGION_21016" },
{ config_id = 1021018, name = "VARIABLE_CHANGE_21018", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_21018", action = "action_EVENT_VARIABLE_CHANGE_21018" },
{ config_id = 1021019, name = "VARIABLE_CHANGE_21019", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_21019", action = "action_EVENT_VARIABLE_CHANGE_21019" },
{ config_id = 1021020, name = "ENTER_REGION_21020", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_21020", action = "action_EVENT_ENTER_REGION_21020" },
{ config_id = 1021021, name = "ENTER_REGION_21021", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_21021", action = "action_EVENT_ENTER_REGION_21021", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "icon1Appear", value = 0, no_refresh = false },
{ config_id = 2, name = "icon2Appear", value = 0, no_refresh = false },
{ config_id = 3, name = "icon3Appear", value = 0, no_refresh = false },
{ config_id = 4, name = "icon4Appear", value = 0, no_refresh = false },
{ config_id = 5, name = "default", value = 0, no_refresh = false },
{ config_id = 6, name = "icon5Appear", value = 0, no_refresh = false },
{ config_id = 7, name = "icon6Appear", value = 0, no_refresh = false },
{ config_id = 8, name = "icon7Appear", value = 0, no_refresh = false },
{ config_id = 9, name = "icon8Appear", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 21016, 21020, 21021 },
triggers = { "VARIABLE_CHANGE_21002", "VARIABLE_CHANGE_21004", "VARIABLE_CHANGE_21006", "VARIABLE_CHANGE_21008", "VARIABLE_CHANGE_21009", "VARIABLE_CHANGE_21010", "VARIABLE_CHANGE_21012", "VARIABLE_CHANGE_21013", "VARIABLE_CHANGE_21014", "VARIABLE_CHANGE_21015", "ENTER_REGION_21016", "VARIABLE_CHANGE_21018", "VARIABLE_CHANGE_21019", "ENTER_REGION_21020", "ENTER_REGION_21021" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_21002(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"icon1Appear"为1
if ScriptLib.GetGroupVariableValue(context, "icon1Appear") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_21002(context, evt)
-- 创建id为21001的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 21001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_21004(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"icon2Appear"为1
if ScriptLib.GetGroupVariableValue(context, "icon2Appear") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_21004(context, evt)
-- 创建id为21003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 21003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_21006(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"icon3Appear"为1
if ScriptLib.GetGroupVariableValue(context, "icon3Appear") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_21006(context, evt)
-- 创建id为21005的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 21005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_21008(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"icon4Appear"为1
if ScriptLib.GetGroupVariableValue(context, "icon4Appear") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_21008(context, evt)
-- 创建id为21007的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 21007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_21009(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"icon4Appear"为2
if ScriptLib.GetGroupVariableValue(context, "icon4Appear") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_21009(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 21007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_21010(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"icon5Appear"为1
if ScriptLib.GetGroupVariableValue(context, "icon5Appear") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_21010(context, evt)
-- 创建id为21011的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 21011 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_21012(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"icon5Appear"为2
if ScriptLib.GetGroupVariableValue(context, "icon5Appear") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_21012(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 21011 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_21013(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"icon1Appear"为2
if ScriptLib.GetGroupVariableValue(context, "icon1Appear") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_21013(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 21001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_21014(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"icon2Appear"为2
if ScriptLib.GetGroupVariableValue(context, "icon2Appear") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_21014(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 21003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_21015(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"icon3Appear"为2
if ScriptLib.GetGroupVariableValue(context, "icon3Appear") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_21015(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 21005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_21016(context, evt)
if evt.param1 ~= 21016 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_21016(context, evt)
-- 将本组内变量名为 "icon2Appear" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValue(context, "icon2Appear", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_21018(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"icon6Appear"为1
if ScriptLib.GetGroupVariableValue(context, "icon6Appear") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_21018(context, evt)
-- 创建id为21017的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 21017 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_21019(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"icon6Appear"为2
if ScriptLib.GetGroupVariableValue(context, "icon6Appear") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_21019(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 21017 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_21020(context, evt)
if evt.param1 ~= 21020 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_21020(context, evt)
-- 将本组内变量名为 "icon4Appear" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "icon4Appear", 1, 201053021) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_21021(context, evt)
if evt.param1 ~= 21021 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_21021(context, evt)
-- 将本组内变量名为 "icon5Appear" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "icon5Appear", 2, 201053021) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end

View File

@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 201053022
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 22001, gadget_id = 70300123, pos = { x = -69.463, y = 18.704, z = 100.838 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 22001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,138 @@
-- 基础信息
local base_info = {
group_id = 201053023
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 23002, shape = RegionShape.SPHERE, radius = 8, pos = { x = -129.601, y = 34.288, z = 49.288 } },
{ config_id = 23003, shape = RegionShape.SPHERE, radius = 8, pos = { x = -132.565, y = 37.217, z = 65.114 } }
}
-- 触发器
triggers = {
{ config_id = 1023002, name = "ENTER_REGION_23002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_23002", action = "action_EVENT_ENTER_REGION_23002" },
{ config_id = 1023003, name = "ENTER_REGION_23003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_23003", action = "action_EVENT_ENTER_REGION_23003" }
}
-- 变量
variables = {
{ config_id = 1, name = "hasEntered", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 23002, 23003 },
triggers = { "ENTER_REGION_23002", "ENTER_REGION_23003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_23002(context, evt)
if evt.param1 ~= 23002 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"hasEntered"为1
if ScriptLib.GetGroupVariableValue(context, "hasEntered") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_23002(context, evt)
-- 将本组内变量名为 "hasEntered" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "hasEntered", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 地城失败结算
if 0 ~= ScriptLib.CauseDungeonFail(context) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cause_dungeonfail")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_23003(context, evt)
if evt.param1 ~= 23003 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"hasEntered"为0
if ScriptLib.GetGroupVariableValue(context, "hasEntered") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_23003(context, evt)
-- 将本组内变量名为 "hasEntered" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "hasEntered", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end

View File

@@ -0,0 +1,77 @@
-- 基础信息
local base_info = {
group_id = 201053024
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 24001, gadget_id = 70360046, pos = { x = -114.528, y = 45.786, z = 132.628 }, rot = { x = 0.000, y = 274.627, z = 0.000 }, level = 1 },
{ config_id = 24002, gadget_id = 70360046, pos = { x = -130.997, y = 40.294, z = 113.488 }, rot = { x = 0.000, y = 274.627, z = 0.000 }, level = 1 },
{ config_id = 24003, gadget_id = 70360046, pos = { x = -22.534, y = 65.168, z = 119.451 }, rot = { x = 0.000, y = 274.627, z = 0.000 }, level = 1 },
{ config_id = 24004, gadget_id = 70360046, pos = { x = -34.487, y = 63.952, z = 110.635 }, rot = { x = 0.000, y = 298.813, z = 0.000 }, level = 1 },
{ config_id = 24005, gadget_id = 70360046, pos = { x = -70.871, y = 56.043, z = 123.433 }, rot = { x = 0.000, y = 298.813, z = 0.000 }, level = 1 },
{ config_id = 24006, gadget_id = 70360046, pos = { x = -43.486, y = 56.043, z = 115.981 }, rot = { x = 0.000, y = 298.813, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 24001, 24002, 24003, 24004, 24005, 24006 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,294 @@
{
"areas": {},
"doors": {},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": -98.82579,
"y": -6.619677,
"z": 21.49289
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 50.0,
"heightType": "Center",
"length": 600.0,
"useHeight": true,
"width": 600.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"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": true
}
},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": -66.5836,
"y": 126.4652,
"z": 74.64559
},
"rot": {
"x": 0.0,
"y": 104.3791,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.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
},
"2": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": -129.6007,
"y": 34.28753,
"z": 49.28832
},
"rot": {
"x": 0.0,
"y": 351.9456,
"z": 0.0
},
"size": {
"x": 15.0,
"y": 15.0,
"z": 15.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
},
"3": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": -221.3806,
"y": 35.92903,
"z": 114.0525
},
"rot": {
"x": 0.0,
"y": 41.9539,
"z": 0.0
},
"size": {
"x": 15.0,
"y": 15.0,
"z": 15.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
},
"4": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": -221.3806,
"y": 35.92903,
"z": 114.0525
},
"rot": {
"x": 0.0,
"y": 73.6318,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 20.0,
"z": 20.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
},
"5": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": -221.3806,
"y": 35.92903,
"z": 114.0525
},
"rot": {
"x": 0.0,
"y": 141.2115,
"z": 0.0
},
"size": {
"x": 15.0,
"y": 15.0,
"z": 15.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
},
"6": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": -221.3806,
"y": 35.92903,
"z": 114.0525
},
"rot": {
"x": 0.0,
"y": 263.7819,
"z": 0.0
},
"size": {
"x": 15.0,
"y": 15.0,
"z": 15.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
}