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

[REQUEST] Where's the Z?

Hey all. Total noob here, but I do know a bit about scripting and I've looked around to find some insight with my question with no joy, I've got this map for a space sector. It's set up X- and Y-axes, with little delta symbols next to elevations for Z-axis notation. I'd like to be able to use the ruler or some utility to take into to take relative elevation between (more-or-less) stationary star systems from one another and not-so-stationary ships and other objects. Has anybody already worked this out? Or can somebody at least point me to a starting place for me to work on it? Any help would be appreciated.
1437350992
vÍnce
Pro
Sheet Author
I am clueless Wolfen, but maybe these posts can help. Cheers <a href="https://app.roll20.net/forum/post/1964963/slug%7D#post-1988578" rel="nofollow">https://app.roll20.net/forum/post/1964963/slug%7D#post-1988578</a> <a href="https://app.roll20.net/forum/post/1489084/i-need-c" rel="nofollow">https://app.roll20.net/forum/post/1489084/i-need-c</a>...
So far the closest thing I have seen to a Z-axis concept is this script that tracks altitudes of flight. I don't know if it is as robust as what you need. <a href="https://wiki.roll20.net/Script:Flight" rel="nofollow">https://wiki.roll20.net/Script:Flight</a>
The table top is 2 dimensional. the above mentioned script will assign altitudes above the plane, but there is no "Z". The layers would not be helpful in this, except that items on the token layer are "above" the map layer. The Gm layer is invisible to players, but is "above" the token layer, the dynamic lighting layer affects the map and token layer, but is also invisible to players. There is a suggestion to create a foreground layer above the token layer that is visible to players, but there is no time frame, or for that matter clear intent to implement this.
1437396334
The Aaron
Pro
API Scripter
You could store the Z distance in one of the bars, then write a script that calculated the 3-d distance between two (or more) selected objects. I've got a measure script that handles 2-d which you could modify for 3-d.
1437397657

Edited 1437397797
DXWarlock
Sheet Author
API Scripter
I was about to suggest what Aaron said, so I second it as the easiest way. Store the 'Z' distance on the token somehow, bar, GM field, etc. And use pythagorean theorem to work out the length of the 'long' side since you have the length[A] (distance on table) and height[B] (z stored on token) with an API script.
1437404467
The Aaron
Pro
API Scripter
Here is the measure script I wrote: <a href="https://github.com/shdwjk/Roll20API/blob/master/Me" rel="nofollow">https://github.com/shdwjk/Roll20API/blob/master/Me</a>...
Wow, thanks, all. While I'd love something more robust, something that keeps track of z-coordinates and can figure them into ranges would certainly fit the bill. I'll check it out and start getting to work!
1437521265
The Aaron
Pro
API Scripter
Definitely let us know if you need help!