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

[OGL 5e] General "Attack and SpellCasting Macro"

Hey!  Would it be possible to create a macro that creates a 'box' in the chat where to select which action I want to take? In particular, I would need to call all the macros contained in Attack and Spellcasting box. (I don't like to have an overpopulated macro-bar :D) Thanks!
1519915379

Edited 1519915481
This can be done with  API buttons . While the below shows Skills, you can use any macro you want. NOTE: Alec is my character and player name. Make sure it matches the name of your character. While this is for 3.5, it should work on any sheet. You create a default template and whisper whatever you want to yourself. For example:  /w Alec &{template:default} {{name=Skill Check Selection}} {{[Appraise](~Alec|appraise)[Balance](~Alec|balance)[Bluff](~Alec|bluff)[Climb](~Alec|climb)[Concentration](~Alec|concentration)[Diplomacy](~Alec|diplomacy)[Disguise](~Alec|disguise)[Escape Artist](~Alec|escapeartist)[Gather Information](~Alec|gatherinformation)... Would show this to me: However, all the above buttons don't work at present. To get them to work, you'd need to add macros to the Abilities section of your character sheet. Each of these macro names MUST match the name used after the vertical bar (for the [Balance](~Alec|balance) button, the macro would be named balance). Once named, the macro can be as simple or as complex as you'd like. Here's an example macro in my sheet:
In order to get a macro like this to work, you will need to utilize API command buttons as Bryan says (no subscription required). Further you will need to manually add a button for each item in the Attacks & Spellcasting section of the character. An API script could be utilized (read created) to automate this, but that's another story. Finally you can use the following format to get not only the attack name, but also roll the attack as if clicking it from the character sheet. [@{repeating_attack_$X_atkname}](~@{character_name}|repeating_attack_$X_attack) X is the index of the attack from the top of the list, starting with 0. So an example macro you could use would be @{wtype}&{template:npcaction} {{name=Attacks & Spellcasting}} {{rname=@{character_name}}} {{description=[@{repeating_attack_$0_atkname}](~@{character_name}|repeating_attack_$0_attack) [@{repeating_attack_$1_atkname}](~@{character_name}|repeating_attack_$1_attack) [@{repeating_attack_$2_atkname}](~@{character_name}|repeating_attack_$2_attack) [@{repeating_attack_$3_atkname}](~@{character_name}|repeating_attack_$3_attack) [@{repeating_attack_$4_atkname}](~@{character_name}|repeating_attack_$4_attack) }} The output for it looks like
Thanks! How can I install API Command Buttons?
You don't need to install them. It is merely a text syntax similar to an inline roll or an attribute/ability call The above macro I gave with work out of box if you put it in the Attributes & Abilities section of the character sheet like this