Thanks for all replies.. what I did was..
globalevents/furygate.lua
function onStartup(interval)
Game.setStorageValue(GlobalStorage.FuryGates, math.random(6))
end
movements/furygate.lua
local gates = {
[9710] = {value = 1, position = Position(32834, 32082, 7)},
[9711] = {value = 2...