添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -826.5, z = -631.4 },
size = { x = 1440.9, z = 1362.3 },
born_pos = { x = 53.557, y = 89.751, z = 52.216 },
born_rot = { x = 0.000, y = 249.396, z = 0.000 },
die_y = 75.5,
city_id = 2,
vision_anchor = { x = -826.5, z = -631.4 }
}
-- 所有的区块
blocks = { 1052 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -826.5, z = -631.4 }, max = { x = 614.4, z = 731.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,19 @@
-- 所有的group
groups = {
{ id = 201052002, refresh_id = 1, pos = { x = 19.721, y = 96.784, z = 46.354 } },
{ id = 201052003, refresh_id = 1001, pos = { x = -61.521, y = 95.596, z = 119.264 } },
{ id = 201052004, refresh_id = 1, pos = { x = -148.271, y = 104.196, z = 108.790 } },
{ id = 201052005, refresh_id = 1, pos = { x = -70.406, y = 106.036, z = 194.475 } },
{ id = 201052006, refresh_id = 1, pos = { x = 19.085, y = 102.215, z = 131.074 } },
{ id = 201052007, refresh_id = 1, pos = { x = -77.034, y = 109.106, z = 32.552 } },
{ id = 201052008, refresh_id = 1, pos = { x = -21.423, y = 88.672, z = 84.091 } },
{ id = 201052009, refresh_id = 1, pos = { x = -143.430, y = 101.712, z = 102.762 } },
{ id = 201052010, pos = { x = -72.787, y = 109.970, z = 39.720 } },
{ id = 201052011, pos = { x = -69.102, y = 110.842, z = 31.075 } },
{ id = 201052012, pos = { x = -104.983, y = 88.404, z = 154.708 } },
{ id = 201052013, refresh_id = 1, pos = { x = 19.383, y = 102.134, z = 130.895 } },
{ id = 201052014, refresh_id = 1001, pos = { x = 27.622, y = 93.190, z = 40.443 } },
{ id = 201052015, refresh_id = 1, pos = { x = -148.246, y = 104.195, z = 108.807 } },
{ id = 201052016, refresh_id = 1, pos = { x = -61.559, y = 96.138, z = 119.610 } },
{ id = 201052017, pos = { x = 43.055, y = 90.699, z = 47.118 } }
}

View File

@@ -0,0 +1,5 @@
dummy_points = {
["Q100904Fei"] = { pos = { x = -84.084, y = 125.507, z = 22.501 }, rot = { x = 0.000, y = 46.571, z = 0.000 } },
["Q100904Paimon"] = { pos = { x = -72.376, y = 109.024, z = 35.001 }, rot = { x = 0.000, y = 211.976, z = 0.000 } },
["Q100904PlayerPos"] = { pos = { x = -71.541, y = 109.024, z = 34.401 }, rot = { x = 0.000, y = 238.293, z = 0.000 } }
}

View File

@@ -0,0 +1,900 @@
-- 基础信息
local base_info = {
group_id = 201052002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70360002, pos = { x = 14.892, y = 92.945, z = 52.400 }, rot = { x = 0.000, y = 133.743, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 2004, gadget_id = 70900201, pos = { x = 27.261, y = 94.868, z = 40.781 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2005, gadget_id = 70900201, pos = { x = -21.231, y = 88.410, z = 85.066 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2017, gadget_id = 70900007, pos = { x = 27.268, y = 92.918, z = 40.800 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 2006, shape = RegionShape.SPHERE, radius = 11.7, pos = { x = -20.814, y = 88.412, z = 84.399 } },
{ config_id = 2015, shape = RegionShape.SPHERE, radius = 8.6, pos = { x = 32.243, y = 92.837, z = 43.284 } }
}
-- 触发器
triggers = {
{ config_id = 1002002, name = "GADGET_STATE_CHANGE_2002", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2002", action = "action_EVENT_GADGET_STATE_CHANGE_2002" },
{ config_id = 1002003, name = "SELECT_OPTION_2003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2003", action = "action_EVENT_SELECT_OPTION_2003", trigger_count = 0 },
{ config_id = 1002006, name = "ENTER_REGION_2006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2006", action = "action_EVENT_ENTER_REGION_2006" },
{ config_id = 1002007, name = "SELECT_OPTION_2007", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2007", action = "action_EVENT_SELECT_OPTION_2007", trigger_count = 0 },
{ config_id = 1002008, name = "SELECT_OPTION_2008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2008", action = "action_EVENT_SELECT_OPTION_2008", trigger_count = 0 },
{ config_id = 1002009, name = "SELECT_OPTION_2009", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2009", action = "action_EVENT_SELECT_OPTION_2009", trigger_count = 0 },
{ config_id = 1002010, name = "SELECT_OPTION_2010", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2010", action = "action_EVENT_SELECT_OPTION_2010", trigger_count = 0 },
{ config_id = 1002011, name = "SELECT_OPTION_2011", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2011", action = "action_EVENT_SELECT_OPTION_2011", trigger_count = 0 },
{ config_id = 1002012, name = "SELECT_OPTION_2012", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2012", action = "action_EVENT_SELECT_OPTION_2012", trigger_count = 0 },
{ config_id = 1002013, name = "SELECT_OPTION_2013", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2013", action = "action_EVENT_SELECT_OPTION_2013", trigger_count = 0 },
{ config_id = 1002014, name = "TIMER_EVENT_2014", event = EventType.EVENT_TIMER_EVENT, source = "finish", condition = "", action = "action_EVENT_TIMER_EVENT_2014", trigger_count = 0 },
{ config_id = 1002015, name = "ENTER_REGION_2015", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2015", action = "action_EVENT_ENTER_REGION_2015" },
{ config_id = 1002016, name = "TIMER_EVENT_2016", event = EventType.EVENT_TIMER_EVENT, source = "tip2", condition = "", action = "action_EVENT_TIMER_EVENT_2016" },
{ config_id = 1002018, name = "GADGET_STATE_CHANGE_2018", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2018", action = "action_EVENT_GADGET_STATE_CHANGE_2018", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2017 },
regions = { 2006, 2015 },
triggers = { "GADGET_STATE_CHANGE_2002", "SELECT_OPTION_2003", "ENTER_REGION_2006", "SELECT_OPTION_2007", "SELECT_OPTION_2008", "SELECT_OPTION_2009", "SELECT_OPTION_2010", "SELECT_OPTION_2011", "SELECT_OPTION_2012", "SELECT_OPTION_2013", "TIMER_EVENT_2014", "ENTER_REGION_2015", "TIMER_EVENT_2016", "GADGET_STATE_CHANGE_2018" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 2004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 2005 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2002(context, evt)
if 2001 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 201052002, 2001, {210,211}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2003(context, evt)
-- 判断是gadgetid 2001 option_id 210
if 2001 ~= evt.param1 then
return false
end
if 210 ~= evt.param2 then
return false
end
-- 判断变量"stage1state"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "stage1state", 201052008) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2003(context, evt)
-- 删除指定group 201052002 指定config2001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052002, 2001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052002 指定config2001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052002, 2001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-217284持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-21, y=72, z=84}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage1" 的变量设置为 102
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage1", 102, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052002的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052002, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2006(context, evt)
if evt.param1 ~= 2006 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_2006(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 2005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201052003, 2)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2007(context, evt)
-- 判断是gadgetid 2001 option_id 210
if 2001 ~= evt.param1 then
return false
end
if 210 ~= evt.param2 then
return false
end
-- 判断变量"stage1state"为2
if ScriptLib.GetGroupVariableValueByGroup(context, "stage1state", 201052008) ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2007(context, evt)
-- 删除指定group 201052002 指定config2001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052002, 2001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052002 指定config2001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052002, 2001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-217284持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-21, y=72, z=84}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage1" 的变量设置为 203
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage1", 203, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052002的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052002, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2008(context, evt)
-- 判断是gadgetid 2001 option_id 210
if 2001 ~= evt.param1 then
return false
end
if 210 ~= evt.param2 then
return false
end
-- 判断变量"stage1state"为3
if ScriptLib.GetGroupVariableValueByGroup(context, "stage1state", 201052008) ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2008(context, evt)
-- 删除指定group 201052002 指定config2001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052002, 2001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052002 指定config2001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052002, 2001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-217284持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-21, y=72, z=84}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage1" 的变量设置为 304
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage1", 304, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052002的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052002, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2009(context, evt)
-- 判断是gadgetid 2001 option_id 210
if 2001 ~= evt.param1 then
return false
end
if 210 ~= evt.param2 then
return false
end
-- 判断变量"stage1state"为4
if ScriptLib.GetGroupVariableValueByGroup(context, "stage1state", 201052008) ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2009(context, evt)
-- 删除指定group 201052002 指定config2001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052002, 2001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052002 指定config2001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052002, 2001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-217284持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-21, y=72, z=84}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage1" 的变量设置为 401
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage1", 401, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052002的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052002, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2010(context, evt)
-- 判断是gadgetid 2001 option_id 211
if 2001 ~= evt.param1 then
return false
end
if 211 ~= evt.param2 then
return false
end
-- 判断变量"stage1state"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "stage1state", 201052008) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2010(context, evt)
-- 删除指定group 201052002 指定config2001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052002, 2001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052002 指定config2001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052002, 2001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-217284持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-21, y=72, z=84}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage1" 的变量设置为 104
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage1", 104, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052002的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052002, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2011(context, evt)
-- 判断是gadgetid 2001 option_id 211
if 2001 ~= evt.param1 then
return false
end
if 211 ~= evt.param2 then
return false
end
-- 判断变量"stage1state"为2
if ScriptLib.GetGroupVariableValueByGroup(context, "stage1state", 201052008) ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2011(context, evt)
-- 删除指定group 201052002 指定config2001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052002, 2001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052002 指定config2001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052002, 2001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-217284持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-21, y=72, z=84}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage1" 的变量设置为 201
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage1", 201, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052002的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052002, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2012(context, evt)
-- 判断是gadgetid 2001 option_id 211
if 2001 ~= evt.param1 then
return false
end
if 211 ~= evt.param2 then
return false
end
-- 判断变量"stage1state"为3
if ScriptLib.GetGroupVariableValueByGroup(context, "stage1state", 201052008) ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2012(context, evt)
-- 删除指定group 201052002 指定config2001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052002, 2001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052002 指定config2001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052002, 2001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-217284持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-21, y=72, z=84}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage1" 的变量设置为 302
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage1", 302, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052002的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052002, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2013(context, evt)
-- 判断是gadgetid 2001 option_id 211
if 2001 ~= evt.param1 then
return false
end
if 211 ~= evt.param2 then
return false
end
-- 判断变量"stage1state"为4
if ScriptLib.GetGroupVariableValueByGroup(context, "stage1state", 201052008) ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2013(context, evt)
-- 删除指定group 201052002 指定config2001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052002, 2001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052002 指定config2001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052002, 2001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-217284持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-21, y=72, z=84}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage1" 的变量设置为 403
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage1", 403, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052002的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052002, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_2014(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 201052002, 2001, {210,211}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 延迟1秒后,向groupId为201052002的对象,请求一次调用,并将string参数"tip2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052002, "tip2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2015(context, evt)
if evt.param1 ~= 2015 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_2015(context, evt)
-- 触发镜头注目,注目位置为坐标(-5210650持续时间为3秒并且为强制注目形式不广播其他玩家
local pos = {x=-52, y=106, z=50}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 3, 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
-- 创建id为2004的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2004 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_2016(context, evt)
-- 调用提示id为 10520201 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 10520201) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2018(context, evt)
if 2017 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2018(context, evt)
-- 创建编号为2018该怪物潮的识别id)的怪物潮创建怪物总数为10场上怪物最少2只最多5只
if 0 ~= ScriptLib.AutoMonsterTide(context, 2018, 201052014, {14001,14002,14003,14004,14005,14006,14007,14008,14009,14010}, 10, 2, 5) then
return -1
end
return 0
end

View File

@@ -0,0 +1,764 @@
-- 基础信息
local base_info = {
group_id = 201052003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3005, monster_id = 21010601, pos = { x = -64.827, y = 95.544, z = 115.368 }, rot = { x = 0.000, y = 195.959, z = 0.000 }, level = 1, pose_id = 9002 },
{ config_id = 3006, monster_id = 21010601, pos = { x = -66.486, y = 95.555, z = 112.877 }, rot = { x = 0.000, y = 70.182, z = 0.000 }, level = 1, pose_id = 9002 },
{ config_id = 3014, monster_id = 21011201, pos = { x = -52.244, y = 95.553, z = 120.255 }, rot = { x = 0.000, y = 91.152, z = 0.000 }, level = 1, pose_id = 9003 },
{ config_id = 3015, monster_id = 21010201, pos = { x = -57.336, y = 95.677, z = 125.554 }, rot = { x = 0.000, y = 176.216, z = 0.000 }, level = 1, pose_id = 9012 },
{ config_id = 3016, monster_id = 21010201, pos = { x = -59.843, y = 95.538, z = 123.848 }, rot = { x = 0.000, y = 78.206, z = 0.000 }, level = 1, pose_id = 9012 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70360002, pos = { x = -68.559, y = 95.555, z = 125.553 }, rot = { x = 0.000, y = 130.973, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 3017, gadget_id = 70900201, pos = { x = -68.569, y = 96.877, z = 125.579 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1003002, name = "ANY_MONSTER_DIE_3002", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3002", action = "action_EVENT_ANY_MONSTER_DIE_3002" },
{ config_id = 1003003, name = "SELECT_OPTION_3003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3003", action = "action_EVENT_SELECT_OPTION_3003", trigger_count = 0 },
{ config_id = 1003004, name = "SELECT_OPTION_3004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3004", action = "action_EVENT_SELECT_OPTION_3004", trigger_count = 0 },
{ config_id = 1003007, name = "SELECT_OPTION_3007", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3007", action = "action_EVENT_SELECT_OPTION_3007", trigger_count = 0 },
{ config_id = 1003008, name = "SELECT_OPTION_3008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3008", action = "action_EVENT_SELECT_OPTION_3008", trigger_count = 0 },
{ config_id = 1003009, name = "SELECT_OPTION_3009", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3009", action = "action_EVENT_SELECT_OPTION_3009", trigger_count = 0 },
{ config_id = 1003010, name = "SELECT_OPTION_3010", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3010", action = "action_EVENT_SELECT_OPTION_3010", trigger_count = 0 },
{ config_id = 1003011, name = "SELECT_OPTION_3011", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3011", action = "action_EVENT_SELECT_OPTION_3011", trigger_count = 0 },
{ config_id = 1003012, name = "SELECT_OPTION_3012", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3012", action = "action_EVENT_SELECT_OPTION_3012", trigger_count = 0 },
{ config_id = 1003013, name = "TIMER_EVENT_3013", event = EventType.EVENT_TIMER_EVENT, source = "finish", condition = "", action = "action_EVENT_TIMER_EVENT_3013", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 3005, 3006, 3014, 3015, 3016 },
gadgets = { 3001 },
regions = { },
triggers = { "ANY_MONSTER_DIE_3002", "SELECT_OPTION_3003", "SELECT_OPTION_3004", "SELECT_OPTION_3007", "SELECT_OPTION_3008", "SELECT_OPTION_3009", "SELECT_OPTION_3010", "SELECT_OPTION_3011", "SELECT_OPTION_3012", "TIMER_EVENT_3013" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 3017 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3002(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 201052003, 3001, {210,211}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 将configid为 3001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-6895125持续时间为1.5秒,并且为强制注目形式,不广播其他玩家
local pos = {x=-68, y=95, z=125}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 1.5, 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
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 201052003, 2)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3003(context, evt)
-- 判断是gadgetid 3001 option_id 210
if 3001 ~= evt.param1 then
return false
end
if 210 ~= evt.param2 then
return false
end
-- 判断变量"stage3state"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "stage3state", 201052008) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3003(context, evt)
-- 删除指定group 201052003 指定config3001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052003, 3001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052003 指定config3001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052003, 3001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-10471154持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-104, y=71, z=154}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage3" 的变量设置为 102
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage3", 102, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052003的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052003, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3004(context, evt)
-- 判断是gadgetid 3001 option_id 210
if 3001 ~= evt.param1 then
return false
end
if 210 ~= evt.param2 then
return false
end
-- 判断变量"stage3state"为2
if ScriptLib.GetGroupVariableValueByGroup(context, "stage3state", 201052008) ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3004(context, evt)
-- 删除指定group 201052003 指定config3001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052003, 3001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052003 指定config3001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052003, 3001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-10471154持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-104, y=71, z=154}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage3" 的变量设置为 203
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage3", 203, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052003的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052003, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3007(context, evt)
-- 判断是gadgetid 3001 option_id 210
if 3001 ~= evt.param1 then
return false
end
if 210 ~= evt.param2 then
return false
end
-- 判断变量"stage3state"为3
if ScriptLib.GetGroupVariableValueByGroup(context, "stage3state", 201052008) ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3007(context, evt)
-- 删除指定group 201052003 指定config3001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052003, 3001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052003 指定config3001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052003, 3001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-10471154持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-104, y=71, z=154}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage3" 的变量设置为 304
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage3", 304, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052003的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052003, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3008(context, evt)
-- 判断是gadgetid 3001 option_id 210
if 3001 ~= evt.param1 then
return false
end
if 210 ~= evt.param2 then
return false
end
-- 判断变量"stage3state"为4
if ScriptLib.GetGroupVariableValueByGroup(context, "stage3state", 201052008) ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3008(context, evt)
-- 删除指定group 201052003 指定config3001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052003, 3001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052003 指定config3001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052003, 3001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-10471154持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-104, y=71, z=154}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage3" 的变量设置为 401
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage3", 401, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052003的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052003, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3009(context, evt)
-- 判断是gadgetid 3001 option_id 211
if 3001 ~= evt.param1 then
return false
end
if 211 ~= evt.param2 then
return false
end
-- 判断变量"stage3state"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "stage3state", 201052008) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3009(context, evt)
-- 删除指定group 201052003 指定config3001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052003, 3001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052003 指定config3001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052003, 3001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-10471154持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-104, y=71, z=154}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage3" 的变量设置为 104
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage3", 104, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052003的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052003, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3010(context, evt)
-- 判断是gadgetid 3001 option_id 211
if 3001 ~= evt.param1 then
return false
end
if 211 ~= evt.param2 then
return false
end
-- 判断变量"stage3state"为2
if ScriptLib.GetGroupVariableValueByGroup(context, "stage3state", 201052008) ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3010(context, evt)
-- 删除指定group 201052003 指定config3001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052003, 3001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052003 指定config3001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052003, 3001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-10471154持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-104, y=71, z=154}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage3" 的变量设置为 201
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage3", 201, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052003的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052003, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3011(context, evt)
-- 判断是gadgetid 3001 option_id 211
if 3001 ~= evt.param1 then
return false
end
if 211 ~= evt.param2 then
return false
end
-- 判断变量"stage3state"为3
if ScriptLib.GetGroupVariableValueByGroup(context, "stage3state", 201052008) ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3011(context, evt)
-- 删除指定group 201052003 指定config3001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052003, 3001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052003 指定config3001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052003, 3001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-10471154持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-104, y=71, z=154}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage3" 的变量设置为 302
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage3", 302, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052003的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052003, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3012(context, evt)
-- 判断是gadgetid 3001 option_id 211
if 3001 ~= evt.param1 then
return false
end
if 211 ~= evt.param2 then
return false
end
-- 判断变量"stage3state"为4
if ScriptLib.GetGroupVariableValueByGroup(context, "stage3state", 201052008) ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3012(context, evt)
-- 删除指定group 201052003 指定config3001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052003, 3001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052003 指定config3001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052003, 3001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-10471154持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-104, y=71, z=154}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage3" 的变量设置为 403
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage3", 403, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052003的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052003, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3013(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 201052003, 3001, {210,211}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end

View File

@@ -0,0 +1,172 @@
-- 基础信息
local base_info = {
group_id = 201052004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70900201, pos = { x = -133.105, y = 101.735, z = 123.171 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 4002, shape = RegionShape.SPHERE, radius = 10, pos = { x = -127.476, y = 101.736, z = 125.597 } },
{ config_id = 4009, shape = RegionShape.SPHERE, radius = 15, pos = { x = -80.092, y = 95.437, z = 188.419 } },
{ config_id = 4010, shape = RegionShape.SPHERE, radius = 15, pos = { x = -67.038, y = 95.552, z = 124.344 } }
}
-- 触发器
triggers = {
{ config_id = 1004002, name = "ENTER_REGION_4002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4002", action = "action_EVENT_ENTER_REGION_4002" },
{ config_id = 1004009, name = "ENTER_REGION_4009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4009", action = "action_EVENT_ENTER_REGION_4009" },
{ config_id = 1004010, name = "ENTER_REGION_4010", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4010", action = "action_EVENT_ENTER_REGION_4010" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 4002, 4010 },
triggers = { "ENTER_REGION_4002", "ENTER_REGION_4010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { 4009 },
triggers = { "ENTER_REGION_4009" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 4001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_4002(context, evt)
if evt.param1 ~= 4002 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_4002(context, evt)
-- 添加suite8的新内容
ScriptLib.AddExtraGroupSuite(context, 201052009, 8)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 4001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_4009(context, evt)
if evt.param1 ~= 4009 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_4009(context, evt)
-- 调用提示id为 10520301 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 10520301) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 创建id为4001的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 4001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_4010(context, evt)
if evt.param1 ~= 4010 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_4010(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201052004, 2)
return 0
end

View File

@@ -0,0 +1,798 @@
-- 基础信息
local base_info = {
group_id = 201052005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5001, gadget_id = 70360002, pos = { x = -55.611, y = 105.781, z = 191.801 }, rot = { x = 0.000, y = 313.324, z = 0.000 }, level = 1 },
{ config_id = 5004, gadget_id = 70690008, pos = { x = -76.454, y = 84.986, z = 190.084 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5005, gadget_id = 70900201, pos = { x = -76.884, y = 97.767, z = 191.035 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 5014, shape = RegionShape.SPHERE, radius = 8, pos = { x = -76.452, y = 104.762, z = 190.545 } },
{ config_id = 5015, shape = RegionShape.SPHERE, radius = 8, pos = { x = -63.935, y = 105.966, z = 196.287 } }
}
-- 触发器
triggers = {
{ config_id = 1005002, name = "GADGET_CREATE_5002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_5002", action = "action_EVENT_GADGET_CREATE_5002" },
{ config_id = 1005003, name = "TIMER_EVENT_5003", event = EventType.EVENT_TIMER_EVENT, source = "finish", condition = "", action = "action_EVENT_TIMER_EVENT_5003", trigger_count = 0 },
{ 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 = "SELECT_OPTION_5007", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5007", action = "action_EVENT_SELECT_OPTION_5007", trigger_count = 0 },
{ config_id = 1005008, name = "SELECT_OPTION_5008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5008", action = "action_EVENT_SELECT_OPTION_5008", trigger_count = 0 },
{ config_id = 1005009, name = "SELECT_OPTION_5009", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5009", action = "action_EVENT_SELECT_OPTION_5009", trigger_count = 0 },
{ config_id = 1005010, name = "SELECT_OPTION_5010", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5010", action = "action_EVENT_SELECT_OPTION_5010", trigger_count = 0 },
{ config_id = 1005011, name = "SELECT_OPTION_5011", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5011", action = "action_EVENT_SELECT_OPTION_5011", trigger_count = 0 },
{ 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 = 1005013, name = "SELECT_OPTION_5013", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5013", action = "action_EVENT_SELECT_OPTION_5013", 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 = "ENTER_REGION_5015", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5015", action = "action_EVENT_ENTER_REGION_5015" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5001 },
regions = { 5014, 5015 },
triggers = { "GADGET_CREATE_5002", "TIMER_EVENT_5003", "SELECT_OPTION_5006", "SELECT_OPTION_5007", "SELECT_OPTION_5008", "SELECT_OPTION_5009", "SELECT_OPTION_5010", "SELECT_OPTION_5011", "SELECT_OPTION_5012", "SELECT_OPTION_5013", "ENTER_REGION_5014", "ENTER_REGION_5015" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 5004, 5005 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_5002(context, evt)
if 5001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_5002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {210,211}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_5003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 201052005, 5001, {210,211}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5006(context, evt)
-- 判断是gadgetid 5001 option_id 210
if 5001 ~= evt.param1 then
return false
end
if 210 ~= evt.param2 then
return false
end
-- 判断变量"stage2state"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "stage2state", 201052008) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5006(context, evt)
-- 删除指定group 201052005 指定config5001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052005, 5001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052005 指定config5001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052005, 5001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-2681161持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-26, y=81, z=161}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage2" 的变量设置为 102
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage2", 102, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052005的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052005, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8007的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8010的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8010, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5007(context, evt)
-- 判断是gadgetid 5001 option_id 210
if 5001 ~= evt.param1 then
return false
end
if 210 ~= evt.param2 then
return false
end
-- 判断变量"stage2state"为2
if ScriptLib.GetGroupVariableValueByGroup(context, "stage2state", 201052008) ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5007(context, evt)
-- 删除指定group 201052005 指定config5001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052005, 5001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052005 指定config5001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052005, 5001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-2681161持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-26, y=81, z=161}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage2" 的变量设置为 203
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage2", 203, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052005的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052005, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8007的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8010的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8010, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5008(context, evt)
-- 判断是gadgetid 5001 option_id 210
if 5001 ~= evt.param1 then
return false
end
if 210 ~= evt.param2 then
return false
end
-- 判断变量"stage2state"为3
if ScriptLib.GetGroupVariableValueByGroup(context, "stage2state", 201052008) ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5008(context, evt)
-- 删除指定group 201052005 指定config5001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052005, 5001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052005 指定config5001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052005, 5001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-2681161持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-26, y=81, z=161}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage2" 的变量设置为 304
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage2", 304, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052005的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052005, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8007的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8010的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8010, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5009(context, evt)
-- 判断是gadgetid 5001 option_id 210
if 5001 ~= evt.param1 then
return false
end
if 210 ~= evt.param2 then
return false
end
-- 判断变量"stage2state"为4
if ScriptLib.GetGroupVariableValueByGroup(context, "stage2state", 201052008) ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5009(context, evt)
-- 删除指定group 201052005 指定config5001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052005, 5001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052005 指定config5001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052005, 5001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-2681161持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-26, y=81, z=161}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage2" 的变量设置为 401
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage2", 401, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052005的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052005, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8007的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8010的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8010, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5010(context, evt)
-- 判断是gadgetid 5001 option_id 211
if 5001 ~= evt.param1 then
return false
end
if 211 ~= evt.param2 then
return false
end
-- 判断变量"stage2state"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "stage2state", 201052008) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5010(context, evt)
-- 删除指定group 201052005 指定config5001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052005, 5001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052005 指定config5001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052005, 5001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-2681161持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-26, y=81, z=161}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage2" 的变量设置为 104
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage2", 104, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052005的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052005, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8007的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8010的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8010, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5011(context, evt)
-- 判断是gadgetid 5001 option_id 211
if 5001 ~= evt.param1 then
return false
end
if 211 ~= evt.param2 then
return false
end
-- 判断变量"stage2state"为2
if ScriptLib.GetGroupVariableValueByGroup(context, "stage2state", 201052008) ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5011(context, evt)
-- 删除指定group 201052005 指定config5001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052005, 5001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052005 指定config5001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052005, 5001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-2681161持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-26, y=81, z=161}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage2" 的变量设置为 201
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage2", 201, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052005的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052005, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8007的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8010的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8010, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5012(context, evt)
-- 判断是gadgetid 5001 option_id 211
if 5001 ~= evt.param1 then
return false
end
if 211 ~= evt.param2 then
return false
end
-- 判断变量"stage2state"为3
if ScriptLib.GetGroupVariableValueByGroup(context, "stage2state", 201052008) ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5012(context, evt)
-- 删除指定group 201052005 指定config5001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052005, 5001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052005 指定config5001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052005, 5001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-2681161持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-26, y=81, z=161}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage2" 的变量设置为 302
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage2", 302, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052005的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052005, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8007的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8010的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8010, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5013(context, evt)
-- 判断是gadgetid 5001 option_id 211
if 5001 ~= evt.param1 then
return false
end
if 211 ~= evt.param2 then
return false
end
-- 判断变量"stage2state"为4
if ScriptLib.GetGroupVariableValueByGroup(context, "stage2state", 201052008) ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5013(context, evt)
-- 删除指定group 201052005 指定config5001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052005, 5001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052005 指定config5001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052005, 5001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-2681161持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-26, y=81, z=161}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage2" 的变量设置为 403
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage2", 403, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052005的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052005, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8007的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8010的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8010, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
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)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 5005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_5015(context, evt)
if evt.param1 ~= 5015 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_5015(context, evt)
-- 触发镜头注目,注目位置为坐标(-55105191持续时间为1.5秒,并且为强制注目形式,不广播其他玩家
local pos = {x=-55, y=105, z=191}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 1.5, 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
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201052006, 2)
return 0
end

View File

@@ -0,0 +1,787 @@
-- 基础信息
local base_info = {
group_id = 201052006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6001, gadget_id = 70360002, pos = { x = 7.170, y = 101.882, z = 120.565 }, rot = { x = 0.000, y = 43.308, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 6002, gadget_id = 70900201, pos = { x = 7.204, y = 102.956, z = 120.553 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1006011, name = "GADGET_STATE_CHANGE_6011", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_6011", action = "action_EVENT_GADGET_STATE_CHANGE_6011" },
{ config_id = 1006012, name = "SELECT_OPTION_6012", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6012", action = "action_EVENT_SELECT_OPTION_6012", trigger_count = 0 },
{ config_id = 1006013, name = "SELECT_OPTION_6013", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6013", action = "action_EVENT_SELECT_OPTION_6013", trigger_count = 0 },
{ config_id = 1006014, name = "SELECT_OPTION_6014", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6014", action = "action_EVENT_SELECT_OPTION_6014", trigger_count = 0 },
{ config_id = 1006015, name = "SELECT_OPTION_6015", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6015", action = "action_EVENT_SELECT_OPTION_6015", trigger_count = 0 },
{ config_id = 1006016, name = "SELECT_OPTION_6016", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6016", action = "action_EVENT_SELECT_OPTION_6016", trigger_count = 0 },
{ config_id = 1006017, name = "SELECT_OPTION_6017", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6017", action = "action_EVENT_SELECT_OPTION_6017", trigger_count = 0 },
{ config_id = 1006018, name = "SELECT_OPTION_6018", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6018", action = "action_EVENT_SELECT_OPTION_6018", trigger_count = 0 },
{ config_id = 1006019, name = "SELECT_OPTION_6019", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6019", action = "action_EVENT_SELECT_OPTION_6019", trigger_count = 0 },
{ config_id = 1006020, name = "TIMER_EVENT_6020", event = EventType.EVENT_TIMER_EVENT, source = "finish", condition = "", action = "action_EVENT_TIMER_EVENT_6020", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6001 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_6011", "SELECT_OPTION_6012", "SELECT_OPTION_6013", "SELECT_OPTION_6014", "SELECT_OPTION_6015", "SELECT_OPTION_6016", "SELECT_OPTION_6017", "SELECT_OPTION_6018", "SELECT_OPTION_6019", "TIMER_EVENT_6020" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 6002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_6011(context, evt)
if 6001 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_6011(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 201052006, 6001, {210,211}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_6012(context, evt)
-- 判断是gadgetid 6001 option_id 210
if 6001 ~= evt.param1 then
return false
end
if 210 ~= evt.param2 then
return false
end
-- 判断变量"stage1state"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "stage1state", 201052008) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6012(context, evt)
-- 删除指定group 201052006 指定config6001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052006, 6001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052006 指定config6001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052006, 6001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-217284持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-21, y=72, z=84}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage1" 的变量设置为 102
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage1", 102, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052006的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052006, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_6013(context, evt)
-- 判断是gadgetid 6001 option_id 210
if 6001 ~= evt.param1 then
return false
end
if 210 ~= evt.param2 then
return false
end
-- 判断变量"stage1state"为2
if ScriptLib.GetGroupVariableValueByGroup(context, "stage1state", 201052008) ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6013(context, evt)
-- 删除指定group 201052006 指定config6001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052006, 6001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052006 指定config6001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052006, 6001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-217284持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-21, y=72, z=84}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage1" 的变量设置为 203
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage1", 203, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052006的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052006, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_6014(context, evt)
-- 判断是gadgetid 6001 option_id 210
if 6001 ~= evt.param1 then
return false
end
if 210 ~= evt.param2 then
return false
end
-- 判断变量"stage1state"为3
if ScriptLib.GetGroupVariableValueByGroup(context, "stage1state", 201052008) ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6014(context, evt)
-- 删除指定group 201052006 指定config6001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052006, 6001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052006 指定config6001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052006, 6001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-217284持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-21, y=72, z=84}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage1" 的变量设置为 304
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage1", 304, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052006的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052006, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_6015(context, evt)
-- 判断是gadgetid 6001 option_id 210
if 6001 ~= evt.param1 then
return false
end
if 210 ~= evt.param2 then
return false
end
-- 判断变量"stage1state"为4
if ScriptLib.GetGroupVariableValueByGroup(context, "stage1state", 201052008) ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6015(context, evt)
-- 删除指定group 201052006 指定config6001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052006, 6001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052006 指定config6001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052006, 6001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-217284持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-21, y=72, z=84}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage1" 的变量设置为 401
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage1", 401, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052006的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052006, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_6016(context, evt)
-- 判断是gadgetid 6001 option_id 211
if 6001 ~= evt.param1 then
return false
end
if 211 ~= evt.param2 then
return false
end
-- 判断变量"stage1state"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "stage1state", 201052008) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6016(context, evt)
-- 删除指定group 201052006 指定config6001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052006, 6001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052006 指定config6001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052006, 6001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-217284持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-21, y=72, z=84}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage1" 的变量设置为 104
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage1", 104, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052006的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052006, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_6017(context, evt)
-- 判断是gadgetid 6001 option_id 211
if 6001 ~= evt.param1 then
return false
end
if 211 ~= evt.param2 then
return false
end
-- 判断变量"stage1state"为2
if ScriptLib.GetGroupVariableValueByGroup(context, "stage1state", 201052008) ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6017(context, evt)
-- 删除指定group 201052006 指定config6001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052006, 6001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052006 指定config6001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052006, 6001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-217284持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-21, y=72, z=84}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage1" 的变量设置为 201
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage1", 201, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052006的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052006, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_6018(context, evt)
-- 判断是gadgetid 6001 option_id 211
if 6001 ~= evt.param1 then
return false
end
if 211 ~= evt.param2 then
return false
end
-- 判断变量"stage1state"为3
if ScriptLib.GetGroupVariableValueByGroup(context, "stage1state", 201052008) ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6018(context, evt)
-- 删除指定group 201052006 指定config6001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052006, 6001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052006 指定config6001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052006, 6001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-217284持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-21, y=72, z=84}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage1" 的变量设置为 302
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage1", 302, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052006的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052006, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_6019(context, evt)
-- 判断是gadgetid 6001 option_id 211
if 6001 ~= evt.param1 then
return false
end
if 211 ~= evt.param2 then
return false
end
-- 判断变量"stage1state"为4
if ScriptLib.GetGroupVariableValueByGroup(context, "stage1state", 201052008) ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6019(context, evt)
-- 删除指定group 201052006 指定config6001物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052006, 6001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201052006 指定config6001物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201052006, 6001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-217284持续时间为5秒并且为强制注目形式不广播其他玩家
local pos = {x=-21, y=72, z=84}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 5, 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
-- 将本组内变量名为 "stage1" 的变量设置为 403
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "stage1", 403, 201052008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为201052006的对象,请求一次调用,并将string参数"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052006, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052008中 configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052008中 configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052008, 8009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_6020(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 201052006, 6001, {210,211}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end

View File

@@ -0,0 +1,107 @@
-- 基础信息
local base_info = {
group_id = 201052007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7001, gadget_id = 70900201, pos = { x = -69.676, y = 109.024, z = 37.285 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 7002, shape = RegionShape.SPHERE, radius = 10, pos = { x = -70.092, y = 109.024, z = 36.901 } }
}
-- 触发器
triggers = {
{ config_id = 1007002, name = "ENTER_REGION_7002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_7002", action = "action_EVENT_ENTER_REGION_7002" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 7001 },
regions = { 7002 },
triggers = { "ENTER_REGION_7002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_7002(context, evt)
if evt.param1 ~= 7002 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_7002(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 7001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,197 @@
-- 基础信息
local base_info = {
group_id = 201052010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1010001, name = "GROUP_REFRESH_10001", event = EventType.EVENT_GROUP_REFRESH, source = "", condition = "", action = "action_EVENT_GROUP_REFRESH_10001", trigger_count = 0 },
{ config_id = 1010002, name = "TIMER_EVENT_10002", event = EventType.EVENT_TIMER_EVENT, source = "timeStart", condition = "", action = "action_EVENT_TIMER_EVENT_10002", trigger_count = 0 },
{ config_id = 1010003, name = "TIMER_EVENT_10003", event = EventType.EVENT_TIMER_EVENT, source = "time1", condition = "", action = "action_EVENT_TIMER_EVENT_10003", trigger_count = 0 },
{ config_id = 1010004, name = "TIMER_EVENT_10004", event = EventType.EVENT_TIMER_EVENT, source = "time2", condition = "", action = "action_EVENT_TIMER_EVENT_10004", trigger_count = 0 },
{ config_id = 1010005, name = "TIMER_EVENT_10005", event = EventType.EVENT_TIMER_EVENT, source = "time3", condition = "", action = "action_EVENT_TIMER_EVENT_10005", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "GROUP_REFRESH_10001", "TIMER_EVENT_10002", "TIMER_EVENT_10003", "TIMER_EVENT_10004", "TIMER_EVENT_10005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GROUP_REFRESH_10001(context, evt)
-- 延迟2秒后,向groupId为201052010的对象,请求一次调用,并将string参数"timeStart" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052010, "timeStart", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052009中 configid为9002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052009中 configid为9003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052009中 configid为9004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052009中 configid为9005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052009中 configid为9006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_10002(context, evt)
-- 改变指定group组201052009中 configid为9002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为201052010的对象,请求一次调用,并将string参数"time1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052010, "time1", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_10003(context, evt)
-- 改变指定group组201052009中 configid为9002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052009中 configid为9006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为201052010的对象,请求一次调用,并将string参数"time2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052010, "time2", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_10004(context, evt)
-- 改变指定group组201052009中 configid为9006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052009中 configid为9005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9005, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为201052010的对象,请求一次调用,并将string参数"time3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052010, "time3", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_10005(context, evt)
-- 改变指定group组201052009中 configid为9005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 将本组内变量名为 "type" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "type", 1, 201052009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end

View File

@@ -0,0 +1,221 @@
-- 基础信息
local base_info = {
group_id = 201052011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1011001, name = "GROUP_REFRESH_11001", event = EventType.EVENT_GROUP_REFRESH, source = "", condition = "", action = "action_EVENT_GROUP_REFRESH_11001", trigger_count = 0 },
{ config_id = 1011002, name = "TIMER_EVENT_11002", event = EventType.EVENT_TIMER_EVENT, source = "timeStart", condition = "", action = "action_EVENT_TIMER_EVENT_11002", trigger_count = 0 },
{ config_id = 1011003, name = "TIMER_EVENT_11003", event = EventType.EVENT_TIMER_EVENT, source = "time1", condition = "", action = "action_EVENT_TIMER_EVENT_11003", trigger_count = 0 },
{ config_id = 1011004, name = "TIMER_EVENT_11004", event = EventType.EVENT_TIMER_EVENT, source = "time2", condition = "", action = "action_EVENT_TIMER_EVENT_11004", trigger_count = 0 },
{ config_id = 1011005, name = "TIMER_EVENT_11005", event = EventType.EVENT_TIMER_EVENT, source = "time3", condition = "", action = "action_EVENT_TIMER_EVENT_11005", trigger_count = 0 },
{ config_id = 1011006, name = "TIMER_EVENT_11006", event = EventType.EVENT_TIMER_EVENT, source = "time4", condition = "", action = "action_EVENT_TIMER_EVENT_11006", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "GROUP_REFRESH_11001", "TIMER_EVENT_11002", "TIMER_EVENT_11003", "TIMER_EVENT_11004", "TIMER_EVENT_11005", "TIMER_EVENT_11006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GROUP_REFRESH_11001(context, evt)
-- 延迟2秒后,向groupId为201052011的对象,请求一次调用,并将string参数"timeStart" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052011, "timeStart", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052009中 configid为9002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052009中 configid为9003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052009中 configid为9004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052009中 configid为9005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052009中 configid为9006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_11002(context, evt)
-- 改变指定group组201052009中 configid为9004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为201052011的对象,请求一次调用,并将string参数"time1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052011, "time1", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_11003(context, evt)
-- 改变指定group组201052009中 configid为9004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052009中 configid为9006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为201052011的对象,请求一次调用,并将string参数"time2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052011, "time2", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_11004(context, evt)
-- 改变指定group组201052009中 configid为9006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052009中 configid为9002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为201052011的对象,请求一次调用,并将string参数"time3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052011, "time3", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_11005(context, evt)
-- 改变指定group组201052009中 configid为9002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052009中 configid为9005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9005, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为201052011的对象,请求一次调用,并将string参数"time4" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052011, "time4", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_11006(context, evt)
-- 改变指定group组201052009中 configid为9005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 将本组内变量名为 "type" 的变量设置为 2
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "type", 2, 201052009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end

View File

@@ -0,0 +1,245 @@
-- 基础信息
local base_info = {
group_id = 201052012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1012001, name = "GROUP_REFRESH_12001", event = EventType.EVENT_GROUP_REFRESH, source = "", condition = "", action = "action_EVENT_GROUP_REFRESH_12001", trigger_count = 0 },
{ config_id = 1012002, name = "TIMER_EVENT_12002", event = EventType.EVENT_TIMER_EVENT, source = "timeStart", condition = "", action = "action_EVENT_TIMER_EVENT_12002", trigger_count = 0 },
{ config_id = 1012003, name = "TIMER_EVENT_12003", event = EventType.EVENT_TIMER_EVENT, source = "time1", condition = "", action = "action_EVENT_TIMER_EVENT_12003", trigger_count = 0 },
{ config_id = 1012004, name = "TIMER_EVENT_12004", event = EventType.EVENT_TIMER_EVENT, source = "time2", condition = "", action = "action_EVENT_TIMER_EVENT_12004", trigger_count = 0 },
{ config_id = 1012005, name = "TIMER_EVENT_12005", event = EventType.EVENT_TIMER_EVENT, source = "time3", condition = "", action = "action_EVENT_TIMER_EVENT_12005", trigger_count = 0 },
{ config_id = 1012006, name = "TIMER_EVENT_12006", event = EventType.EVENT_TIMER_EVENT, source = "time4", condition = "", action = "action_EVENT_TIMER_EVENT_12006", trigger_count = 0 },
{ config_id = 1012007, name = "TIMER_EVENT_12007", event = EventType.EVENT_TIMER_EVENT, source = "time5", condition = "", action = "action_EVENT_TIMER_EVENT_12007", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "GROUP_REFRESH_12001", "TIMER_EVENT_12002", "TIMER_EVENT_12003", "TIMER_EVENT_12004", "TIMER_EVENT_12005", "TIMER_EVENT_12006", "TIMER_EVENT_12007" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GROUP_REFRESH_12001(context, evt)
-- 延迟2秒后,向groupId为201052012的对象,请求一次调用,并将string参数"timeStart" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052012, "timeStart", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201052009中 configid为9002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052009中 configid为9003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052009中 configid为9004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052009中 configid为9005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052009中 configid为9006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_12002(context, evt)
-- 改变指定group组201052009中 configid为9003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为201052012的对象,请求一次调用,并将string参数"time1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052012, "time1", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_12003(context, evt)
-- 改变指定group组201052009中 configid为9003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052009中 configid为9005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9005, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为201052012的对象,请求一次调用,并将string参数"time2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052012, "time2", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_12004(context, evt)
-- 改变指定group组201052009中 configid为9005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052009中 configid为9002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为201052012的对象,请求一次调用,并将string参数"time3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052012, "time3", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_12005(context, evt)
-- 改变指定group组201052009中 configid为9002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052009中 configid为9006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为201052012的对象,请求一次调用,并将string参数"time4" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052012, "time4", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_12006(context, evt)
-- 改变指定group组201052009中 configid为9006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201052009中 configid为9004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为201052012的对象,请求一次调用,并将string参数"time5" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052012, "time5", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_12007(context, evt)
-- 改变指定group组201052009中 configid为9004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052009, 9004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 将本组内变量名为 "type" 的变量设置为 3
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "type", 3, 201052009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end

View File

@@ -0,0 +1,865 @@
-- 基础信息
local base_info = {
group_id = 201052013
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 13001, gadget_id = 70900007, pos = { x = 12.621, y = 102.075, z = 129.415 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 13002, gadget_id = 70900007, pos = { x = 16.275, y = 102.096, z = 125.654 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13003, gadget_id = 70900007, pos = { x = 21.870, y = 102.089, z = 126.899 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 13004, gadget_id = 70900007, pos = { x = 23.137, y = 102.107, z = 132.720 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13005, gadget_id = 70900007, pos = { x = 19.920, y = 102.085, z = 136.524 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 13006, gadget_id = 70900007, pos = { x = 14.086, y = 102.089, z = 135.267 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13033, gadget_id = 70211112, pos = { x = 17.965, y = 102.141, z = 131.003 }, rot = { x = 0.000, y = 271.785, z = 0.000 }, level = 6, drop_tag = "解谜中级璃月", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1013007, name = "GADGET_STATE_CHANGE_13007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_13007", action = "action_EVENT_GADGET_STATE_CHANGE_13007", trigger_count = 0 },
{ config_id = 1013008, name = "GADGET_STATE_CHANGE_13008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_13008", action = "action_EVENT_GADGET_STATE_CHANGE_13008", trigger_count = 0 },
{ config_id = 1013009, name = "GADGET_STATE_CHANGE_13009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_13009", action = "action_EVENT_GADGET_STATE_CHANGE_13009", trigger_count = 0 },
{ config_id = 1013010, name = "GADGET_STATE_CHANGE_13010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_13010", action = "action_EVENT_GADGET_STATE_CHANGE_13010", trigger_count = 0 },
{ config_id = 1013011, name = "VARIABLE_CHANGE_13011", event = EventType.EVENT_VARIABLE_CHANGE, source = "change1", condition = "condition_EVENT_VARIABLE_CHANGE_13011", action = "action_EVENT_VARIABLE_CHANGE_13011", trigger_count = 0 },
{ config_id = 1013012, name = "VARIABLE_CHANGE_13012", event = EventType.EVENT_VARIABLE_CHANGE, source = "change1", condition = "condition_EVENT_VARIABLE_CHANGE_13012", action = "action_EVENT_VARIABLE_CHANGE_13012", trigger_count = 0 },
{ config_id = 1013013, name = "GADGET_STATE_CHANGE_13013", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_13013", action = "action_EVENT_GADGET_STATE_CHANGE_13013", trigger_count = 0 },
{ config_id = 1013014, name = "GADGET_STATE_CHANGE_13014", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_13014", action = "action_EVENT_GADGET_STATE_CHANGE_13014", trigger_count = 0 },
{ config_id = 1013015, name = "VARIABLE_CHANGE_13015", event = EventType.EVENT_VARIABLE_CHANGE, source = "change2", condition = "condition_EVENT_VARIABLE_CHANGE_13015", action = "action_EVENT_VARIABLE_CHANGE_13015", trigger_count = 0 },
{ config_id = 1013016, name = "VARIABLE_CHANGE_13016", event = EventType.EVENT_VARIABLE_CHANGE, source = "change2", condition = "condition_EVENT_VARIABLE_CHANGE_13016", action = "action_EVENT_VARIABLE_CHANGE_13016", trigger_count = 0 },
{ config_id = 1013017, name = "GADGET_STATE_CHANGE_13017", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_13017", action = "action_EVENT_GADGET_STATE_CHANGE_13017", trigger_count = 0 },
{ config_id = 1013018, name = "GADGET_STATE_CHANGE_13018", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_13018", action = "action_EVENT_GADGET_STATE_CHANGE_13018", trigger_count = 0 },
{ config_id = 1013019, name = "VARIABLE_CHANGE_13019", event = EventType.EVENT_VARIABLE_CHANGE, source = "change3", condition = "condition_EVENT_VARIABLE_CHANGE_13019", action = "action_EVENT_VARIABLE_CHANGE_13019", trigger_count = 0 },
{ config_id = 1013020, name = "VARIABLE_CHANGE_13020", event = EventType.EVENT_VARIABLE_CHANGE, source = "change3", condition = "condition_EVENT_VARIABLE_CHANGE_13020", action = "action_EVENT_VARIABLE_CHANGE_13020", trigger_count = 0 },
{ config_id = 1013021, name = "GADGET_STATE_CHANGE_13021", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_13021", action = "action_EVENT_GADGET_STATE_CHANGE_13021", trigger_count = 0 },
{ config_id = 1013022, name = "GADGET_STATE_CHANGE_13022", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_13022", action = "action_EVENT_GADGET_STATE_CHANGE_13022", trigger_count = 0 },
{ config_id = 1013023, name = "VARIABLE_CHANGE_13023", event = EventType.EVENT_VARIABLE_CHANGE, source = "change4", condition = "condition_EVENT_VARIABLE_CHANGE_13023", action = "action_EVENT_VARIABLE_CHANGE_13023", trigger_count = 0 },
{ config_id = 1013024, name = "VARIABLE_CHANGE_13024", event = EventType.EVENT_VARIABLE_CHANGE, source = "change4", condition = "condition_EVENT_VARIABLE_CHANGE_13024", action = "action_EVENT_VARIABLE_CHANGE_13024", trigger_count = 0 },
{ config_id = 1013025, name = "GADGET_STATE_CHANGE_13025", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_13025", action = "action_EVENT_GADGET_STATE_CHANGE_13025", trigger_count = 0 },
{ config_id = 1013026, name = "GADGET_STATE_CHANGE_13026", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_13026", action = "action_EVENT_GADGET_STATE_CHANGE_13026", trigger_count = 0 },
{ config_id = 1013027, name = "VARIABLE_CHANGE_13027", event = EventType.EVENT_VARIABLE_CHANGE, source = "change5", condition = "condition_EVENT_VARIABLE_CHANGE_13027", action = "action_EVENT_VARIABLE_CHANGE_13027", trigger_count = 0 },
{ config_id = 1013028, name = "VARIABLE_CHANGE_13028", event = EventType.EVENT_VARIABLE_CHANGE, source = "change5", condition = "condition_EVENT_VARIABLE_CHANGE_13028", action = "action_EVENT_VARIABLE_CHANGE_13028", trigger_count = 0 },
{ config_id = 1013029, name = "TIMER_EVENT_13029", event = EventType.EVENT_TIMER_EVENT, source = "timeFin", condition = "condition_EVENT_TIMER_EVENT_13029", action = "action_EVENT_TIMER_EVENT_13029" },
{ config_id = 1013030, name = "GADGET_STATE_CHANGE_13030", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "action_EVENT_GADGET_STATE_CHANGE_13030", trigger_count = 0 },
{ config_id = 1013031, name = "VARIABLE_CHANGE_13031", event = EventType.EVENT_VARIABLE_CHANGE, source = "change6", condition = "condition_EVENT_VARIABLE_CHANGE_13031", action = "action_EVENT_VARIABLE_CHANGE_13031", trigger_count = 0 },
{ config_id = 1013032, name = "VARIABLE_CHANGE_13032", event = EventType.EVENT_VARIABLE_CHANGE, source = "change6", condition = "condition_EVENT_VARIABLE_CHANGE_13032", action = "action_EVENT_VARIABLE_CHANGE_13032", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "change1", value = 0, no_refresh = false },
{ config_id = 2, name = "change2", value = 0, no_refresh = false },
{ config_id = 3, name = "change3", value = 0, no_refresh = false },
{ config_id = 4, name = "change4", value = 0, no_refresh = false },
{ config_id = 5, name = "change5", value = 0, no_refresh = false },
{ config_id = 6, name = "change6", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 13001, 13002, 13003, 13004, 13005, 13006, 13033 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_13007", "GADGET_STATE_CHANGE_13008", "GADGET_STATE_CHANGE_13009", "GADGET_STATE_CHANGE_13010", "VARIABLE_CHANGE_13011", "VARIABLE_CHANGE_13012", "GADGET_STATE_CHANGE_13013", "GADGET_STATE_CHANGE_13014", "VARIABLE_CHANGE_13015", "VARIABLE_CHANGE_13016", "GADGET_STATE_CHANGE_13017", "GADGET_STATE_CHANGE_13018", "VARIABLE_CHANGE_13019", "VARIABLE_CHANGE_13020", "GADGET_STATE_CHANGE_13021", "GADGET_STATE_CHANGE_13022", "VARIABLE_CHANGE_13023", "VARIABLE_CHANGE_13024", "GADGET_STATE_CHANGE_13025", "GADGET_STATE_CHANGE_13026", "VARIABLE_CHANGE_13027", "VARIABLE_CHANGE_13028", "TIMER_EVENT_13029", "GADGET_STATE_CHANGE_13030", "VARIABLE_CHANGE_13031", "VARIABLE_CHANGE_13032" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_13007(context, evt)
if 13006 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
-- 判断变量"change6"为0
if ScriptLib.GetGroupVariableValue(context, "change6") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_13007(context, evt)
-- 将本组内变量名为 "change1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "change1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "change5" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "change5", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_13008(context, evt)
if 13006 ~= evt.param2 then
return false
end
-- 判断变量"change6"为1
if ScriptLib.GetGroupVariableValue(context, "change6") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_13008(context, evt)
-- 将本组内变量名为 "change6" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "change6", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_13009(context, evt)
if 13001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
-- 判断变量"change1"为0
if ScriptLib.GetGroupVariableValue(context, "change1") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_13009(context, evt)
-- 将本组内变量名为 "change2" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "change2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "change6" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "change6", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_13010(context, evt)
if 13001 ~= evt.param2 then
return false
end
-- 判断变量"change1"为1
if ScriptLib.GetGroupVariableValue(context, "change1") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_13010(context, evt)
-- 将本组内变量名为 "change1" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "change1", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_13011(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"change1"为1
if ScriptLib.GetGroupVariableValue(context, "change1") ~= 1 then
return false
end
-- 判断6001的状态为DEFAULT
if GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 201052013, 13001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13011(context, evt)
-- 改变指定group组201052013中 configid为13001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052013, 13001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_13012(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"change1"为1
if ScriptLib.GetGroupVariableValue(context, "change1") ~= 1 then
return false
end
-- 判断6001的状态为DEFAULT
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 201052013, 13001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13012(context, evt)
-- 改变指定group组201052013中 configid为13001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052013, 13001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_13013(context, evt)
if 13002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
-- 判断变量"change2"为0
if ScriptLib.GetGroupVariableValue(context, "change2") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_13013(context, evt)
-- 将本组内变量名为 "change1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "change1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "change3" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "change3", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_13014(context, evt)
if 13002 ~= evt.param2 then
return false
end
-- 判断变量"change2"为1
if ScriptLib.GetGroupVariableValue(context, "change2") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_13014(context, evt)
-- 将本组内变量名为 "change2" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "change2", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_13015(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"change2"为1
if ScriptLib.GetGroupVariableValue(context, "change2") ~= 1 then
return false
end
-- 判断6001的状态为DEFAULT
if GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 201052013, 13002) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13015(context, evt)
-- 改变指定group组201052013中 configid为13002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052013, 13002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_13016(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"change2"为1
if ScriptLib.GetGroupVariableValue(context, "change2") ~= 1 then
return false
end
-- 判断6001的状态为DEFAULT
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 201052013, 13002) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13016(context, evt)
-- 改变指定group组201052013中 configid为13002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052013, 13002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_13017(context, evt)
if 13003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
-- 判断变量"change3"为0
if ScriptLib.GetGroupVariableValue(context, "change3") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_13017(context, evt)
-- 将本组内变量名为 "change2" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "change2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "change4" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "change4", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_13018(context, evt)
if 13003 ~= evt.param2 then
return false
end
-- 判断变量"change2"为1
if ScriptLib.GetGroupVariableValue(context, "change3") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_13018(context, evt)
-- 将本组内变量名为 "change3" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "change3", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_13019(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"change3"为1
if ScriptLib.GetGroupVariableValue(context, "change3") ~= 1 then
return false
end
-- 判断6003的状态为DEFAULT
if GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 201052013, 13003) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13019(context, evt)
-- 改变指定group组201052013中 configid为13003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052013, 13003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_13020(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"change2"为1
if ScriptLib.GetGroupVariableValue(context, "change3") ~= 1 then
return false
end
-- 判断6003的状态为DEFAULT
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 201052013, 13003) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13020(context, evt)
-- 改变指定group组201052013中 configid为13003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052013, 13003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_13021(context, evt)
if 13004 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
-- 判断变量"change4"为0
if ScriptLib.GetGroupVariableValue(context, "change4") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_13021(context, evt)
-- 将本组内变量名为 "change3" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "change3", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "change5" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "change5", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_13022(context, evt)
if 13004 ~= evt.param2 then
return false
end
-- 判断变量"change4"为1
if ScriptLib.GetGroupVariableValue(context, "change4") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_13022(context, evt)
-- 将本组内变量名为 "change4" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "change4", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_13023(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"change3"为1
if ScriptLib.GetGroupVariableValue(context, "change4") ~= 1 then
return false
end
-- 判断6004的状态为DEFAULT
if GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 201052013, 13004) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13023(context, evt)
-- 改变指定group组201052013中 configid为13004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052013, 13004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_13024(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"change4"为1
if ScriptLib.GetGroupVariableValue(context, "change4") ~= 1 then
return false
end
-- 判断6003的状态为DEFAULT
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 201052013, 13004) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13024(context, evt)
-- 改变指定group组201052013中 configid为13004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052013, 13004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_13025(context, evt)
if 13005 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
-- 判断变量"change5"为0
if ScriptLib.GetGroupVariableValue(context, "change5") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_13025(context, evt)
-- 将本组内变量名为 "change6" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "change6", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "change4" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "change4", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_13026(context, evt)
if 13005 ~= evt.param2 then
return false
end
-- 判断变量"change4"为1
if ScriptLib.GetGroupVariableValue(context, "change5") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_13026(context, evt)
-- 将本组内变量名为 "change5" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "change5", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_13027(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"change3"为1
if ScriptLib.GetGroupVariableValue(context, "change5") ~= 1 then
return false
end
-- 判断6004的状态为DEFAULT
if GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 201052013, 13005) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13027(context, evt)
-- 改变指定group组201052013中 configid为13005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052013, 13005, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_13028(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"change4"为1
if ScriptLib.GetGroupVariableValue(context, "change5") ~= 1 then
return false
end
-- 判断6003的状态为DEFAULT
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 201052013, 13005) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13028(context, evt)
-- 改变指定group组201052013中 configid为13005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052013, 13005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIMER_EVENT_13029(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 201052013, 13006) then
return false
end
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 201052013, 13005) then
return false
end
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 201052013, 13004) then
return false
end
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 201052013, 13003) then
return false
end
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 201052013, 13002) then
return false
end
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 201052013, 13001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIMER_EVENT_13029(context, evt)
-- 改变指定group组201052006中 configid为6001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052006, 6001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 触发镜头注目注目位置为坐标7102120持续时间为1.5秒,并且为强制注目形式,不广播其他玩家
local pos = {x=7, y=102, z=120}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 1.5, 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
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 201052006, 2)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201052007, 2)
-- 将configid为 13033 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 13033, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_13030(context, evt)
-- 延迟0.5秒后,向groupId为201052013的对象,请求一次调用,并将string参数"timeFin" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201052013, "timeFin", 0.5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_13031(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"change6"为1
if ScriptLib.GetGroupVariableValue(context, "change6") ~= 1 then
return false
end
-- 判断6001的状态为DEFAULT
if GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 201052013, 13006) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13031(context, evt)
-- 改变指定group组201052013中 configid为13006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052013, 13006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_13032(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"change6"为1
if ScriptLib.GetGroupVariableValue(context, "change6") ~= 1 then
return false
end
-- 判断6001的状态为DEFAULT
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 201052013, 13006) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13032(context, evt)
-- 改变指定group组201052013中 configid为13006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052013, 13006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end

View File

@@ -0,0 +1,163 @@
-- 基础信息
local base_info = {
group_id = 201052014
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 14001, monster_id = 20010501, pos = { x = 21.957, y = 92.837, z = 39.278 }, rot = { x = 0.000, y = 85.906, z = 0.000 }, level = 1 },
{ config_id = 14002, monster_id = 20010801, pos = { x = 27.328, y = 92.851, z = 36.015 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 14003, monster_id = 20010501, pos = { x = 31.386, y = 92.852, z = 38.431 }, rot = { x = 0.000, y = 289.613, z = 0.000 }, level = 1 },
{ config_id = 14004, monster_id = 20010801, pos = { x = 30.850, y = 92.855, z = 43.446 }, rot = { x = 0.000, y = 241.209, z = 0.000 }, level = 1 },
{ config_id = 14005, monster_id = 20010901, pos = { x = 24.953, y = 92.857, z = 44.306 }, rot = { x = 0.000, y = 142.464, z = 0.000 }, level = 1 },
{ config_id = 14006, monster_id = 20010501, pos = { x = 24.708, y = 92.849, z = 36.702 }, rot = { x = 0.000, y = 37.783, z = 0.000 }, level = 1 },
{ config_id = 14007, monster_id = 20010501, pos = { x = 22.488, y = 92.844, z = 41.890 }, rot = { x = 0.000, y = 113.261, z = 0.000 }, level = 1 },
{ config_id = 14008, monster_id = 20010701, pos = { x = 28.359, y = 92.858, z = 44.903 }, rot = { x = 0.000, y = 181.495, z = 0.000 }, level = 1 },
{ config_id = 14009, monster_id = 20010501, pos = { x = 29.271, y = 92.859, z = 36.973 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 14010, monster_id = 20010601, pos = { x = 26.542, y = 92.864, z = 44.953 }, rot = { x = 0.000, y = 162.891, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1014011, name = "ANY_MONSTER_LIVE_14011", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_14011", action = "action_EVENT_ANY_MONSTER_LIVE_14011", trigger_count = 0 },
{ config_id = 1014012, name = "CHALLENGE_SUCCESS_14012", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "1401", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_14012", trigger_count = 0 },
{ config_id = 1014013, name = "CHALLENGE_FAIL_14013", event = EventType.EVENT_CHALLENGE_FAIL, source = "1401", condition = "", action = "action_EVENT_CHALLENGE_FAIL_14013", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_LIVE_14011", "CHALLENGE_SUCCESS_14012", "CHALLENGE_FAIL_14013" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 14001, 14002, 14003, 14004, 14005, 14006, 14007, 14008, 14009, 14010 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_14011(context, evt)
if 14001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_14011(context, evt)
-- 创建编号为1401该挑战的识别id),挑战内容为2的区域挑战具体参数填写方式见DungeonChallengeData表中的注释所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 1401, 2, 120, 201052014, 10, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 201052002, monsters = {}, gadgets = {2004} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_14012(context, evt)
-- 改变指定group组201052002中 configid为2001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052002, 2001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 触发镜头注目注目位置为坐标149252持续时间为1.5秒,并且为强制注目形式,不广播其他玩家
local pos = {x=14, y=92, z=52}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 1.5, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 201052002, 3)
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_14013(context, evt)
-- 改变指定group组201052002中 configid为2017的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201052002, 2017, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 201052014, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201052002, 2)
return 0
end

View File

@@ -0,0 +1,74 @@
-- 基础信息
local base_info = {
group_id = 201052015
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 15001, gadget_id = 70211102, pos = { x = -147.093, y = 104.171, z = 105.641 }, rot = { x = 0.000, y = 350.291, z = 0.000 }, level = 6, drop_tag = "解谜低级璃月", state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 15002, gadget_id = 70211112, pos = { x = -149.759, y = 104.189, z = 106.127 }, rot = { x = 0.000, y = 31.198, z = 0.000 }, level = 6, drop_tag = "解谜中级璃月", state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 15003, gadget_id = 70211122, pos = { x = -151.293, y = 104.215, z = 108.225 }, rot = { x = 0.000, y = 94.291, z = 0.000 }, level = 6, drop_tag = "解谜高级璃月", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 15001, 15002, 15003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,88 @@
-- 基础信息
local base_info = {
group_id = 201052016
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 16001, gadget_id = 70220013, pos = { x = 20.151, y = 92.910, z = 33.037 }, rot = { x = 0.000, y = 353.386, z = 0.000 }, level = 1 },
{ config_id = 16002, gadget_id = 70220014, pos = { x = 22.932, y = 92.920, z = 32.988 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16003, gadget_id = 70220014, pos = { x = 21.845, y = 92.909, z = 33.941 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16004, gadget_id = 70220014, pos = { x = -70.621, y = 95.550, z = 118.092 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16005, gadget_id = 70220014, pos = { x = -69.943, y = 95.595, z = 119.190 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16006, gadget_id = 70220014, pos = { x = -70.656, y = 95.613, z = 120.185 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16007, gadget_id = 70220014, pos = { x = -73.807, y = 95.263, z = 198.103 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16008, gadget_id = 70220014, pos = { x = -73.725, y = 95.263, z = 196.552 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16009, gadget_id = 70220013, pos = { x = -72.028, y = 95.259, z = 197.662 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16010, gadget_id = 70220013, pos = { x = -70.952, y = 95.268, z = 194.963 }, rot = { x = 0.000, y = 334.129, z = 0.000 }, level = 1 },
{ config_id = 16011, gadget_id = 70211101, pos = { x = -69.566, y = 95.260, z = 196.658 }, rot = { x = 0.000, y = 245.358, z = 0.000 }, level = 6, drop_tag = "解谜低级璃月", isOneoff = true, persistent = true },
{ config_id = 16012, gadget_id = 70220013, pos = { x = -59.081, y = 106.041, z = 201.350 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16013, gadget_id = 70220013, pos = { x = -61.454, y = 106.034, z = 202.179 }, rot = { x = 0.000, y = 308.221, z = 0.000 }, level = 1 },
{ config_id = 16014, gadget_id = 70220014, pos = { x = -59.453, y = 106.043, z = 203.289 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16015, gadget_id = 70220014, pos = { x = -59.897, y = 105.324, z = 49.749 }, rot = { x = 299.370, y = 17.701, z = 344.455 }, level = 1 },
{ config_id = 16016, gadget_id = 70220014, pos = { x = -53.640, y = 105.774, z = 43.619 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16017, gadget_id = 70220014, pos = { x = -52.398, y = 105.775, z = 43.865 }, 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 = { 16001, 16002, 16003, 16004, 16005, 16006, 16007, 16008, 16009, 16010, 16011, 16012, 16013, 16014, 16015, 16016, 16017 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,96 @@
-- 基础信息
local base_info = {
group_id = 201052017
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 17001, shape = RegionShape.SPHERE, radius = 6, pos = { x = 42.473, y = 90.679, z = 47.066 } }
}
-- 触发器
triggers = {
{ config_id = 1017001, name = "ENTER_REGION_17001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_17001", action = "action_EVENT_ENTER_REGION_17001" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 17001 },
triggers = { "ENTER_REGION_17001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_17001(context, evt)
if evt.param1 ~= 17001 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_17001(context, evt)
-- 调用提示id为 10520101 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 10520101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end

View File

@@ -0,0 +1,201 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": -78.79102,
"y": 109.0235,
"z": 27.23838
},
"rot": {
"x": 0.0,
"y": 43.5375,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"2": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": -54.97501,
"y": 95.63805,
"z": 113.8643
},
"rot": {
"x": 0.0,
"y": 317.1406,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"3": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": -71.34744,
"y": 106.0108,
"z": 194.9399
},
"rot": {
"x": 0.0,
"y": 69.662,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"4": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": 6.751117,
"y": 101.9704,
"z": 137.2579
},
"rot": {
"x": 0.0,
"y": 134.995,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"5": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": -52.55043,
"y": 105.6485,
"z": 56.00346
},
"rot": {
"x": 0.0,
"y": 216.197,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}