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

Need Advise and Help

Hello Fellow Roll20 User i need you advise and knowledge. i'm rolling a homebrew campaign and i'm trying to get my battle more smooth ... so i'm converting myself to API  and so far i've added Powercards and Alter bars... but i've got some problems. I was wondering if there was an API or a command on powercards to place an area on the ground that could give some damage or false lise buff/debuff I also have some player who use Explosive spell ... and i was wondering if there was an API or a command on powercard/alterbars to place an area of damage ? i also need some advise on powercards! i needed something to make an action or a roll repeat 6/7 or more time  is there  a command for that or do i need to repeat the said action the number of time needed ? Aside from taht if you have any useful or interesting Api to propose i'll gladly look at it and take !  Thank for the help
I can't offer a lot of help on this but I can offer some! There is an API called SmartAoE&nbsp; <a href="https://app.roll20.net/forum/post/10485883/script-smartaoe-graphical-interface-for-implementing-aoes-on-gridded-maps/?pageforid=10485883#post-1048588" rel="nofollow">https://app.roll20.net/forum/post/10485883/script-smartaoe-graphical-interface-for-implementing-aoes-on-gridded-maps/?pageforid=10485883#post-1048588</a> . There are also some videos showing how to do more with this script and you'll need libinline as well, but they're very useful for spells.&nbsp; I also really enjoy Combat Master which you can find in the API library as a one click install as well.&nbsp;
1655509854
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
You can also look into "It's a Trap" which triggers events based on a token entering a given area, if I understand it correctly.
1655510070
Andrew R.
Pro
Sheet Author
I would recommend ScriptCards instead of PowerCards, especially since you're just starting.&nbsp;
SmartAOE and ItsATrap are great, but can take a little setup. You can also use GroupCheck to select whichever tokens are in the area and ApplyDamage if you want to quickly adjust hop for selected tokens in an area of effect. &nbsp;
ok thanks i'll look into ! i already saw Smart Aoe but as i understood it it work with grid ... wich i'm not using (if it's not the case, then do tell me !) and it seems "It's a trap" work the same way ... with a grid&nbsp; i do think that a lot of Api and option use grid (which is why i'm thinking of passing on grid again ...) thanks for the idea of using scriptcard... but i did pass quite some hour already to learn how power card works and i already changed some of my maccro ! Exept if you tell me Scriptcard can do some of the stuff i need that power card can't handle and it seems like i'm going to have the same problem with groupcheck for the same grid reason !&nbsp; but again if those Api work on non-grided map do tell me, i'll gladly take them !
1655553915
David M.
Pro
API Scripter
I can confirm that SmartAoE currently requires a (square) gridded map as you said. Scriptcards has a ton of advantages over Powercards, especially if you already have any experience with procedural languages. Here are some features: Looping capability Real variables (two types: strings and rolls) that can be used and/or modified with other math &amp; string processing functions True branching (it has a direct "goto" style branch as well as function-calling capability where you skip over to a function, do stuff, and return back to the line it was called) Speaking of functions: You can pass multiple variables to functions for processing&nbsp; Multiple conditional styles (If...then, Select...case) Can call functions or code branches based on conditionals Array support Code blocks, so you can have true multi-line conditionals. Example pseudo-code (not scriptcard syntax) If (someTrueStatement) { &nbsp; &nbsp; line1 &nbsp; &nbsp; line2 } else { &nbsp; &nbsp; line3 &nbsp; &nbsp; line4 } Over 50 built-in functions to process &amp; manipulate strings, arrays, write to a persistent global variable, manipulate turn order, get distance/angles of tokens, etc. Dynamically build syntax for subordinate api calls Direct access of token &amp; sheet attributes. These can be dynamically generated (i.e. you don't necessarily have to know what you are accessing ahead of time) Immediate modification of token &amp; sheet attributes for subsequent logic (so you don't have to worry about asynchronous issues where you assume something has been changed but it really hasn't finished processing yet) Ability to add comments to complex macros so you and others can understand what the heck you did&nbsp; It is being actively maintained and constantly adding new features
1655569534
GiGs
Pro
Sheet Author
API Scripter
Bear in mind also that ScriptCards and PowerCards are both developed by the same guy, and ScriptCards was explicitly designed as a replacement for PowerCards. ScriptCards is getting active development, and PowerCards is not, I believe.
1655593099
Kurt J.
Pro
API Scripter
GiGs said: Bear in mind also that ScriptCards and PowerCards are both developed by the same guy, and ScriptCards was explicitly designed as a replacement for PowerCards. ScriptCards is getting active development, and PowerCards is not, I believe. I wasn't the original developer of PowerCards (SkyCaptain was), but I did take over maintaining it for a couple of years. It is true that ScriptCards was developed as a replacement for PowerCards due to the limitations of the way PowerCards was architected (no shade being cast on Sky here - it is just the way it was designed). By far the most common question I was getting with PowerCards is "how do I use THIS roll and include the result in THIS OTHER roll?", which just wasn't possible. ScriptCards grew out of the desire to address that and has become essentially an interpreted scripting language as new things have been added. I should point out that PowerCard and ScriptCards don't interfere &nbsp;with each other - you can have both installed and continue to use PowerCards macros for older things that work and ScriptCards macros for newer or more complicated tasks.
yeah i did some work on it already...&nbsp; it seems like i can't make some stuff work on scriptcard so i'll go ask you more on it in the scriptcard thread !&nbsp; and groupe check seems to be working without needing grid wich is a good thing so i'll take it, and have a try with it.&nbsp;