添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions
@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -1024.0, z = -1024.0 },
size = { x = 2048.0, z = 2048.0 },
born_pos = { x = 37.313, y = 26.646, z = 166.600 },
born_rot = { x = 0.000, y = 181.506, z = 0.000 },
die_y = 7.9,
city_id = 1,
vision_anchor = { x = -1024.0, z = -1024.0 }
}
-- 所有的区块
blocks = { 20019 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -1024.0, z = -1024.0 }, max = { x = 1024.0, z = 1024.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,42 @@
{
"sceneId": 20019,
"routes": [
{
"localId": 20019001,
"name": "Route_20019001",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 15.1023579,
"y": 13.1895161,
"z": 52.3627548
},
"waitTime": 1.0,
"speedLevel": 1
},
{
"pos": {
"x": 12.8493948,
"y": 13.18952,
"z": 55.59588
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 11.2165508,
"y": 13.1895218,
"z": 60.784462
},
"waitTime": 0.0,
"speedLevel": 1
}
]
}
]
}
@@ -0,0 +1,9 @@
-- 所有的group
groups = {
{ id = 220019002, refresh_id = 1002, pos = { x = 12.499, y = 14.345, z = 41.532 } },
{ id = 220019004, refresh_id = 1002, pos = { x = 30.698, y = 12.980, z = 85.426 } },
{ id = 220019005, refresh_id = 1, pos = { x = 27.200, y = 13.235, z = 48.309 } },
{ id = 220019007, refresh_id = 1002, pos = { x = 8.591, y = 13.250, z = 47.885 } },
{ id = 220019008, refresh_id = 1001, pos = { x = 28.632, y = 13.016, z = 147.811 } },
{ id = 220019009, refresh_id = 1, pos = { x = 30.778, y = 13.017, z = 144.549 } }
}
@@ -0,0 +1,10 @@
dummy_points = {
["Q465Abyss1"] = { pos = { x = 18.226, y = 13.235, z = 49.161 }, rot = { x = 0.000, y = 189.230, z = 0.000 } },
["Q465Abyss2"] = { pos = { x = 16.965, y = 13.235, z = 49.771 }, rot = { x = 0.000, y = 337.800, z = 0.000 } },
["Q465Abyss3"] = { pos = { x = 14.978, y = 13.250, z = 52.188 }, rot = { x = 0.000, y = 342.850, z = 0.000 } },
["Q465AbyssDie"] = { pos = { x = 18.398, y = 13.235, z = 50.422 }, rot = { x = 0.000, y = 189.200, z = 0.000 } },
["Q465AbyssEmo1"] = { pos = { x = 18.226, y = 13.235, z = 49.161 }, rot = { x = 0.000, y = 189.230, z = 0.000 } },
["Q465Diluc3"] = { pos = { x = 18.039, y = 13.325, z = 47.178 }, rot = { x = 0.000, y = 7.442, z = 0.000 } },
["Q465Paimon3"] = { pos = { x = 19.928, y = 13.235, z = 48.095 }, rot = { x = 0.000, y = 310.510, z = 0.000 } },
["Q465Player1"] = { pos = { x = 19.269, y = 13.235, z = 47.268 }, rot = { x = 0.000, y = 331.441, z = 0.000 } }
}
@@ -0,0 +1,607 @@
-- 基础信息
local base_info = {
group_id = 220019002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2001, monster_id = 20010601, pos = { x = 3.089, y = 13.529, z = 40.959 }, rot = { x = 0.000, y = 32.624, z = 0.000 }, level = 1, affix = { 1007 }, isElite = true },
{ config_id = 2002, monster_id = 20010701, pos = { x = 11.473, y = 13.576, z = 41.634 }, rot = { x = 0.000, y = 353.593, z = 0.000 }, level = 1, affix = { 1007 }, isElite = true },
{ config_id = 2003, monster_id = 20010901, pos = { x = 18.111, y = 13.518, z = 37.991 }, rot = { x = 0.000, y = 339.936, z = 0.000 }, level = 1, affix = { 1007 }, isElite = true },
{ config_id = 2004, monster_id = 22010301, pos = { x = 28.237, y = 13.452, z = 48.351 }, rot = { x = 0.000, y = 269.972, z = 0.000 }, level = 1, affix = { 1008, 1011 }, isElite = true, special_name_id = 10003 },
{ config_id = 2005, monster_id = 20010601, pos = { x = 13.728, y = 13.250, z = 48.419 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2006, monster_id = 20010701, pos = { x = 9.010, y = 13.250, z = 48.143 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2007, monster_id = 20010801, pos = { x = 22.954, y = 13.059, z = 39.867 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2008, monster_id = 20010801, pos = { x = 18.323, y = 13.059, z = 39.996 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2009, monster_id = 20010801, pos = { x = 18.713, y = 13.059, z = 42.612 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2010, monster_id = 20010501, pos = { x = 5.249, y = 13.059, z = 41.135 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2011, monster_id = 20010501, pos = { x = 1.212, y = 13.059, z = 41.198 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2012, monster_id = 20010501, pos = { x = 4.987, y = 13.059, z = 43.358 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2013, gadget_id = 70310001, pos = { x = 11.487, y = 13.350, z = 48.645 }, rot = { x = 0.000, y = 106.910, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 18, shape = RegionShape.SPHERE, radius = 10.3, pos = { x = 11.500, y = 13.350, z = 49.119 } }
}
-- 触发器
triggers = {
{ config_id = 1000018, name = "ENTER_REGION_18", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_18", action = "action_EVENT_ENTER_REGION_18", forbid_guest = false },
{ config_id = 1000019, name = "ANY_MONSTER_DIE_19", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_19", action = "action_EVENT_ANY_MONSTER_DIE_19" },
{ config_id = 1000020, name = "ANY_MONSTER_DIE_20", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_20", action = "action_EVENT_ANY_MONSTER_DIE_20" },
{ config_id = 1000021, name = "ANY_MONSTER_DIE_21", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_21", action = "action_EVENT_ANY_MONSTER_DIE_21" },
{ config_id = 1000022, name = "ANY_MONSTER_DIE_22", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_22", action = "action_EVENT_ANY_MONSTER_DIE_22" },
{ config_id = 1000023, name = "ANY_MONSTER_DIE_23", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_23", action = "action_EVENT_ANY_MONSTER_DIE_23" },
{ config_id = 1000024, name = "SPECIFIC_MONSTER_HP_CHANGE_24", event = EventType.EVENT_SPECIFIC_MONSTER_HP_CHANGE, source = "2004", condition = "condition_EVENT_SPECIFIC_MONSTER_HP_CHANGE_24", action = "action_EVENT_SPECIFIC_MONSTER_HP_CHANGE_24" },
{ config_id = 1000051, name = "SPECIFIC_MONSTER_HP_CHANGE_51", event = EventType.EVENT_SPECIFIC_MONSTER_HP_CHANGE, source = "2004", condition = "condition_EVENT_SPECIFIC_MONSTER_HP_CHANGE_51", action = "action_EVENT_SPECIFIC_MONSTER_HP_CHANGE_51" },
{ config_id = 1000057, name = "ANY_MONSTER_DIE_57", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_57", action = "action_EVENT_ANY_MONSTER_DIE_57" },
{ config_id = 1000058, name = "ANY_MONSTER_DIE_58", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_58", action = "action_EVENT_ANY_MONSTER_DIE_58" },
{ config_id = 1000059, name = "ANY_MONSTER_DIE_59", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_59", action = "action_EVENT_ANY_MONSTER_DIE_59" },
{ config_id = 1000061, name = "VARIABLE_CHANGE_61", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_61", action = "action_EVENT_VARIABLE_CHANGE_61" },
{ config_id = 1000062, name = "VARIABLE_CHANGE_62", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_62", action = "action_EVENT_VARIABLE_CHANGE_62" },
{ config_id = 1000064, name = "ANY_MONSTER_DIE_64", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_64", action = "action_EVENT_ANY_MONSTER_DIE_64" },
{ config_id = 1000065, name = "ANY_MONSTER_DIE_65", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_65", action = "action_EVENT_ANY_MONSTER_DIE_65" },
{ config_id = 1000066, name = "ANY_MONSTER_DIE_66", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_66", action = "action_EVENT_ANY_MONSTER_DIE_66" },
{ config_id = 1000067, name = "VARIABLE_CHANGE_67", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_67", action = "action_EVENT_VARIABLE_CHANGE_67" }
}
-- 变量
variables = {
{ config_id = 1, name = "Boss", value = 0, no_refresh = false },
{ config_id = 2, name = "Badass_Lighting", value = 0, no_refresh = false },
{ config_id = 3, name = "Badass_Ice", value = 0, no_refresh = false },
{ config_id = 4, name = "Badass_Lighting2", value = 0, no_refresh = false },
{ config_id = 5, name = "Badass_Ice2", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 2007, 2008, 2009, 2010, 2011, 2012 },
gadgets = { 2013 },
regions = { 18 },
triggers = { "ENTER_REGION_18", "ANY_MONSTER_DIE_19", "ANY_MONSTER_DIE_20", "ANY_MONSTER_DIE_21", "ANY_MONSTER_DIE_22", "ANY_MONSTER_DIE_23", "SPECIFIC_MONSTER_HP_CHANGE_24", "SPECIFIC_MONSTER_HP_CHANGE_51", "ANY_MONSTER_DIE_57", "ANY_MONSTER_DIE_58", "ANY_MONSTER_DIE_59", "VARIABLE_CHANGE_61", "VARIABLE_CHANGE_62", "ANY_MONSTER_DIE_64", "ANY_MONSTER_DIE_65", "ANY_MONSTER_DIE_66", "VARIABLE_CHANGE_67" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_18(context, evt)
if evt.param1 ~= 18 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_18(context, evt)
-- 通知groupid为220019002中,configid为:67的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 67, 220019002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
-- 通知groupid为220019002中,configid为:2007的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 2007, 220019002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
-- 通知groupid为220019002中,configid为:2008的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 2008, 220019002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
-- 通知groupid为220019002中,configid为:2009的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 2009, 220019002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
-- 通知groupid为220019002中,configid为:2010的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 2010, 220019002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
-- 通知groupid为220019002中,configid为:2011的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 2011, 220019002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
-- 通知groupid为220019002中,configid为:2012的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 2012, 220019002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
-- 通知groupid为220019002中,configid为:74的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 74, 220019002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_19(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_19(context, evt)
-- 改变指定group组220019005中, configid为27的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220019005, 27, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 2004, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 通知groupid为220019002中,configid为:2004的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 2004, 220019002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
-- 触发镜头注目,注目位置为坐标(26,17,48),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=26, y=17, z=48}
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
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_20(context, evt)
if 2001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_20(context, evt)
-- 针对当前group内变量名为 "Boss" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Boss", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_21(context, evt)
if 2002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_21(context, evt)
-- 针对当前group内变量名为 "Boss" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Boss", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_22(context, evt)
if 2003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_22(context, evt)
-- 针对当前group内变量名为 "Boss" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Boss", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_23(context, evt)
if 2004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_23(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "DLK_Finish") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220019002, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SPECIFIC_MONSTER_HP_CHANGE_24(context, evt)
--[[判断指定configid的怪物的血量小于%66时触发指定后续操作]]--
if evt.type ~= EventType.EVENT_SPECIFIC_MONSTER_HP_CHANGE or evt.param3 > 66 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SPECIFIC_MONSTER_HP_CHANGE_24(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 2005, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 通知groupid为220019002中,configid为:2005的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 2005, 220019002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SPECIFIC_MONSTER_HP_CHANGE_51(context, evt)
--[[判断指定configid的怪物的血量小于%33时触发指定后续操作]]--
if evt.type ~= EventType.EVENT_SPECIFIC_MONSTER_HP_CHANGE or evt.param3 > 33 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SPECIFIC_MONSTER_HP_CHANGE_51(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 2006, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 通知groupid为220019002中,configid为:2006的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 2006, 220019002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_57(context, evt)
if 2010 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_57(context, evt)
-- 针对当前group内变量名为 "Badass_Lighting" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Badass_Lighting", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 针对当前group内变量名为 "Badass_Lighting2" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Badass_Lighting2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_58(context, evt)
if 2011 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_58(context, evt)
-- 针对当前group内变量名为 "Badass_Lighting" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Badass_Lighting", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 针对当前group内变量名为 "Badass_Lighting2" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Badass_Lighting2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_59(context, evt)
if 2012 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_59(context, evt)
-- 针对当前group内变量名为 "Badass_Lighting" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Badass_Lighting", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 针对当前group内变量名为 "Badass_Lighting2" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Badass_Lighting2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_61(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"Badass_Lighting"为2
if ScriptLib.GetGroupVariableValue(context, "Badass_Lighting") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_61(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 2001, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 通知groupid为220019002中,configid为:2001的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 2001, 220019002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_62(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"Badass_Lighting2"为6
if ScriptLib.GetGroupVariableValue(context, "Badass_Lighting2") ~= 6 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_62(context, evt)
-- 延迟3秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 2002, delay_time = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 通知groupid为220019002中,configid为:2002的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 2002, 220019002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_64(context, evt)
if 2007 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_64(context, evt)
-- 针对当前group内变量名为 "Badass_Ice" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Badass_Ice", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 针对当前group内变量名为 "Badass_Lighting2" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Badass_Lighting2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_65(context, evt)
if 2008 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_65(context, evt)
-- 针对当前group内变量名为 "Badass_Ice" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Badass_Ice", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 针对当前group内变量名为 "Badass_Lighting2" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Badass_Lighting2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_66(context, evt)
if 2009 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_66(context, evt)
-- 针对当前group内变量名为 "Badass_Ice" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Badass_Ice", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 针对当前group内变量名为 "Badass_Lighting2" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Badass_Lighting2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_67(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"Badass_Ice"为2
if ScriptLib.GetGroupVariableValue(context, "Badass_Ice") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_67(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 2003, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 通知groupid为220019002中,configid为:2003的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 2003, 220019002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
return 0
end
@@ -0,0 +1,524 @@
-- 基础信息
local base_info = {
group_id = 220019004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 4001, monster_id = 21010901, pos = { x = 6.188, y = 13.016, z = 70.593 }, rot = { x = 0.000, y = 0.894, z = 0.000 }, level = 1, pose_id = 32 },
{ config_id = 4002, monster_id = 21011001, pos = { x = 16.992, y = 13.016, z = 70.242 }, rot = { x = 0.000, y = 356.762, z = 0.000 }, level = 1, pose_id = 32 },
{ config_id = 4003, monster_id = 21020101, pos = { x = 32.067, y = 13.120, z = 87.740 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 4004, monster_id = 21010401, pos = { x = 28.730, y = 13.017, z = 94.580 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 402 },
{ config_id = 4005, monster_id = 21010401, pos = { x = 34.796, y = 13.016, z = 94.605 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 402 },
{ config_id = 4006, monster_id = 21010301, pos = { x = 33.578, y = 13.016, z = 85.628 }, rot = { x = 0.000, y = 348.640, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 4007, monster_id = 21010201, pos = { x = 28.233, y = 13.016, z = 104.536 }, rot = { x = 0.000, y = 95.454, z = 0.000 }, level = 1 },
{ config_id = 4008, monster_id = 21010201, pos = { x = 35.520, y = 13.016, z = 104.528 }, rot = { x = 0.000, y = 267.973, z = 0.000 }, level = 1 },
{ config_id = 4009, monster_id = 21010301, pos = { x = 29.883, y = 12.931, z = 85.806 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 4010, monster_id = 20010601, pos = { x = 17.203, y = 13.017, z = 72.909 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4011, monster_id = 20010901, pos = { x = 6.975, y = 13.016, z = 73.455 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4012, monster_id = 20010801, pos = { x = 8.098, y = 13.016, z = 74.549 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4013, monster_id = 20010801, pos = { x = 6.220, y = 13.016, z = 74.486 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4014, monster_id = 20010501, pos = { x = 18.081, y = 13.017, z = 73.963 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4015, monster_id = 20010501, pos = { x = 15.988, y = 13.017, z = 74.058 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4016, gadget_id = 70220007, pos = { x = 10.638, y = 13.120, z = 90.414 }, rot = { x = 0.000, y = 2.735, z = 0.000 }, level = 1 },
{ config_id = 4017, gadget_id = 70220007, pos = { x = 14.153, y = 13.120, z = 90.461 }, rot = { x = 0.000, y = 186.298, z = 0.000 }, level = 1 },
{ config_id = 4018, gadget_id = 70211001, pos = { x = 12.591, y = 12.987, z = 96.947 }, rot = { x = 0.000, y = 180.260, z = 0.000 }, level = 6, drop_tag = "战斗低级蒙德", isOneoff = true },
{ config_id = 4019, gadget_id = 70211001, pos = { x = 43.624, y = 26.549, z = 168.697 }, rot = { x = 0.000, y = 177.615, z = 0.000 }, level = 6, drop_tag = "战斗低级蒙德", isOneoff = true },
{ config_id = 4020, gadget_id = 70350002, pos = { x = 11.538, y = 12.957, z = 64.427 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4021, gadget_id = 70360002, pos = { x = 13.761, y = 13.016, z = 71.740 }, rot = { x = 0.000, y = 2.600, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 4022, gadget_id = 70350004, pos = { x = 31.817, y = 13.377, z = 89.081 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4023, gadget_id = 70310001, pos = { x = 36.887, y = 13.016, z = 104.396 }, rot = { x = 0.000, y = 279.976, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 4024, gadget_id = 70310001, pos = { x = 26.862, y = 13.017, z = 104.506 }, rot = { x = 0.000, y = 257.227, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 4025, gadget_id = 70211001, pos = { x = 31.207, y = 13.515, z = 66.984 }, rot = { x = 0.000, y = 338.525, z = 0.000 }, level = 6, drop_tag = "战斗低级蒙德", isOneoff = true },
{ config_id = 4026, gadget_id = 70220007, pos = { x = 29.158, y = 13.340, z = 69.996 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4027, gadget_id = 70220007, pos = { x = 26.955, y = 13.537, z = 67.219 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 4028, gadget_id = 70220007, pos = { x = 33.742, y = 13.266, z = 70.174 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4029, gadget_id = 70900201, pos = { x = 11.247, y = 17.167, z = 64.663 }, rot = { x = 0.000, y = 180.736, z = 0.000 }, level = 1 },
{ config_id = 4030, gadget_id = 70310002, pos = { x = 28.139, y = 14.857, z = 90.389 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 4031, gadget_id = 70310002, pos = { x = 35.526, y = 14.828, z = 90.082 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 4032, gadget_id = 70310002, pos = { x = 34.959, y = 15.648, z = 128.448 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 4033, gadget_id = 70310002, pos = { x = 28.082, y = 15.648, z = 128.448 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 4034, gadget_id = 70310001, pos = { x = 15.657, y = 13.048, z = 69.086 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 4035, gadget_id = 70310001, pos = { x = 7.496, y = 13.048, z = 69.314 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
{ config_id = 73, shape = RegionShape.CUBIC, size = { x = 12.000, y = 5.000, z = 5.000 }, pos = { x = 31.694, y = 15.001, z = 86.183 } },
{ config_id = 74, shape = RegionShape.CUBIC, size = { x = 12.000, y = 5.000, z = 5.000 }, pos = { x = 11.770, y = 15.354, z = 61.600 } }
}
-- 触发器
triggers = {
{ config_id = 1000016, name = "ANY_MONSTER_DIE_16", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_16", action = "action_EVENT_ANY_MONSTER_DIE_16" },
{ config_id = 1000017, name = "SELECT_OPTION_17", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_17", action = "action_EVENT_SELECT_OPTION_17", forbid_guest = false },
{ config_id = 1000036, name = "ANY_MONSTER_DIE_36", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_36", action = "action_EVENT_ANY_MONSTER_DIE_36" },
{ config_id = 1000037, name = "ANY_MONSTER_DIE_37", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_37", action = "action_EVENT_ANY_MONSTER_DIE_37" },
{ config_id = 1000038, name = "VARIABLE_CHANGE_38", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_38", action = "action_EVENT_VARIABLE_CHANGE_38" },
{ config_id = 1000039, name = "ANY_MONSTER_DIE_39", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_39", action = "action_EVENT_ANY_MONSTER_DIE_39" },
{ config_id = 1000040, name = "ANY_MONSTER_DIE_40", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_40", action = "action_EVENT_ANY_MONSTER_DIE_40" },
{ config_id = 1000042, name = "MONSTER_BATTLE_42", event = EventType.EVENT_MONSTER_BATTLE, source = "", condition = "condition_EVENT_MONSTER_BATTLE_42", action = "action_EVENT_MONSTER_BATTLE_42" },
{ config_id = 1000044, name = "MONSTER_BATTLE_44", event = EventType.EVENT_MONSTER_BATTLE, source = "", condition = "condition_EVENT_MONSTER_BATTLE_44", action = "action_EVENT_MONSTER_BATTLE_44" },
{ config_id = 1000045, name = "ANY_MONSTER_DIE_45", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_45", action = "action_EVENT_ANY_MONSTER_DIE_45" },
{ config_id = 1000046, name = "ANY_MONSTER_DIE_46", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_46", action = "action_EVENT_ANY_MONSTER_DIE_46" },
{ config_id = 1000047, name = "ANY_MONSTER_DIE_47", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_47", action = "action_EVENT_ANY_MONSTER_DIE_47" },
{ config_id = 1000048, name = "ANY_MONSTER_DIE_48", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_48", action = "action_EVENT_ANY_MONSTER_DIE_48" },
{ config_id = 1000073, name = "ENTER_REGION_73", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_73", action = "action_EVENT_ENTER_REGION_73" },
{ config_id = 1000074, name = "ENTER_REGION_74", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_74", action = "action_EVENT_ENTER_REGION_74" }
}
-- 变量
variables = {
{ config_id = 1, name = "2ndWave", value = 0, no_refresh = false },
{ config_id = 2, name = "Badass_Lighting", value = 0, no_refresh = false },
{ config_id = 3, name = "Badass_Ice", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 4001, 4002, 4004, 4005, 4007, 4008 },
gadgets = { 4016, 4017, 4018, 4019, 4020, 4021, 4022, 4023, 4024, 4025, 4026, 4027, 4028, 4030, 4031, 4032, 4033, 4034, 4035 },
regions = { 73, 74 },
triggers = { "ANY_MONSTER_DIE_16", "SELECT_OPTION_17", "ANY_MONSTER_DIE_36", "ANY_MONSTER_DIE_37", "VARIABLE_CHANGE_38", "ANY_MONSTER_DIE_39", "ANY_MONSTER_DIE_40", "MONSTER_BATTLE_42", "MONSTER_BATTLE_44", "ANY_MONSTER_DIE_45", "ANY_MONSTER_DIE_46", "ANY_MONSTER_DIE_47", "ANY_MONSTER_DIE_48", "ENTER_REGION_73", "ENTER_REGION_74" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_16(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220019004) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_16(context, evt)
-- 将configid为 4021 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4021, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220019004, 4021, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_17(context, evt)
-- 判断是gadgetid 4021 option_id 1
if 4021 ~= evt.param1 then
return false
end
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_17(context, evt)
-- 触发镜头注目,注目位置为坐标(12,17,65),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=12, y=17, z=65}
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
-- 将configid为 4020 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4020, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 220019004 ;指定config4021;物件身上指定option1
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220019004, 4021, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 4021 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4021, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_36(context, evt)
if 4007 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_36(context, evt)
-- 针对当前group内变量名为 "2ndWave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "2ndWave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_37(context, evt)
if 4008 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_37(context, evt)
-- 针对当前group内变量名为 "2ndWave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "2ndWave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_38(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"2ndWave"为4
if ScriptLib.GetGroupVariableValue(context, "2ndWave") ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_38(context, evt)
-- 将configid为 4022 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4022, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 4006, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 4009, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 4003, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 通知groupid为220019004中,configid为:4006的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 4006, 220019004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
-- 通知groupid为220019004中,configid为:4009的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 4009, 220019004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
-- 通知groupid为220019004中,configid为:4003的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 4003, 220019004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_39(context, evt)
if 4004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_39(context, evt)
-- 针对当前group内变量名为 "2ndWave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "2ndWave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_40(context, evt)
if 4005 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_40(context, evt)
-- 针对当前group内变量名为 "2ndWave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "2ndWave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_MONSTER_BATTLE_42(context, evt)
if 4001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_MONSTER_BATTLE_42(context, evt)
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 4012, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 4013, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_MONSTER_BATTLE_44(context, evt)
if 4002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_MONSTER_BATTLE_44(context, evt)
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 4014, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 4015, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_45(context, evt)
if 4014 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_45(context, evt)
-- 针对当前group内变量名为 "Badass_Lighting" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Badass_Lighting", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_46(context, evt)
if 4015 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_46(context, evt)
-- 针对当前group内变量名为 "Badass_Lighting" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Badass_Lighting", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_47(context, evt)
if 4012 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_47(context, evt)
-- 针对当前group内变量名为 "Badass_Ice" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Badass_Ice", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_48(context, evt)
if 4013 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_48(context, evt)
-- 针对当前group内变量名为 "Badass_Ice" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Badass_Ice", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_73(context, evt)
if evt.param1 ~= 73 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_73(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220019008, monsters = {}, gadgets = {8047} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创建id为4029的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 4029 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_74(context, evt)
if evt.param1 ~= 74 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_74(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220019004, monsters = {}, gadgets = {4029} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
return 0
end
@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 220019005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 27, gadget_id = 70350002, pos = { x = 26.320, y = 13.002, z = 48.429 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 27 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,104 @@
-- 基础信息
local base_info = {
group_id = 220019007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 30, monster_id = 22010301, pos = { x = 14.894, y = 13.235, z = 52.170 }, rot = { x = 0.000, y = 335.410, z = 0.000 }, level = 1, special_name_id = 10003 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000025, name = "ANY_MONSTER_DIE_25", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_25", action = "action_EVENT_ANY_MONSTER_DIE_25" }
}
-- 变量
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 = suite_2,
monsters = { 30 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_25" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_25(context, evt)
--判断死亡怪物的configid是否为 30
if evt.param1 ~= 30 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_25(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "SFDie") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,460 @@
-- 基础信息
local base_info = {
group_id = 220019008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 8001, monster_id = 20010501, pos = { x = 33.844, y = 13.017, z = 134.109 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8002, monster_id = 20010501, pos = { x = 34.921, y = 13.017, z = 133.428 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8003, monster_id = 20010601, pos = { x = 34.709, y = 13.016, z = 131.963 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8004, monster_id = 20010801, pos = { x = 27.583, y = 13.016, z = 134.946 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8005, monster_id = 20010801, pos = { x = 29.301, y = 13.017, z = 134.946 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8006, monster_id = 20010901, pos = { x = 28.976, y = 13.016, z = 133.047 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8007, gadget_id = 70350004, pos = { x = 31.619, y = 13.368, z = 127.507 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8008, gadget_id = 70360002, pos = { x = 24.223, y = 13.410, z = 137.082 }, rot = { x = 0.000, y = 357.131, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 8009, gadget_id = 70220013, pos = { x = 44.382, y = 26.606, z = 166.338 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8010, gadget_id = 70220013, pos = { x = 42.240, y = 26.606, z = 167.377 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8011, gadget_id = 70220013, pos = { x = 23.613, y = 13.516, z = 129.737 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8012, gadget_id = 70220013, pos = { x = 18.241, y = 13.516, z = 129.764 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8013, gadget_id = 70220014, pos = { x = 20.867, y = 13.516, z = 129.552 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8014, gadget_id = 70220014, pos = { x = 19.818, y = 13.517, z = 130.220 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8015, gadget_id = 70220014, pos = { x = 26.402, y = 13.027, z = 130.282 }, rot = { x = 349.147, y = 355.772, z = 21.436 }, level = 1 },
{ config_id = 8016, gadget_id = 70220014, pos = { x = 37.558, y = 13.016, z = 135.037 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8017, gadget_id = 70220014, pos = { x = 37.277, y = 13.017, z = 136.307 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8018, gadget_id = 70220013, pos = { x = 27.615, y = 13.016, z = 101.823 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8019, gadget_id = 70220013, pos = { x = 35.973, y = 13.016, z = 114.550 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8020, gadget_id = 70220013, pos = { x = 35.914, y = 13.017, z = 112.473 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8021, gadget_id = 70220013, pos = { x = 43.747, y = 13.016, z = 83.957 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8022, gadget_id = 70220013, pos = { x = 43.758, y = 13.016, z = 81.595 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8023, gadget_id = 70220013, pos = { x = 41.995, y = 13.017, z = 79.934 }, rot = { x = 0.000, y = 40.089, z = 0.000 }, level = 1 },
{ config_id = 8024, gadget_id = 70220013, pos = { x = 24.376, y = 13.016, z = 60.148 }, rot = { x = 0.000, y = 40.089, z = 0.000 }, level = 1 },
{ config_id = 8025, gadget_id = 70220013, pos = { x = 22.844, y = 13.016, z = 61.347 }, rot = { x = 0.000, y = 40.089, z = 0.000 }, level = 1 },
{ config_id = 8026, gadget_id = 70220013, pos = { x = 1.993, y = 12.981, z = 28.785 }, rot = { x = 0.000, y = 35.317, z = 0.000 }, level = 1 },
{ config_id = 8027, gadget_id = 70220013, pos = { x = -0.941, y = 12.922, z = 30.122 }, rot = { x = 0.000, y = 347.566, z = 0.000 }, level = 1 },
{ config_id = 8028, gadget_id = 70220013, pos = { x = 4.962, y = 13.017, z = 28.128 }, rot = { x = 0.000, y = 4.341, z = 0.000 }, level = 1 },
{ config_id = 8029, gadget_id = 70220013, pos = { x = 24.078, y = 13.016, z = 29.999 }, rot = { x = 0.000, y = 40.089, z = 0.000 }, level = 1 },
{ config_id = 8030, gadget_id = 70220013, pos = { x = 20.288, y = 12.978, z = 28.827 }, rot = { x = 0.000, y = 40.089, z = 0.000 }, level = 1 },
{ config_id = 8031, gadget_id = 70220013, pos = { x = -0.598, y = 13.200, z = 59.841 }, rot = { x = 0.000, y = 40.089, z = 0.000 }, level = 1 },
{ config_id = 8032, gadget_id = 70220014, pos = { x = 0.382, y = 13.200, z = 62.087 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8033, gadget_id = 70220014, pos = { x = 2.012, y = 13.200, z = 62.225 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8034, gadget_id = 70220014, pos = { x = 21.595, y = 12.995, z = 29.688 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8035, gadget_id = 70220014, pos = { x = 18.883, y = 13.016, z = 69.593 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8036, gadget_id = 70220014, pos = { x = 20.313, y = 13.016, z = 69.551 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8037, gadget_id = 70220014, pos = { x = 24.099, y = 13.342, z = 82.479 }, rot = { x = 90.000, y = 294.476, z = 0.000 }, level = 1 },
{ config_id = 8038, gadget_id = 70220014, pos = { x = 16.269, y = 13.273, z = 79.143 }, rot = { x = 270.000, y = 54.126, z = 0.000 }, level = 1 },
{ config_id = 8039, gadget_id = 70220013, pos = { x = 3.362, y = 13.212, z = 94.235 }, rot = { x = 0.000, y = 40.089, z = 0.000 }, level = 1 },
{ config_id = 8040, gadget_id = 70220013, pos = { x = 3.404, y = 13.212, z = 97.254 }, rot = { x = 0.000, y = 2.107, z = 0.000 }, level = 1 },
{ config_id = 8041, gadget_id = 70220013, pos = { x = 21.440, y = 13.212, z = 97.571 }, rot = { x = 0.000, y = 94.200, z = 0.000 }, level = 1 },
{ config_id = 8042, gadget_id = 70220013, pos = { x = 21.475, y = 13.212, z = 94.565 }, rot = { x = 0.000, y = 356.074, z = 0.000 }, level = 1 },
{ config_id = 8043, gadget_id = 70220014, pos = { x = 12.056, y = 13.245, z = 103.721 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8044, gadget_id = 70220014, pos = { x = 14.486, y = 13.245, z = 103.651 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8045, gadget_id = 70220014, pos = { x = 12.440, y = 13.501, z = 102.723 }, rot = { x = 358.967, y = 28.891, z = 259.932 }, level = 1 },
{ config_id = 8046, gadget_id = 70900201, pos = { x = 24.165, y = 14.710, z = 136.927 }, rot = { x = 0.000, y = 180.736, z = 0.000 }, level = 1 },
{ config_id = 8047, gadget_id = 70900201, pos = { x = 31.527, y = 14.603, z = 86.170 }, rot = { x = 0.000, y = 180.736, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 29, shape = RegionShape.SPHERE, radius = 7, pos = { x = 24.321, y = 13.016, z = 135.556 } },
{ config_id = 72, shape = RegionShape.CUBIC, size = { x = 20.000, y = 25.000, z = 20.000 }, pos = { x = 36.397, y = 25.353, z = 151.747 } }
}
-- 触发器
triggers = {
{ config_id = 1000026, name = "VARIABLE_CHANGE_26", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_26", action = "action_EVENT_VARIABLE_CHANGE_26" },
{ config_id = 1000027, name = "SELECT_OPTION_27", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_27", action = "action_EVENT_SELECT_OPTION_27", forbid_guest = false },
{ config_id = 1000029, name = "ENTER_REGION_29", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_29", action = "action_EVENT_ENTER_REGION_29", forbid_guest = false },
{ config_id = 1000030, name = "ANY_MONSTER_DIE_30", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_30", action = "action_EVENT_ANY_MONSTER_DIE_30" },
{ config_id = 1000031, name = "ANY_MONSTER_DIE_31", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_31", action = "action_EVENT_ANY_MONSTER_DIE_31" },
{ config_id = 1000032, name = "ANY_MONSTER_DIE_32", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_32", action = "action_EVENT_ANY_MONSTER_DIE_32" },
{ config_id = 1000033, name = "ANY_MONSTER_DIE_33", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_33", action = "action_EVENT_ANY_MONSTER_DIE_33" },
{ config_id = 1000034, name = "VARIABLE_CHANGE_34", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_34", action = "action_EVENT_VARIABLE_CHANGE_34" },
{ config_id = 1000035, name = "VARIABLE_CHANGE_35", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_35", action = "action_EVENT_VARIABLE_CHANGE_35" },
{ config_id = 1000070, name = "ANY_MONSTER_DIE_70", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_70", action = "action_EVENT_ANY_MONSTER_DIE_70" },
{ config_id = 1000071, name = "ANY_MONSTER_DIE_71", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_71", action = "action_EVENT_ANY_MONSTER_DIE_71" },
{ config_id = 1000072, name = "ENTER_REGION_72", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_72", action = "action_EVENT_ENTER_REGION_72" }
}
-- 变量
variables = {
{ config_id = 1, name = "Badass_Lighting", value = 0, no_refresh = false },
{ config_id = 2, name = "Badass_Ice", value = 0, no_refresh = false },
{ config_id = 3, name = "Switch", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8007, 8008, 8009, 8010, 8011, 8012, 8013, 8014, 8015, 8016, 8017, 8018, 8019, 8020, 8021, 8022, 8023, 8024, 8025, 8026, 8027, 8028, 8029, 8030, 8031, 8032, 8033, 8034, 8035, 8036, 8037, 8038, 8039, 8040, 8041, 8042, 8043, 8044, 8045 },
regions = { 29, 72 },
triggers = { "VARIABLE_CHANGE_26", "SELECT_OPTION_27", "ENTER_REGION_29", "ANY_MONSTER_DIE_30", "ANY_MONSTER_DIE_31", "ANY_MONSTER_DIE_32", "ANY_MONSTER_DIE_33", "VARIABLE_CHANGE_34", "VARIABLE_CHANGE_35", "ANY_MONSTER_DIE_70", "ANY_MONSTER_DIE_71", "ENTER_REGION_72" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_26(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"Switch"为2
if ScriptLib.GetGroupVariableValue(context, "Switch") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_26(context, evt)
-- 将configid为 8008 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220019008, 8008, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_27(context, evt)
-- 判断是gadgetid 8008 option_id 1
if 8008 ~= evt.param1 then
return false
end
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_27(context, evt)
-- 触发镜头注目,注目位置为坐标(31,17,128),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=31, y=17, z=128}
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
-- 将configid为 8007 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8007, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 220019008 ;指定config8008;物件身上指定option1
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220019008, 8008, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 8008 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8008, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为8047的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 8047 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_29(context, evt)
if evt.param1 ~= 29 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_29(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220019008, monsters = {}, gadgets = {8046} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 8001, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 8002, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 8004, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 8005, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 改变指定group组220019008中, configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220019008, 8008, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_30(context, evt)
if 8001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_30(context, evt)
-- 针对当前group内变量名为 "Badass_Lighting" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Badass_Lighting", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_31(context, evt)
if 8002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_31(context, evt)
-- 针对当前group内变量名为 "Badass_Lighting" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Badass_Lighting", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_32(context, evt)
if 8004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_32(context, evt)
-- 针对当前group内变量名为 "Badass_Ice" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Badass_Ice", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_33(context, evt)
if 8005 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_33(context, evt)
-- 针对当前group内变量名为 "Badass_Ice" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Badass_Ice", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_34(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"Badass_Lighting"为2
if ScriptLib.GetGroupVariableValue(context, "Badass_Lighting") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_34(context, evt)
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 8003, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_35(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"Badass_Ice"为2
if ScriptLib.GetGroupVariableValue(context, "Badass_Ice") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_35(context, evt)
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 8006, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_70(context, evt)
if 8003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_70(context, evt)
-- 针对当前group内变量名为 "Switch" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Switch", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_71(context, evt)
if 8006 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_71(context, evt)
-- 针对当前group内变量名为 "Switch" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Switch", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_72(context, evt)
if evt.param1 ~= 72 then return false end
-- 判断角色数量不少于0
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_72(context, evt)
-- 创建id为8046的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 8046 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,94 @@
-- 基础信息
local base_info = {
group_id = 220019009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9001, gadget_id = 70211021, pos = { x = 11.058, y = 13.250, z = 44.661 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 6, drop_tag = "战斗高级蒙德", isOneoff = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1009002, name = "DUNGEON_SETTLE_9002", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "condition_EVENT_DUNGEON_SETTLE_9002", action = "action_EVENT_DUNGEON_SETTLE_9002" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "DUNGEON_SETTLE_9002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_DUNGEON_SETTLE_9002(context, evt)
-- 判断副本成功
if 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_DUNGEON_SETTLE_9002(context, evt)
-- 创生gadget 9001
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 9001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
@@ -0,0 +1,338 @@
{
"areas": {},
"doors": {},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 100.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 29.97775,
"y": 3.188097,
"z": 100.4267
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 10.0,
"heightType": "Center",
"length": 200.0,
"useHeight": true,
"width": 200.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": false
},
"2": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 100.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 78.87954,
"y": 1.697569,
"z": 107.578
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 50.0,
"heightType": "Center",
"length": 150.0,
"useHeight": true,
"width": 20.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": false
},
"3": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 100.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": -43.88007,
"y": -4.469526,
"z": 99.69984
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 50.0,
"heightType": "Center",
"length": 200.0,
"useHeight": true,
"width": 50.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": false
},
"4": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 100.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 51.32536,
"y": -45.75874,
"z": 116.8988
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 100.0,
"heightType": "Center",
"length": 200.0,
"useHeight": true,
"width": 200.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "NoReviveRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
}
},
"forces": {},
"points": {
"1": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70120003,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 1.857493,
"y": 13.83728,
"z": 84.79531
},
"rot": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"size": {
"x": 80.0,
"y": 10.0,
"z": 10.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": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 11.76115,
"y": 13.18142,
"z": 38.7244
},
"rot": {
"x": 0.0,
"y": 0.0,
"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
},
"3": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70120003,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 29.43748,
"y": 13.00586,
"z": 156.708
},
"rot": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"size": {
"x": 40.0,
"y": 10.0,
"z": 40.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
}