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

Patrol Using Waypoints

<a href="https://app.roll20.net/forum/post/2991336/script-patrols-using-waypoints" rel="nofollow">https://app.roll20.net/forum/post/2991336/script-patrols-using-waypoints</a> I recently started using the above script for an added level of immersion in taverns and what not, and I love what it does, but I can't seem to find a way to have the waypoints not visible to the players, the paths that are saved and named are hidden but the waypoint ruler still comes up when the tokens move, is there a way to disable this?
I don't use the script, so I don't know if it will work, but have you tried setting your ruler to "Hide from others" (see the wiki here: <a href="https://wiki.roll20.net/Ruler" rel="nofollow">https://wiki.roll20.net/Ruler</a>)?
Rabulias said: I don't use the script, so I don't know if it will work, but have you tried setting your ruler to "Hide from others" (see the wiki here: <a href="https://wiki.roll20.net/Ruler" rel="nofollow">https://wiki.roll20.net/Ruler</a> )? Unfortunately no dice, I rejoined as player and could still see it, and the player me had their own waypoint tool setting
1614777769

Edited 1614778013
David M.
Pro
API Scripter
I wonder if you could just change the stroke color of the path to completely transparent by adding an alpha value? Looks like here's where the traces are created:&nbsp; state.WaypointPatrol['traces'].push(createObj('path', { '_pageid' : pageid, '_path' : JSON.stringify(pts), //see notes 'stroke' : '#ff9900', 'stroke_width': 14, 'layer' : 'gmlayer', 'width' : lr['left'] - ul['left'], 'height' : lr['top'] - ul['top'], 'left' : (lr['left'] - ul['left']) / 2 + ul['left'], 'top' : (lr['top'] - ul['top']) / 2 + ul['top'], }).get('_id')); Maybe try changing the 'stroke' line to this? (added 00 to the end of the hex color) 'stroke' : '#ff990000', EDIT - I've never used this script but if this works, it may be a double-edged sword as it would be transparent to you, too. Might make setup difficult :)
These two lines need to be changed from true to false. WPP.RetainLastMove = false; //save patrol moves as lastmove WPP.ShowPaths = false; //refresh visible paths on add or delete
1614797548
David M.
Pro
API Scripter
Ah, sounds like that makes it easy!
1614802916

Edited 1614803285
Mark (GM) said: These two lines need to be changed from true to false. WPP.RetainLastMove = false; //save patrol moves as lastmove WPP.ShowPaths = false; //refresh visible paths on add or delete Okay so but since this api relies on retaining the waypoints last move in order to have the token follow it would setting them to false still work, I need the waypoint paths saved and able to be seen in the add or delete menu, I just want to make the measurements for the moving npc tokens not visible to my players&nbsp; David M. said: I wonder if you could just change the stroke color of the path to completely transparent by adding an alpha value? Looks like here's where the traces are created:&nbsp; state.WaypointPatrol['traces'].push(createObj('path', { '_pageid' : pageid, '_path' : JSON.stringify(pts), //see notes 'stroke' : '#ff9900', 'stroke_width': 14, 'layer' : 'gmlayer', 'width' : lr['left'] - ul['left'], 'height' : lr['top'] - ul['top'], 'left' : (lr['left'] - ul['left']) / 2 + ul['left'], 'top' : (lr['top'] - ul['top']) / 2 + ul['top'], }).get('_id')); Maybe try changing the 'stroke' line to this? (added 00 to the end of the hex color) 'stroke' : '#ff990000', EDIT - I've never used this script but if this works, it may be a double-edged sword as it would be transparent to you, too. Might make setup difficult :) Looking at it this does seem like it may be the way to go, I will update after I test it this evening, but as far as making it invisible for me, I believe that won't affect it too bad, but looking at that color, I believe that traces the path that is saved and can be hidden, not actually the waypoint measurements themselves. I understand it's hard to know what I'm talking about with this script without having used it yourself, and I thank both of you for taking the time to work with me to figure it out, wish me luck. Found this picture, best one I have of it with me but the yellow waypoint measurements every time they move is what I am trying to get rid of, maybe if I remake the paths with the measurement tool already turned off... I can't remember if I tried that in my other late night new api learning frustrations lol.
1614811461
David M.
Pro
API Scripter
I just installed it and tried it out. Looks like setting WPP.RetainLastMove = false like Mark said got rid of the yellow distance markers as viewed in a dummy player account I set up.&nbsp;
David M. said: I just installed it and tried it out. Looks like setting WPP.RetainLastMove = false like Mark said got rid of the yellow distance markers as viewed in a dummy player account I set up.&nbsp; You're correct, Mark was right!! and now looking at it I understand more of the api than I did before, love having forums like these where absolute beginners can learn by asking questions, not to mention ya'll Java Vets make some badass API's, I'm playing with your !Spawn at the moment to give my changling player different forms and it's a beautiful piece, I was using !change-token-image for this but it only gave 2 side options which was awesome, but the more immersive for the players the better, although I think I remember reading somewhere that The Aaron said !change-token-image was good for multiple level ship/building changing floors as long as all players are moving together which I definitely plan to implement in my campaign!! Keep up the good work.
1614859106
David M.
Pro
API Scripter
Great! Also glad to hear you are enjoying Spawn, but I'm no js "Vet" haha. Quite the opposite. I just Google a lot, learn from other scripts stay active on the forums, and ask questions when I don't know the answers :)