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

[Help] How do I call a API from a macro?

I'm trying to use the Fly API inside of a macro. Is there anyway to do that? Essentially I'm looking for something like this: !Fly ?{Height} inside of a macro. Anyone know how to do this?
1403797310
The Aaron
Roll20 Production Team
API Scripter
That looks pretty much like it. !fly ?{How High?|1} You might check the capitalization of the command as they are usually case sensitive.
So I shouldn't have to do anything to account for the " " (space) in the command?
1403805916
The Aaron
Roll20 Production Team
API Scripter
You're talking about this fly script, right? <a href="https://wiki.roll20.net/User:235259/Flight" rel="nofollow">https://wiki.roll20.net/User:235259/Flight</a> What space do you mean, this one? !fly ?{How &lt;SPACE&gt; High?|1} The API isn't going to see that one. the ?{....} portion will be replaced with whatever was entered and the API will only see: !fly 5 or whatever was put in the box