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 help for series of Macros for new ua Inventor Wizard

1516470811

Edited 1516567649
Hi everyone.&nbsp; I am relatively new to roll 20 and completely new to macro making.&nbsp; Through information gathered from friends and google searching I have been able to make a few functional macros that all do a large portion of what I want but just not quite everything.&nbsp; If the reason why I cant get these working is because neither me nor my dm have upgraded accounts please let me know. So basically what I am trying to do is make a series of macros that allow me to reckless cast as fast as possible so my turns do not take an excessive amount of time.&nbsp; For anyone who is not familiar to the new ua class here is a link to the pdf&nbsp; <a href="https://media.wizards.com/2018/dnd/downloads/UA-3S" rel="nofollow">https://media.wizards.com/2018/dnd/downloads/UA-3S</a>... Here is what I have made so far that works:&nbsp;&nbsp;/r 1d10 &{template:default} {{name= Reckless Cast Cantrips}} {{Acid Splash = [[1]]}} {{chill touch = [[2]]}} {{fire bolt = [[3]]}} {{light = [[4]]}} {{poison spray = [[5]]}} {{ray of frost = [[6]]}} {{shocking grasp = [[7]]}} {{sacred flame = [[8]]}} {{thorn whip = [[9]]}} {{Roll twice and cast each cantrip, but if you roll another 10 on either die, you cast nothing, wasting your action = [[10 ]]}} This outputs a d10 roll and a very nice looking chart of each spell cast based on the number rolled.&nbsp; In a perfect world the spell names would all be clickable in order to link spell description and a damage roll or a spell description with a button that is clickable to roll damage. That seems to be impossible at least without an upgraded account, so my solution was to try to create a macro for each spell that links the spell description with a clickable button to roll damage.&nbsp; So I would click the macro for the chart, select my spell, then type #spellname where spellname is a macro I create.&nbsp; The spell macro would link a spell description with range and what type of attack/save it is.&nbsp; I would then use a macro I have that already works perfectly to roll for a spell attack if needed and if it hits, or no attack roll is needed I would click the button to roll damage.&nbsp; The problem I am having right now is creating a macro with a functioning clickable button.&nbsp;&nbsp; Here is what I have that links a button and then the typed information I want, but even though the button looks like it should be clickable, when clicked it does nothing, no error code, just nothing: [Acid Splash](!#Dmg1d6) Dexterity Save Range 60 Ft You hurl a bubble of acid. Choose one creature within range, or choose two creatures within range that are within 5 feet of each other. A target must succeed on a Dexterity saving throw or take 1d6 acid damage. This spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6). &nbsp; The macro Dmg1d6 is just a macro for /r 1d6 which I checked does work.&nbsp; I have also tried putting in /r 1d6 and /r1d6 the button simply does not work, even though the cursor changes into a hand when I mouse over it.&nbsp; As a bonus, if someone can help me get the button to work I could use some help formatting the output to look closer to what the actual roll 20 spell descriptions and damage rolls look like with a box around it and bold text to emphasize certain information like the type of attack/save and range I have a spreadsheet I am working on in the meantime as a reference for each spell if it turns out that I simply cant create the macros I want without an upgraded account.&nbsp; Link here&nbsp; <a href="https://docs.google.com/spreadsheets/d/1AdXnYp815B" rel="nofollow">https://docs.google.com/spreadsheets/d/1AdXnYp815B</a>... I appreciate any and all help on this matter, Thank you for your time!
1516517707

Edited 1516568008
Ok, so after a little help from a friend and A LOT of googling I have a workable system in a format I can live with.&nbsp; In case anyone else is curious what solution I went with I will link a few macros I have created. These macros are the best I could come up with for free accounts.&nbsp; If you have a pro account you can make power cards which would look much better. I decided to stick with the previous chart for rolling on the table: /r 1d10 &{template:default} {{name= Reckless Cast Cantrips}} {{Acid Splash = [[1]]}} {{chill touch = [[2]]}} {{fire bolt = [[3]]}} {{light = [[4]]}} {{poison spray = [[5]]}} {{ray of frost = [[6]]}} {{shocking grasp = [[7]]}} {{sacred flame = [[8]]}} {{thorn whip = [[9]]}} {{Roll twice and cast each cantrip, but if you roll another 10 on either die, you cast nothing, wasting your action = [[10 ]]}} Just make 5 more macros with the other charts adding a second r 1d10 for the others Then I made a macro for every spell on each table. (yes that is a lot of macros)&nbsp; These followed one of 2 different formats based on the spell. [Fire Bolt](** SEENOTE /r 1d10 Fire) &{template:default} {{name= Range 120 ft}} {{You hurl a mote of fire at a creature or object within range. Make a ranged spell attack against the target. On a hit, the target takes 1d10 fire damage. A flammable object hit by this spell ignites if it isn't being worn or carried. This spell's damage increases by 1d10 when you reach 5th level (2d10), 11th level (3d10), and 17th level (4d10).}} **replace SEENOTE &nbsp;with&nbsp; ! & # 1 3 ;&nbsp; &nbsp;Without spaces.&nbsp; This information deletes itself in the forums as well as in the regular macro section if you ever go back in to edit it.&nbsp; I have now learned this does not delete if you put it under the ability macros on the third tab of your character sheet or &{template:default} {{name= Fog Cloud}} {{Duration 1 Hour}} {{Range 120 ft}} {{Concentration}} {{You create a 20-foot-radius of fog centered on a point within range. The sphere spreads around corners, and its area is heavily obscured. It lasts for the duration or until a wind of moderate or greater speed (at least 10 miles per hour) disperses it.}} It was fairly easy using copy/paste from my Spreadsheet linked in the first post&nbsp; <a href="https://docs.google.com/spreadsheets/d/1AdXnYp815B" rel="nofollow">https://docs.google.com/spreadsheets/d/1AdXnYp815B</a>... The first macro outputs a clickable button to roll damage or healing followed by a spell description, while the second template is for spells without any clicking needed. I also made a macro to cast any spell attack:&nbsp; &{template:default} {{name= Reckless Casting}} {{Attack= [[1d20cs&gt;20+@{Chibi|spell_attack_bonus}]]}}&nbsp; &nbsp; Where Chibi is my character's name. If you have a space in your name use an _ for spaces. So my turn when using Reckless casting will be as follows: Click macro for table in hotbar, choose spell(s), Type #spellname (or whatever macro name for the spell chosen), if the spell is an attack click attack macro in hotbar, roll damage if it hits by clicking the button in the chat.&nbsp;&nbsp; One very important note: There appears to be a bug that when I go to edit the macro with the button it deletes a portion of the command " " I don't know why.&nbsp; I just had to add it back in and save it. Edits made for auto deleted items
1516535332

Edited 1516536498
GiGs
Pro
Sheet Author
API Scripter
The parts that get deleted might be related to html replacements. They are described extremely confusingly&nbsp; here . I havent looked in detail at your macro to identify it, but roll20 does replace or delete certain characters in the macro box (but not the Abilities box on journal sheets), so you have to be careful about those. One thing I'm puzzled about: you have in your macros something like this: &{template:default} {{name= Reckless Cast Cantrips}} {{Acid Splash = [[1]]}} Why is the number 1 in square brackets there? It's not being rolled, so it doesnt need them. Also this whole macro seems like it would take a lot of space. Unless I'm missing something, you could replace the whole thing with a Rollable table, Reckless-Cantrips. in the table, have the first entry be Acid Splash, the second Chill touch and so on up to the final entry being "roll Twice". Then and then call the table with 1t[Reckless-Cantrips].&nbsp; Then you can replace that entire first macro with something like &{template:default} {{name= Reckless Cast Cantrips}} {{You rolled=1t[Reckless-Cantrips] }} You could follow it up with buttons to launch each cantrip. &{template:default} {{name= Reckless Cast Cantrips}} {{You rolled=1t[Reckless-Cantrips] }} {{[code for acid splash macro here] = [code for chill touch macro here] }} This would give you 10 buttons on 5 rows, saving space and letting people see the output of the reckless-cantrips table, and immediately giving a button to click for the appropriate cantrip. I'm puzzled about one of your macro layouts. [Fire Bolt](! /r 1d10 Fire) &{template:default} {{name= Range 120 ft}} {{You hurl a mote of fire at a creature or object within range. Make a ranged spell attack against the target. On a hit, the target takes 1d10 fire damage. A flammable object hit by this spell ignites if it isn't being worn or carried. This spell's damage increases by 1d10 when you reach 5th level (2d10), 11th level (3d10), and 17th level (4d10).}} In the above macro, have any characters been deleted&nbsp; in the first line? I try it as is and it doesnt work for me, However, I notice you can simplify the text by replacing the damage amount description by a calculation. If you use&nbsp; ceil((@{level}+2)/6) this will give the exact number of dice to roll (replace "level" with what the level stat in your game is called). And [[ ceil((@{level}+2)/6)d10 ]] will roll the dice inline. Finally, your attack macro: &{template:default} {{name= Reckless Casting}} {{Attack= [[1d20cs&gt;20+@{Chibi|spell_attack_bonus}]]}}&nbsp; &nbsp; Since this has your character's name hardcoded, it might be better off in the Abilities section of your character sheet, where you can write it without referencing the character name: &{template:default} {{name= Reckless Casting}} {{Attack= [[1d20cs20+@{spell_attack_bonus}]]}}&nbsp; &nbsp; (You can also simplify cs&gt;20 to cs20. You don't need the &gt; since there's no way to roll above 20. If crit was 19-20, then you'd need cs&gt;19.) If you want it universal though, you can leave it in macros and use: &{template:default} {{name= Reckless Casting}} {{Attack= [[1d20cs&gt;20+@{selected|spell_attack_bonus}]]}}&nbsp; &nbsp; Just make sure to select your character token first.
1516548487

Edited 1516568077
Thank you for your thoughtful response. &nbsp;I am a super newb to macro making is the answer to why I did things the way I did. &nbsp;Yes, my forum post did auto delete the same characters the macro auto deletes. &nbsp;I am not at my computer but if I remember correctly these were (without spaces) & # 1 3 ; &nbsp;which go after the ! In the first line. After searching very very hard online I found someone explaining that if your spell is not on your character sheet you must use those extra characters in order for the button to work. &nbsp;Now as a free account user, even if it was on my character sheet I needed this code or it did not seem to work.&nbsp; As for why I have the brackets around the numbers in the cantrips macro, well that was the first one I made from a macro a friend gave me on rolling all ability scores at once. &nbsp;With a little google I figured out how to label the results. &nbsp;I later did realize I didn't need the brackets but I actually really like that the numbers are yellow so I left it. The rollable table sounds awesome and more like what I was looking for. &nbsp;I had to google to figure out what you meant, but the add button seems to be missing for me to actually create a table. &nbsp;Is this a gm only feature? &nbsp;Is it a plus/pro only feature? &nbsp;I would love to use it but I can't seem to start one.&nbsp; I also do not understand your text simplification for the Fire bolt macro, I already explained that yes some of the code was deleted above. &nbsp;This is the macro I struggled with the most and kept changing how I wanted it to look. &nbsp;I know it's not very pretty but I do want the spell description for easier reference than going to my spreadsheet, and writing it this way allows my turn to feel more like a natural turn if I were to choose an ability from my character sheet. &nbsp; As for the attack macro, I know I can do selected to make it universal, but honestly I don't need that. I would rather not have to select my token. &nbsp;This macro works exactly how I want it to, but thank you for your advice if I ever decide to give gming a try or need a more generic code in general.
1516553743
GiGs
Pro
Sheet Author
API Scripter
The rollable table sounds awesome and more like what I was looking for. I had to google to figure out what you meant, but the add button seems to be missing for me to actually create a table. Is this a gm only feature?&nbsp; Unfortunately it's a GM feature. Only the GM can create the tables. Sorry, I didn't realise you weren't the GM. If you're a player and not a GM, you shoould probably be creating these macros as character Abilities (look on your character sheet, the Attributes and Abilities tab). Roll20 doesnt delete those html characters in Abilities, it only does that in macros. (Don't ask me why!). So if you create your macros as a character Ability, you get the advantage of not having to deal with that text disappearing, you can make your macros shorter by not having to use your character character (@{character|stat} simplifies to @{stat} ) Regarding the macro, I was just pointing out that if you replace&nbsp; /r 1d10 with&nbsp; /roll [[ceil((@{level}+2)/6)]]d10 it means that when your character level increases, the damage roll is calculated automatically. You dont need to re-edit your macro to change the damage roll to 2d10, 3d10, and so on.
Sorry about the confusion, yes I am a player. &nbsp;So the reason why I hesitate to add abilities to my sheet is there will be 54 abilities in total if I reach level 9. &nbsp;I think this will look not so great on the sheet. &nbsp;Unless there is a way to put them all on their own page. I really do not think I will like the formatting. &nbsp;I also cannot add them to my spell book because then I won't know which spells I know and which ones were only able to be cast randomly. &nbsp;Thanks for the string based on the level, I will probably go in and adjust those closer to when my character reaches level 5 (if she lives that long). &nbsp;It will be very helpful.&nbsp;
1516556881
GiGs
Pro
Sheet Author
API Scripter
The tab you put Abilities on is not the character sheet tab. So they are hidden out of the way, most of the time.&nbsp; On the character sheet, you have three top tabs: Bio, Character Sheet, Attributes & Abilities. The Attributes & Abilities tab is split into two columns, the second one being for Abilities.&nbsp; Abilities are just Macros, localised to a journal (character sheet). So you can add any number of Abilities there, and if you are calling them through the macros you have created, you never really need to look at them. That said, if you've already created 50-odd macros, I can understand why you wouldn't want to repeat that work!
I will look into the ability section like you suggest and see if I like the format better there. &nbsp;I didn't know that feature existed. &nbsp;I am not actually sure what to type on the field. &nbsp;All of the macros I have written were piecemealed from a lot of googling and trial and error and a little help from a friend. I made 18 of the 54 macros so far because I am only making them as my character gets close to actually being able to use them. &nbsp;But the most time consuming part was figuring out how to write the macros into formats I could live with. Once I had the 2 codes the other 16 macros were very easy to create with copy paste from my spreadsheet