添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions
@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -826.5, z = -631.4 },
size = { x = 1440.9, z = 1720.0 },
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 = { 1058 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -826.5, z = -631.4 }, max = { x = 614.4, z = 1088.6 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,20 @@
-- 所有的group
groups = {
{ id = 201058002, refresh_id = 1, pos = { x = 19.721, y = 96.784, z = 46.354 } },
{ id = 201058003, refresh_id = 1, pos = { x = -61.521, y = 95.596, z = 119.264 } },
{ id = 201058004, refresh_id = 1, pos = { x = -148.271, y = 104.196, z = 108.790 } },
{ id = 201058005, refresh_id = 1, pos = { x = -70.406, y = 106.036, z = 194.475 } },
{ id = 201058006, refresh_id = 1, pos = { x = 19.085, y = 102.215, z = 131.074 } },
{ id = 201058007, refresh_id = 1, pos = { x = -77.034, y = 109.106, z = 32.552 } },
{ id = 201058008, refresh_id = 1, pos = { x = -21.423, y = 88.672, z = 84.091 } },
{ id = 201058009, refresh_id = 1, pos = { x = -143.430, y = 101.712, z = 102.762 } },
{ id = 201058010, pos = { x = -72.787, y = 109.970, z = 39.720 } },
{ id = 201058011, pos = { x = -69.102, y = 110.842, z = 31.075 } },
{ id = 201058012, pos = { x = -104.983, y = 88.404, z = 154.708 } },
{ id = 201058013, refresh_id = 1, pos = { x = 19.383, y = 102.134, z = 130.895 } },
{ id = 201058014, refresh_id = 1001, pos = { x = 27.622, y = 93.190, z = 40.443 } },
{ id = 201058015, pos = { x = 52.587, y = 89.748, z = 52.180 } },
{ id = 201058016, refresh_id = 1001, pos = { x = 52.856, y = 89.752, z = 51.194 } },
{ id = 201058017, refresh_id = 1, pos = { x = -26.790, y = 97.461, z = 160.670 } },
{ id = 201058018, pos = { x = 26.643, y = 92.886, z = 38.545 } }
}
@@ -0,0 +1,5 @@
dummy_points = {
["Q100904Paimon"] = { pos = { x = -75.276, y = 109.027, z = 31.751 }, rot = { x = 0.000, y = 196.026, z = 0.000 } },
["Q100904PlayerPos"] = { pos = { x = -74.933, y = 109.026, z = 31.417 }, rot = { x = 0.000, y = 245.137, z = 0.000 } },
["Q7180206Fei"] = { pos = { x = -75.516, y = 109.026, z = 31.016 }, rot = { x = 0.000, y = 46.571, z = 0.000 } }
}
@@ -0,0 +1,986 @@
-- 基础信息
local base_info = {
group_id = 201058002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
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 },
{ 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_CREATE_2002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_2002", action = "action_EVENT_GADGET_CREATE_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" },
{ config_id = 1002019, name = "SELECT_OPTION_2019", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2019", action = "action_EVENT_SELECT_OPTION_2019" },
{ config_id = 1002020, name = "SELECT_OPTION_2020", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2020", action = "action_EVENT_SELECT_OPTION_2020" }
}
-- 变量
variables = {
{ config_id = 1, name = "hasStartedChallenge", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001 },
regions = { 2006 },
triggers = { "GADGET_CREATE_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", "GADGET_STATE_CHANGE_2018", "SELECT_OPTION_2019", "SELECT_OPTION_2020" },
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
},
{
-- suite_id = 4,
-- description = 原Suite1,
monsters = { },
gadgets = { },
regions = { 2015 },
triggers = { "ENTER_REGION_2015", "TIMER_EVENT_2016" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_2002(context, evt)
if 2001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_2002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 201058002, 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", 201058008) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2003(context, evt)
-- 删除指定group 201058002 ;指定config2001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058002, 2001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058002 ;指定config2001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058002, 2001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-21,72,84),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058002的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058002, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 201058016, 3)
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", 201058008) ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2007(context, evt)
-- 删除指定group 201058002 ;指定config2001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058002, 2001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058002 ;指定config2001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058002, 2001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-21,72,84),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058002的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058002, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2008(context, evt)
-- 删除指定group 201058002 ;指定config2001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058002, 2001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058002 ;指定config2001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058002, 2001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-21,72,84),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058002的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058002, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2009(context, evt)
-- 删除指定group 201058002 ;指定config2001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058002, 2001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058002 ;指定config2001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058002, 2001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-21,72,84),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058002的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058002, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2010(context, evt)
-- 删除指定group 201058002 ;指定config2001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058002, 2001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058002 ;指定config2001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058002, 2001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-21,72,84),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058002的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058002, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2011(context, evt)
-- 删除指定group 201058002 ;指定config2001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058002, 2001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058002 ;指定config2001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058002, 2001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-21,72,84),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058002的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058002, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2012(context, evt)
-- 删除指定group 201058002 ;指定config2001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058002, 2001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058002 ;指定config2001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058002, 2001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-21,72,84),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058002的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058002, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2013(context, evt)
-- 删除指定group 201058002 ;指定config2001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058002, 2001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058002 ;指定config2001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058002, 2001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-21,72,84),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058002的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058002, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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, 201058002, 2001, {210,211}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 延迟1秒后,向groupId为:201058002的对象,请求一次调用,并将string参数:"tip2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058002, "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)
-- 触发镜头注目,注目位置为坐标(-52,106,50),持续时间为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, 201058014, {14001,14002,14003,14004,14005,14006,14007,14008,14009,14010}, 10, 2, 5) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2019(context, evt)
-- 判断变量"hasStartedChallenge"为0
if ScriptLib.GetGroupVariableValue(context, "hasStartedChallenge") ~= 0 then
return false
end
-- 判断是gadgetid 2001 option_id 210
if 2001 ~= evt.param1 then
return false
end
if 210 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2019(context, evt)
-- 将本组内变量名为 "hasStartedChallenge" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "hasStartedChallenge", 1, 201058002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "startChallenge" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "startChallenge", 1, 201058016) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2020(context, evt)
-- 判断变量"hasStartedChallenge"为0
if ScriptLib.GetGroupVariableValue(context, "hasStartedChallenge") ~= 0 then
return false
end
-- 判断是gadgetid 2001 option_id 211
if 2001 ~= evt.param1 then
return false
end
if 211 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2020(context, evt)
-- 将本组内变量名为 "hasStartedChallenge" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "hasStartedChallenge", 1, 201058002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 将本组内变量名为 "startChallenge" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "startChallenge", 1, 201058016) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
@@ -0,0 +1,739 @@
-- 基础信息
local base_info = {
group_id = 201058003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- 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 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1003002, name = "GADGET_CREATE_3002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_3002", action = "action_EVENT_GADGET_CREATE_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 = { },
gadgets = { 3001 },
regions = { },
triggers = { "GADGET_CREATE_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
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_3002(context, evt)
if 3001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_3002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 201058003, 3001, {210,211}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 触发镜头注目,注目位置为坐标(-68,95,125),持续时间为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
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", 201058008) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3003(context, evt)
-- 删除指定group 201058003 ;指定config3001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058003, 3001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058003 ;指定config3001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058003, 3001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-104,71,154),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058003的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058003, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3004(context, evt)
-- 删除指定group 201058003 ;指定config3001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058003, 3001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058003 ;指定config3001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058003, 3001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-104,71,154),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058003的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058003, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3007(context, evt)
-- 删除指定group 201058003 ;指定config3001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058003, 3001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058003 ;指定config3001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058003, 3001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-104,71,154),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058003的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058003, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3008(context, evt)
-- 删除指定group 201058003 ;指定config3001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058003, 3001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058003 ;指定config3001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058003, 3001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-104,71,154),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058003的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058003, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3009(context, evt)
-- 删除指定group 201058003 ;指定config3001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058003, 3001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058003 ;指定config3001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058003, 3001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-104,71,154),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058003的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058003, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3010(context, evt)
-- 删除指定group 201058003 ;指定config3001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058003, 3001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058003 ;指定config3001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058003, 3001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-104,71,154),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058003的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058003, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3011(context, evt)
-- 删除指定group 201058003 ;指定config3001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058003, 3001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058003 ;指定config3001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058003, 3001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-104,71,154),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058003的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058003, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3012(context, evt)
-- 删除指定group 201058003 ;指定config3001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058003, 3001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058003 ;指定config3001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058003, 3001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-104,71,154),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058003的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058003, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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, 201058003, 3001, {210,211}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,172 @@
-- 基础信息
local base_info = {
group_id = 201058004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
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)
-- 永久关闭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
-- 添加suite8的新内容
ScriptLib.AddExtraGroupSuite(context, 201058009, 8)
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, 201058004, 2)
return 0
end
@@ -0,0 +1,788 @@
-- 基础信息
local base_info = {
group_id = 201058005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
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, 201058005, 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", 201058008) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5006(context, evt)
-- 删除指定group 201058005 ;指定config5001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058005, 5001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058005 ;指定config5001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058005, 5001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-26,81,161),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058005的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058005, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8007的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8010的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5007(context, evt)
-- 删除指定group 201058005 ;指定config5001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058005, 5001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058005 ;指定config5001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058005, 5001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-26,81,161),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058005的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058005, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8007的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8010的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5008(context, evt)
-- 删除指定group 201058005 ;指定config5001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058005, 5001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058005 ;指定config5001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058005, 5001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-26,81,161),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058005的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058005, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8007的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8010的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5009(context, evt)
-- 删除指定group 201058005 ;指定config5001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058005, 5001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058005 ;指定config5001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058005, 5001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-26,81,161),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058005的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058005, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8007的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8010的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5010(context, evt)
-- 删除指定group 201058005 ;指定config5001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058005, 5001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058005 ;指定config5001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058005, 5001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-26,81,161),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058005的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058005, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8007的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8010的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5011(context, evt)
-- 删除指定group 201058005 ;指定config5001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058005, 5001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058005 ;指定config5001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058005, 5001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-26,81,161),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058005的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058005, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8007的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8010的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5012(context, evt)
-- 删除指定group 201058005 ;指定config5001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058005, 5001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058005 ;指定config5001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058005, 5001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-26,81,161),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058005的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058005, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8007的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8010的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5013(context, evt)
-- 删除指定group 201058005 ;指定config5001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058005, 5001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058005 ;指定config5001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058005, 5001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-26,81,161),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058005的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058005, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8007的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8010的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201058006, 2)
return 0
end
@@ -0,0 +1,821 @@
-- 基础信息
local base_info = {
group_id = 201058006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
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 },
{ 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 = 1006003, name = "GADGET_CREATE_6003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_6003", action = "action_EVENT_GADGET_CREATE_6003" },
{ 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_CREATE_6003", "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_CREATE_6003(context, evt)
if 6001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_6003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 201058006, 6001, {210,211}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
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, 201058006, 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", 201058008) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6012(context, evt)
-- 删除指定group 201058006 ;指定config6001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058006, 6001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058006 ;指定config6001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058006, 6001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-21,72,84),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058006的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058006, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6013(context, evt)
-- 删除指定group 201058006 ;指定config6001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058006, 6001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058006 ;指定config6001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058006, 6001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-21,72,84),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058006的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058006, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6014(context, evt)
-- 删除指定group 201058006 ;指定config6001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058006, 6001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058006 ;指定config6001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058006, 6001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-21,72,84),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058006的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058006, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6015(context, evt)
-- 删除指定group 201058006 ;指定config6001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058006, 6001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058006 ;指定config6001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058006, 6001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-21,72,84),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058006的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058006, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6016(context, evt)
-- 删除指定group 201058006 ;指定config6001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058006, 6001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058006 ;指定config6001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058006, 6001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-21,72,84),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058006的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058006, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6017(context, evt)
-- 删除指定group 201058006 ;指定config6001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058006, 6001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058006 ;指定config6001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058006, 6001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-21,72,84),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058006的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058006, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6018(context, evt)
-- 删除指定group 201058006 ;指定config6001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058006, 6001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058006 ;指定config6001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058006, 6001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-21,72,84),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058006的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058006, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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", 201058008) ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6019(context, evt)
-- 删除指定group 201058006 ;指定config6001;物件身上指定option210
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058006, 6001, 210) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 201058006 ;指定config6001;物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 201058006, 6001, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-21,72,84),持续时间为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, 201058008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟5秒后,向groupId为:201058006的对象,请求一次调用,并将string参数:"finish" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058006, "finish", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058008中, configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 8008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058008中, configid为8009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058008, 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, 201058006, 6001, {210,211}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 将本组内变量名为 "showGuidePoint1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "showGuidePoint1", 1, 201058017) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 6002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,107 @@
-- 基础信息
local base_info = {
group_id = 201058007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
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
@@ -0,0 +1,197 @@
-- 基础信息
local base_info = {
group_id = 201058010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
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为:201058010的对象,请求一次调用,并将string参数:"timeStart" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058010, "timeStart", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058009中, configid为9002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058009中, configid为9003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058009中, configid为9004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058009中, configid为9005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058009中, configid为9006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 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组201058009中, configid为9002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为:201058010的对象,请求一次调用,并将string参数:"time1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058010, "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组201058009中, configid为9002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058009中, configid为9006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为:201058010的对象,请求一次调用,并将string参数:"time2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058010, "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组201058009中, configid为9006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058009中, configid为9005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9005, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为:201058010的对象,请求一次调用,并将string参数:"time3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058010, "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组201058009中, configid为9005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 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, 201058009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
@@ -0,0 +1,221 @@
-- 基础信息
local base_info = {
group_id = 201058011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
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为:201058011的对象,请求一次调用,并将string参数:"timeStart" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058011, "timeStart", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058009中, configid为9002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058009中, configid为9003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058009中, configid为9004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058009中, configid为9005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058009中, configid为9006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 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组201058009中, configid为9004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为:201058011的对象,请求一次调用,并将string参数:"time1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058011, "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组201058009中, configid为9004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058009中, configid为9006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为:201058011的对象,请求一次调用,并将string参数:"time2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058011, "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组201058009中, configid为9006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058009中, configid为9002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为:201058011的对象,请求一次调用,并将string参数:"time3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058011, "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组201058009中, configid为9002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058009中, configid为9005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9005, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为:201058011的对象,请求一次调用,并将string参数:"time4" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058011, "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组201058009中, configid为9005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 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, 201058009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
@@ -0,0 +1,245 @@
-- 基础信息
local base_info = {
group_id = 201058012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
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为:201058012的对象,请求一次调用,并将string参数:"timeStart" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058012, "timeStart", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 改变指定group组201058009中, configid为9002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058009中, configid为9003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058009中, configid为9004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058009中, configid为9005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058009中, configid为9006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 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组201058009中, configid为9003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为:201058012的对象,请求一次调用,并将string参数:"time1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058012, "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组201058009中, configid为9003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058009中, configid为9005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9005, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为:201058012的对象,请求一次调用,并将string参数:"time2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058012, "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组201058009中, configid为9005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058009中, configid为9002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为:201058012的对象,请求一次调用,并将string参数:"time3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058012, "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组201058009中, configid为9002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058009中, configid为9006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为:201058012的对象,请求一次调用,并将string参数:"time4" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058012, "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组201058009中, configid为9006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组201058009中, configid为9004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 9004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟2秒后,向groupId为:201058012的对象,请求一次调用,并将string参数:"time5" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058012, "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组201058009中, configid为9004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058009, 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, 201058009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
@@ -0,0 +1,875 @@
-- 基础信息
local base_info = {
group_id = 201058013
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
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 = 70211132, pos = { x = 17.965, y = 102.141, z = 131.003 }, rot = { x = 0.000, y = 271.785, z = 0.000 }, level = 11, 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 = { },
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
},
{
-- suite_id = 3,
-- description = 原Suite1,
monsters = { },
gadgets = { 13001, 13002, 13003, 13004, 13005, 13006, 13033 },
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, 201058013, 13001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13011(context, evt)
-- 改变指定group组201058013中, configid为13001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058013, 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, 201058013, 13001) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13012(context, evt)
-- 改变指定group组201058013中, configid为13001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058013, 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, 201058013, 13002) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13015(context, evt)
-- 改变指定group组201058013中, configid为13002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058013, 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, 201058013, 13002) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13016(context, evt)
-- 改变指定group组201058013中, configid为13002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058013, 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, 201058013, 13003) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13019(context, evt)
-- 改变指定group组201058013中, configid为13003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058013, 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, 201058013, 13003) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13020(context, evt)
-- 改变指定group组201058013中, configid为13003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058013, 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, 201058013, 13004) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13023(context, evt)
-- 改变指定group组201058013中, configid为13004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058013, 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, 201058013, 13004) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13024(context, evt)
-- 改变指定group组201058013中, configid为13004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058013, 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, 201058013, 13005) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13027(context, evt)
-- 改变指定group组201058013中, configid为13005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058013, 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, 201058013, 13005) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13028(context, evt)
-- 改变指定group组201058013中, configid为13005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058013, 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, 201058013, 13006) then
return -1
end
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 201058013, 13005) then
return -1
end
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 201058013, 13004) then
return -1
end
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 201058013, 13003) then
return -1
end
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 201058013, 13002) then
return -1
end
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 201058013, 13001) then
return -1
end
return true
end
-- 触发操作
function action_EVENT_TIMER_EVENT_13029(context, evt)
-- 改变指定group组201058006中, configid为6001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058006, 6001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 触发镜头注目,注目位置为坐标(7,102,120),持续时间为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, 201058006, 2)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201058007, 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为:201058013的对象,请求一次调用,并将string参数:"timeFin" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201058013, "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, 201058013, 13006) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13031(context, evt)
-- 改变指定group组201058013中, configid为13006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058013, 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, 201058013, 13006) then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_13032(context, evt)
-- 改变指定group组201058013中, configid为13006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058013, 13006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,169 @@
-- 基础信息
local base_info = {
group_id = 201058014
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 14001, monster_id = 20011202, 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 = 20011202, 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 = 20011202, 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 = 20011202, 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 = 20011301, 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 = 20010701, 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 = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 14001, 14002, 14003, 14004, 14005, 14006, 14007, 14008, 14009, 14010 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = 原Suite1,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_LIVE_14011", "CHALLENGE_SUCCESS_14012", "CHALLENGE_FAIL_14013" },
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, 201058014, 10, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 201058002, 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组201058002中, configid为2001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058002, 2001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 触发镜头注目,注目位置为坐标(14,92,52),持续时间为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
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_14013(context, evt)
-- 改变指定group组201058002中, configid为2017的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 201058002, 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 = 201058014, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201058002, 2)
return 0
end
@@ -0,0 +1,96 @@
-- 基础信息
local base_info = {
group_id = 201058015
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 15001, shape = RegionShape.SPHERE, radius = 5, pos = { x = 44.082, y = 90.427, z = 48.554 } }
}
-- 触发器
triggers = {
{ config_id = 1015001, name = "ENTER_REGION_15001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_15001", action = "action_EVENT_ENTER_REGION_15001" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 15001 },
triggers = { "ENTER_REGION_15001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_15001(context, evt)
if evt.param1 ~= 15001 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_15001(context, evt)
-- 调用提示id为 10580101 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 10580101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,222 @@
-- 基础信息
local base_info = {
group_id = 201058016
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 16002, monster_id = 20011201, pos = { x = -60.217, y = 95.525, z = 121.048 }, rot = { x = 0.000, y = 195.959, z = 0.000 }, level = 1, disableWander = true, affix = { 1030 } },
{ config_id = 16003, monster_id = 20011201, pos = { x = -61.754, y = 95.525, z = 117.148 }, rot = { x = 0.000, y = 70.182, z = 0.000 }, level = 1, disableWander = true, affix = { 1030 } },
{ config_id = 16004, monster_id = 20011201, pos = { x = -64.427, y = 95.558, z = 120.358 }, rot = { x = 0.000, y = 91.152, z = 0.000 }, level = 1, disableWander = true, affix = { 1030 } },
{ config_id = 16007, monster_id = 20011001, pos = { x = -23.736, y = 88.406, z = 82.339 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1030 } },
{ config_id = 16008, monster_id = 20011001, pos = { x = -18.379, y = 88.410, z = 85.595 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1030 } },
{ config_id = 16009, monster_id = 20011001, pos = { x = -20.003, y = 88.414, z = 82.550 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1030 } },
{ config_id = 16010, monster_id = 20010301, pos = { x = -63.361, y = 106.041, z = 193.951 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1030 } },
{ config_id = 16011, monster_id = 20010301, pos = { x = -65.879, y = 106.041, z = 194.321 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1030 } },
{ config_id = 16012, monster_id = 20010301, pos = { x = -64.787, y = 106.046, z = 192.161 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1030 } },
{ config_id = 16016, monster_id = 20010501, pos = { x = -105.925, y = 88.402, z = 155.704 }, rot = { x = 0.000, y = 204.098, z = 0.000 }, level = 1, disableWander = true, affix = { 1030 } },
{ config_id = 16017, monster_id = 20010501, pos = { x = -102.280, y = 88.402, z = 153.810 }, rot = { x = 0.000, y = 204.098, z = 0.000 }, level = 1, disableWander = true, affix = { 1030 } },
{ config_id = 16024, monster_id = 20010501, pos = { x = -105.251, y = 88.402, z = 152.666 }, rot = { x = 0.000, y = 204.098, z = 0.000 }, level = 1, disableWander = true, affix = { 1030 } },
{ config_id = 16025, monster_id = 20010501, pos = { x = 18.169, y = 102.070, z = 134.953 }, rot = { x = 0.000, y = 204.098, z = 0.000 }, level = 1, disableWander = true, affix = { 1030 } },
{ config_id = 16026, monster_id = 20011001, pos = { x = 21.418, y = 102.070, z = 130.762 }, rot = { x = 0.000, y = 267.690, z = 0.000 }, level = 1, disableWander = true, affix = { 1030 } },
{ config_id = 16027, monster_id = 20011201, pos = { x = 16.218, y = 102.070, z = 129.383 }, rot = { x = 0.000, y = 267.690, z = 0.000 }, level = 1, disableWander = true, affix = { 1030 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 16005, gadget_id = 70710126, pos = { x = -61.814, y = 105.775, z = 45.044 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16018, gadget_id = 70360046, pos = { x = -76.887, y = 93.504, z = 119.045 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16019, gadget_id = 70360046, pos = { x = -128.429, y = 97.033, z = 117.775 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16020, gadget_id = 70360046, pos = { x = -85.489, y = 86.326, z = 180.735 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16028, gadget_id = 70360046, pos = { x = -22.652, y = 83.627, z = 157.125 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16029, gadget_id = 70360046, pos = { x = 21.545, y = 84.919, z = 130.695 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 16013, shape = RegionShape.SPHERE, radius = 8, pos = { x = -61.814, y = 105.775, z = 45.044 } }
}
-- 触发器
triggers = {
{ config_id = 1016001, name = "VARIABLE_CHANGE_16001", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_16001", action = "action_EVENT_VARIABLE_CHANGE_16001" },
{ config_id = 1016013, name = "ENTER_REGION_16013", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_16013", action = "action_EVENT_ENTER_REGION_16013", tag = "666" },
{ config_id = 1016014, name = "CHALLENGE_SUCCESS_16014", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "888", condition = "", action = "" },
{ config_id = 1016015, name = "CHALLENGE_FAIL_16015", event = EventType.EVENT_CHALLENGE_FAIL, source = "888", condition = "", action = "action_EVENT_CHALLENGE_FAIL_16015" }
}
-- 变量
variables = {
{ config_id = 1, name = "startChallenge", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 16005, 16018, 16019, 16020, 16028, 16029 },
regions = { 16013 },
triggers = { "VARIABLE_CHANGE_16001", "ENTER_REGION_16013", "CHALLENGE_SUCCESS_16014", "CHALLENGE_FAIL_16015" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = Monsters1,
monsters = { 16002, 16003, 16004 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = Monsters2,
monsters = { 16007, 16008, 16009 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = Monsters3,
monsters = { 16010, 16011, 16012 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = Monster4,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { 16016, 16017, 16024 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { 16025, 16026, 16027 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_16001(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"startChallenge"为1
if ScriptLib.GetGroupVariableValue(context, "startChallenge") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_16001(context, evt)
-- 创建编号为888(该挑战的识别id),挑战内容为205的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 888, 205, 150, 4, 666, 15) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201058016, 2)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 201058016, 3)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 201058016, 4)
-- 添加suite7的新内容
ScriptLib.AddExtraGroupSuite(context, 201058016, 7)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_16013(context, evt)
if evt.param1 ~= 16013 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_16013(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 16005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_16015(context, evt)
-- 地城失败结算
if 0 ~= ScriptLib.CauseDungeonFail(context) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : cause_dungeonfail")
return -1
end
return 0
end
@@ -0,0 +1,103 @@
-- 基础信息
local base_info = {
group_id = 201058017
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 17001, gadget_id = 70900201, pos = { x = -69.432, y = 109.024, z = 38.052 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1017002, name = "VARIABLE_CHANGE_17002", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_17002", action = "action_EVENT_VARIABLE_CHANGE_17002" }
}
-- 变量
variables = {
{ config_id = 1, name = "showGuidePoint1", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 17001 },
regions = { },
triggers = { "VARIABLE_CHANGE_17002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_17002(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"showGuidePoint1"为1
if ScriptLib.GetGroupVariableValue(context, "showGuidePoint1") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_17002(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 201058017, 2)
return 0
end
@@ -0,0 +1,100 @@
-- 基础信息
local base_info = {
group_id = 201058018
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 18001, shape = RegionShape.SPHERE, radius = 12, pos = { x = 23.113, y = 92.888, z = 44.547 } }
}
-- 触发器
triggers = {
{ config_id = 1018001, name = "ENTER_REGION_18001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_18001", action = "action_EVENT_ENTER_REGION_18001" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 18001 },
triggers = { "ENTER_REGION_18001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_18001(context, evt)
if evt.param1 ~= 18001 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_18001(context, evt)
-- 触发镜头注目,注目位置为坐标(-62,106,45),持续时间为1.5秒,并且为强制注目形式,不广播其他玩家
local pos = {x=-62, y=106, z=45}
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
return 0
end
@@ -0,0 +1,45 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": -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
}
},
"transRadius": 0.0
}