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

API Question.

I am curious if you can add a drop down menu for KABOOM for the type of Fx.  My script I am working on is !KABOOM ?{Knockback Distance|10} ?{Radius|20} --?{Acid|Blood|Death|Fire|Frost|Holy|Magic|Slime|Smoke|Water} My goal is to have the ability to adjust the distance and radius which is working fine. The menu works, but the effect does not. I get the default fire. So I already know the issue lies with me, but what could I do differently? Is my goal even possible with this API?
The issue is with your query. They way you have it set as --?{Acid|Blood|Death|Fire|Frost|Holy|Magic|Slime|Smoke|Water} there is nothing being passed to the script. Format you query like this :--?{Which affect|Acid,acid|Blood,blood|Death,death|Fire,fire|Frost,frost|Holy,holy|Magic,magic|Slime,slime|Smoke,smoke|Water,water} There is a wiki on the advanced usage of queries in macros. located here
Thank you very much Mark (GM). I am obviously new to coding/macroing. I get "in over my ski's" very quickly. I am still watching Nick O's videos over and over, and still managing to mess them up. So needless this is a bit stressful to me, but I get so happy on game day for sure. Ive been struggling with his loading screen trick. I got it to work once, but now its not working again. Well anyway, thank you for helping me. I would have never figured out that query difference. There are many people in these forums that are much better at this than I, so I tend to ask questions once I get frustrated.
No worries glad it helps and totally understand. Learning how to write macros or coding of any kind takes time. Its like learning a second language the syntax take practice till it clicks. And feel free to ask that's what these forums are for and is one of the great benefits of roll20.
neat
Mark (GM) said: No worries glad it helps and totally understand. Learning how to write macros or coding of any kind takes time. Its like learning a second language the syntax take practice till it clicks. And feel free to ask that's what these forums are for and is one of the great benefits of roll20. @Mark (GM) thank you. I try to at least research it as much as I am capable of before asking, but yes eventually I make it to the forums when I get stumped. I've come a long way as I never have done anything like this until last fall. so I have learned so things basically by watching videos and by trial and error. Most of all, from all the amazing people on this forum. There are a lot of people who help newbies like me all the time so to you and all the others 'Thank you!'