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

D&D5e Using Query Macros to select and display NPC attacks / actions

1535681956

Edited 1535682824
(5e OGL sheets) I found this macro in the forums from  Silvyre  but it seems outdated, Is there an updated way to click an npc and do their attacks without making macros for each npc or having a bunch of sheets open? And if it can have saves and checks in there too that would be perfect. /w gm &{template:5eDefault} {{outputall=1}} {{title=Actions}} {{ [@{selected|npc_action_name1} ](~selected|NPCAction1) }} {{ [@{selected|npc_action_name2} ](~selected|NPCAction2) }} {{ [@{selected|npc_action_name3} ](~selected|NPCAction3) }} {{ [@{selected|npc_action_name4} ](~selected|NPCAction4) }} {{ [@{selected|npc_action_name5} ](~selected|NPCAction5) }} {{ [@{selected|npc_action_name6} ](~selected|NPCAction6) }}
1535683408
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
As far as I know, this is not possible using the OGL sheet without using the API, or a complex macro such as you have posted. I have tested the one above, by the way, and cannot get it to work as written. The built-in macro for Action 1, for instance, should be %{selected|repeating_npcaction_$0_npc_action} This looks to be referencing a character ability (macro) named "NPCAction1" ~selected|NPCAction1 If this is an important feature for you, you might be able to re-write the macro using the syntax give on this page . Or you could investigate the Shaped Sheet, which has all of those functions built in. It's also possible that these features are granted by the companion script for the OGL sheet. I/m not that familiar with it.
Is there an API that pretty much does this? That would be easier.
1535688703
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I believe that someone has written a script to report from the OGL sheet, but to install and run it would require a Pro level subscription. I also cannot seem to find it. Maybe someone with better google-fu. There are many other things the API can do to automate your game play. Look for some threads in the API forum asking for beginner recommendations. It should give you a brief overview of some of the possibilities.
1535690900
The Aaron
Pro
API Scripter
I believe this is the one you're remembering:&nbsp;<a href="https://app.roll20.net/forum/post/5608775/script-update-tokenaction-creator-for-5e-ogl-sheet-version-2-dot-0/?pagenum=1" rel="nofollow">https://app.roll20.net/forum/post/5608775/script-update-tokenaction-creator-for-5e-ogl-sheet-version-2-dot-0/?pagenum=1</a>
That works perfectly thank you
1535697245
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
That's a good one, but the one I was thinking of created a report in chat of particular attributes. Ah well, if that one works perfectly, though.