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] Marching order

June 13 (11 years ago)

Edited December 20 (11 years ago)
Ada L.
Marketplace Creator
Sheet Author
API Scripter

Here's a script that lets you tell your tokens to follow other tokens. It also lets the GM specify marching orders by giving a list of token names.

Update 12/19/2013: The follow/unfollow commands now work properly for players to tell their character tokens to follow other tokens. This requires that the player-controlled tokens to represent a character controlled by the player. GMs can still tell any token to follow any other token.

https://gist.github.com/Cazra/5771375

Video related: http://www.youtube.com/watch?v=waa2ucfgVgQ

Omg this is perfect! Will it work with a token underneath it? Im assuming it keeps relative distance at 0 if st to follow while in the same square? Thks is exactly what ivs been looking for to manage torches. I use a transparent layer and group with thextoken carrying the torch. This would simplfy things so much


damn. Guess it doesn't work that way. oh well, still cool, just not QUITE what I was all excited about. 

still like it though :P

June 14 (11 years ago)

This looks fantastic, can't wait to try it out. 

June 15 (11 years ago)
Ada L.
Marketplace Creator
Sheet Author
API Scripter

Michael, you're in luck! I updated my script to all tokens to be able to carry other tokens using the commands !carry !drop and !dropAll. Enjoy!

The update is in the gist link.

June 15 (11 years ago)

Can you fork a version that just does the !carry and !drop commands?

That is awesome! If only I wasnt on my phone on the way to work when I starting browsing : /

Will update tonight and seeif I can break it before my game tomorrow.

My players have been getting annoyed at losing the torch when the init tracker forces em to leave the torch behind during combat

June 16 (11 years ago)
Ada L.
Marketplace Creator
Sheet Author
API Scripter

That sounds like a good idea to have the different capabilities be separate, Honey Badger. 

The marching order and carrying scripts are now in separate gists. The carrying script is here now: https://app.roll20.net/forum/post/201089/script-carrying-tokens#post-201089

just letting you know I haven't managed to break it after a few hours of playing. just one thing though, to do with making the script persistent over multiple sessions. its not a BIG hassle, just a few minutes prep each time the campaign starts, but would be a boon.