Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

[Script] Sliding Block

May 29 (10 years ago)

Edited May 29 (10 years ago)
I found myself in a position where i wanted to make a dungeon on top of a sliding puzzle where the players move the tiles around to navigate through the maze, however this required me to move ~30 objects every time i needed to move a tile, so i made this script to move the tiles around, you specify the tile you want to slide around and then execute the commands:
!Sliding_Block Up
!Sliding_Block Down
!Sliding_Block Left
!Sliding_Block Right
it the moves the specified tile depending on which direction you chose, it moves the tile the full width/height, depending on the direction, you can also specify which layers it should move item from, and even if it should move anything other than the tile itself.

you can find the script here
whenever i finish the dungeon(and have run it with my players, propably 2-3 weeks from now) i will post a link to here if you want to run it yourself
May 29 (10 years ago)

Edited May 29 (10 years ago)
The Aaron
Pro
API Scripter
Cute! I like how you're keeping objects in the bounding area of the target object in the same inertial frame of reference!

Now I'm imagining a whole slew of these sorts of things.. giant spinning gears, boats across the river, etc.. etc. etc... cool!