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

[Pathfinder sheet] Toggling characters buffs on and off

So I'm playing a paladin and I'd like to be able to toggle my smite bonus on for some attacks and off for others, but going into the character sheet and turning it on and off is slow, is there a way to create a macro button that turns it on/off? I've looked around but I didn't see anything related. Thanks in advance :)
1483245006

Edited 1483245435
vÍnce
Pro
Sheet Author
Other than using an API script(a Pro perk), macros cannot affect(write to) character attributes. Conditions/Buffs need to be activated on the sheet. Also, while an API can affect changes to attributes, currently(and this may soon change, fingers crossed) those changes do not trigger as events for sheet workers, so the changes don't take effect until you close/re-open the sheet which kind of defeats it's usefulness. Until changes are made by roll20, you'll probably need to either create 2 versions of your attack,(one with smite, one without) or add a query for smite per attack using the sheet's "Attack insert macro" and "Damage insert macro" found in the Macro-text sub-section of your attack or globally(affects all attacks) from the "Macro-Options" section found on the Attacks tab/page. ie ?{Smite Dmg Bonus?|No,0 |Yes,[[ @{selected|class-0-level} ]]} ?{Smite Attk Bonus?|No,0 |Yes,[[ @{selected|cha-mod} ]]}
Ah, that's pretty cumbersome in the middle of battle, my bar of button commands is already stretching off the page. I guess I'll have to wait for Roll20 to deploy something later on. Thank you for the answer.  Speaking of button commands, is it possible to get a second row? One row just isn't cuttin' it. 
1483610034

Edited 1483610154
vÍnce
Pro
Sheet Author
I would recommend making changes on your sheet to the macro-text(like adding the queries above) or create separate attacks if don't want a query, then just drag and drop command buttons(pink/red buttons) to the quickbar. &nbsp;You'll get all your attacks, spells, skills in a nice menu whispered to chat. &nbsp;Even more in the next release. &nbsp;All without opening the sheet. &nbsp;Just a thought. Hopefully we'll get that update soon that will allow the buffs/conditions switches to be recognized by sheet workers when triggered off-sheet... You can use a css extension like stylish to make changes to the roll20 editor. &nbsp; Here's what I use on the editor. Use it with " <a href="https://app.roll20.net/editor/" rel="nofollow">https://app.roll20.net/editor/</a> " &nbsp;You may not want/need all the changes below. The #macrobar changes will wrap your quickbar macros into multiple rows. &nbsp;You can even adjust the margins to make it wrap over a tighter area. &nbsp;Have fun.&nbsp; #macrobar { &nbsp; &nbsp; height: auto !important; } #macrobar_macros { &nbsp; &nbsp; white-space: normal !important; &nbsp; &nbsp; margin-left: 1% !important; &nbsp; &nbsp; margin-right: 1% !important; &nbsp; &nbsp; padding-bottom: 0px !important; } #macrobar .macrobox { &nbsp; &nbsp; margin: 2px !important; } #page-toolbar { &nbsp; &nbsp; background-color: rgba(0, 0, 0, 0.50) !important; &nbsp; &nbsp; width: 80% !important; &nbsp; &nbsp; height: 400px !important; } #page-toolbar .container { &nbsp; &nbsp; width: 100% !important; &nbsp; &nbsp; height: 400px !important; &nbsp; &nbsp; white-space: normal !important; &nbsp; &nbsp; padding-left: 5% !important; &nbsp; &nbsp; padding-right: 5% !important; } .ui-dialog.dialog-collapsed { &nbsp; &nbsp; opacity: .60 !important; } div[id="stats"] { &nbsp; &nbsp; opacity: 0.3 !important; } /*cards*/ .hand .handcontainer .cardinhand img { &nbsp; &nbsp; max-height: 160px !important; &nbsp; &nbsp; max-width: none !important; } .charsheet .sheet-pf-wrapper { &nbsp; &nbsp; margin-top: 10px !important; } .nav-tabs { &nbsp; &nbsp; z-index: 100000 !important; &nbsp; &nbsp; position: fixed !important; &nbsp; &nbsp; background-color: #f0f8ff !important; &nbsp; &nbsp; width: 100% !important; &nbsp; &nbsp; margin: -10px 0 0 0 !important; } .nav-tabs:hover { &nbsp; &nbsp; opacity: 1.0 !important; } .nav-tabs&gt;li&gt;a { &nbsp; &nbsp; padding-top: 6px !important; &nbsp; &nbsp; padding-bottom: 4px !important; } div.span6, div.span12 { &nbsp; &nbsp; margin-top: 60px !important; } /* show mic with names only */ #textchat-notifier { &nbsp; &nbsp; position: absolute !important; &nbsp; &nbsp; top: -25px !important; &nbsp; &nbsp; border: 2px solid #F00 !important; &nbsp; &nbsp; opacity: .75 !important; } .namesonly .video { &nbsp; &nbsp; display: inherit !important; &nbsp; &nbsp; min-height: 0px !important; &nbsp; &nbsp; height: 0px !important; } .namesonly .OT_widget-container { &nbsp; &nbsp; display: none !important; } .namesonly #publisher_video { &nbsp; &nbsp; top: -34px !important; }
Thank you! These are some great changes, much tidier! &nbsp;
1483728413
James W.
Sheet Author
API Scripter
Vince said: Until changes are made by roll20, you'll probably need to either create 2 versions of your attack,(one with smite, one without) or add a query for smite per attack using the sheet's "Attack insert macro" and "Damage insert macro" found in the Macro-text sub-section of your attack or globally(affects all attacks) from the "Macro-Options" section found on the Attacks tab/page. ie ?{Smite Dmg Bonus?|No,0 |Yes,[[ @{selected|class-0-level} ]]} ?{Smite Attk Bonus?|No,0 |Yes,[[ @{selected|cha-mod} ]]} I find it better to ask the same question, with the value for "Yes" being 1, and then multiply by the result. ie ?{Smite?|No,0|Yes,1}*@{selected|class-0-level} ?{Smite?|No,0|Yes,1}*@{selected|cha-mod} For bonus points, make sure that you're not adding a Cha penalty! ?{Smite?|No,0|Yes,1}*{@selected|cha-mod},0}kh1
1483732108
vÍnce
Pro
Sheet Author
James W. said: Vince said: Until changes are made by roll20, you'll probably need to either create 2 versions of your attack,(one with smite, one without) or add a query for smite per attack using the sheet's "Attack insert macro" and "Damage insert macro" found in the Macro-text sub-section of your attack or globally(affects all attacks) from the "Macro-Options" section found on the Attacks tab/page. ie ?{Smite Dmg Bonus?|No,0 |Yes,[[ @{selected|class-0-level} ]]} ?{Smite Attk Bonus?|No,0 |Yes,[[ @{selected|cha-mod} ]]} I find it better to ask the same question, with the value for "Yes" being 1, and then multiply by the result. ie ?{Smite?|No,0|Yes,1}*@{selected|class-0-level} ?{Smite?|No,0|Yes,1}*@{selected|cha-mod} For bonus points, make sure that you're not adding a Cha penalty! ?{Smite?|No,0|Yes,1}*{@selected|cha-mod},0}kh1 Thank you for that James. &nbsp;I've seen that done in macros before and thought "That's a nice trick. I'm going to use that." &nbsp;and then I forget about it... &nbsp;;-) and the kh1 for penalty is very nice as well. Vulcans... These are getting copy/pasted into my 2TB bag of holding. Cheers
1483975954
chris b.
Pro
Sheet Author
API Scripter
I had the though today of having common queries like this be easily available for players or GMs, but not not sure how besides a special page of custom ones, you could check the ones you want, and they'd get concatenated together with [[ ]] around them and + between them. Well at least that is one way to do it, because the sheet isn't big or slow enough yet.