0
0
mirror of https://gitlab.com/YuukiPS/GC-Resources.git synced 2025-04-28 09:05:26 +00:00

add context in PrintLog

This commit is contained in:
Akbar Yahya 2022-12-08 06:13:30 +08:00
parent d1229130ac
commit 1781500771
182 changed files with 913 additions and 909 deletions

View File

@ -12,17 +12,17 @@ local defs = {
routeInfo = {route_1 = {1},route_2 = {2},route_3 = {3}}
function MovePlatform(context)
ScriptLib.PrintLog("Hit platform to move")
ScriptLib.PrintLog(context, "Hit platform to move")
local index = ScriptLib.GetGroupVariableValue(context,"route")
ScriptLib.PrintLog("Hit platform to move : get index = ".. index)
ScriptLib.PrintLog(context, "Hit platform to move : get index = ".. index)
local route = "route_" ..index
ScriptLib.PrintLog("Hit platform to move : get key = ".. route)
ScriptLib.PrintLog(context, "Hit platform to move : get key = ".. route)
ScriptLib.SetPlatformPointArray(context, 17002, 110100010, routeInfo[route], { route_type = 0 })
ScriptLib.PrintLog("Hit platform to move : start platform")
ScriptLib.PrintLog(context, "Hit platform to move : start platform")
index = index + 1
if index > defs.maxRouteCount then
index = 1

View File

@ -14,7 +14,7 @@ local defs = {
-- DEFS_MISCS
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
local pathnodeindex = ScriptLib.GetGroupVariableValue(context, "currentPathNode") + 1
if pathnodeindex > defs.maxPathNode then
@ -22,7 +22,7 @@ function MovePlatform(context)
end
ScriptLib.SetPlatformPointArray(context, defs.gadget_bubble, defs.pointarray_route, {pathnodeindex}, { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end

View File

@ -185,7 +185,7 @@ end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_59008(context, evt)
ScriptLib.PrintLog("## trigger_output="..evt.param1)
ScriptLib.PrintLog(context, "## trigger_output="..evt.param1)
ScriptLib.SetGroupDead(context, 0)
return 0
end

View File

@ -107,11 +107,11 @@ suites = {
function action_EVENT_GADGET_STATE_CHANGE_109005(context, evt)
if evt.param1 ~= 101 and evt.param1 ~= 102 and evt.param1 ~= 103 and evt.param1 ~= 104 then
ScriptLib.PrintLog("Block Event ".." : Gadget state = ".. evt.param1)
ScriptLib.PrintLog(context, "Block Event ".." : Gadget state = ".. evt.param1)
return 0
end
ScriptLib.PrintLog("Beging Execute ".." : Gadget state = ".. evt.param1)
ScriptLib.PrintLog(context, "Beging Execute ".." : Gadget state = ".. evt.param1)
local state = {0, 0, 0}
local allEquale = 1
@ -120,7 +120,7 @@ function action_EVENT_GADGET_STATE_CHANGE_109005(context, evt)
state[v.index] = ScriptLib.GetGadgetStateByConfigId(context, defs.groupID, defs[v.name])
end
ScriptLib.PrintLog("Gadget State = "..state[1].."_"..state[2].."_"..state[3])
ScriptLib.PrintLog(context, "Gadget State = "..state[1].."_"..state[2].."_"..state[3])
local haschange = {0,0,0}
@ -137,7 +137,7 @@ function action_EVENT_GADGET_STATE_CHANGE_109005(context, evt)
end
end
end
ScriptLib.PrintLog("has change = "..haschange[1].."_"..haschange[2].."_"..haschange[3])
ScriptLib.PrintLog(context, "has change = "..haschange[1].."_"..haschange[2].."_"..haschange[3])
for i = 1, #haschange, 1 do
local n = state[i]
if haschange[i] == 1 then
@ -154,7 +154,7 @@ function action_EVENT_GADGET_STATE_CHANGE_109005(context, evt)
ScriptLib.SetGadgetStateByConfigId(context, defs[gadgetInfo[i].name], n)
end
ScriptLib.PrintLog("Check Linked cube and change state ")
ScriptLib.PrintLog(context, "Check Linked cube and change state ")
if allEquale == 1 then
ScriptLib.SetGroupVariableValue(context, "isFinished", 1)
@ -163,5 +163,5 @@ function action_EVENT_GADGET_STATE_CHANGE_109005(context, evt)
end
ScriptLib.GoToGroupSuite(context, defs.groupID, 2)
end
ScriptLib.PrintLog("All equale = "..allEquale)
ScriptLib.PrintLog(context, "All equale = "..allEquale)
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -160,7 +160,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_110003(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
@ -187,12 +187,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_110004(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -161,7 +161,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_111002(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
@ -187,12 +187,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_111003(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end
@ -211,6 +211,6 @@ end
-- 触发操作
function action_EVENT_GROUP_LOAD_111005(context, evt)
ScriptLib.PrintLog("GroupLoad : ..... ")
ScriptLib.PrintLog(context, "GroupLoad : ..... ")
return 0
end

View File

@ -53,48 +53,48 @@ end
function CheckIsConnected(context,teleport_aID,teleport_bID)
--获取角度
ScriptLib.PrintLog("CheckConnected from "..teleport_aID .. " to "..teleport_bID)
ScriptLib.PrintLog(context, "CheckConnected from "..teleport_aID .. " to "..teleport_bID)
local yrotation_a = ScriptLib.GetRotationByEntityId(context, ScriptLib.GetEntityIdByConfigId(context,teleport_aID)).y
local yrotation_b = ScriptLib.GetRotationByEntityId(context, ScriptLib.GetEntityIdByConfigId(context,teleport_bID)).y
ScriptLib.PrintLog("yrotation_a = "..yrotation_a .. "| yrotation_a = "..yrotation_b)
ScriptLib.PrintLog(context, "yrotation_a = "..yrotation_a .. "| yrotation_a = "..yrotation_b)
--转换为弧度
local yrad_a = math.rad(yrotation_a)
local yrad_b = math.rad(yrotation_b)
ScriptLib.PrintLog("yrad_a = "..yrad_a .. "| yrad_b = "..yrad_b)
ScriptLib.PrintLog(context, "yrad_a = "..yrad_a .. "| yrad_b = "..yrad_b)
--编辑器中的XZ和运行下的对应关系是反的,所以这里XZ左边调换了一下
local dir_a = {x = math.sin(yrad_a), y = 0, z = math.cos(yrad_a)}
local dir_b = {x = math.sin(yrad_b), y = 0, z = math.cos(yrad_b)}
ScriptLib.PrintLog("dir_a : x = "..dir_a.x.." , y = "..dir_a.y.." , z = "..dir_a.z)
ScriptLib.PrintLog("dir_b : x = "..dir_b.x.." , y = "..dir_b.y.." , z = "..dir_b.z)
ScriptLib.PrintLog(context, "dir_a : x = "..dir_a.x.." , y = "..dir_a.y.." , z = "..dir_a.z)
ScriptLib.PrintLog(context, "dir_b : x = "..dir_b.x.." , y = "..dir_b.y.." , z = "..dir_b.z)
--获取两个点位置
local pos_a = ScriptLib.GetPosByEntityId(context, ScriptLib.GetEntityIdByConfigId(context,teleport_aID))
ScriptLib.PrintLog("pos_a : x = "..pos_a.x.." , y = "..pos_a.y.." , z = "..pos_a.z)
ScriptLib.PrintLog(context, "pos_a : x = "..pos_a.x.." , y = "..pos_a.y.." , z = "..pos_a.z)
local pos_b = ScriptLib.GetPosByEntityId(context, ScriptLib.GetEntityIdByConfigId(context,teleport_bID))
ScriptLib.PrintLog("pos_b : x = "..pos_b.x.." , y = "..pos_b.y.." , z = "..pos_b.z)
ScriptLib.PrintLog(context, "pos_b : x = "..pos_b.x.." , y = "..pos_b.y.." , z = "..pos_b.z)
--计算两个点之间的方向,并且Normalize
local diratob = {x = pos_b.x - pos_a.x,y = 0,z = pos_b.z - pos_a.z}
local norDirAtoB = Normalize({x = pos_b.x - pos_a.x,y = 0,z = pos_b.z - pos_a.z})
ScriptLib.PrintLog("norDirAtoB : x = "..norDirAtoB.x.." , y = "..norDirAtoB.y.." , z = "..norDirAtoB.z)
ScriptLib.PrintLog(context, "norDirAtoB : x = "..norDirAtoB.x.." , y = "..norDirAtoB.y.." , z = "..norDirAtoB.z)
local dirbtoa = {x = pos_a.x - pos_b.x,y = 0,z = pos_a.z - pos_b.z}
local norDirBtoA = Normalize({x = pos_a.x - pos_b.x,y = 0,z = pos_a.z - pos_b.z})
ScriptLib.PrintLog("norDirBtoA : x = "..norDirBtoA.x.." , y = "..norDirBtoA.y.." , z = "..norDirBtoA.z)
ScriptLib.PrintLog(context, "norDirBtoA : x = "..norDirBtoA.x.." , y = "..norDirBtoA.y.." , z = "..norDirBtoA.z)
--计算两个点的点乘结果
local dotvalue_a = dir_a.x * norDirAtoB.x + dir_a.y * norDirAtoB.y + dir_a.z * norDirAtoB.z
local dotvalue_b = dir_b.x * norDirBtoA.x + dir_b.y * norDirBtoA.y + dir_b.z * norDirBtoA.z
ScriptLib.PrintLog("dotvalue_a "..dotvalue_a)
ScriptLib.PrintLog("dotvalue_b "..dotvalue_b)
ScriptLib.PrintLog(context, "dotvalue_a "..dotvalue_a)
ScriptLib.PrintLog(context, "dotvalue_b "..dotvalue_b)
--判断点乘结果是否大于0.5,也就是正负 45度范围
if dotvalue_a >= 0.5 and dotvalue_b >= 0.5 then
return true
end
ScriptLib.PrintLog("invalid cos = ".. dotvalue_a)
ScriptLib.PrintLog(context, "invalid cos = ".. dotvalue_a)
return false
@ -148,16 +148,16 @@ function UpdateTeleportState(context)
teleportname = GetTeleportNameByConfigID(context, TeleportOwnerShip[i][2])
teleportname = teleportname.."_isActive"
ScriptLib.SetGroupVariableValue(context, teleportname, 0)
ScriptLib.PrintLog("connect nothing : "..i)
ScriptLib.PrintLog(context, "connect nothing : "..i)
else
--ScriptLib.PrintLog("connect count = "..#connect)
--ScriptLib.PrintLog("connect{"..connect[1].." , "..connect[2].." , "..connect[3].."}")
--ScriptLib.PrintLog(context, "connect count = "..#connect)
--ScriptLib.PrintLog(context, "connect{"..connect[1].." , "..connect[2].." , "..connect[3].."}")
ScriptLib.SetGadgetStateByConfigId(context, TeleportOwnerShip[i][2], GadgetState.GearStart)
teleportname = GetTeleportNameByConfigID(context, TeleportOwnerShip[i][2])
teleportname = teleportname.."_isActive"
ScriptLib.SetGroupVariableValue(context, teleportname, 1)
ScriptLib.PrintLog("connect something = "..i)
ScriptLib.PrintLog(context, "connect something = "..i)
end
end
@ -345,8 +345,8 @@ function action_EVENT_SELECT_OPTION_124011(context, evt)
localtarget = TeleportOwnerShip[i][2]
end
end
ScriptLib.PrintLog("evt.gadgetid = "..evt.param1)
ScriptLib.PrintLog("localtarget = "..localtarget)
ScriptLib.PrintLog(context, "evt.gadgetid = "..evt.param1)
ScriptLib.PrintLog(context, "localtarget = "..localtarget)
ScriptLib.SetPlatformPointArray(context, localtarget, defs.pointarray_Rotate, { 1 }, { route_type = 0,turn_mode=true })
return 0
end
@ -354,7 +354,7 @@ end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_124015(context, evt)
-- 判断是gadgetid 124006 option_id 31
ScriptLib.PrintLog("Reachpoint_condition : "..evt.param1)
ScriptLib.PrintLog(context, "Reachpoint_condition : "..evt.param1)
if defs.gadget_Teleport_1 ~= evt.param1 and
defs.gadget_Teleport_2 ~= evt.param1 and
defs.gadget_Teleport_3 ~= evt.param1 and
@ -368,7 +368,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_124015(context, evt)
-- 判断是gadgetid 124006 option_id 31
ScriptLib.PrintLog("Reachpoint_action : "..evt.param1)
ScriptLib.PrintLog(context, "Reachpoint_action : "..evt.param1)
UpdateTeleportState(context)
return 0
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -160,7 +160,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_151004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -183,12 +183,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_151005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -52,48 +52,48 @@ end
function CheckIsConnected(context,teleport_aID,teleport_bID)
--获取角度
ScriptLib.PrintLog("CheckConnected from "..teleport_aID .. " to "..teleport_bID)
ScriptLib.PrintLog(context, "CheckConnected from "..teleport_aID .. " to "..teleport_bID)
local yrotation_a = ScriptLib.GetRotationByEntityId(context, ScriptLib.GetEntityIdByConfigId(context,teleport_aID)).y
local yrotation_b = ScriptLib.GetRotationByEntityId(context, ScriptLib.GetEntityIdByConfigId(context,teleport_bID)).y
ScriptLib.PrintLog("yrotation_a = "..yrotation_a .. "| yrotation_a = "..yrotation_b)
ScriptLib.PrintLog(context, "yrotation_a = "..yrotation_a .. "| yrotation_a = "..yrotation_b)
--转换为弧度
local yrad_a = math.rad(yrotation_a)
local yrad_b = math.rad(yrotation_b)
ScriptLib.PrintLog("yrad_a = "..yrad_a .. "| yrad_b = "..yrad_b)
ScriptLib.PrintLog(context, "yrad_a = "..yrad_a .. "| yrad_b = "..yrad_b)
--编辑器中的XZ和运行下的对应关系是反的,所以这里XZ左边调换了一下
local dir_a = {x = math.sin(yrad_a), y = 0, z = math.cos(yrad_a)}
local dir_b = {x = math.sin(yrad_b), y = 0, z = math.cos(yrad_b)}
ScriptLib.PrintLog("dir_a : x = "..dir_a.x.." , y = "..dir_a.y.." , z = "..dir_a.z)
ScriptLib.PrintLog("dir_b : x = "..dir_b.x.." , y = "..dir_b.y.." , z = "..dir_b.z)
ScriptLib.PrintLog(context, "dir_a : x = "..dir_a.x.." , y = "..dir_a.y.." , z = "..dir_a.z)
ScriptLib.PrintLog(context, "dir_b : x = "..dir_b.x.." , y = "..dir_b.y.." , z = "..dir_b.z)
--获取两个点位置
local pos_a = ScriptLib.GetPosByEntityId(context, ScriptLib.GetEntityIdByConfigId(context,teleport_aID))
ScriptLib.PrintLog("pos_a : x = "..pos_a.x.." , y = "..pos_a.y.." , z = "..pos_a.z)
ScriptLib.PrintLog(context, "pos_a : x = "..pos_a.x.." , y = "..pos_a.y.." , z = "..pos_a.z)
local pos_b = ScriptLib.GetPosByEntityId(context, ScriptLib.GetEntityIdByConfigId(context,teleport_bID))
ScriptLib.PrintLog("pos_b : x = "..pos_b.x.." , y = "..pos_b.y.." , z = "..pos_b.z)
ScriptLib.PrintLog(context, "pos_b : x = "..pos_b.x.." , y = "..pos_b.y.." , z = "..pos_b.z)
--计算两个点之间的方向,并且Normalize
local diratob = {x = pos_b.x - pos_a.x,y = 0,z = pos_b.z - pos_a.z}
local norDirAtoB = Normalize({x = pos_b.x - pos_a.x,y = 0,z = pos_b.z - pos_a.z})
ScriptLib.PrintLog("norDirAtoB : x = "..norDirAtoB.x.." , y = "..norDirAtoB.y.." , z = "..norDirAtoB.z)
ScriptLib.PrintLog(context, "norDirAtoB : x = "..norDirAtoB.x.." , y = "..norDirAtoB.y.." , z = "..norDirAtoB.z)
local dirbtoa = {x = pos_a.x - pos_b.x,y = 0,z = pos_a.z - pos_b.z}
local norDirBtoA = Normalize({x = pos_a.x - pos_b.x,y = 0,z = pos_a.z - pos_b.z})
ScriptLib.PrintLog("norDirBtoA : x = "..norDirBtoA.x.." , y = "..norDirBtoA.y.." , z = "..norDirBtoA.z)
ScriptLib.PrintLog(context, "norDirBtoA : x = "..norDirBtoA.x.." , y = "..norDirBtoA.y.." , z = "..norDirBtoA.z)
--计算两个点的点乘结果
local dotvalue_a = dir_a.x * norDirAtoB.x + dir_a.y * norDirAtoB.y + dir_a.z * norDirAtoB.z
local dotvalue_b = dir_b.x * norDirBtoA.x + dir_b.y * norDirBtoA.y + dir_b.z * norDirBtoA.z
ScriptLib.PrintLog("dotvalue_a "..dotvalue_a)
ScriptLib.PrintLog("dotvalue_b "..dotvalue_b)
ScriptLib.PrintLog(context, "dotvalue_a "..dotvalue_a)
ScriptLib.PrintLog(context, "dotvalue_b "..dotvalue_b)
--判断点乘结果是否大于0.5,也就是正负 45度范围
if dotvalue_a >= 0.5 and dotvalue_b >= 0.5 then
return true
end
ScriptLib.PrintLog("invalid cos = ".. dotvalue_a)
ScriptLib.PrintLog(context, "invalid cos = ".. dotvalue_a)
return false
@ -147,16 +147,16 @@ function UpdateTeleportState(context)
teleportname = GetTeleportNameByConfigID(context, TeleportOwnerShip[i][2])
teleportname = teleportname.."_isActive"
ScriptLib.SetGroupVariableValue(context, teleportname, 0)
ScriptLib.PrintLog("connect nothing : "..i)
ScriptLib.PrintLog(context, "connect nothing : "..i)
else
--ScriptLib.PrintLog("connect count = "..#connect)
--ScriptLib.PrintLog("connect{"..connect[1].." , "..connect[2].." , "..connect[3].."}")
--ScriptLib.PrintLog(context, "connect count = "..#connect)
--ScriptLib.PrintLog(context, "connect{"..connect[1].." , "..connect[2].." , "..connect[3].."}")
ScriptLib.SetGadgetStateByConfigId(context, TeleportOwnerShip[i][2], GadgetState.GearStart)
teleportname = GetTeleportNameByConfigID(context, TeleportOwnerShip[i][2])
teleportname = teleportname.."_isActive"
ScriptLib.SetGroupVariableValue(context, teleportname, 1)
ScriptLib.PrintLog("connect something = "..i)
ScriptLib.PrintLog(context, "connect something = "..i)
end
end
@ -338,8 +338,8 @@ function action_EVENT_SELECT_OPTION_153014(context, evt)
localtarget = TeleportOwnerShip[i][2]
end
end
ScriptLib.PrintLog("evt.gadgetid = "..evt.param1)
ScriptLib.PrintLog("localtarget = "..localtarget)
ScriptLib.PrintLog(context, "evt.gadgetid = "..evt.param1)
ScriptLib.PrintLog(context, "localtarget = "..localtarget)
ScriptLib.SetPlatformPointArray(context, localtarget, defs.pointarray_Rotate, { 1 }, { route_type = 0,turn_mode=true })
return 0
end
@ -347,7 +347,7 @@ end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_153015(context, evt)
-- 判断是gadgetid 124006 option_id 31
ScriptLib.PrintLog("Reachpoint_condition : "..evt.param1)
ScriptLib.PrintLog(context, "Reachpoint_condition : "..evt.param1)
if defs.gadget_Teleport_1 ~= evt.param1 and
defs.gadget_Teleport_2 ~= evt.param1 and
defs.gadget_Teleport_3 ~= evt.param1 and
@ -361,7 +361,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_153015(context, evt)
-- 判断是gadgetid 124006 option_id 31
ScriptLib.PrintLog("Reachpoint_action : "..evt.param1)
ScriptLib.PrintLog(context, "Reachpoint_action : "..evt.param1)
UpdateTeleportState(context)
return 0
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -160,7 +160,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_157004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -182,12 +182,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_157005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -163,13 +163,13 @@ end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_19(context, evt)
ScriptLib.PrintLog("enter condition judge")
ScriptLib.PrintLog(context, "enter condition judge")
if GadgetState.GearStop ~= evt.param1 or defs.gadget_id_2 ~= evt.param2 then
ScriptLib.PrintLog("judge false")
ScriptLib.PrintLog(context, "judge false")
return false
end
ScriptLib.PrintLog("judge true")
ScriptLib.PrintLog(context, "judge true")
return true
end
@ -186,14 +186,14 @@ end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_20(context, evt)
ScriptLib.PrintLog("enter condition judge")
ScriptLib.PrintLog(context, "enter condition judge")
if GadgetState.GearStop ~= evt.param1 or defs.gadget_id_3 ~= evt.param2 then
ScriptLib.PrintLog("judge false")
ScriptLib.PrintLog(context, "judge false")
return false
end
ScriptLib.PrintLog("judge true")
ScriptLib.PrintLog(context, "judge true")
return true
end
@ -210,13 +210,13 @@ end
-- 触发条件
function condition_EVENT_ENTER_REGION_21(context, evt)
ScriptLib.PrintLog("Enter condition judge")
ScriptLib.PrintLog(context, "Enter condition judge")
if GadgetState.GearStop ~= evt.param1 or defs.gadget_id_4 ~= evt.param2 then
ScriptLib.PrintLog("judge false")
ScriptLib.PrintLog(context, "judge false")
return false
end
ScriptLib.PrintLog("judge true")
ScriptLib.PrintLog(context, "judge true")
return true
end

View File

@ -83,21 +83,21 @@ suites = {
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_25(context, evt)
ScriptLib.PrintLog("enter condition")
ScriptLib.PrintLog(context, "enter condition")
if defs.gadget_id_2 ~= evt.param1 then
ScriptLib.PrintLog("configid judge false")
ScriptLib.PrintLog(context, "configid judge false")
return false
end
ScriptLib.PrintLog("configid judge true")
ScriptLib.PrintLog(context, "configid judge true")
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_25(context, evt)
ScriptLib.PrintLog("enter action")
ScriptLib.PrintLog(context, "enter action")
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_1 }) then
ScriptLib.PrintLog("create gadget fail")
ScriptLib.PrintLog(context, "create gadget fail")
return -1
end

View File

@ -84,9 +84,9 @@ suites = {
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_26(context, evt)
ScriptLib.PrintLog("enter firebox condition")
ScriptLib.PrintLog(context, "enter firebox condition")
if defs.gadget_id_1 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
ScriptLib.PrintLog("fire box not match")
ScriptLib.PrintLog(context, "fire box not match")
return false
end

View File

@ -113,7 +113,7 @@ function action_EVENT_SELECT_OPTION_57(context, evt)
-- 激活gadget_id为91的封印战斗战斗区域半径为10圈内进度每秒增长1圈外进度每秒衰减2进度达到60时判定为战斗成功填0则取默认值100进度衰减到0后5秒判定为战斗失败
if 24 == evt.param2 then
local ret = ScriptLib.StartSealBattle(context, 91, {radius = 10, in_add = 1, out_sub = 2, fail_time = 5, max_progress = 60})
--ScriptLib.PrintLog("StartSealBattle ret: " ..ret)
--ScriptLib.PrintLog(context, "StartSealBattle ret: " ..ret)
end
-- 重新生成指定group指定suite

View File

@ -169,13 +169,13 @@ function action_EVENT_GADGET_STATE_CHANGE_94(context, evt)
local c_num_1 = ScriptLib.GetGroupVariableValue(context, "count")
local c_num = c_num_1 + 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "count", c_num) then
ScriptLib.PrintLog("c_num="..c_num)
ScriptLib.PrintLog(context, "c_num="..c_num)
return -1
end
if c_num == 12 then
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_12 }) then
ScriptLib.PrintLog("create")
ScriptLib.PrintLog(context, "create")
return -1
end
end

View File

@ -151,13 +151,13 @@ function action_EVENT_GADGET_STATE_CHANGE_98(context, evt)
local c_num_1 = ScriptLib.GetGroupVariableValue(context, "count")
local c_num = c_num_1 + 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "count", c_num) then
ScriptLib.PrintLog("c_num="..c_num)
ScriptLib.PrintLog(context, "c_num="..c_num)
return -1
end
if c_num == 9 then
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_9 }) then
ScriptLib.PrintLog("create")
ScriptLib.PrintLog(context, "create")
return -1
end
end

View File

@ -151,13 +151,13 @@ function action_EVENT_GADGET_STATE_CHANGE_102(context, evt)
local c_num_1 = ScriptLib.GetGroupVariableValue(context, "count")
local c_num = c_num_1 + 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "count", c_num) then
ScriptLib.PrintLog("c_num="..c_num)
ScriptLib.PrintLog(context, "c_num="..c_num)
return -1
end
if c_num == 9 then
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_9 }) then
ScriptLib.PrintLog("create")
ScriptLib.PrintLog(context, "create")
return -1
end
end

View File

@ -95,7 +95,7 @@ function action_EVENT_GADGET_STATE_CHANGE_86(context, evt)
local c_num_1 = ScriptLib.GetGroupVariableValue(context, "count")
local c_num = c_num_1 + 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "count", c_num) then
ScriptLib.PrintLog("c_num="..c_num)
ScriptLib.PrintLog(context, "c_num="..c_num)
return -1
end

View File

@ -99,7 +99,7 @@ function action_EVENT_CLIENT_EXECUTE_128(context, evt)
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_id_3, GadgetState.Default) then
--ScriptLib.PrintLog("Faild to change 371 state default when evt.param1 == defs.gadget_id_5")
--ScriptLib.PrintLog(context, "Faild to change 371 state default when evt.param1 == defs.gadget_id_5")
return -1
end

View File

@ -155,6 +155,6 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_171(context, evt)
ScriptLib.PrintLog("## point_id = "..evt.param3)
ScriptLib.PrintLog(context, "## point_id = "..evt.param3)
return 0
end

View File

@ -250,7 +250,7 @@ end
function action_EVENT_CLIENT_EXECUTE_43(context, evt)
-- 针对groupid为 220009002 中该config对应的物件进行状态改变操作
local this_gadget = ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid })
--ScriptLib.PrintLog("config_id="..this_gadget)
--ScriptLib.PrintLog(context, "config_id="..this_gadget)
ScriptLib.SetGadgetEnableInteract(context, 220009002, this_gadget, true)

View File

@ -105,7 +105,7 @@ function condition_EVENT_QUEST_FINISH_8(context, evt)
return false
end
ScriptLib.PrintLog("quest 46306 finish")
ScriptLib.PrintLog(context, "quest 46306 finish")
return true
end

View File

@ -212,7 +212,7 @@ function action_EVENT_SELECT_OPTION_128(context, evt)
-- 当option_id为25时开启封印战斗战斗区域半径为18圈内进度每秒增长1圈外进度每秒衰减5进度达到100时判定为战斗成功填0则取默认值100进度衰减到0后5秒判定为战斗失败
if defs.gadget_id_7 == evt.param2 then
local ret = ScriptLib.StartSealBattle(context, 1817, {radius = 18, kill_time = 100, monster_group_id = 133001275, max_progress = 10, battle_type = SealBattleType.KILL_MONSTER})
--ScriptLib.PrintLog("StartSealBattle ret: " ..ret)
--ScriptLib.PrintLog(context, "StartSealBattle ret: " ..ret)
end
-- 重新生成指定group指定suite

View File

@ -115,19 +115,19 @@ end
-- 触发操作
function action_EVENT_GATHER_103(context, evt)
-- 创建编号为2601该挑战的识别id),挑战内容为128的区域挑战具体参数填写方式见DungeonChallengeData表中的注释所有填写的值都必须是int类型
ScriptLib.PrintLog("Enter Trigger 103")
ScriptLib.PrintLog(context, "Enter Trigger 103")
if 0 ~= ScriptLib.ActiveChallenge(context, 2601, 128, 50, 20, 9, 5) then
ScriptLib.PrintLog("Create fail")
ScriptLib.PrintLog(context, "Create fail")
return -1
end
ScriptLib.PrintLog("Create Success")
ScriptLib.PrintLog(context, "Create Success")
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 133003130, suite = 2 }) then
ScriptLib.PrintLog("refresh 133003130 fail")
ScriptLib.PrintLog(context, "refresh 133003130 fail")
return -1
end
ScriptLib.PrintLog("refresh 133003130 Success")
ScriptLib.PrintLog(context, "refresh 133003130 Success")
-- 变量"get1"赋值为0
ScriptLib.SetGroupVariableValue(context, "get1", 0)
@ -138,7 +138,7 @@ end
-- 触发条件
function condition_EVENT_GATHER_119(context, evt)
-- 判断变量"get1"为0
ScriptLib.PrintLog("Enter 119")
ScriptLib.PrintLog(context, "Enter 119")
if ScriptLib.GetGroupVariableValue(context, "get1") ~= 0 then
return false
end
@ -167,11 +167,11 @@ end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_120(context, evt)
-- 重新生成指定group指定suite
ScriptLib.PrintLog("challenge success")
ScriptLib.PrintLog(context, "challenge success")
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 133003130, suite = 3 }) then
return -1
end
ScriptLib.PrintLog("refresh 133003130 to 3 suc")
ScriptLib.PrintLog(context, "refresh 133003130 to 3 suc")
-- 创建id为2609的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_1 }) then
@ -194,11 +194,11 @@ end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_121(context, evt)
-- 重新生成指定group指定suite
ScriptLib.PrintLog("Challenge fail")
ScriptLib.PrintLog(context, "Challenge fail")
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 133003130, suite = 3 }) then
return -1
end
ScriptLib.PrintLog("challenge fail cause refresh to 3")
ScriptLib.PrintLog(context, "challenge fail cause refresh to 3")
return 0
end

View File

@ -78,7 +78,7 @@ suites = {
function action_EVENT_CLIENT_EXECUTE_170(context, evt)
-- 针对groupid为 133003203 中该config对应的物件进行状态改变操作
local this_gadget = ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid })
--ScriptLib.PrintLog("config_id="..this_gadget)
--ScriptLib.PrintLog(context, "config_id="..this_gadget)
ScriptLib.SetGadgetEnableInteract(context, 133003203, this_gadget, true)
return 0

View File

@ -81,7 +81,7 @@ suites = {
function action_EVENT_CLIENT_EXECUTE_169(context, evt)
-- 针对groupid为 133003209 中该config对应的物件进行状态改变操作
local this_gadget = ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid })
--ScriptLib.PrintLog("config_id="..this_gadget)
--ScriptLib.PrintLog(context, "config_id="..this_gadget)
ScriptLib.SetGadgetEnableInteract(context, 133003209, this_gadget, true)

View File

@ -33,13 +33,16 @@ local stage_table = {
[7] = { name = "Grass", suite = {} }
}
local timer_table = {
local timer_table = {
[1] = {2},
[2] = {2},
[3] = {2} ,
[3] = {2}
,
[4] = {2},
[5] = {2},
[6] = {2} ,
[6] = {2}
,
[7] = {2}
}
@ -58,7 +61,8 @@ function LF_random_stage_suite(table, elem, stage)
return array[math.random(1,#array)]
end
function LF_random_timer_suite(table, stage)
function LF_random_timer_suite(table, stage)
local array = table[stage]
if #array == 0 or array == nil then
return -1
@ -66,7 +70,7 @@ end
math.randomseed(tostring(os.time()):reverse():sub(1,5))
return array[math.random(1,#array)]
end
PrintLog(context, "
function LF_set_timer(context)
local i = ScriptLib.GetGroupVariableValue(context, timer_counter)
if i > #defs.crucible_timer then
@ -81,7 +85,7 @@ function LF_set_timer(context)
duration = defs.crucible_timer[i]
else
duration = defs.crucible_timer[i+1] - defs.crucible_timer[i]
end
endPrintLog(context, "
local dur = duration - defs.crucible_timer_prepare
if dur <= 0 then

View File

@ -405,8 +405,8 @@ function action_EVENT_GROUP_REFRESH_549075(context, evt)
ScriptLib.CreateMonster(context, { config_id = suites[su].monsters[i], delay_time = 0 })
end
if #gadgets < defs.stage_sum[st] then
ScriptLib.PrintLog("## gadget not enough !")
ScriptLib.PrintLog("## st:"..st.." su:"..su)
ScriptLib.PrintLog(context, "## gadget not enough !")
ScriptLib.PrintLog(context, "## st:"..st.." su:"..su)
return -1
end
math.randomseed(tostring(ScriptLib.GetServerTime(context)):reverse():sub(1,5))

View File

@ -274,7 +274,7 @@ end
-- 触发条件
function condition_EVENT_ENTER_REGION_147(context, evt)
ScriptLib.PrintLog("enter region")
ScriptLib.PrintLog(context, "enter region")
if ScriptLib.GetEntityType(context, evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 46201) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_12 then
return true
end
@ -283,7 +283,7 @@ end
-- 触发条件
function condition_EVENT_ENTER_REGION_463(context, evt)
ScriptLib.PrintLog("enter region")
ScriptLib.PrintLog(context, "enter region")
if ScriptLib.GetEntityType(context, evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 46701) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_13 then
return true
end

View File

@ -52,9 +52,9 @@ function LF_Get_Array_Pos(table, value)
end
end
if index == 0 then
ScriptLib.PrintLog("## LF_Get_Array_Pos Fail!! | value = "..value)
ScriptLib.PrintLog(context, "## LF_Get_Array_Pos Fail!! | value = "..value)
for i,v in ipairs(table) do
ScriptLib.PrintLog("## LF_Get_Array_Pos Fail!! | i="..i.." v="..v)
ScriptLib.PrintLog(context, "## LF_Get_Array_Pos Fail!! | i="..i.." v="..v)
end
index = 1
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -163,7 +163,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_40004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -195,12 +195,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_40005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -188,7 +188,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_127004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -212,12 +212,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_127005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end

View File

@ -19,7 +19,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -29,7 +29,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -37,7 +37,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -190,7 +190,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_165002(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -215,12 +215,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_165003(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -19,7 +19,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -29,7 +29,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -37,7 +37,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -160,7 +160,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_172002(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -183,12 +183,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_172003(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -163,7 +163,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_182004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -186,12 +186,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_182005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -200,7 +200,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_219003(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -225,12 +225,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_219005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -20,7 +20,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -30,7 +30,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -38,7 +38,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -202,7 +202,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_220004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -241,12 +241,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_220005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -168,7 +168,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_263004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -192,12 +192,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_263005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -19,7 +19,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -29,7 +29,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -37,7 +37,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -190,7 +190,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_268002(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -215,12 +215,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_268003(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -19,7 +19,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -29,7 +29,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -37,7 +37,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -190,7 +190,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_269002(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -215,12 +215,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_269003(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -20,7 +20,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -30,7 +30,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -38,7 +38,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -199,7 +199,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_270002(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -227,12 +227,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_270003(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -14,7 +14,7 @@ local defs = {
-- DEFS_MISCS
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
local pathnodeindex = ScriptLib.GetGroupVariableValue(context, "currentPathNode") + 1
if pathnodeindex > defs.maxPathNode then
@ -22,7 +22,7 @@ function MovePlatform(context)
end
ScriptLib.SetPlatformPointArray(context, defs.gadget_bubble, defs.pointarray_route, {pathnodeindex}, { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end

View File

@ -14,7 +14,7 @@ local defs = {
-- DEFS_MISCS
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
local pathnodeindex = ScriptLib.GetGroupVariableValue(context, "currentPathNode") + 1
if pathnodeindex > defs.maxPathNode then
@ -22,7 +22,7 @@ function MovePlatform(context)
end
ScriptLib.SetPlatformPointArray(context, defs.gadget_bubble, defs.pointarray_route, {pathnodeindex}, { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -158,7 +158,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_373004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -182,12 +182,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_373005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -160,7 +160,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_3004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -184,12 +184,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_3005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -160,7 +160,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_6004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -184,12 +184,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_6005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -160,7 +160,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_40004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -184,12 +184,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_40005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -158,7 +158,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_77004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -184,12 +184,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_77005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -164,7 +164,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_108004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -188,12 +188,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_108005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -167,7 +167,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_205004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -191,12 +191,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_205005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -160,7 +160,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_266004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -184,12 +184,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_266005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -158,7 +158,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_346004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -181,12 +181,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_346005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -158,7 +158,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_348004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -181,12 +181,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_348005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -158,7 +158,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_350004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -181,12 +181,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_350005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -160,7 +160,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_366004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -184,12 +184,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_366005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -160,7 +160,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_373004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -184,12 +184,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_373005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -158,7 +158,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_444004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -186,12 +186,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_444005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -160,7 +160,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_515004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -184,12 +184,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_515005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -160,7 +160,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_29004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -184,12 +184,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_29005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -160,7 +160,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_65004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -184,12 +184,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_65005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -177,7 +177,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_90004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -200,12 +200,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_90005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -177,7 +177,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_91004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -200,12 +200,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_91005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -177,7 +177,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_93004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -200,12 +200,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_93005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -17,7 +17,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -27,7 +27,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -35,7 +35,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -180,7 +180,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_201004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -203,12 +203,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_201005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -17,7 +17,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -27,7 +27,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -35,7 +35,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -180,7 +180,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_215004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -202,12 +202,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_215005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -17,7 +17,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -27,7 +27,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -35,7 +35,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -180,7 +180,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_216004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -203,12 +203,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_216005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -17,7 +17,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -27,7 +27,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -35,7 +35,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -201,7 +201,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_221004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -224,12 +224,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_221005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -160,7 +160,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_223004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -184,12 +184,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_223005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -160,7 +160,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_236004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -184,12 +184,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_236005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -17,7 +17,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -27,7 +27,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -35,7 +35,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -182,7 +182,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_244004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -205,12 +205,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_244005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -17,7 +17,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -27,7 +27,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -35,7 +35,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -159,7 +159,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_250004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -182,12 +182,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_250005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -160,7 +160,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_258004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -184,12 +184,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_258005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -160,7 +160,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_264004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -184,12 +184,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_264005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -160,7 +160,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_280004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -184,12 +184,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_280005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -160,7 +160,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_285004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -184,12 +184,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_285005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -160,7 +160,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_286004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -184,12 +184,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_286005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -160,7 +160,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_448004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -184,12 +184,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_448005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -160,7 +160,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_456004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -184,12 +184,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_456005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -14,7 +14,7 @@ local defs = {
-- DEFS_MISCS
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
local pathnodeindex = ScriptLib.GetGroupVariableValue(context, "currentPathNode") + 1
if pathnodeindex > defs.maxPathNode then
@ -22,7 +22,7 @@ function MovePlatform(context)
end
ScriptLib.SetPlatformPointArray(context, defs.gadget_bubble, defs.pointarray_route, {pathnodeindex}, { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -160,7 +160,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_4004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -184,12 +184,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_4005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -160,7 +160,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_14004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -184,12 +184,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_14005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -17,7 +17,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -27,7 +27,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -35,7 +35,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end

View File

@ -17,7 +17,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -27,7 +27,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -35,7 +35,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end

View File

@ -17,7 +17,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -27,7 +27,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -35,7 +35,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end

View File

@ -59,16 +59,16 @@ function InitialTeleportRotationY(context)
local rot
local name
local localtarget
ScriptLib.PrintLog("Initial starting...")
ScriptLib.PrintLog(context, "Initial starting...")
ScriptLib.SetGroupVariableValue(context,"isInitial",1)
for i=1,#TeleportOwnerShip do
localtarget = TeleportOwnerShip[i][2]
if isTeleportValid(context,localtarget)==true then
ScriptLib.PrintLog("Initial localtarget = "..localtarget)
ScriptLib.PrintLog(context, "Initial localtarget = "..localtarget)
if localtarget ~= 0 then
name = GetTeleportNameByConfigID(context,localtarget).."_state"
rot = ScriptLib.GetGroupVariableValue(context,name)
ScriptLib.PrintLog("Initial gadgetName = "..name .. " , Rot = "..rot)
ScriptLib.PrintLog(context, "Initial gadgetName = "..name .. " , Rot = "..rot)
if rot == 90 then
ScriptLib.SetPlatformPointArray(context, localtarget, defs.pointarray_Rotate, { 1 }, { route_type = 0,turn_mode=true })
@ -80,7 +80,7 @@ function InitialTeleportRotationY(context)
end
end
end
ScriptLib.PrintLog("Initial ending...")
ScriptLib.PrintLog(context, "Initial ending...")
end
function InitialTeleportState(context)
@ -127,48 +127,48 @@ function CheckIsConnected(context,teleport_aID,teleport_bID)
end
--获取角度
ScriptLib.PrintLog("CheckConnected from "..teleport_aID .. " to "..teleport_bID)
ScriptLib.PrintLog(context, "CheckConnected from "..teleport_aID .. " to "..teleport_bID)
local yrotation_a = ScriptLib.GetRotationByEntityId(context, ScriptLib.GetEntityIdByConfigId(context,teleport_aID)).y
local yrotation_b = ScriptLib.GetRotationByEntityId(context, ScriptLib.GetEntityIdByConfigId(context,teleport_bID)).y
ScriptLib.PrintLog("yrotation_a = "..yrotation_a .. "| yrotation_a = "..yrotation_b)
ScriptLib.PrintLog(context, "yrotation_a = "..yrotation_a .. "| yrotation_a = "..yrotation_b)
--转换为弧度
local yrad_a = math.rad(yrotation_a)
local yrad_b = math.rad(yrotation_b)
ScriptLib.PrintLog("yrad_a = "..yrad_a .. "| yrad_b = "..yrad_b)
ScriptLib.PrintLog(context, "yrad_a = "..yrad_a .. "| yrad_b = "..yrad_b)
--编辑器中的XZ和运行下的对应关系是反的,所以这里XZ左边调换了一下
local dir_a = {x = math.sin(yrad_a), y = 0, z = math.cos(yrad_a)}
local dir_b = {x = math.sin(yrad_b), y = 0, z = math.cos(yrad_b)}
ScriptLib.PrintLog("dir_a : x = "..dir_a.x.." , y = "..dir_a.y.." , z = "..dir_a.z)
ScriptLib.PrintLog("dir_b : x = "..dir_b.x.." , y = "..dir_b.y.." , z = "..dir_b.z)
ScriptLib.PrintLog(context, "dir_a : x = "..dir_a.x.." , y = "..dir_a.y.." , z = "..dir_a.z)
ScriptLib.PrintLog(context, "dir_b : x = "..dir_b.x.." , y = "..dir_b.y.." , z = "..dir_b.z)
--获取两个点位置
local pos_a = ScriptLib.GetPosByEntityId(context, ScriptLib.GetEntityIdByConfigId(context,teleport_aID))
ScriptLib.PrintLog("pos_a : x = "..pos_a.x.." , y = "..pos_a.y.." , z = "..pos_a.z)
ScriptLib.PrintLog(context, "pos_a : x = "..pos_a.x.." , y = "..pos_a.y.." , z = "..pos_a.z)
local pos_b = ScriptLib.GetPosByEntityId(context, ScriptLib.GetEntityIdByConfigId(context,teleport_bID))
ScriptLib.PrintLog("pos_b : x = "..pos_b.x.." , y = "..pos_b.y.." , z = "..pos_b.z)
ScriptLib.PrintLog(context, "pos_b : x = "..pos_b.x.." , y = "..pos_b.y.." , z = "..pos_b.z)
--计算两个点之间的方向,并且Normalize
local diratob = {x = pos_b.x - pos_a.x,y = 0,z = pos_b.z - pos_a.z}
local norDirAtoB = Normalize({x = pos_b.x - pos_a.x,y = 0,z = pos_b.z - pos_a.z})
ScriptLib.PrintLog("norDirAtoB : x = "..norDirAtoB.x.." , y = "..norDirAtoB.y.." , z = "..norDirAtoB.z)
ScriptLib.PrintLog(context, "norDirAtoB : x = "..norDirAtoB.x.." , y = "..norDirAtoB.y.." , z = "..norDirAtoB.z)
local dirbtoa = {x = pos_a.x - pos_b.x,y = 0,z = pos_a.z - pos_b.z}
local norDirBtoA = Normalize({x = pos_a.x - pos_b.x,y = 0,z = pos_a.z - pos_b.z})
ScriptLib.PrintLog("norDirBtoA : x = "..norDirBtoA.x.." , y = "..norDirBtoA.y.." , z = "..norDirBtoA.z)
ScriptLib.PrintLog(context, "norDirBtoA : x = "..norDirBtoA.x.." , y = "..norDirBtoA.y.." , z = "..norDirBtoA.z)
--计算两个点的点乘结果
local dotvalue_a = dir_a.x * norDirAtoB.x + dir_a.y * norDirAtoB.y + dir_a.z * norDirAtoB.z
local dotvalue_b = dir_b.x * norDirBtoA.x + dir_b.y * norDirBtoA.y + dir_b.z * norDirBtoA.z
ScriptLib.PrintLog("dotvalue_a "..dotvalue_a)
ScriptLib.PrintLog("dotvalue_b "..dotvalue_b)
ScriptLib.PrintLog(context, "dotvalue_a "..dotvalue_a)
ScriptLib.PrintLog(context, "dotvalue_b "..dotvalue_b)
--判断点乘结果是否大于0.5,也就是正负 45度范围
if dotvalue_a >= 0.5 and dotvalue_b >= 0.5 then
return true
end
ScriptLib.PrintLog("invalid cos = ".. dotvalue_a)
ScriptLib.PrintLog(context, "invalid cos = ".. dotvalue_a)
return false
@ -223,17 +223,17 @@ function UpdateTeleportState(context)
teleportname = GetTeleportNameByConfigID(context, TeleportOwnerShip[i][2])
teleportname = teleportname.."_isActive"
ScriptLib.SetGroupVariableValue(context, teleportname, 0)
ScriptLib.PrintLog("connect nothing : "..i)
ScriptLib.PrintLog(context, "connect nothing : "..i)
else
--ScriptLib.PrintLog("connect count = "..#connect)
--ScriptLib.PrintLog("connect{"..connect[1].." , "..connect[2].." , "..connect[3].."}")
--ScriptLib.PrintLog(context, "connect count = "..#connect)
--ScriptLib.PrintLog(context, "connect{"..connect[1].." , "..connect[2].." , "..connect[3].."}")
ScriptLib.SetGadgetStateByConfigId(context, TeleportOwnerShip[i][2], GadgetState.GearStart)
teleportname = GetTeleportNameByConfigID(context, TeleportOwnerShip[i][2])
teleportname = teleportname.."_isActive"
ScriptLib.SetGroupVariableValue(context, teleportname, 1)
ScriptLib.PrintLog("connect something = "..i)
ScriptLib.PrintLog(context, "connect something = "..i)
end
@ -539,8 +539,8 @@ function action_EVENT_SELECT_OPTION_262023(context, evt)
ScriptLib.SetGroupVariableValue(context,"isInitial",0)
ScriptLib.PrintLog("evt.gadgetid = "..evt.param1)
ScriptLib.PrintLog("localtarget = "..localtarget)
ScriptLib.PrintLog(context, "evt.gadgetid = "..evt.param1)
ScriptLib.PrintLog(context, "localtarget = "..localtarget)
ScriptLib.SetPlatformPointArray(context, localtarget, defs.pointarray_Rotate, { 1 }, { route_type = 0,turn_mode=true })
@ -549,7 +549,7 @@ end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_262024(context, evt)
ScriptLib.PrintLog("Reachpoint_condition : "..evt.param1)
ScriptLib.PrintLog(context, "Reachpoint_condition : "..evt.param1)
local result = false
for i = 1, #TeleportOwnerShip do
@ -568,7 +568,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_262024(context, evt)
ScriptLib.PrintLog("Reachpoint_action : "..evt.param1)
ScriptLib.PrintLog(context, "Reachpoint_action : "..evt.param1)
--旋转完成后再重新加回所有的Option
for i = 1, #TeleportOwnerShip do
if TeleportOwnerShip[i][1] ~= 0 then
@ -580,14 +580,14 @@ function action_EVENT_PLATFORM_REACH_POINT_262024(context, evt)
-- set teleprot rotation and save to group variable
local name = GetTeleportNameByConfigID(context,evt.param1).."_state"
ScriptLib.PrintLog("gadgetname = "..name)
ScriptLib.PrintLog(context, "gadgetname = "..name)
local prerot = ScriptLib.GetGroupVariableValue(context,name)
ScriptLib.PrintLog("prerot = ".. prerot)
ScriptLib.PrintLog(context, "prerot = ".. prerot)
prerot = prerot + defs.rotStep
if prerot >= 360 then
prerot = 0
end
ScriptLib.PrintLog("prerot ++ = ".. prerot)
ScriptLib.PrintLog(context, "prerot ++ = ".. prerot)
ScriptLib.SetGroupVariableValue(context,name,prerot)
return 0

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -160,7 +160,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_362004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -184,12 +184,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_362005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -168,7 +168,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_367004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -196,12 +196,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_367005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

View File

@ -18,7 +18,7 @@ function GetNextPath(context)
local path = {}
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
local stoppoint = defs.pointInfo[index]
ScriptLib.PrintLog("stop point : "..stoppoint)
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
for i=currentNodeIndex + 1,stoppoint do
table.insert(path,i)
@ -28,7 +28,7 @@ end
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
ScriptLib.PrintLog(context, "platform to move")
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -36,7 +36,7 @@ function MovePlatform(context)
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
ScriptLib.PrintLog(context, "platform to move : start platform")
return 0
end
@ -160,7 +160,7 @@ end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_34004(context, evt)
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
@ -184,12 +184,12 @@ end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_34005(context, evt)
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
if defs.gadget_thunderThelfID ~= evt.param1 then
return false
end
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
if state == 201 then
return false
end

Some files were not shown because too many files have changed in this diff Show More