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

Creating Macros at Startup in an API

So I have been having a lot of fun writing my 1st API scripts and though mine is a bit specific to my games I was thinking it might be useful to someone else.  So I want to have the script create a few macros when it is installed/first run.  I know there are other scripts that have done this and I am trying to find an example, but have not had any luck as up yet.  So I turn the the experts here :) Is there a quick and simple example of how to create a macro if it does not exist?  Or upon installation?
1624028237
David M.
Pro
API Scripter
The TokenActionMaker script creates character ability "macros". Could glean some info from there?
I'm sure I can :)  I will take a look