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 .
×

Help with a couple of scripts

I have been using roll20 for a couple of years now but have only now started using the API. I have been able to reverse engineer a few to get them working in my campaign but there are a couple that I cannot figure out. I am currently using Robin's CombatTracker and The Aaron's TockenLock to handle combat. I would like to be able to track Combat Movement. I have tried the old MovementTracker and TokenPath but I am unable to get either to work. Here are the versions I am using: <a href="https://app.roll20.net/forum/post/4042133/slug%7D" rel="nofollow">https://app.roll20.net/forum/post/4042133/slug%7D</a> <a href="https://github.com/Roll20/roll20-api-scripts/tree/master/TokenPath" rel="nofollow">https://github.com/Roll20/roll20-api-scripts/tree/master/TokenPath</a> I have an idea for movement tracking in combat but I have no idea how I would implement it, as I have very little experience with java. If speed was set as a resource and linked to a token bar, the player could see what they had left for movement. I am not sure how one would link the page measurements with a resource, or if it is possible. If it were, perhaps it could be linked with the aura as well, that way there was a visual representation of how much movement a player had remaining. Any suggestions or ideas? Perhaps there is already something out there for this. On a side note, does anyone have a good resource to get me started in writing my own scripts? It has been fun to poke around with the code to get different results but I have no idea how to build my own from scratch. Thank you everyone:)
1554737628
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I am sure some of the real scripters will be along to give you some pointers, but in the time being, the Wiki has some getting started resources , a use guide , and examples .
Awesome! Thank you Keith. I had a hard time finding that but I guess I should spend a little more time looking through the wiki. The greatest part of roll20 is the community. I wasn't expecting a response that quick.
1554738234

Edited 1554738252
GiGs
Pro
Sheet Author
API Scripter
by the way, roll20 uses javascript, not java. They are different languages. I mention this not to be pedantic, just that you'll get better results when googling for solutions with the right name. In addition to Keith's examples, you might find this link helpful:&nbsp; <a href="https://wiki.roll20.net/Sheetworker_examples_for_Non-programmers" rel="nofollow">https://wiki.roll20.net/Sheetworker_examples_for_Non-programmers</a> Also check out the links on that page at the bottom under See Also .
I am my own proof of my programming ignorance. Thank you GiGs. That explains why my research has been fruitless until now. The link also helped me identify some of the issues I was having.
Just in case anyone is looking for similar functionality, I found an old Movement script on GitHub that I was able to get working. I do have to reset movement between rounds, but it works.
1555115665
GiGs
Pro
Sheet Author
API Scripter
Do you have a link? I wouldnt mind checking it out.
I knew I forgot something. Here it is:&nbsp; <a href="https://github.com/bpunya/roll20-api/tree/master/CombatMovemen" rel="nofollow">https://github.com/bpunya/roll20-api/tree/master/CombatMovemen</a> t
1555118717
GiGs
Pro
Sheet Author
API Scripter
Thanks! There are some other interesting scripts there, too. KABOOM looks fun.
KABOOM is a lot of fun. It is actually in the one clicks. I didn't realize that this script was by the same person.