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

Looking for help to organize and display macros

So since the Pathfinder 2 Condition cards were released by Paizo I decided to see if I could create macro to set the status(using !tokenMod) and deal the proper card out to the player. I had create a simple API that will deal the owner of the token the proper card, it all works pretty good...But I am having an issue organizing all the "Abilities" I create. I also have a Pathfinder 2 Macro character that holds all my Abilities so I can move them between games. Just to base some we do not use the PF2 character sheet(well one does) the rest play off paper. So I wanted it to feel like the the table were I would hand out the card for the status. So I created an Ability for each of the statuses, they look like this..the code below sets the status and deals the proper status card out. So it works pretty good !token-mod --set statusmarkers|!flatfooted !card toggle flatfooted But I have a a few of them since there 30 or so statuses... So I want to organize all these Abilities in a simple UI so I can click a button to apply the changes.&nbsp; After reading the forums I first tried Ability Buttons in the in the Bio area, think i could create links...here is the post&nbsp; <a href="https://app.roll20.net/forum/post/7053893/slug%7D" rel="nofollow">https://app.roll20.net/forum/post/7053893/slug%7D</a> But I get html 400 error if I try to hit it. So then I read on and found chat menus....why this seems to work but I am not sure I really like it /w gm [flatfooted](~flatfooted) [blinded](~blinded) [add-clumsy](~add-clumsy) [remove-clumsy](~remove-clumsy) [grabbed](~grabbed) [restrained](~restrained) [add-sickened](~add-sickened) [remove-sickened](~remove-sickened) [add-enfeebled](~add-enfeebled) [remove-enfeebled](~remove-enfeebled)[concealed](~concealed)[hidden](~hidden)[persistent-damage](~persistent-damage)[add-wounded](~add-wounded)[remove-wounded](~remove-wounded)[remove-dying](~remove-dying)[remove-dying](~remove-dying)[confused](~confused)[controlled](~controlled)[dazzled](~dazzled)[deafened](~deafened)[add-doomed](~add-doomed)[remove-doomed](~remove-doomed)[add-drained](~add-drained)[remove-drained](~remove-drained)[encumbered](~encumbered)[fascinated](~fascinated)[fleeing](~fleeing)[add-frightened](~add-frightened)[remove-frightened](~remove-frightened) it gives me a wall of buttons and I am not even close to being done....Are there any better options out there? Putting all this in chat seems really strange to me every time I need to change a status (i know can scroll up and reuse the buttons). So any help would be great I wish...I could drop the buttons in journal entry.
1593035127
GiGs
Pro
Sheet Author
API Scripter
There's no good way to handle something like this. Probably the best way is to organise them into subgroups, and have one chatmenu macro for each group, and a master which launches a chatmenu of the subgroups. This will take up the least space. You might also be able to use a query: !token-mod --set statusmarkers|!?{toggle status| flatfooted,flatfooted !card toggle flatfooted| other,other !card toggle other| last one,lastone !card toggle lastone} I dont know what the card toggle is doing, and am a bit rusty with token-mod, but it seems like the structure above should work. Just copy the other lines as often as you need, and replace the word other &nbsp;with the necessary text.
!card is an API I wrote to deal out cards by name, since I could not find one. It is pretty simple. I did not know you could have two commands in roll query, I was trying to figure out how to do that. I will give it a try...I also like the idea of separating them into groups. Thank You.
1593101626
GiGs
Pro
Sheet Author
API Scripter
Craig Steinhoff said: I did not know you could have two commands in roll query You can have as many lines as you want between the comma and the |. I'm not sure what the limit is, but you shouldnt reach it.