添加配置表

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 = -100.0, z = -140.0 },
size = { x = 300.0, z = 260.0 },
born_pos = { x = 16.853, y = 40.586, z = 42.139 },
born_rot = { x = 0.000, y = 180.000, z = 0.000 },
die_y = -25.02457,
city_id = 1,
vision_anchor = { x = -100.0, z = -140.0 }
}
-- 所有的区块
blocks = { 43001 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -100.0, z = -140.0 }, max = { x = 200.0, z = 120.0 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,285 @@
{
"sceneId": 43001,
"routes": [
{
"localId": 1,
"name": "Route_001",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -22.1742516,
"y": 40.06795,
"z": -1.09263468
},
"waitTime": 0.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": -22.1742516,
"y": 44.4702454,
"z": -1.09263468
},
"waitTime": 0.0,
"targetVelocity": 2.0
}
]
},
{
"localId": 2,
"name": "Route_001",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -22.6046848,
"y": 42.0,
"z": -1.09263468
},
"waitTime": 0.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": -19.0460968,
"y": 42.0,
"z": -1.09263468
},
"waitTime": 0.0,
"targetVelocity": 2.0
}
]
},
{
"localId": 3,
"name": "Route_001",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -19.1032963,
"y": 40.06795,
"z": -1.09263468
},
"waitTime": 0.0,
"targetVelocity": 1.0
},
{
"pos": {
"x": -19.1032963,
"y": 44.4702454,
"z": -1.09263468
},
"waitTime": 0.0,
"targetVelocity": 1.0
}
]
},
{
"localId": 4,
"name": "Route_001",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 60.79252,
"y": 41.2481956,
"z": -55.6444359
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 60.79252,
"y": 44.4724579,
"z": -55.6444359
},
"waitTime": 0.0,
"targetVelocity": 3.0
}
]
},
{
"localId": 5,
"name": "Route_001",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 59.74661,
"y": 41.1317749,
"z": -55.6444359
},
"waitTime": 0.0,
"targetVelocity": 1.0
},
{
"pos": {
"x": 59.74661,
"y": 44.0870743,
"z": -55.6444359
},
"waitTime": 0.0,
"targetVelocity": 1.0
}
]
},
{
"localId": 6,
"name": "Route_001",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 58.5441628,
"y": 41.3292,
"z": -55.6444359
},
"waitTime": 0.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": 58.5441628,
"y": 44.4420547,
"z": -55.6444359
},
"waitTime": 0.0,
"targetVelocity": 2.0
}
]
},
{
"localId": 7,
"name": "Route_001",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 31.0305119,
"y": 41.4,
"z": -82.6050949
},
"waitTime": 0.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": 28.05938,
"y": 41.4,
"z": -82.6050949
},
"waitTime": 0.0,
"targetVelocity": 2.0
}
]
},
{
"localId": 8,
"name": "Route_001",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 31.0305119,
"y": 41.4,
"z": -71.02978
},
"waitTime": 0.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": 28.05938,
"y": 41.4,
"z": -71.02978
},
"waitTime": 0.0,
"targetVelocity": 2.0
}
]
},
{
"localId": 9,
"name": "Route_001",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 31.0305119,
"y": 42.47322,
"z": -71.02978
},
"waitTime": 0.0,
"targetVelocity": 1.0
},
{
"pos": {
"x": 28.05938,
"y": 42.47322,
"z": -71.02978
},
"waitTime": 0.0,
"targetVelocity": 1.0
}
]
},
{
"localId": 10,
"name": "Route_001",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 31.0305119,
"y": 42.3360443,
"z": -82.6050949
},
"waitTime": 0.0,
"targetVelocity": 1.0
},
{
"pos": {
"x": 28.05938,
"y": 42.3360443,
"z": -82.6050949
},
"waitTime": 0.0,
"targetVelocity": 1.0
}
]
}
]
}
@@ -0,0 +1,19 @@
-- 所有的group
groups = {
{ id = 243001001, refresh_id = 1002, pos = { x = 19.076, y = 40.016, z = -5.143 } },
{ id = 243001002, refresh_id = 1, pos = { x = -4.870, y = 40.078, z = -50.283 } },
{ id = 243001003, pos = { x = -31.161, y = 40.001, z = -96.481 } },
{ id = 243001004, refresh_id = 1002, pos = { x = 32.776, y = -19.530, z = -56.961 } },
{ id = 243001005, refresh_id = 1, pos = { x = 30.590, y = 40.000, z = -62.128 } },
{ id = 243001006, refresh_id = 1, pos = { x = 49.138, y = 40.000, z = -31.903 } },
{ id = 243001007, refresh_id = 1, pos = { x = 99.585, y = 40.013, z = -2.075 } },
{ id = 243001008, refresh_id = 1002, pos = { x = 97.143, y = 40.000, z = -2.348 } },
{ id = 243001009, refresh_id = 1002, pos = { x = -5.979, y = 40.001, z = -78.667 } },
{ id = 243001010, refresh_id = 1002, pos = { x = 0.415, y = 40.001, z = -50.478 } },
{ id = 243001011, refresh_id = 1002, pos = { x = 74.640, y = 40.001, z = -26.853 } },
{ id = 243001012, refresh_id = 1002, pos = { x = 10.046, y = 40.057, z = -59.219 } },
{ id = 243001013, refresh_id = 1, pos = { x = 40.000, y = 40.000, z = -28.000 } },
{ id = 243001014, refresh_id = 1, pos = { x = 25.775, y = 40.112, z = -55.410 } },
{ id = 243001016, refresh_id = 1001, pos = { x = 78.718, y = 39.880, z = -74.508 } },
{ id = 243001017, refresh_id = 1002, pos = { x = -32.710, y = 39.878, z = -28.700 } }
}
@@ -0,0 +1,396 @@
-- 基础信息
local base_info = {
group_id = 243001001
}
-- Trigger变量
local defs = {
gadget_1 = 1003,
group_1 = 243001001,
monster_1 = 1004,
monster_2 = 1005,
monster_3 = 1006,
monster_4 = 1007,
monster_5 = 1008,
monster_6 = 1011,
monster_7 = 1012,
monster_8 = 1014,
Region1 = 1015,
challenge1 = 1,
challenge_father = 999,
group_core = 243001005,
gadget_rune = 5017
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1004, monster_id = 21010201, pos = { x = 28.204, y = 40.120, z = -4.307 }, rot = { x = 0.000, y = 267.043, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 1005, monster_id = 21010201, pos = { x = 8.014, y = 40.100, z = -4.674 }, rot = { x = 0.000, y = 77.915, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 1006, monster_id = 21010701, pos = { x = 12.425, y = 40.120, z = -11.440 }, rot = { x = 0.000, y = 18.562, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 1007, monster_id = 21010701, pos = { x = 26.923, y = 40.001, z = -11.653 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 1008, monster_id = 21020201, pos = { x = 19.485, y = 40.003, z = -10.736 }, rot = { x = 0.000, y = 343.731, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 1011, monster_id = 21010601, pos = { x = 20.162, y = 40.000, z = 3.211 }, rot = { x = 0.000, y = 184.211, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 1012, monster_id = 21010601, pos = { x = 26.555, y = 40.000, z = 1.444 }, rot = { x = 0.000, y = 346.531, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 1014, monster_id = 21020201, pos = { x = 12.739, y = 40.000, z = 1.802 }, rot = { x = 0.000, y = 169.069, z = 0.000 }, level = 1, MonsterFlag = 55 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1003, gadget_id = 70360001, pos = { x = 18.526, y = 41.021, z = -2.752 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 1015, shape = RegionShape.CUBIC, size = { x = 70.000, y = 40.000, z = 60.000 }, pos = { x = 17.670, y = 40.001, z = -5.544 } }
}
-- 触发器
triggers = {
{ config_id = 1001001, name = "GADGET_CREATE_1001", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1001", action = "action_EVENT_GADGET_CREATE_1001" },
{ config_id = 1001002, name = "SELECT_OPTION_1002", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1002", action = "action_EVENT_SELECT_OPTION_1002", trigger_count = 0 },
{ config_id = 1001009, name = "CHALLENGE_SUCCESS_1009", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "1", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_1009" },
{ config_id = 1001010, name = "ANY_MONSTER_LIVE_1010", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_1010", action = "action_EVENT_ANY_MONSTER_LIVE_1010", trigger_count = 0 },
{ config_id = 1001013, name = "CHALLENGE_FAIL_1013", event = EventType.EVENT_CHALLENGE_FAIL, source = "1", condition = "", action = "action_EVENT_CHALLENGE_FAIL_1013", trigger_count = 0 },
{ config_id = 1001015, name = "LEAVE_REGION_1015", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_1015", action = "action_EVENT_LEAVE_REGION_1015", trigger_count = 0 },
{ config_id = 1001016, name = "ANY_MONSTER_DIE_1016", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_1016", action = "action_EVENT_ANY_MONSTER_DIE_1016", trigger_count = 0 },
{ config_id = 1001017, name = "VARIABLE_CHANGE_1017", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_1017", action = "action_EVENT_VARIABLE_CHANGE_1017", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "key", value = 0, no_refresh = false },
{ config_id = 2, name = "success", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1003 },
regions = { 1015 },
triggers = { "GADGET_CREATE_1001", "SELECT_OPTION_1002", "CHALLENGE_SUCCESS_1009", "ANY_MONSTER_LIVE_1010", "CHALLENGE_FAIL_1013", "LEAVE_REGION_1015", "ANY_MONSTER_DIE_1016", "VARIABLE_CHANGE_1017" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_1001(context, evt)
if defs.gadget_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1001(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_1, defs.gadget_1, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1002(context, evt)
-- 判断是gadgetid 1003 option_id 177
if defs.gadget_1 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1002(context, evt)
-- 创建编号为1(该怪物潮的识别id)的怪物潮,创建怪物总数为8,场上怪物最少3只,最多3只
if 0 ~= ScriptLib.AutoMonsterTide(context, 1, defs.group_1, {defs.monster_1,defs.monster_2,defs.monster_3,defs.monster_4,defs.monster_5,defs.monster_6,defs.monster_7,defs.monster_8}, 8, 5, 5) then
return -1
end
-- 删除指定group 243001001 ;指定config1003;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, defs.group_1, defs.gadget_1, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 1003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_1, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_1009(context, evt)
--销毁编号为1(该怪物潮的识别id)的怪物潮
if 0 ~= ScriptLib.KillMonsterTide(context, defs.group_1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_tide")
return -1
end
ScriptLib.ChangeGroupVariableValueByGroup(context, "runes", 1, defs.group_core)
ScriptLib.PrintContextLog(context, "符文计数+1")
-- 改变指定group组243001008中, configid为5000的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_core, defs.gadget_rune, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
ScriptLib.PrintContextLog(context, "1号符文射线!!!!!!!!")
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_1010(context, evt)
if defs.monster_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_1010(context, evt)
ScriptLib.ExecuteGroupLua(context, defs.group_core, "DefineFatherIndex",{defs.challenge_father})
ScriptLib.ExecuteGroupLua(context, defs.group_core, "DefineChildChallengeScore",{ 1, 1})
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AttachChildChallengeFromDiffGroup",{defs.challenge1, 233, 8})
-- 改变指定group组243001008中, configid为5000的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_core, defs.gadget_rune, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
ScriptLib.PrintContextLog(context, "1号符文点亮!!!!!!!!")
-- 调用提示id为 43001009 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_1013(context, evt)
--销毁编号为1(该怪物潮的识别id)的怪物潮
if 0 ~= ScriptLib.KillMonsterTide(context, defs.group_1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_tide")
return -1
end
-- 改变指定group组243001001中, configid为1003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_1, defs.gadget_1, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_1, defs.gadget_1, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 改变指定group组243001008中, configid为5000的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_core, defs.gadget_rune, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_1015(context, evt)
-- 判断是区域8011
if ScriptLib.GetRegionConfigId(context, { region_eid = evt.source_eid }) ~= defs.Region1 then
return false
end
-- 判断变量"success"为0
if ScriptLib.GetGroupVariableValue(context, "success") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_1015(context, evt)
--离开区域 挑战失败
ScriptLib.ExecuteGroupLua(context, defs.group_core, "StopChildChallengeFromDiffGroup", {defs.challenge1,0})
ScriptLib.PrintContextLog(context, "离开区域,挑战失败!!!!!!!!!!!")
-- 将本组内变量名为 "success" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "key", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
--销毁编号为1(该怪物潮的识别id)的怪物潮
if 0 ~= ScriptLib.KillMonsterTide(context, defs.group_1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_tide")
return -1
end
-- 改变指定group组243001001中, configid为1003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_1, defs.gadget_1, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_1, defs.gadget_1, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 改变指定group组243001008中, configid为5000的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_core, defs.gadget_rune, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_1016(context, evt)
if 0 >= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_1016(context, evt)
-- 针对当前group内变量名为 "key" 的变量,进行修改,变化值为 0
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "key", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
--ScriptLib.PrintContextLog(context, "怪物死亡"..key)
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddChildChallengeScore", {1})
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_1017(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"key"为8
if ScriptLib.GetGroupVariableValue(context, "key") ~= 8 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_1017(context, evt)
ScriptLib.ChangeGroupVariableValueByGroup(context, "runes", 1, defs.group_core)
ScriptLib.PrintContextLog(context, "符文计数+1")
-- 改变指定group组243001008中, configid为5000的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_core, defs.gadget_rune, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
ScriptLib.PrintContextLog(context, "1号符文射线!!!!!!!!")
-- 触发镜头注目,注目位置为坐标(0,0,0),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=18.5, y=52, z=-2.7}
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
@@ -0,0 +1,108 @@
-- 基础信息
local base_info = {
group_id = 243001002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70350245, pos = { x = 97.918, y = 40.500, z = -33.951 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2002, gadget_id = 70350245, pos = { x = 40.915, y = 40.500, z = 1.335 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2003, gadget_id = 70900205, pos = { x = -4.870, y = 38.774, z = -50.283 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2004, gadget_id = 70350246, pos = { x = 51.434, y = 40.500, z = -63.938 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2005, gadget_id = 70350246, pos = { x = -31.242, y = 40.500, z = -82.870 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2007, gadget_id = 70350245, pos = { x = 65.010, y = 40.500, z = -50.239 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2008, gadget_id = 70350247, pos = { x = -1.545, y = 40.500, z = -32.022 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2009, gadget_id = 70350247, pos = { x = -40.418, y = 40.500, z = -5.249 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2011, gadget_id = 70350245, pos = { x = 97.482, y = 40.500, z = -34.095 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2013, gadget_id = 70350246, pos = { x = 94.687, y = 40.500, z = -77.633 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2014, gadget_id = 70350246, pos = { x = -8.857, y = 40.500, z = -9.656 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2016, gadget_id = 70350247, pos = { x = -38.887, y = 40.500, z = -59.434 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2017, gadget_id = 70350247, pos = { x = 12.747, y = 40.500, z = -52.313 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2019, gadget_id = 70350245, pos = { x = -38.348, y = 40.500, z = -42.572 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2020, gadget_id = 70350245, pos = { x = 17.430, y = 40.500, z = -28.432 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2022, gadget_id = 70350246, pos = { x = 99.797, y = 40.500, z = -25.849 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2023, gadget_id = 70350246, pos = { x = 23.746, y = 40.500, z = -78.112 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2025, gadget_id = 70350247, pos = { x = -9.485, y = 40.500, z = -8.487 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2026, gadget_id = 70350247, pos = { x = 52.496, y = 40.500, z = -0.078 }, rot = { x = 0.000, y = 0.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 = { 2001, 2002, 2004, 2005, 2008, 2009 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 2007, 2011, 2013, 2014, 2016, 2017 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 2019, 2020, 2022, 2023, 2025, 2026 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,71 @@
-- 基础信息
local base_info = {
group_id = 243001003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,312 @@
-- 基础信息
local base_info = {
group_id = 243001004
}
-- Trigger变量
local defs = {
gadget_1 = 4001,
group_1 = 243001004,
monster_1 = 4007,
challenge_father = 999,
challenge1 = 120,
group_core = 243001005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 4007, monster_id = 25030201, pos = { x = 24.855, y = -19.559, z = -54.644 }, rot = { x = 0.000, y = 20.512, z = 0.000 }, level = 11, affix = { 1008 }, MonsterFlag = 55 },
{ config_id = 4008, monster_id = 25030201, pos = { x = 26.127, y = -19.512, z = -61.427 }, rot = { x = 0.000, y = 20.512, z = 0.000 }, level = 11, affix = { 1008 }, MonsterFlag = 55 },
{ config_id = 4009, monster_id = 25030301, pos = { x = 41.748, y = -19.559, z = -57.674 }, rot = { x = 0.000, y = 251.919, z = 0.000 }, level = 11, affix = { 1008 }, MonsterFlag = 55 },
{ config_id = 4010, monster_id = 25030301, pos = { x = 34.517, y = -19.559, z = -63.176 }, rot = { x = 0.000, y = 352.907, z = 0.000 }, level = 11, affix = { 1008 }, MonsterFlag = 55 },
{ config_id = 4011, monster_id = 25010701, pos = { x = 40.671, y = -19.558, z = -49.979 }, rot = { x = 0.000, y = 206.538, z = 0.000 }, level = 11, affix = { 1008 }, MonsterFlag = 55 },
{ config_id = 4012, monster_id = 23020101, pos = { x = 34.366, y = -19.558, z = -44.938 }, rot = { x = 0.000, y = 158.337, z = 0.000 }, level = 11, affix = { 1008 }, MonsterFlag = 55 },
{ config_id = 4013, monster_id = 23030101, pos = { x = 28.692, y = -19.559, z = -45.345 }, rot = { x = 0.000, y = 179.650, z = 0.000 }, level = 11, affix = { 1008 }, MonsterFlag = 55 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70360010, pos = { x = 32.471, y = -19.793, z = -52.041 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1004002, name = "GADGET_CREATE_4002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_4002", action = "action_EVENT_GADGET_CREATE_4002" },
{ config_id = 1004003, name = "SELECT_OPTION_4003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4003", action = "action_EVENT_SELECT_OPTION_4003", trigger_count = 0 },
{ config_id = 1004004, name = "ANY_MONSTER_DIE_4004", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4004", action = "action_EVENT_ANY_MONSTER_DIE_4004", trigger_count = 0 },
{ config_id = 1004005, name = "CHALLENGE_SUCCESS_4005", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "120", condition = "", action = "" },
{ config_id = 1004006, name = "CHALLENGE_FAIL_4006", event = EventType.EVENT_CHALLENGE_FAIL, source = "120", condition = "", action = "action_EVENT_CHALLENGE_FAIL_4006" },
{ config_id = 1004014, name = "ANY_MONSTER_LIVE_4014", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_4014", action = "action_EVENT_ANY_MONSTER_LIVE_4014", trigger_count = 0 },
{ config_id = 1004015, name = "ANY_MONSTER_DIE_4015", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4015", action = "action_EVENT_ANY_MONSTER_DIE_4015", trigger_count = 0 },
{ config_id = 1004016, name = "VARIABLE_CHANGE_4016", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_4016", action = "action_EVENT_VARIABLE_CHANGE_4016" },
{ config_id = 1004017, name = "DUNGEON_SETTLE_4017", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "", action = "action_EVENT_DUNGEON_SETTLE_4017" }
}
-- 变量
variables = {
{ config_id = 1, name = "key", value = 0, no_refresh = false },
{ config_id = 2, name = "key1", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4001 },
regions = { },
triggers = { "GADGET_CREATE_4002", "SELECT_OPTION_4003", "ANY_MONSTER_DIE_4004", "CHALLENGE_SUCCESS_4005", "CHALLENGE_FAIL_4006", "ANY_MONSTER_LIVE_4014", "ANY_MONSTER_DIE_4015", "VARIABLE_CHANGE_4016", "DUNGEON_SETTLE_4017" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 4007, 4008, 4009, 4010, 4011 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_4004", "CHALLENGE_SUCCESS_4005", "CHALLENGE_FAIL_4006" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 4012, 4013 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_4004", "CHALLENGE_SUCCESS_4005", "CHALLENGE_FAIL_4006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_4002(context, evt)
if defs.gadget_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_4002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_1, defs.gadget_1, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_4003(context, evt)
-- 判断是gadgetid 4001 option_id 7
if defs.gadget_1 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4003(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, defs.group_1, 2)
-- 删除指定group 243001004 ;指定config4001;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, defs.group_1, defs.gadget_1, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 4001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_1, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, defs.group_core, EntityType.GADGET, 5020 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4004(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, defs.group_1) ~= 0 then
return false
end
-- 判断变量"Key"为0
if ScriptLib.GetGroupVariableValue(context, "key") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4004(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, defs.group_1, 3)
-- 将本组内变量名为 "key" 的变量设置为 99
if 0 ~= ScriptLib.SetGroupVariableValue(context, "key", 99) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_4006(context, evt)
-- 改变指定group组243001013中, configid为4001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_1, defs.gadget_1, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_1, defs.gadget_1, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = defs.group_1, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_4014(context, evt)
if defs.monster_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_4014(context, evt)
ScriptLib.ExecuteGroupLua(context, defs.group_core, "DefineFatherIndex",{defs.challenge_father})
ScriptLib.ExecuteGroupLua(context, defs.group_core, "DefineChildChallengeScore",{ 1, 1})
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AttachChildChallengeFromDiffGroup",{defs.challenge1, 233, 7})
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4015(context, evt)
if 0 >= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4015(context, evt)
-- 针对当前group内变量名为 "key" 的变量,进行修改,变化值为 0
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "key1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
--ScriptLib.PrintContextLog(context, "怪物死亡"..key)
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddChildChallengeScore", {1})
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_4016(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"key1"为7
if ScriptLib.GetGroupVariableValue(context, "key1") ~= 7 then
return false
end
-- 判断变量"success"为0
if ScriptLib.GetGroupVariableValueByGroup(context, "success", 243001005) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_4016(context, evt)
-- 针对当前group内变量名为 "f1" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "success", 1, defs.group_core) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_DUNGEON_SETTLE_4017(context, evt)
ScriptLib.StopGallery(context, 7007, false)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, defs.group_1, 3)
return 0
end
@@ -0,0 +1,596 @@
-- 基础信息
local base_info = {
group_id = 243001005
}
-- Trigger变量
local defs = {
group_1 = 243001005,
gadget_switch = 5013,
gadget_floor = 5016,
challenge_father = 999
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5004, gadget_id = 70360159, pos = { x = 32.272, y = 69.000, z = -45.694 }, rot = { x = 0.000, y = 86.380, z = 0.000 }, level = 1, mark_flag = 2 },
{ config_id = 5010, gadget_id = 70900201, pos = { x = 31.932, y = 41.574, z = -45.538 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5013, gadget_id = 70360164, pos = { x = 32.272, y = 40.100, z = -45.694 }, rot = { x = 0.000, y = 31.000, z = 0.000 }, level = 1, mark_flag = 4 },
{ config_id = 5016, gadget_id = 70350244, pos = { x = 31.800, y = 39.380, z = -54.210 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 5017, gadget_id = 70360161, pos = { x = 18.500, y = 40.000, z = -2.700 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5018, gadget_id = 70360160, pos = { x = 74.600, y = 40.000, z = -71.325 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5019, gadget_id = 70360162, pos = { x = -36.300, y = 40.000, z = -28.300 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5020, gadget_id = 70900201, pos = { x = 32.364, y = -19.558, z = -51.899 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 5005, shape = RegionShape.SPHERE, radius = 5, pos = { x = 16.867, y = 0.000, z = -62.055 } },
{ config_id = 5007, shape = RegionShape.CUBIC, size = { x = 45.000, y = 1.000, z = 45.000 }, pos = { x = 29.468, y = 29.433, z = -54.303 } },
-- 开启父挑战
{ config_id = 5014, shape = RegionShape.CUBIC, size = { x = 40.000, y = 20.000, z = 2.000 }, pos = { x = 17.218, y = 46.994, z = 15.193 } }
}
-- 触发器
triggers = {
{ config_id = 1005001, name = "CHALLENGE_FAIL_5001", event = EventType.EVENT_CHALLENGE_FAIL, source = "999", condition = "", action = "action_EVENT_CHALLENGE_FAIL_5001" },
{ config_id = 1005002, name = "TIME_AXIS_PASS_5002", event = EventType.EVENT_TIME_AXIS_PASS, source = "randball", condition = "", action = "action_EVENT_TIME_AXIS_PASS_5002", trigger_count = 0 },
{ config_id = 1005003, name = "VARIABLE_CHANGE_5003", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_5003", action = "action_EVENT_VARIABLE_CHANGE_5003", trigger_count = 0 },
{ config_id = 1005005, name = "ENTER_REGION_5005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5005", action = "" },
{ config_id = 1005006, name = "SELECT_OPTION_5006", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5006", action = "action_EVENT_SELECT_OPTION_5006", trigger_count = 0 },
{ config_id = 1005007, name = "ENTER_REGION_5007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5007", action = "action_EVENT_ENTER_REGION_5007" },
{ config_id = 1005008, name = "VARIABLE_CHANGE_5008", event = EventType.EVENT_VARIABLE_CHANGE, source = "AddTime", condition = "condition_EVENT_VARIABLE_CHANGE_5008", action = "action_EVENT_VARIABLE_CHANGE_5008", trigger_count = 0 },
{ config_id = 1005009, name = "TIMER_EVENT_5009", event = EventType.EVENT_TIMER_EVENT, source = "floor", condition = "", action = "action_EVENT_TIMER_EVENT_5009" },
{ config_id = 1005011, name = "GADGET_CREATE_5011", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_5011", action = "action_EVENT_GADGET_CREATE_5011" },
{ config_id = 1005012, name = "SELECT_OPTION_5012", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5012", action = "action_EVENT_SELECT_OPTION_5012", trigger_count = 0 },
-- 开启父挑战
{ config_id = 1005014, name = "ENTER_REGION_5014", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5014", action = "action_EVENT_ENTER_REGION_5014" },
{ config_id = 1005015, name = "CHALLENGE_FAIL_5015", event = EventType.EVENT_CHALLENGE_FAIL, source = "", condition = "condition_EVENT_CHALLENGE_FAIL_5015", action = "action_EVENT_CHALLENGE_FAIL_5015", trigger_count = 0 },
{ config_id = 1005021, name = "VARIABLE_CHANGE_5021", event = EventType.EVENT_VARIABLE_CHANGE, source = "runes", condition = "", action = "action_EVENT_VARIABLE_CHANGE_5021", trigger_count = 0, tag = "901" },
-- 符文激活1
{ config_id = 1005022, name = "VARIABLE_CHANGE_5022", event = EventType.EVENT_VARIABLE_CHANGE, source = "runes", condition = "condition_EVENT_VARIABLE_CHANGE_5022", action = "action_EVENT_VARIABLE_CHANGE_5022" },
-- 符文激活2
{ config_id = 1005023, name = "VARIABLE_CHANGE_5023", event = EventType.EVENT_VARIABLE_CHANGE, source = "runes", condition = "condition_EVENT_VARIABLE_CHANGE_5023", action = "action_EVENT_VARIABLE_CHANGE_5023" },
-- 符文激活3
{ config_id = 1005024, name = "VARIABLE_CHANGE_5024", event = EventType.EVENT_VARIABLE_CHANGE, source = "runes", condition = "condition_EVENT_VARIABLE_CHANGE_5024", action = "action_EVENT_VARIABLE_CHANGE_5024" },
{ config_id = 1005025, name = "GADGET_STATE_CHANGE_5025", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_5025", action = "action_EVENT_GADGET_STATE_CHANGE_5025", tag = "902" },
{ config_id = 1005026, name = "VARIABLE_CHANGE_5026", event = EventType.EVENT_VARIABLE_CHANGE, source = "success", condition = "", action = "action_EVENT_VARIABLE_CHANGE_5026", tag = "903" }
}
-- 变量
variables = {
{ config_id = 1, name = "runes", value = 0, no_refresh = false },
{ config_id = 2, name = "AddTime", value = 0, no_refresh = false },
{ config_id = 3, name = "success", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5004, 5013, 5016, 5017, 5018, 5019 },
regions = { 5005, 5014 },
triggers = { "CHALLENGE_FAIL_5001", "TIME_AXIS_PASS_5002", "VARIABLE_CHANGE_5003", "ENTER_REGION_5005", "SELECT_OPTION_5006", "VARIABLE_CHANGE_5008", "TIMER_EVENT_5009", "GADGET_CREATE_5011", "SELECT_OPTION_5012", "ENTER_REGION_5014", "CHALLENGE_FAIL_5015", "VARIABLE_CHANGE_5021", "VARIABLE_CHANGE_5022", "VARIABLE_CHANGE_5023", "VARIABLE_CHANGE_5024", "GADGET_STATE_CHANGE_5025", "VARIABLE_CHANGE_5026" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 5013, 5016 },
regions = { },
triggers = { "SELECT_OPTION_5012" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_5001(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243001004, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243001001, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243001008, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243001009, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243001010, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243001011, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243001016, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243001017, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 挑战失败触发结算
if 0 ~= ScriptLib.FailMistTrialDungeonChallenge(context, 999) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : 结束挑战失败!!!!")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_5002(context, evt)
-- 重新生成指定group,默认为独立随机
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 243001002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_randall")
return -1
end
ScriptLib.PrintContextLog(context, "随机球已经刷新!!!!!!!!")
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_5003(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 == evt.param2 then return false end
-- 判断变量"runes"为3
if ScriptLib.GetGroupVariableValue(context, "runes") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5003(context, evt)
-- 删除指定group 243001005 ;指定config5013;物件身上指定option30
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, defs.group_1, defs.gadget_switch, 58) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将本组内变量名为 "runes" 的变量设置为 99
if 0 ~= ScriptLib.SetGroupVariableValue(context, "runes", 99) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_1, defs.gadget_switch, {59}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 创建id为5008的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
--子挑战 打开地板
ScriptLib.AttachChildChallenge(context, 999, 902, 230, {7,902,1,1},{},{success=1,fail=1})
ScriptLib.PrintContextLog(context, "操作台子挑战挂载!!!!!!!!")
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_5005(context, evt)
if evt.param1 ~= 5005 then return false end
-- 判断变量"runes"为3
if ScriptLib.GetGroupVariableValue(context, "runes") ~= 3 then
return false
end
return true
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5006(context, evt)
-- 判断是gadgetid 5013 option_id 30
if defs.gadget_switch ~= evt.param1 then
return false
end
if 58 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5006(context, evt)
-- 调用提示id为 31040202 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_5007(context, evt)
if evt.param1 ~= 5007 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_5007(context, evt)
--修改天气为地城前半段效果
--ScriptLib.SetWeatherAreaState(context, 10017 ,1)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_5008(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"AddTime"为1
if ScriptLib.GetGroupVariableValue(context, "AddTime") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5008(context, evt)
--修改父挑战时间
ScriptLib.ModifyFatherChallengeProperty(context, defs.challenge_father, FatherChallengeProperty.DURATION, 300)
-- 变量"AddTime"赋值为0
ScriptLib.SetGroupVariableValue(context, "AddTime", 0)
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_5009(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 243001005, EntityType.GADGET, 5016 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_5011(context, evt)
if defs.gadget_switch ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_5011(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_1, defs.gadget_switch, {58}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
ScriptLib.PrintContextLog(context, "操作台选项!!!!!!!!")
-- 创建标识为"randball",时间节点为{30}的时间轴,true用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "randball", {30}, true)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5012(context, evt)
-- 判断是gadgetid 5013 option_id 7
if defs.gadget_switch ~= evt.param1 then
return false
end
if 59 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5012(context, evt)
-- 延迟2秒后,向groupId为:243001005的对象,请求一次调用,并将string参数:"floor" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 243001005, "floor", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 触发镜头注目,注目位置为坐标(0,0,0),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=31.8, y=40.2, z=-53.6}
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为 5016 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5016, GadgetState.Default) 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 = 5010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 创建id为5020的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5020 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 删除指定group 243002005 ;指定config5013;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 243001005, 5013, 59) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
--子挑战 完成最终试练
ScriptLib.AttachChildChallenge(context, 999, 903, 231, {3,903,1,1},{},{success=99999,fail=1})
ScriptLib.PrintContextLog(context, "操作台子挑战挂载!!!!!!!!")
-- 调用提示id为 43001011 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001011) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_5014(context, evt)
if evt.param1 ~= 5014 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_5014(context, evt)
ScriptLib.CreateFatherChallenge(context, 999, 228, 900, {success = 99999, fail = 99999, fail_on_wipe=true})
ScriptLib.AttachChildChallenge(context, 999, 901, 229, {3,901,3,1},{},{success=0,fail=0})
ScriptLib.StartFatherChallenge(context, 999)
ScriptLib.StartGallery(context, 7007)
-- 使灭队event失效
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "AvatarDie", 1, 243001014) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_CHALLENGE_FAIL_5015(context, evt)
if evt.param1 == 228 then
return false
end
return true
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_5015(context, evt)
-- 调用提示id为 43001010 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001010) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5021(context, evt)
if evt.param1 == evt.param2 then return -1 end
ScriptLib.PrintContextLog(context, "符文计数改变了!!!!!!!!!!!!")
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_5022(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"runes"为1
if ScriptLib.GetGroupVariableValue(context, "runes") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5022(context, evt)
-- 调用提示id为 43001002 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_5023(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"runes"为2
if ScriptLib.GetGroupVariableValue(context, "runes") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5023(context, evt)
-- 调用提示id为 43001003 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001003) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_5024(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"runes"为3
if ScriptLib.GetGroupVariableValue(context, "runes") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5024(context, evt)
-- 调用提示id为 43001004 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_5025(context, evt)
if 5016 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_5025(context, evt)
return 0
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5026(context, evt)
if evt.param1 == evt.param2 then return -1 end
ScriptLib.PrintContextLog(context, "中控室光翼展开!!!!!!!!")
return 0
end
require "AttachChildChallenge"
@@ -0,0 +1,91 @@
-- 基础信息
local base_info = {
group_id = 243001006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6001, gadget_id = 70350215, pos = { x = 57.241, y = 39.999, z = -8.118 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 6002, gadget_id = 70350215, pos = { x = 72.616, y = 40.011, z = -53.088 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 6003, gadget_id = 70360100, pos = { x = -18.812, y = 40.960, z = -0.927 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, route_id = 3 },
{ config_id = 6004, gadget_id = 70360100, pos = { x = -22.270, y = 43.096, z = -0.927 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, route_id = 1 },
{ config_id = 6005, gadget_id = 70360100, pos = { x = -20.773, y = 42.019, z = -0.927 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, route_id = 2 },
{ config_id = 6006, gadget_id = 70360100, pos = { x = 60.764, y = 43.859, z = -55.606 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, route_id = 4 },
{ config_id = 6007, gadget_id = 70360100, pos = { x = 59.750, y = 42.821, z = -55.697 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, route_id = 5 },
{ config_id = 6008, gadget_id = 70360100, pos = { x = 58.615, y = 44.623, z = -55.576 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, route_id = 6 },
{ config_id = 6009, gadget_id = 70360100, pos = { x = 30.915, y = 42.371, z = -82.479 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, route_id = 10 },
{ config_id = 6010, gadget_id = 70360100, pos = { x = 28.383, y = 41.729, z = -82.479 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, route_id = 7 },
{ config_id = 6011, gadget_id = 70360100, pos = { x = 28.383, y = 41.729, z = -70.738 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, route_id = 8 },
{ config_id = 6012, gadget_id = 70360100, pos = { x = 30.861, y = 42.241, z = -70.738 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, route_id = 9 },
{ config_id = 6013, gadget_id = 70220011, pos = { x = 24.614, y = 40.018, z = -10.054 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6014, gadget_id = 70220011, pos = { x = 11.825, y = 40.020, z = -9.887 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6015, gadget_id = 70220011, pos = { x = 78.690, y = 40.018, z = -80.751 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6016, gadget_id = 70220011, pos = { x = 69.512, y = 40.001, z = -69.654 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6017, gadget_id = 70220011, pos = { x = -29.006, y = 40.000, z = -25.057 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6018, gadget_id = 70220011, pos = { x = -40.334, y = 40.000, z = -33.077 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6019, gadget_id = 70220011, pos = { x = 27.441, y = -19.559, z = -56.565 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6020, gadget_id = 70220011, pos = { x = 37.670, y = -19.556, z = -47.362 }, rot = { x = 0.000, y = 0.000, 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 = { 6001, 6002, 6003, 6004, 6005, 6006, 6007, 6008, 6009, 6010, 6011, 6012, 6013, 6014, 6015, 6016, 6017, 6018, 6019, 6020 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,597 @@
-- 基础信息
local base_info = {
group_id = 243001008
}
-- Trigger变量
local defs = {
group_main = 243001007,
group_1 = 243001008,
monster_1 = 8001,
monster_2 = 8006,
gadget_main = 7001,
challenge1 = 101,
challenge2 = 102,
Region1 = 8011,
Region2 = 8016,
challenge_father = 999,
group_core = 243001005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 8001, monster_id = 20011001, pos = { x = 105.614, y = 40.001, z = -6.713 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 8002, monster_id = 20011001, pos = { x = 98.345, y = 40.007, z = -11.837 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 8003, monster_id = 20011001, pos = { x = 88.195, y = 40.011, z = -6.017 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 8004, monster_id = 22010301, pos = { x = 91.087, y = 40.026, z = 3.309 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 8005, monster_id = 21030101, pos = { x = 91.865, y = 40.002, z = -12.325 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 8006, monster_id = 21011201, pos = { x = 86.956, y = 40.002, z = -8.814 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 8007, monster_id = 21011201, pos = { x = 100.351, y = 40.001, z = 5.767 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 8008, monster_id = 21030401, pos = { x = 98.260, y = 40.020, z = -13.013 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 8009, monster_id = 21010401, pos = { x = 108.913, y = 40.022, z = -7.879 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 8010, monster_id = 21010401, pos = { x = 89.283, y = 39.999, z = 4.827 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 8020, monster_id = 21030101, pos = { x = 87.620, y = 40.000, z = -1.382 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 8021, monster_id = 21020301, pos = { x = 86.471, y = 40.000, z = -1.603 }, rot = { x = 0.000, y = 95.236, z = 0.000 }, level = 1, MonsterFlag = 55 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8019, gadget_id = 70900205, pos = { x = 105.767, y = 37.382, z = -3.059 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 8011, shape = RegionShape.CUBIC, size = { x = 50.000, y = 40.000, z = 45.000 }, pos = { x = 93.796, y = 40.000, z = -4.566 } },
{ config_id = 8016, shape = RegionShape.CUBIC, size = { x = 50.000, y = 40.000, z = 45.000 }, pos = { x = 93.796, y = 40.000, z = -4.566 } }
}
-- 触发器
triggers = {
{ config_id = 1008011, name = "LEAVE_REGION_8011", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_8011", action = "action_EVENT_LEAVE_REGION_8011", trigger_count = 0 },
{ config_id = 1008012, name = "CHALLENGE_FAIL_8012", event = EventType.EVENT_CHALLENGE_FAIL, source = "", condition = "", action = "action_EVENT_CHALLENGE_FAIL_8012", trigger_count = 0 },
{ config_id = 1008013, name = "CHALLENGE_SUCCESS_8013", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_8013" },
{ config_id = 1008014, name = "ANY_MONSTER_LIVE_8014", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_8014", action = "action_EVENT_ANY_MONSTER_LIVE_8014", trigger_count = 0 },
{ config_id = 1008015, name = "ANY_MONSTER_LIVE_8015", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_8015", action = "action_EVENT_ANY_MONSTER_LIVE_8015" },
{ config_id = 1008016, name = "LEAVE_REGION_8016", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_8016", action = "action_EVENT_LEAVE_REGION_8016", trigger_count = 0 },
{ config_id = 1008017, name = "CHALLENGE_SUCCESS_8017", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "", condition = "", action = "" },
{ config_id = 1008018, name = "CHALLENGE_FAIL_8018", event = EventType.EVENT_CHALLENGE_FAIL, source = "", condition = "", action = "action_EVENT_CHALLENGE_FAIL_8018", trigger_count = 0 },
{ config_id = 1008022, name = "VARIABLE_CHANGE_8022", event = EventType.EVENT_VARIABLE_CHANGE, source = "key", condition = "condition_EVENT_VARIABLE_CHANGE_8022", action = "action_EVENT_VARIABLE_CHANGE_8022", trigger_count = 0 },
{ config_id = 1008023, name = "ANY_MONSTER_DIE_8023", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_8023", action = "action_EVENT_ANY_MONSTER_DIE_8023", trigger_count = 0 },
{ config_id = 1008024, name = "VARIABLE_CHANGE_8024", event = EventType.EVENT_VARIABLE_CHANGE, source = "key", condition = "condition_EVENT_VARIABLE_CHANGE_8024", action = "action_EVENT_VARIABLE_CHANGE_8024", trigger_count = 0 },
{ config_id = 1008025, name = "ANY_MONSTER_DIE_8025", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_8025", action = "action_EVENT_ANY_MONSTER_DIE_8025", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "c1", value = 0, no_refresh = false },
{ config_id = 2, name = "key", value = 0, no_refresh = false },
{ config_id = 3, name = "success", value = 0, no_refresh = false },
{ config_id = 4, name = "Gflag", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8019 },
regions = { },
triggers = { },
rand_weight = 0
},
{
-- suite_id = 2,
-- description = ,
monsters = { 8001, 8002, 8003, 8004, 8005, 8020 },
gadgets = { },
regions = { 8011 },
triggers = { "LEAVE_REGION_8011", "CHALLENGE_FAIL_8012", "CHALLENGE_SUCCESS_8013", "ANY_MONSTER_LIVE_8014", "VARIABLE_CHANGE_8024", "ANY_MONSTER_DIE_8025" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 8006, 8007, 8008, 8009, 8010, 8021 },
gadgets = { },
regions = { 8016 },
triggers = { "ANY_MONSTER_LIVE_8015", "LEAVE_REGION_8016", "CHALLENGE_SUCCESS_8017", "CHALLENGE_FAIL_8018", "VARIABLE_CHANGE_8022", "ANY_MONSTER_DIE_8023" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_LEAVE_REGION_8011(context, evt)
-- 判断是区域8011
if ScriptLib.GetRegionConfigId(context, { region_eid = evt.source_eid }) ~= defs.Region1 then
return false
end
-- 判断变量"success"为0
if ScriptLib.GetGroupVariableValue(context, "success") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_8011(context, evt)
--离开区域 挑战失败
ScriptLib.ExecuteGroupLua(context, defs.group_core, "StopChildChallengeFromDiffGroup", {defs.challenge1,0})
ScriptLib.PrintContextLog(context, "离开区域,挑战失败!!!!!!!!!!!")
-- 针对当前group内变量名为 "f1" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "f1", 1, defs.group_main) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, defs.group_1, 2)
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_8012(context, evt)
-- 针对当前group内变量名为 "f1" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "f1", 1, defs.group_main) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, defs.group_1, 2)
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_8013(context, evt)
-- 改变指定group组243001008中, configid为5000的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 243001008, 5000, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_8014(context, evt)
if defs.monster_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_8014(context, evt)
--向编号999的父挑战挂接子挑战
ScriptLib.ExecuteGroupLua(context, defs.group_core, "DefineFatherIndex",{defs.challenge_father})
ScriptLib.ExecuteGroupLua(context, defs.group_core, "DefineChildChallengeScore",{ 1, 1})
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AttachChildChallengeFromDiffGroup",{defs.challenge1, 233, 6})
-- 调用提示id为 43001009 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_8015(context, evt)
if defs.monster_2 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_8015(context, evt)
--向编号999的父挑战挂接子挑战
ScriptLib.ExecuteGroupLua(context, defs.group_core, "DefineFatherIndex",{defs.challenge_father})
ScriptLib.ExecuteGroupLua(context, defs.group_core, "DefineChildChallengeScore",{ 1, 1})
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AttachChildChallengeFromDiffGroup",{defs.challenge1, 233, 6})
-- 调用提示id为 43001009 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_8016(context, evt)
-- 判断是区域8011
if ScriptLib.GetRegionConfigId(context, { region_eid = evt.source_eid }) ~= defs.Region2 then
return false
end
-- 判断变量"success"为0
if ScriptLib.GetGroupVariableValue(context, "success") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_8016(context, evt)
--离开区域 挑战失败
ScriptLib.ExecuteGroupLua(context, defs.group_core, "StopChildChallengeFromDiffGroup", {defs.challenge1,0})
ScriptLib.PrintContextLog(context, "离开区域,挑战失败!!!!!!!!!!!")
-- 针对当前group内变量名为 "f1" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "f1", 1, defs.group_main) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, defs.group_1, 3)
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_8018(context, evt)
-- 针对当前group内变量名为 "f1" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "f1", 1, defs.group_main) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, defs.group_1, 3)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_8022(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"key"为6
if ScriptLib.GetGroupVariableValue(context, "key") ~= 6 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_8022(context, evt)
-- 将本组内变量名为 "success" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "success", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
--【修改父挑战时间】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 1 then
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>1")
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "AddTime", 1, defs.group_core) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
ScriptLib.PrintContextLog(context, "父挑战时间已经修改")
end
--【复活】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 2 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 0)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>2")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加攻击】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 3 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 1)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>3")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加移速】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 4 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 2)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>4")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【复活2】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 5 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 3)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>2")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加攻击2】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 6 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 4)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>3")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加移速2】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 7 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 5)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>4")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_8023(context, evt)
--检查configeID是否大于0
if 0 >= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_8023(context, evt)
-- 针对当前group内变量名为 "key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "key", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
--通知父挑战积分+1
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddChildChallengeScore", {1})
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_8024(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"key"为6
if ScriptLib.GetGroupVariableValue(context, "key") ~= 6 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_8024(context, evt)
-- 将本组内变量名为 "success" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "success", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
--【修改父挑战时间】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 1 then
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>1")
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "AddTime", 1, defs.group_core) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
ScriptLib.PrintContextLog(context, "父挑战时间已经修改")
end
--【复活】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 2 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 0)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>2")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加攻击】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 3 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 1)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>3")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加移速】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 4 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 2)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>4")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【复活2】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 5 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 3)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>2")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加攻击2】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 6 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 4)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>3")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加移速2】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 7 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 5)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>4")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_8025(context, evt)
--检查configeID是否大于0
if 0 >= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_8025(context, evt)
-- 针对当前group内变量名为 "key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "key", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
--通知父挑战积分+1
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddChildChallengeScore", {1})
return 0
end
@@ -0,0 +1,588 @@
-- 基础信息
local base_info = {
group_id = 243001009
}
-- Trigger变量
local defs = {
group_main = 243001007,
group_1 = 243001009,
monster_1 = 9001,
monster_2 = 9006,
challenge1 = 201,
challenge2 = 202,
Region1 = 9011,
Region2 = 9019,
challenge_father = 999,
group_core = 243001005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 9001, monster_id = 20011001, pos = { x = 1.353, y = 40.001, z = -72.591 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 9002, monster_id = 20011001, pos = { x = 6.627, y = 40.000, z = -78.852 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 9003, monster_id = 20011001, pos = { x = 1.789, y = 40.000, z = -82.490 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 9004, monster_id = 20011101, pos = { x = -14.759, y = 40.000, z = -76.059 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 9005, monster_id = 21030101, pos = { x = -10.365, y = 40.080, z = -82.657 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 9006, monster_id = 26010201, pos = { x = 3.434, y = 40.006, z = -75.129 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 9007, monster_id = 20011201, pos = { x = -12.395, y = 40.001, z = -74.057 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 9008, monster_id = 20011201, pos = { x = -5.544, y = 40.018, z = -70.386 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 9009, monster_id = 20011201, pos = { x = 4.186, y = 40.080, z = -79.530 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 9010, monster_id = 20011201, pos = { x = -6.608, y = 40.060, z = -83.777 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 9020, monster_id = 21030101, pos = { x = -9.535, y = 40.000, z = -72.102 }, rot = { x = 0.000, y = 81.669, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 9021, monster_id = 21020201, pos = { x = -13.706, y = 40.060, z = -76.887 }, rot = { x = 0.000, y = 99.185, z = 0.000 }, level = 1, MonsterFlag = 55 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9018, gadget_id = 70900205, pos = { x = 1.932, y = 39.276, z = -84.580 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 9011, shape = RegionShape.CUBIC, size = { x = 80.000, y = 40.000, z = 35.000 }, pos = { x = -2.860, y = 50.505, z = -77.655 } },
{ config_id = 9019, shape = RegionShape.CUBIC, size = { x = 80.000, y = 40.000, z = 35.000 }, pos = { x = -2.860, y = 50.505, z = -77.655 } }
}
-- 触发器
triggers = {
{ config_id = 1009011, name = "LEAVE_REGION_9011", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_9011", action = "action_EVENT_LEAVE_REGION_9011", trigger_count = 0 },
{ config_id = 1009012, name = "CHALLENGE_FAIL_9012", event = EventType.EVENT_CHALLENGE_FAIL, source = "", condition = "", action = "action_EVENT_CHALLENGE_FAIL_9012", trigger_count = 0 },
{ config_id = 1009013, name = "CHALLENGE_SUCCESS_9013", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "", condition = "", action = "" },
{ config_id = 1009014, name = "ANY_MONSTER_LIVE_9014", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_9014", action = "action_EVENT_ANY_MONSTER_LIVE_9014" },
{ config_id = 1009015, name = "ANY_MONSTER_LIVE_9015", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_9015", action = "action_EVENT_ANY_MONSTER_LIVE_9015" },
{ config_id = 1009016, name = "CHALLENGE_SUCCESS_9016", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "", condition = "", action = "" },
{ config_id = 1009017, name = "CHALLENGE_FAIL_9017", event = EventType.EVENT_CHALLENGE_FAIL, source = "", condition = "", action = "action_EVENT_CHALLENGE_FAIL_9017", trigger_count = 0 },
{ config_id = 1009019, name = "LEAVE_REGION_9019", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_9019", action = "action_EVENT_LEAVE_REGION_9019", trigger_count = 0 },
{ config_id = 1009022, name = "ANY_MONSTER_DIE_9022", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_9022", action = "action_EVENT_ANY_MONSTER_DIE_9022", trigger_count = 0 },
{ config_id = 1009023, name = "VARIABLE_CHANGE_9023", event = EventType.EVENT_VARIABLE_CHANGE, source = "key", condition = "condition_EVENT_VARIABLE_CHANGE_9023", action = "action_EVENT_VARIABLE_CHANGE_9023", trigger_count = 0 },
{ config_id = 1009024, name = "ANY_MONSTER_DIE_9024", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_9024", action = "action_EVENT_ANY_MONSTER_DIE_9024", trigger_count = 0 },
{ config_id = 1009025, name = "VARIABLE_CHANGE_9025", event = EventType.EVENT_VARIABLE_CHANGE, source = "key", condition = "condition_EVENT_VARIABLE_CHANGE_9025", action = "action_EVENT_VARIABLE_CHANGE_9025", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "c2", value = 0, no_refresh = false },
{ config_id = 2, name = "key", value = 0, no_refresh = false },
{ config_id = 3, name = "success", value = 0, no_refresh = false },
{ config_id = 4, name = "Gflag", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 9018 },
regions = { },
triggers = { },
rand_weight = 0
},
{
-- suite_id = 2,
-- description = ,
monsters = { 9001, 9002, 9003, 9004, 9005, 9020 },
gadgets = { },
regions = { 9011 },
triggers = { "LEAVE_REGION_9011", "CHALLENGE_FAIL_9012", "CHALLENGE_SUCCESS_9013", "ANY_MONSTER_LIVE_9014", "ANY_MONSTER_DIE_9022", "VARIABLE_CHANGE_9023" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 9006, 9007, 9008, 9009, 9010, 9021 },
gadgets = { },
regions = { 9019 },
triggers = { "ANY_MONSTER_LIVE_9015", "CHALLENGE_SUCCESS_9016", "CHALLENGE_FAIL_9017", "LEAVE_REGION_9019", "ANY_MONSTER_DIE_9024", "VARIABLE_CHANGE_9025" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_LEAVE_REGION_9011(context, evt)
-- 判断是区域8011
if ScriptLib.GetRegionConfigId(context, { region_eid = evt.source_eid }) ~= defs.Region1 then
return false
end
-- 判断变量"success"为0
if ScriptLib.GetGroupVariableValue(context, "success") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_9011(context, evt)
--离开区域 挑战失败
ScriptLib.ExecuteGroupLua(context, defs.group_core, "StopChildChallengeFromDiffGroup", {defs.challenge1,0})
ScriptLib.PrintContextLog(context, "离开区域,挑战失败!!!!!!!!!!!")
-- 针对当前group内变量名为 "f1" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "f2", 1, defs.group_main) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, defs.group_1, 2)
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_9012(context, evt)
-- 针对当前group内变量名为 "f1" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "f2", 1, defs.group_main) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, defs.group_1, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_9014(context, evt)
if defs.monster_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_9014(context, evt)
--向编号999的父挑战挂接子挑战
ScriptLib.ExecuteGroupLua(context, defs.group_core, "DefineFatherIndex",{defs.challenge_father})
ScriptLib.ExecuteGroupLua(context, defs.group_core, "DefineChildChallengeScore",{ 1, 1})
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AttachChildChallengeFromDiffGroup",{defs.challenge1, 233, 6})
-- 调用提示id为 43001009 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_9015(context, evt)
if defs.monster_2 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_9015(context, evt)
--向编号999的父挑战挂接子挑战
ScriptLib.ExecuteGroupLua(context, defs.group_core, "DefineFatherIndex",{defs.challenge_father})
ScriptLib.ExecuteGroupLua(context, defs.group_core, "DefineChildChallengeScore",{ 1, 1})
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AttachChildChallengeFromDiffGroup",{defs.challenge1, 233, 6})
-- 调用提示id为 43001009 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_9017(context, evt)
-- 针对当前group内变量名为 "f1" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "f2", 1, defs.group_main) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, defs.group_1, 3)
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_9019(context, evt)
-- 判断是区域8011
if ScriptLib.GetRegionConfigId(context, { region_eid = evt.source_eid }) ~= defs.Region2 then
return false
end
-- 判断变量"success"为0
if ScriptLib.GetGroupVariableValue(context, "success") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_9019(context, evt)
--离开区域 挑战失败
ScriptLib.ExecuteGroupLua(context, defs.group_core, "StopChildChallengeFromDiffGroup", {defs.challenge1,0})
ScriptLib.PrintContextLog(context, "离开区域,挑战失败!!!!!!!!!!!")
-- 针对当前group内变量名为 "f1" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "f2", 1, defs.group_main) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, defs.group_1, 3)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_9022(context, evt)
--检查configeID是否大于0
if 0 >= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_9022(context, evt)
-- 针对当前group内变量名为 "key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "key", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
--通知父挑战积分+1
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddChildChallengeScore", {1})
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_9023(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"key"为6
if ScriptLib.GetGroupVariableValue(context, "key") ~= 6 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_9023(context, evt)
-- 将本组内变量名为 "success" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "success", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
--【修改父挑战时间】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 1 then
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>1")
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "AddTime", 1, defs.group_core) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
ScriptLib.PrintContextLog(context, "父挑战时间已经修改")
end
--【复活】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 2 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 0)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>2")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加攻击】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 3 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 1)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>3")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加移速】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 4 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 2)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>4")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【复活2】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 5 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 3)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>2")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加攻击2】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 6 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 4)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>3")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加移速2】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 7 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 5)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>4")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_9024(context, evt)
--检查configeID是否大于0
if 0 >= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_9024(context, evt)
-- 针对当前group内变量名为 "key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "key", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
--通知父挑战积分+1
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddChildChallengeScore", {1})
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_9025(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"key"为6
if ScriptLib.GetGroupVariableValue(context, "key") ~= 6 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_9025(context, evt)
-- 将本组内变量名为 "success" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "success", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
--【修改父挑战时间】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 1 then
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>1")
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "AddTime", 1, defs.group_core) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
ScriptLib.PrintContextLog(context, "父挑战时间已经修改")
end
--【复活】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 2 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 0)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>2")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加攻击】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 3 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 1)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>3")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加移速】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 4 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 2)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>4")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【复活2】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 5 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 3)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>2")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加攻击2】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 6 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 4)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>3")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加移速2】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 7 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 5)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>4")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
return 0
end
@@ -0,0 +1,590 @@
-- 基础信息
local base_info = {
group_id = 243001010
}
-- Trigger变量
local defs = {
group_main = 243001007,
group_1 = 243001010,
monster_1 = 10007,
monster_2 = 10001,
challenge1 = 301,
challenge2 = 302,
Region1 = 10012,
Region2 = 10020,
challenge_father = 999,
group_core = 243001005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 10001, monster_id = 20010801, pos = { x = -4.175, y = 40.100, z = -57.558 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 10002, monster_id = 20010801, pos = { x = -10.142, y = 40.000, z = -55.996 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 10003, monster_id = 20010801, pos = { x = -13.284, y = 40.001, z = -50.421 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 10004, monster_id = 20010801, pos = { x = -11.015, y = 40.000, z = -44.735 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 10005, monster_id = 21020201, pos = { x = 4.033, y = 40.001, z = -50.270 }, rot = { x = 0.000, y = 235.683, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 10006, monster_id = 20010901, pos = { x = 4.832, y = 40.000, z = -47.188 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 10007, monster_id = 20011201, pos = { x = -8.019, y = 40.009, z = -43.973 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 10008, monster_id = 20011201, pos = { x = -1.089, y = 40.020, z = -42.902 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 10009, monster_id = 20011201, pos = { x = -0.147, y = 40.001, z = -58.363 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 10010, monster_id = 20011201, pos = { x = -7.465, y = 40.000, z = -57.137 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 10011, monster_id = 26010201, pos = { x = -11.174, y = 40.002, z = -50.617 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 10021, monster_id = 26010101, pos = { x = 4.630, y = 40.029, z = -55.916 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10019, gadget_id = 70900205, pos = { x = -5.471, y = 39.317, z = -55.742 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 10012, shape = RegionShape.CUBIC, size = { x = 65.000, y = 40.000, z = 50.000 }, pos = { x = -5.105, y = 40.000, z = -46.412 } },
{ config_id = 10020, shape = RegionShape.CUBIC, size = { x = 65.000, y = 40.000, z = 50.000 }, pos = { x = -5.105, y = 40.000, z = -46.412 } }
}
-- 触发器
triggers = {
{ config_id = 1010012, name = "LEAVE_REGION_10012", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_10012", action = "action_EVENT_LEAVE_REGION_10012", trigger_count = 0 },
{ config_id = 1010013, name = "CHALLENGE_FAIL_10013", event = EventType.EVENT_CHALLENGE_FAIL, source = "", condition = "", action = "action_EVENT_CHALLENGE_FAIL_10013", trigger_count = 0 },
{ config_id = 1010014, name = "CHALLENGE_SUCCESS_10014", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "", condition = "", action = "" },
{ config_id = 1010015, name = "ANY_MONSTER_LIVE_10015", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_10015", action = "action_EVENT_ANY_MONSTER_LIVE_10015" },
{ config_id = 1010016, name = "ANY_MONSTER_LIVE_10016", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_10016", action = "action_EVENT_ANY_MONSTER_LIVE_10016" },
{ config_id = 1010017, name = "CHALLENGE_FAIL_10017", event = EventType.EVENT_CHALLENGE_FAIL, source = "", condition = "", action = "action_EVENT_CHALLENGE_FAIL_10017", trigger_count = 0 },
{ config_id = 1010018, name = "CHALLENGE_SUCCESS_10018", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "", condition = "", action = "" },
{ config_id = 1010020, name = "LEAVE_REGION_10020", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_10020", action = "action_EVENT_LEAVE_REGION_10020", trigger_count = 0 },
{ config_id = 1010022, name = "ANY_MONSTER_DIE_10022", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_10022", action = "action_EVENT_ANY_MONSTER_DIE_10022", trigger_count = 0 },
{ config_id = 1010023, name = "VARIABLE_CHANGE_10023", event = EventType.EVENT_VARIABLE_CHANGE, source = "key", condition = "condition_EVENT_VARIABLE_CHANGE_10023", action = "action_EVENT_VARIABLE_CHANGE_10023", trigger_count = 0 },
{ config_id = 1010024, name = "ANY_MONSTER_DIE_10024", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_10024", action = "action_EVENT_ANY_MONSTER_DIE_10024", trigger_count = 0 },
{ config_id = 1010025, name = "VARIABLE_CHANGE_10025", event = EventType.EVENT_VARIABLE_CHANGE, source = "key", condition = "condition_EVENT_VARIABLE_CHANGE_10025", action = "action_EVENT_VARIABLE_CHANGE_10025", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "c3", value = 0, no_refresh = false },
{ config_id = 2, name = "key", value = 0, no_refresh = false },
{ config_id = 3, name = "success", value = 0, no_refresh = false },
{ config_id = 4, name = "Gflag", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 10019 },
regions = { },
triggers = { },
rand_weight = 0
},
{
-- suite_id = 2,
-- description = ,
monsters = { 10005, 10007, 10008, 10009, 10010, 10011 },
gadgets = { },
regions = { 10012 },
triggers = { "LEAVE_REGION_10012", "CHALLENGE_FAIL_10013", "CHALLENGE_SUCCESS_10014", "ANY_MONSTER_LIVE_10015", "ANY_MONSTER_DIE_10022", "VARIABLE_CHANGE_10023" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 10001, 10002, 10003, 10004, 10006, 10021 },
gadgets = { },
regions = { 10020 },
triggers = { "ANY_MONSTER_LIVE_10016", "CHALLENGE_FAIL_10017", "CHALLENGE_SUCCESS_10018", "LEAVE_REGION_10020", "ANY_MONSTER_DIE_10024", "VARIABLE_CHANGE_10025" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_LEAVE_REGION_10012(context, evt)
-- 判断是区域8011
if ScriptLib.GetRegionConfigId(context, { region_eid = evt.source_eid }) ~= defs.Region1 then
return false
end
-- 判断变量"success"为0
if ScriptLib.GetGroupVariableValue(context, "success") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_10012(context, evt)
--离开区域 挑战失败
ScriptLib.ExecuteGroupLua(context, defs.group_core, "StopChildChallengeFromDiffGroup", {defs.challenge1,0})
ScriptLib.PrintContextLog(context, "离开区域,挑战失败!!!!!!!!!!!")
-- 针对当前group内变量名为 "f1" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "f3", 1, defs.group_main) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, defs.group_1, 2)
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_10013(context, evt)
-- 针对当前group内变量名为 "f1" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "f3", 1, defs.group_main) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, defs.group_1, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_10015(context, evt)
if defs.monster_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_10015(context, evt)
--向编号999的父挑战挂接子挑战
ScriptLib.ExecuteGroupLua(context, defs.group_core, "DefineFatherIndex",{defs.challenge_father})
ScriptLib.ExecuteGroupLua(context, defs.group_core, "DefineChildChallengeScore",{ 1, 1})
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AttachChildChallengeFromDiffGroup",{defs.challenge1, 233, 6})
-- 调用提示id为 43001009 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_10016(context, evt)
if defs.monster_2 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_10016(context, evt)
--向编号999的父挑战挂接子挑战
ScriptLib.ExecuteGroupLua(context, defs.group_core, "DefineFatherIndex",{defs.challenge_father})
ScriptLib.ExecuteGroupLua(context, defs.group_core, "DefineChildChallengeScore",{ 1, 1})
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AttachChildChallengeFromDiffGroup",{defs.challenge1, 233, 6})
-- 调用提示id为 43001009 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_10017(context, evt)
-- 针对当前group内变量名为 "f1" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "f3", 1, defs.group_main) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, defs.group_1, 3)
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_10020(context, evt)
-- 判断是区域8011
if ScriptLib.GetRegionConfigId(context, { region_eid = evt.source_eid }) ~= defs.Region2 then
return false
end
-- 判断变量"success"为0
if ScriptLib.GetGroupVariableValue(context, "success") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_10020(context, evt)
--离开区域 挑战失败
ScriptLib.ExecuteGroupLua(context, defs.group_core, "StopChildChallengeFromDiffGroup", {defs.challenge1,0})
ScriptLib.PrintContextLog(context, "离开区域,挑战失败!!!!!!!!!!!")
-- 针对当前group内变量名为 "f1" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "f3", 1, defs.group_main) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, defs.group_1, 3)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_10022(context, evt)
--检查configeID是否大于0
if 0 >= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_10022(context, evt)
-- 针对当前group内变量名为 "key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "key", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
--通知父挑战积分+1
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddChildChallengeScore", {1})
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_10023(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"key"为6
if ScriptLib.GetGroupVariableValue(context, "key") ~= 6 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_10023(context, evt)
-- 将本组内变量名为 "success" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "success", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
--【修改父挑战时间】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 1 then
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>1")
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "AddTime", 1, defs.group_core) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
ScriptLib.PrintContextLog(context, "父挑战时间已经修改")
end
--【复活】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 2 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 0)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>2")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加攻击】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 3 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 1)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>3")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加移速】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 4 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 2)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>4")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【复活2】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 5 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 3)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>2")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加攻击2】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 6 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 4)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>3")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加移速2】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 7 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 5)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>4")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_10024(context, evt)
--检查configeID是否大于0
if 0 >= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_10024(context, evt)
-- 针对当前group内变量名为 "key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "key", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
--通知父挑战积分+1
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddChildChallengeScore", {1})
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_10025(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"key"为6
if ScriptLib.GetGroupVariableValue(context, "key") ~= 6 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_10025(context, evt)
-- 将本组内变量名为 "success" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "success", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
--【修改父挑战时间】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 1 then
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>1")
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "AddTime", 1, defs.group_core) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
ScriptLib.PrintContextLog(context, "父挑战时间已经修改")
end
--【复活】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 2 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 0)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>2")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加攻击】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 3 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 1)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>3")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加移速】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 4 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 2)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>4")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【复活2】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 5 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 3)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>2")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加攻击2】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 6 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 4)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>3")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加移速2】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 7 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 5)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>4")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
return 0
end
@@ -0,0 +1,590 @@
-- 基础信息
local base_info = {
group_id = 243001011
}
-- Trigger变量
local defs = {
group_main = 243001007,
group_1 = 243001011,
monster_1 = 11001,
monster_2 = 11006,
challenge1 = 401,
Region1 = 11012,
Region2 = 11020,
challenge_father = 999,
group_core = 243001005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 11001, monster_id = 21011201, pos = { x = 65.184, y = 40.120, z = -17.911 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 11002, monster_id = 21011201, pos = { x = 64.955, y = 40.001, z = -34.727 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 11003, monster_id = 21030401, pos = { x = 77.578, y = 40.120, z = -35.776 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 11004, monster_id = 21010401, pos = { x = 80.674, y = 40.120, z = -30.922 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 11005, monster_id = 21010401, pos = { x = 71.283, y = 40.120, z = -36.784 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 11006, monster_id = 20010801, pos = { x = 60.938, y = 40.120, z = -26.644 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 11007, monster_id = 20010801, pos = { x = 80.127, y = 40.120, z = -23.321 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 11008, monster_id = 20010801, pos = { x = 62.744, y = 40.120, z = -33.126 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 11009, monster_id = 20010801, pos = { x = 77.772, y = 40.000, z = -32.830 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 11010, monster_id = 21020301, pos = { x = 60.213, y = 40.002, z = -20.306 }, rot = { x = 0.000, y = 113.335, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 11011, monster_id = 20010901, pos = { x = 63.310, y = 40.002, z = -21.127 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 11021, monster_id = 26010101, pos = { x = 72.162, y = 40.120, z = -21.847 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 11019, gadget_id = 70900205, pos = { x = 74.594, y = 39.244, z = -17.247 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 11012, shape = RegionShape.CUBIC, size = { x = 50.000, y = 40.000, z = 45.000 }, pos = { x = 63.998, y = 40.000, z = -32.220 } },
{ config_id = 11020, shape = RegionShape.CUBIC, size = { x = 50.000, y = 40.000, z = 45.000 }, pos = { x = 63.998, y = 40.000, z = -32.220 } }
}
-- 触发器
triggers = {
{ config_id = 1011012, name = "LEAVE_REGION_11012", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_11012", action = "action_EVENT_LEAVE_REGION_11012", trigger_count = 0 },
{ config_id = 1011013, name = "CHALLENGE_FAIL_11013", event = EventType.EVENT_CHALLENGE_FAIL, source = "", condition = "", action = "action_EVENT_CHALLENGE_FAIL_11013", trigger_count = 0 },
{ config_id = 1011014, name = "CHALLENGE_SUCCESS_11014", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "", condition = "", action = "" },
{ config_id = 1011015, name = "ANY_MONSTER_LIVE_11015", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_11015", action = "action_EVENT_ANY_MONSTER_LIVE_11015" },
{ config_id = 1011016, name = "ANY_MONSTER_LIVE_11016", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_11016", action = "action_EVENT_ANY_MONSTER_LIVE_11016" },
{ config_id = 1011017, name = "CHALLENGE_FAIL_11017", event = EventType.EVENT_CHALLENGE_FAIL, source = "", condition = "", action = "action_EVENT_CHALLENGE_FAIL_11017", trigger_count = 0 },
{ config_id = 1011018, name = "CHALLENGE_SUCCESS_11018", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "", condition = "", action = "" },
{ config_id = 1011020, name = "LEAVE_REGION_11020", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_11020", action = "action_EVENT_LEAVE_REGION_11020", trigger_count = 0 },
{ config_id = 1011022, name = "ANY_MONSTER_DIE_11022", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_11022", action = "action_EVENT_ANY_MONSTER_DIE_11022", trigger_count = 0 },
{ config_id = 1011023, name = "VARIABLE_CHANGE_11023", event = EventType.EVENT_VARIABLE_CHANGE, source = "key", condition = "condition_EVENT_VARIABLE_CHANGE_11023", action = "action_EVENT_VARIABLE_CHANGE_11023", trigger_count = 0 },
{ config_id = 1011024, name = "ANY_MONSTER_DIE_11024", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_11024", action = "action_EVENT_ANY_MONSTER_DIE_11024", trigger_count = 0 },
{ config_id = 1011025, name = "VARIABLE_CHANGE_11025", event = EventType.EVENT_VARIABLE_CHANGE, source = "key", condition = "condition_EVENT_VARIABLE_CHANGE_11025", action = "action_EVENT_VARIABLE_CHANGE_11025", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "c4", value = 0, no_refresh = false },
{ config_id = 2, name = "key", value = 0, no_refresh = false },
{ config_id = 3, name = "success", value = 0, no_refresh = false },
{ config_id = 4, name = "Gflag", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 11019 },
regions = { },
triggers = { },
rand_weight = 0
},
{
-- suite_id = 2,
-- description = ,
monsters = { 11001, 11002, 11003, 11004, 11005, 11010 },
gadgets = { },
regions = { 11012 },
triggers = { "LEAVE_REGION_11012", "CHALLENGE_FAIL_11013", "CHALLENGE_SUCCESS_11014", "ANY_MONSTER_LIVE_11015", "ANY_MONSTER_DIE_11022", "VARIABLE_CHANGE_11023" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 11006, 11007, 11008, 11009, 11011, 11021 },
gadgets = { },
regions = { 11020 },
triggers = { "ANY_MONSTER_LIVE_11016", "CHALLENGE_FAIL_11017", "CHALLENGE_SUCCESS_11018", "LEAVE_REGION_11020", "ANY_MONSTER_DIE_11024", "VARIABLE_CHANGE_11025" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_LEAVE_REGION_11012(context, evt)
-- 判断是区域8011
if ScriptLib.GetRegionConfigId(context, { region_eid = evt.source_eid }) ~= defs.Region1 then
return false
end
-- 判断变量"success"为0
if ScriptLib.GetGroupVariableValue(context, "success") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_11012(context, evt)
--离开区域 挑战失败
ScriptLib.ExecuteGroupLua(context, defs.group_core, "StopChildChallengeFromDiffGroup", {defs.challenge1,0})
ScriptLib.PrintContextLog(context, "离开区域,挑战失败!!!!!!!!!!!")
-- 针对当前group内变量名为 "f1" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "f4", 1, defs.group_main) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, defs.group_1, 2)
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_11013(context, evt)
-- 针对当前group内变量名为 "f1" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "f4", 1, defs.group_main) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, defs.group_1, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_11015(context, evt)
if defs.monster_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_11015(context, evt)
--向编号999的父挑战挂接子挑战
ScriptLib.ExecuteGroupLua(context, defs.group_core, "DefineFatherIndex",{defs.challenge_father})
ScriptLib.ExecuteGroupLua(context, defs.group_core, "DefineChildChallengeScore",{ 1, 1})
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AttachChildChallengeFromDiffGroup",{defs.challenge1, 233, 6})
-- 调用提示id为 43001009 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_11016(context, evt)
if defs.monster_2 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_11016(context, evt)
--向编号999的父挑战挂接子挑战
ScriptLib.ExecuteGroupLua(context, defs.group_core, "DefineFatherIndex",{defs.challenge_father})
ScriptLib.ExecuteGroupLua(context, defs.group_core, "DefineChildChallengeScore",{ 1, 1})
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AttachChildChallengeFromDiffGroup",{defs.challenge1, 233, 6})
-- 调用提示id为 43001009 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_11017(context, evt)
-- 针对当前group内变量名为 "f1" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "f4", 1, defs.group_main) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, defs.group_1, 3)
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_11020(context, evt)
-- 判断是区域8011
if ScriptLib.GetRegionConfigId(context, { region_eid = evt.source_eid }) ~= defs.Region2 then
return false
end
-- 判断变量"success"为0
if ScriptLib.GetGroupVariableValue(context, "success") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_11020(context, evt)
--离开区域 挑战失败
ScriptLib.ExecuteGroupLua(context, defs.group_core, "StopChildChallengeFromDiffGroup", {defs.challenge1,0})
ScriptLib.PrintContextLog(context, "离开区域,挑战失败!!!!!!!!!!!")
-- 针对当前group内变量名为 "f1" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "f4", 1, defs.group_main) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, defs.group_1, 3)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_11022(context, evt)
--检查configeID是否大于0
if 0 >= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_11022(context, evt)
-- 针对当前group内变量名为 "key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "key", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
--通知父挑战积分+1
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddChildChallengeScore", {1})
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_11023(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"key"为6
if ScriptLib.GetGroupVariableValue(context, "key") ~= 6 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_11023(context, evt)
-- 将本组内变量名为 "success" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "success", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
--【修改父挑战时间】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 1 then
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>1")
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "AddTime", 1, defs.group_core) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
ScriptLib.PrintContextLog(context, "父挑战时间已经修改")
end
--【复活】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 2 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 0)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>2")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加攻击】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 3 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 1)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>3")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加移速】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 4 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 2)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>4")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【复活2】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 5 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 3)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>2")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加攻击2】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 6 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 4)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>3")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加移速2】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 7 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 5)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>4")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_11024(context, evt)
--检查configeID是否大于0
if 0 >= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_11024(context, evt)
-- 针对当前group内变量名为 "key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "key", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
--通知父挑战积分+1
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddChildChallengeScore", {1})
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_11025(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"key"为6
if ScriptLib.GetGroupVariableValue(context, "key") ~= 6 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_11025(context, evt)
-- 将本组内变量名为 "success" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "success", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
--【修改父挑战时间】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 1 then
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>1")
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "AddTime", 1, defs.group_core) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
ScriptLib.PrintContextLog(context, "父挑战时间已经修改")
end
--【复活】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 2 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 0)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>2")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加攻击】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 3 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 1)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>3")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加移速】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 4 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 2)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>4")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【复活2】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 5 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 3)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>2")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001006) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加攻击2】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 6 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 4)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>3")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
--【加移速2】
if ScriptLib.GetGroupVariableValue(context, "Gflag") == 7 then
ScriptLib.AttachGalleryAbilityGroup(context, {}, 7007, 5)
ScriptLib.PrintContextLog(context, "Gflag>>>>>>>>>>>>>>>>>>>>>>>>>>>4")
-- 调用提示id为 400021 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
end
return 0
end
@@ -0,0 +1,74 @@
-- 基础信息
local base_info = {
group_id = 243001012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 12001, monster_id = 21020201, pos = { x = 37.486, y = 40.000, z = -83.167 }, rot = { x = 0.000, y = 3.972, z = 0.000 }, level = 1, pose_id = 401 },
{ config_id = 12002, monster_id = 21020201, pos = { x = 92.423, y = 40.015, z = -63.768 }, rot = { x = 0.000, y = 90.141, z = 0.000 }, level = 1, pose_id = 401 },
{ config_id = 12003, monster_id = 21020201, pos = { x = -46.125, y = 40.000, z = -6.408 }, rot = { x = 0.000, y = 95.847, z = 0.000 }, level = 1, pose_id = 401 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 12001, 12002, 12003 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,81 @@
-- 基础信息
local base_info = {
group_id = 243001013
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 13008, gadget_id = 70900205, pos = { x = 40.000, y = 39.602, z = -30.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 13001, shape = RegionShape.CUBIC, size = { x = 40.000, y = 20.000, z = 35.000 }, pos = { x = 17.670, y = 48.262, z = -3.621 } },
{ config_id = 13002, shape = RegionShape.CUBIC, size = { x = 35.000, y = 20.000, z = 35.000 }, pos = { x = -37.093, y = 48.262, z = -28.510 } },
{ config_id = 13003, shape = RegionShape.CUBIC, size = { x = 40.000, y = 20.000, z = 27.000 }, pos = { x = 0.730, y = 48.727, z = -50.034 } },
{ config_id = 13004, shape = RegionShape.CUBIC, size = { x = 40.000, y = 20.000, z = 27.000 }, pos = { x = -2.804, y = 48.727, z = -77.409 } },
{ config_id = 13005, shape = RegionShape.CUBIC, size = { x = 35.000, y = 20.000, z = 38.000 }, pos = { x = 74.383, y = 48.727, z = -74.626 } },
{ config_id = 13006, shape = RegionShape.CUBIC, size = { x = 35.000, y = 20.000, z = 32.000 }, pos = { x = 66.642, y = 48.727, z = -31.111 } },
{ config_id = 13007, shape = RegionShape.CUBIC, size = { x = 40.000, y = 20.000, z = 35.000 }, pos = { x = 102.321, y = 48.727, z = 3.177 } }
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 13008 },
regions = { 13001, 13002, 13003, 13004, 13005, 13006, 13007 },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V1_5/Challenge_SetEyePoint"
@@ -0,0 +1,95 @@
-- 基础信息
local base_info = {
group_id = 243001014
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 14002, gadget_id = 70900205, pos = { x = 25.910, y = 18.618, z = -42.466 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1014001, name = "DUNGEON_ALL_AVATAR_DIE_14001", event = EventType.EVENT_DUNGEON_ALL_AVATAR_DIE, source = "", condition = "condition_EVENT_DUNGEON_ALL_AVATAR_DIE_14001", action = "action_EVENT_DUNGEON_ALL_AVATAR_DIE_14001" }
}
-- 变量
variables = {
{ config_id = 1, name = "AvatarDie", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 14002 },
regions = { },
triggers = { "DUNGEON_ALL_AVATAR_DIE_14001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_DUNGEON_ALL_AVATAR_DIE_14001(context, evt)
-- 判断变量"AvatarDie"为0
if ScriptLib.GetGroupVariableValue(context, "AvatarDie") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_DUNGEON_ALL_AVATAR_DIE_14001(context, evt)
-- 挑战失败触发结算
if 0 ~= ScriptLib.FailMistTrialDungeonChallenge(context, 999) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : 结束挑战失败!!!!")
return -1
end
return 0
end
@@ -0,0 +1,395 @@
-- 基础信息
local base_info = {
group_id = 243001016
}
-- Trigger变量
local defs = {
gadget_1 = 16006,
group_1 = 243001016,
monster_1 = 16001,
monster_2 = 16002,
monster_3 = 16003,
monster_4 = 16004,
monster_5 = 16005,
monster_6 = 16012,
monster_7 = 16013,
monster_8 = 16014,
Region1 = 16015,
challenge1 = 2,
challenge_father = 999,
gadget_rune = 5018,
group_core = 243001005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 16001, monster_id = 25010301, pos = { x = 82.743, y = 40.000, z = -75.958 }, rot = { x = 0.000, y = 346.531, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 16002, monster_id = 25010301, pos = { x = 64.740, y = 40.000, z = -73.544 }, rot = { x = 0.000, y = 21.465, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 16003, monster_id = 25010601, pos = { x = 68.040, y = 40.000, z = -81.785 }, rot = { x = 0.000, y = 18.562, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 16004, monster_id = 25010601, pos = { x = 80.986, y = 40.000, z = -85.620 }, rot = { x = 0.000, y = 330.330, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 16005, monster_id = 25010701, pos = { x = 73.167, y = 40.000, z = -80.835 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 16012, monster_id = 25030301, pos = { x = 64.919, y = 40.000, z = -65.724 }, rot = { x = 0.000, y = 343.731, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 16013, monster_id = 25030301, pos = { x = 72.482, y = 40.016, z = -63.542 }, rot = { x = 0.000, y = 343.731, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 16014, monster_id = 25070101, pos = { x = 80.841, y = 40.001, z = -65.704 }, rot = { x = 0.000, y = 343.731, z = 0.000 }, level = 1, MonsterFlag = 55 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 16006, gadget_id = 70360001, pos = { x = 74.600, y = 41.019, z = -71.287 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 16015, shape = RegionShape.CUBIC, size = { x = 60.000, y = 40.000, z = 50.000 }, pos = { x = 75.907, y = 40.000, z = -67.739 } }
}
-- 触发器
triggers = {
{ config_id = 1016007, name = "GADGET_CREATE_16007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_16007", action = "action_EVENT_GADGET_CREATE_16007" },
{ config_id = 1016008, name = "SELECT_OPTION_16008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_16008", action = "action_EVENT_SELECT_OPTION_16008", trigger_count = 0 },
{ config_id = 1016009, name = "ANY_MONSTER_LIVE_16009", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_16009", action = "action_EVENT_ANY_MONSTER_LIVE_16009", trigger_count = 0 },
{ config_id = 1016010, name = "CHALLENGE_FAIL_16010", event = EventType.EVENT_CHALLENGE_FAIL, source = "2", condition = "", action = "action_EVENT_CHALLENGE_FAIL_16010", trigger_count = 0 },
{ config_id = 1016011, name = "CHALLENGE_SUCCESS_16011", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "2", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_16011" },
{ config_id = 1016015, name = "LEAVE_REGION_16015", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_16015", action = "action_EVENT_LEAVE_REGION_16015", trigger_count = 0 },
{ config_id = 1016016, name = "VARIABLE_CHANGE_16016", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_16016", action = "action_EVENT_VARIABLE_CHANGE_16016", trigger_count = 0 },
{ config_id = 1016017, name = "ANY_MONSTER_DIE_16017", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_16017", action = "action_EVENT_ANY_MONSTER_DIE_16017", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "key", value = 0, no_refresh = false },
{ config_id = 2, name = "success", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 16006 },
regions = { 16015 },
triggers = { "GADGET_CREATE_16007", "SELECT_OPTION_16008", "ANY_MONSTER_LIVE_16009", "CHALLENGE_FAIL_16010", "CHALLENGE_SUCCESS_16011", "LEAVE_REGION_16015", "VARIABLE_CHANGE_16016", "ANY_MONSTER_DIE_16017" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 16001, 16002, 16003, 16004, 16005, 16012, 16013, 16014 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_16007(context, evt)
if defs.gadget_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_16007(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_1, defs.gadget_1, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_16008(context, evt)
-- 判断是gadgetid 1003 option_id 177
if defs.gadget_1 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_16008(context, evt)
-- 创建编号为1(该怪物潮的识别id)的怪物潮,创建怪物总数为8,场上怪物最少3只,最多3只
if 0 ~= ScriptLib.AutoMonsterTide(context, 1, defs.group_1, {defs.monster_1,defs.monster_2,defs.monster_3,defs.monster_4,defs.monster_5,defs.monster_6,defs.monster_7,defs.monster_8}, 8, 5, 5) then
return -1
end
-- 删除指定group 243001001 ;指定config1003;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, defs.group_1, defs.gadget_1, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 1003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_1, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_16009(context, evt)
if defs.monster_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_16009(context, evt)
ScriptLib.ExecuteGroupLua(context, defs.group_core, "DefineFatherIndex",{defs.challenge_father})
ScriptLib.ExecuteGroupLua(context, defs.group_core, "DefineChildChallengeScore",{ 1, 1})
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AttachChildChallengeFromDiffGroup",{defs.challenge1, 233, 8})
-- 改变指定group组243001008中, configid为5000的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_core, defs.gadget_rune, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
ScriptLib.PrintContextLog(context, "2号符文点亮!!!!!!!!")
-- 调用提示id为 43001009 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_16010(context, evt)
--销毁编号为1(该怪物潮的识别id)的怪物潮
if 0 ~= ScriptLib.KillMonsterTide(context, defs.group_1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_tide")
return -1
end
-- 改变指定group组243001001中, configid为1003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_1, defs.gadget_1, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_1, defs.gadget_1, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 改变指定group组243001008中, configid为5000的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_core, defs.gadget_rune, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_16011(context, evt)
--销毁编号为1(该怪物潮的识别id)的怪物潮
if 0 ~= ScriptLib.KillMonsterTide(context, defs.group_1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_tide")
return -1
end
ScriptLib.ChangeGroupVariableValueByGroup(context, "runes", 1, defs.group_core)
-- 改变指定group组243001008中, configid为5000的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_core, defs.gadget_rune, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
ScriptLib.PrintContextLog(context, "2号符文射线!!!!!!!!")
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_16015(context, evt)
-- 判断是区域8011
if ScriptLib.GetRegionConfigId(context, { region_eid = evt.source_eid }) ~= defs.Region1 then
return false
end
-- 判断变量"success"为0
if ScriptLib.GetGroupVariableValue(context, "success") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_16015(context, evt)
--离开区域 挑战失败
ScriptLib.ExecuteGroupLua(context, defs.group_core, "StopChildChallengeFromDiffGroup", {defs.challenge1,0})
ScriptLib.PrintContextLog(context, "离开区域,挑战失败!!!!!!!!!!!")
-- 将本组内变量名为 "success" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "key", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
--销毁编号为1(该怪物潮的识别id)的怪物潮
if 0 ~= ScriptLib.KillMonsterTide(context, defs.group_1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_tide")
return -1
end
-- 改变指定group组243001001中, configid为1003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_1, defs.gadget_1, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_1, defs.gadget_1, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 改变指定group组243001008中, configid为5000的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_core, defs.gadget_rune, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_16016(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"key"为8
if ScriptLib.GetGroupVariableValue(context, "key") ~= 8 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_16016(context, evt)
-- 将本组内变量名为 "success" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "success", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "key" 的变量设置为 99
if 0 ~= ScriptLib.SetGroupVariableValue(context, "key", 99) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
ScriptLib.ChangeGroupVariableValueByGroup(context, "runes", 1, defs.group_core)
ScriptLib.PrintContextLog(context, "符文计数+1")
-- 改变指定group组243001008中, configid为5000的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_core, defs.gadget_rune, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
ScriptLib.PrintContextLog(context, "2号符文射线!!!!!!!!")
--[[ 触发镜头注目,注目位置为坐标(0,0,0),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=74.6, y=52, z=-71.3}
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_16017(context, evt)
if 0 >= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_16017(context, evt)
-- 针对当前group内变量名为 "key" 的变量,进行修改,变化值为 0
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "key", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
--ScriptLib.PrintContextLog(context, "怪物死亡"..key)
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddChildChallengeScore", {1})
return 0
end
@@ -0,0 +1,398 @@
-- 基础信息
local base_info = {
group_id = 243001017
}
-- Trigger变量
local defs = {
gadget_1 = 17006,
group_1 = 243001017,
monster_1 = 17001,
monster_2 = 17002,
monster_3 = 17003,
monster_4 = 17004,
monster_5 = 17005,
monster_6 = 17012,
monster_7 = 17013,
monster_8 = 17014,
Region1 = 17015,
challenge1 = 3,
challenge_father = 999,
gadget_rune = 5019,
group_core = 243001005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 17001, monster_id = 20011201, pos = { x = -26.092, y = 39.862, z = -30.630 }, rot = { x = 0.000, y = 346.531, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 17002, monster_id = 20011201, pos = { x = -39.367, y = 39.862, z = -30.643 }, rot = { x = 0.000, y = 21.465, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 17003, monster_id = 20011201, pos = { x = -38.948, y = 39.983, z = -35.553 }, rot = { x = 0.000, y = 18.562, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 17004, monster_id = 20011301, pos = { x = -32.863, y = 39.983, z = -35.643 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 17005, monster_id = 20011301, pos = { x = -27.563, y = 39.983, z = -35.297 }, rot = { x = 0.000, y = 343.731, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 17012, monster_id = 20011501, pos = { x = -39.120, y = 39.983, z = -23.836 }, rot = { x = 0.000, y = 18.562, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 17013, monster_id = 20011501, pos = { x = -35.140, y = 39.862, z = -19.398 }, rot = { x = 0.000, y = 21.465, z = 0.000 }, level = 1, MonsterFlag = 55 },
{ config_id = 17014, monster_id = 23030101, pos = { x = -26.230, y = 39.862, z = -22.405 }, rot = { x = 0.000, y = 346.531, z = 0.000 }, level = 1, MonsterFlag = 55 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 17006, gadget_id = 70360001, pos = { x = -36.277, y = 41.017, z = -28.379 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 17015, shape = RegionShape.CUBIC, size = { x = 50.000, y = 40.000, z = 60.000 }, pos = { x = -26.499, y = 40.000, z = -29.460 } }
}
-- 触发器
triggers = {
{ config_id = 1017007, name = "GADGET_CREATE_17007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_17007", action = "action_EVENT_GADGET_CREATE_17007" },
{ config_id = 1017008, name = "SELECT_OPTION_17008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_17008", action = "action_EVENT_SELECT_OPTION_17008", trigger_count = 0 },
{ config_id = 1017009, name = "ANY_MONSTER_LIVE_17009", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_17009", action = "action_EVENT_ANY_MONSTER_LIVE_17009", trigger_count = 0 },
{ config_id = 1017010, name = "CHALLENGE_FAIL_17010", event = EventType.EVENT_CHALLENGE_FAIL, source = "3", condition = "", action = "action_EVENT_CHALLENGE_FAIL_17010", trigger_count = 0 },
{ config_id = 1017011, name = "CHALLENGE_SUCCESS_17011", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "3", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_17011", tag = "901" },
{ config_id = 1017015, name = "LEAVE_REGION_17015", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_17015", action = "action_EVENT_LEAVE_REGION_17015", trigger_count = 0 },
{ config_id = 1017016, name = "VARIABLE_CHANGE_17016", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_17016", action = "action_EVENT_VARIABLE_CHANGE_17016", trigger_count = 0 },
{ config_id = 1017017, name = "ANY_MONSTER_DIE_17017", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_17017", action = "action_EVENT_ANY_MONSTER_DIE_17017", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "key", value = 0, no_refresh = false },
{ config_id = 2, name = "success", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 17006 },
regions = { 17015 },
triggers = { "GADGET_CREATE_17007", "SELECT_OPTION_17008", "ANY_MONSTER_LIVE_17009", "CHALLENGE_FAIL_17010", "CHALLENGE_SUCCESS_17011", "LEAVE_REGION_17015", "VARIABLE_CHANGE_17016", "ANY_MONSTER_DIE_17017" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 17001, 17002, 17003, 17004, 17005, 17012, 17013, 17014 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_17007(context, evt)
if defs.gadget_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_17007(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_1, defs.gadget_1, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_17008(context, evt)
-- 判断是gadgetid 1003 option_id 177
if defs.gadget_1 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_17008(context, evt)
-- 创建编号为1(该怪物潮的识别id)的怪物潮,创建怪物总数为8,场上怪物最少3只,最多3只
if 0 ~= ScriptLib.AutoMonsterTide(context, 1, defs.group_1, {defs.monster_1,defs.monster_2,defs.monster_3,defs.monster_4,defs.monster_5,defs.monster_6,defs.monster_7,defs.monster_8}, 8, 5, 5) then
return -1
end
-- 删除指定group 243001001 ;指定config1003;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, defs.group_1, defs.gadget_1, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 1003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_1, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_17009(context, evt)
if defs.monster_1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_17009(context, evt)
ScriptLib.ExecuteGroupLua(context, defs.group_core, "DefineFatherIndex",{defs.challenge_father})
ScriptLib.ExecuteGroupLua(context, defs.group_core, "DefineChildChallengeScore",{ 1, 1})
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AttachChildChallengeFromDiffGroup",{defs.challenge1, 233, 8})
-- 改变指定group组243001008中, configid为5000的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_core, defs.gadget_rune, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
ScriptLib.PrintContextLog(context, "3号符文点亮!!!!!!!!")
-- 调用提示id为 43001009 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 43001009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_17010(context, evt)
--销毁编号为1(该怪物潮的识别id)的怪物潮
if 0 ~= ScriptLib.KillMonsterTide(context, defs.group_1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_tide")
return -1
end
-- 改变指定group组243001001中, configid为1003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_1, defs.gadget_1, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_1, defs.gadget_1, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 改变指定group组243001008中, configid为5000的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_core, defs.gadget_rune, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_17011(context, evt)
--销毁编号为1(该怪物潮的识别id)的怪物潮
if 0 ~= ScriptLib.KillMonsterTide(context, defs.group_1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_tide")
return -1
end
ScriptLib.ChangeGroupVariableValueByGroup(context, "runes", 1, defs.group_core)
-- 改变指定group组243001008中, configid为5000的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_core, defs.gadget_rune, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
ScriptLib.PrintContextLog(context, "3号符文射线!!!!!!!!")
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_17015(context, evt)
-- 判断是区域8011
if ScriptLib.GetRegionConfigId(context, { region_eid = evt.source_eid }) ~= defs.Region1 then
return false
end
-- 判断变量"success"为0
if ScriptLib.GetGroupVariableValue(context, "success") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_17015(context, evt)
--离开区域 挑战失败
ScriptLib.ExecuteGroupLua(context, defs.group_core, "StopChildChallengeFromDiffGroup", {defs.challenge1,0})
ScriptLib.PrintContextLog(context, "离开区域,挑战失败!!!!!!!!!!!")
-- 将本组内变量名为 "success" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "key", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
--销毁编号为1(该怪物潮的识别id)的怪物潮
if 0 ~= ScriptLib.KillMonsterTide(context, defs.group_1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_tide")
return -1
end
-- 改变指定group组243001001中, configid为1003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_1, defs.gadget_1, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_1, defs.gadget_1, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 改变指定group组243001008中, configid为5000的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_core, defs.gadget_rune, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_17016(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"key"为8
if ScriptLib.GetGroupVariableValue(context, "key") ~= 8 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_17016(context, evt)
-- 将本组内变量名为 "success" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "success", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "key" 的变量设置为 99
if 0 ~= ScriptLib.SetGroupVariableValue(context, "key", 99) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
ScriptLib.ChangeGroupVariableValueByGroup(context, "runes", 1, defs.group_core)
ScriptLib.PrintContextLog(context, "符文计数+1")
-- 改变指定group组243001008中, configid为5000的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_core, defs.gadget_rune, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
ScriptLib.PrintContextLog(context, "3号符文射线!!!!!!!!")
--[[ 触发镜头注目,注目位置为坐标(0,0,0),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=-36.3, y=52, z=-28.3}
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_17017(context, evt)
if 0 >= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_17017(context, evt)
-- 针对当前group内变量名为 "key" 的变量,进行修改,变化值为 0
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "key", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
--ScriptLib.PrintContextLog(context, "怪物死亡"..key)
ScriptLib.ExecuteGroupLua(context, defs.group_core, "AddChildChallengeScore", {1})
return 0
end
@@ -0,0 +1,8 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {},
"transRadius": 0.0
}
@@ -0,0 +1,23 @@
[
{
"area_id": 10018,
"points": [
{
"x": -67.52811,
"y": 78.12459
},
{
"x": -62.2540779,
"y": -113.758614
},
{
"x": 137.721573,
"y": -116.312584
},
{
"x": 145.493927,
"y": 76.84226
}
]
}
]