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

A few questions about macros, booleans, and spells/buffs.

I am using Pathfinder by Roll20 and have pro. I’m trying not to use API because I really don’t want to rewrite all my code and things, but I feel like at this point I may have to. I’m also wondering if I should change to the Pathfinder Community sheet, as that seems to be the sheet that works better of the two main Pathfinder 1E sheets. 1) With this sheet, is there any way to reference another character with the buffs? Everyone has access to everyone’s character, and yet I still can make a working buff. 2) Is there any way for a spell to use the macro bar or vise versa? I mainly ask this as the GM that doesn’t 3) Is there any way to use a boolean to have a macro do something else? I set up everyone’s buff inside the abilities, so I can use [[@{selected|repeating_buff_$11-enable_toggle}]] to get a 1 or a 0. Is there any way to say if 0 “Token_Name has been hasted! Turn on your haste!” plus a whisper to the player to turn on their buff and if 1 “Token_Name has been hasted! Great Success.” or something. 4) Last, is there any way to reference size? Annoyingly, using BAB Max + Stat to do a single attack on higher characters doesn’t account for size bonus/penalties to hit. Only the Full Attack Melee/Ranged do. Also none of the damage dice change. One of my players loves to be a huge character but the constant swapping back/forth and eventually just making multiple attacks for each size has got him to not even want to change size anymore.
1678284973

Edited 1678285207
GiGs
Pro
Sheet Author
API Scripter
I think you'll need to use the API for some of what you're after, because youre asking for things that are simply not supported by the free account (though one thing might not be supported by the Pro account either). 1) In Roll20 generally, you can only reference other characters by using their name, the target keyword (they must be assigned to a token), or the selected keyword (which means you need to have edit rights over the character, and they must be assigned to a token). 2) The macro bar is not a thing recognised by any part of roll20, including API/Mod scripts. Players choose what appears in their own macro bar, and it's invisible to everyone else. Is this what youre asking about? 3) Roll20 does not support conditionals in macros. You can sometimes fake it, but all paths of the conditional/boolean are fully evaluated before the player chooses one. Also, this isn't possible: "Is there any way to say if 0 “Token_Name has been hasted! Turn on your haste!” plus a whisper to the player to turn on their buff and if 1" because roll20 macros can only read data, they cannot write or alter data (they cannot set whether anyone whispers). You might be able to do whispers to players conditionally, but this works better with a query than a conditional boolean. 4) you can reference size if the target character sheet has a size attribute. But you cannot automatically change dice used - your player would likely need to make some custom attack macros to support what they are doing. You don't need a Pro account for this, by the way, just a query to ask for the size, or an attribute to store it, and the attack macros reference this and use the currect dize sizes.
1678292610

Edited 1678292713
Gauss
Forum Champion
1) If you are asking to have one person checkmark a box and all character sheets reflect that, no. Each player will need to checkmark their own box. If you are asking to have a buff calculation based on another person's character sheet, in my testing that does not work, probably due to how the sheet was coded.&nbsp; 2) Yes, drag the spell to the macro bar. Or, use the spell's repeating ID.&nbsp; <a href="https://wiki.roll20.net/Pathfinder_by_Roll20#PC_Rolls" rel="nofollow">https://wiki.roll20.net/Pathfinder_by_Roll20#PC_Rolls</a> 3) As GiGs said, not really. However, some macro options are available as on/off switches if this is part of a macro. But as part of a Buff? No.&nbsp; 4) As GiGs said, query works here, macros work here. I would use a Chat Menu macro in this case.&nbsp; Ultimately it sounds like you want a lot of automation. Character sheets can be written with some automation, but they will never be fully automated. After a certain point automation prevents variable options from happening. The more you automate something the more you wind up excluding things you didn't consider.&nbsp; For that kind of automation I typically use macros (especially Chat Menus).