Original thread: <a href="https://app.roll20.net/forum/post/4694539/teleport-script-tweaked" rel="nofollow">https://app.roll20.net/forum/post/4694539/teleport-script-tweaked</a> Hey guys, Im trying to use the random teleport function of this script (Everything else is easy enough and works) but I cant work out what to name the teleport GM tokens to make them randomly teleport between each other when used. I can see in the code where it calls a random integer, but im not savy enough to know what condition calls the random integer over the IndexOf Any insight would be a blessing if( CurrName.match(/^R:/) ) { i = randomInteger(doorCount)-1; } else { i = Letters.indexOf(currDoor);