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

Completely, utterly confused by API's/mods whatnot, would appreciate some help

Greetings! So, I have been dm'ing for a while in here, got a hang of roll 20 basic utilities and what-nots. It is been fun! But as of late, and especially once I have entered pf2e, I have found myself looking through the mods libraries in search of tools to ease my workload (barely got any spare time left for gm'ing these days). The thing is... I am completely lost! I found some scrips I found interestitng, like Guidance, Tokenmod or Pathfinder 2e Utilities. They seem amazing tools to use... but I am completely incapable of running ANY script. And I do not seem to find any use in tutorials or the like, almost if I were missing a very essential and easy part of the proccess. Do I have to type the script in the roll20 chatbox? In the scripts section? Outside of the game? I just have no idea why I can't get any of these to run properly, nor do I get any progress when using their Help sections. I know this is kind of vague, but I just do not know where to even start . I would greatly appreciated any guidance on the most basic aspects, like, where do I have to type these scripts? Is there a basic !whatever I have to put in at the beginning for anything to work? Having said, thank you beforehand, wish you a great day!
1724509152
timmaugh
Pro
API Scripter
Hey Grancian... welcome to the world of scripts! The first thing I would want to make sure is that you are getting the scripts installed correctly. Sometimes there is confusion from the code people provide that IS the script (written in JavaScript), and the commands people write USING the script. You have to get the script (the JavaScript side) installed in your game before you can use it. Nick Olivo has a good video showing how to get the scripts installed. Once they are installed, it can still seem like a really dense subject to pierce to get your first handle on how to use them. The more widely used scripts have either Help Handouts in your game, forum threads, and/or Wiki articles discussing their usage, but sometimes those things seem to be written for someone who already has a bit of knowledge about the script... but don't worry: you'll soon be that person. Start with a single well-used mod like TokenMod. Go into it with a general understanding of what the script is intended to do: TokenMod allows you to alter token properties Then pick a simple thing to do with that script -- ideally taking the command line from one of the documentation sources I just listed. Here is the TokenMod wiki article . Or I could look in my game for the Help: TokenMod handout. Here is one example command line: !token-mod --set statusmarkers|blue|red|green|padlock|broken-shield Just above that in the TokenMod Help handout it says, "This command adds the blue, red, green, padlock and broken-shields to a token, on top of any other status markers it already has." So, select a token on the game board, then copy that command line, paste it into chat, and hit enter. You should see the token now has all of the listed statusmarkers. (Note, you can use these sorts of command lines by entering them in chat, by entering them into a character ability and running that ability, by entering them into a Collection Tab macro and running that macro... so if you arrive at an operation that you think will be helpful to your games, you can save it to make it easier to access.) Those are the basics of getting the scripts installed and executing a command line in your game. Once you understand this part, then your journey really begins. There are videos people will make of using scripts to solve in-game situations (Nick has a bunch). The forums have people posing a need and people coming up with solutions that can give good ideas of how to apply scripts to suit your needs. Or, if you want, you can just work through the help documentation for a script. And, as always, the forums are a great place to pose questions if you run into a problem or don't understand something!
Thank you very much! So it seems that line of code actually went through, I will just have to work my way through trial and error. At least know I am not missing anything! Once more, I am really thankful for all the time you took writting your answer: it was helpful and easy to follow! Wishing you a wonderful weekend and taking your advice to heart!