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

[Shaped 5e] Macros use of "roll", for calling maybe trait "Innate Spellcasting", and for calling Actions with Adj/Dis or even better 2 attack rolls.

1533164107

Edited 1533193915
So I have been using this %{selected|repeating_action_$0_action} will be updating to %{selected|repeating_action_$0_roll} based on feed back from Kryx that the last "action" is going to be phased out but I am not sure the scope of this change. Do I need to make the same change to all other macros like       %{selected|repeating_trait_$0_trait} to  %{selected|repeating_action_$0_roll} ? If anyone knows I would appreciate it, as it will greatly impact the amount of work this will cause for me. - Nevermind. Testing shows it works for action,trait, reaction, and spell. I have adjusted my template accordingly. Nilbog has the "Innate Spellcasting" which is in the trait section but doesn't call the text like the rest but just a list of spells using %{selected|shaped_spells} (which is useful) however the text is also useful. If I can't call it as an existing  macro I will just make a macro and just type it in myself as a text macro but from a template stand point being able to call it would be a lot less work and more repeatable. Currently using: /w gm &{template:5e-shaped} %{selected|shaped_spells}{{text_big=Innate Spell Casting}} {{freetext= Spell casting  ability is Charisma Spell save is DC12 Spells have no material component requirement}} The Goblin boss calls for Multi-attack the second scimitar attack only is at disadvantage. If I could call these attacks specifying advantage or disadvantage it would be great better if I could just have it roll the attack twice. If not I will have to make a macro from scratch. In the mean time I might just add a note to Multi-attack and request the attack twice then use the roll and damage of the lower.  Also, does anyone know a way to make it so that pulling tokens out creates them with random health in the red circle based on the NPCs health dice formula on the character sheet or even manually copied some how?
1533191691
Kryx
Pro
Sheet Author
API Scripter
Everything supports %{NAME|SECTION_NUMBER_roll}. You should use "roll", not "action", "trait" or other names to ensure forward compatability (though it likely won't be removed soon). The sheet has built in advantage/disadvantage toggles that work instantly. I'dd suggest making the first goblin attack normally and then turn on disadvantage for the second. This is easier with the script as it turns off disadvantage. To create NPCs with random HP you must have the Shaped script.
1533194467

Edited 1533199293
Thanks for the reply!! I will go ahead and adjust everything to "roll" so it will save me work later. Understood about the advantage/disadvantage button. I don't really want to have to go the the NPC charcter sheet so I just make it 3 attacks and added a note. If that is the best I can do it will work. /emas The @{character_name} attacks! /w GM%{selected|repeating_action_$0_roll} /w GM%{selected|repeating_action_$1_roll} /w GM &{template:5e-shaped} {{title=**Disadvantage on second strike. Use the lower attack roll set below.**}} /w GM%{selected|repeating_action_$1_roll} /w GM%{selected|repeating_action_$1_roll} Ok, I don't have time to look at scripting right now. I might at a later date if you have some reference page/video for me to look at and get some idea of what it does. For the time I will just use static health. Hopefully with PC random damage and a little NPC diversity it will not be too obvious they are all the same. If it turns out that way I might duplicate them a couple of times and make a higher health one and a lower health one. That should mix it up enough and I can implement it pretty easily. Thanks again for your time and and reply.
Kryx said: The sheet has built in advantage/disadvantage toggles that work instantly. I'dd suggest making the first goblin attack normally and then turn on disadvantage for the second. This is easier with the script as it turns off disadvantage. So I ended up doing this: /emas The @{character_name} attacks! /w GM%{selected|repeating_action_$0_roll} /w GM%{selected|repeating_action_$1_roll} /w GM %{selected|repeating_action_$1_roll} &{template:5e-shaped} {{title=Scimitar (Disadvantage)}} {{attack1=[[2d20kl1cs>20 + 2[proficient] + 2[dex]]]}} It just overrides your calls on the macro variable and hard codes it to disadvantage. I also changed the label so If for some reason the Goblin Boss were to get advantage nullifying the disadvantage, I would know to use a standard attack again to with the net zero.