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

Macro creation help. (toggling buffs)

1466776294

Edited 1466776316
Hello! Long story short i'm new to using macros and i need help making a macro that will toggle my werewolf form buffs so i can do it at the ease of a macro button. all help would be appreciated. I am using the pathfinder character sheet.
1466776941
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Actually changing stats on the character sheet via macro would require the API, but there may be some ways to workaround that with some very detailed macros. What changes with your werewolf form?
1466777319
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
also, what sheet/system is this?
Scott C. said: also, what sheet/system is this? Pathfinder sheet version 0.52. my were wolf form (custom made by my gm) affords me +4 to STR and CON. and +8 to DEX. i'm trying to make this toggleabl to make my macros adjust accordingly. ive noticed the PF sheet now has a buff section, that's why i thought it could be done via macro.
1466780443

Edited 1466780455
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
you could toggle the buffs in the sheet by hand, but short of the API, theres no way for a macro to trigger a change in the sheet. you could also add a roll query to all your macros that would be something like: ?{Werewolf|yes, 4|no,0} for anything dependent on Str or CON For the Dex, you would just add a *2 after the roll query. ?{Werewolf|yes, 4|no,0}*2 This way you will only have to answer the roll query once for any given action and it will propagate to any place you've put the roll query.
Scott C. said: you could toggle the buffs in the sheet by hand, but short of the API, theres no way for a macro to trigger a change in the sheet. you could also add a roll query to all your macros that would be something like: ?{Werewolf|yes, 4|no,0} for anything dependent on Str or CON For the Dex, you would just add a *2 after the roll query. ?{Werewolf|yes, 4|no,0}*2 This way you will only have to answer the roll query once for any given action and it will propagate to any place you've put the roll query. I see... thank you for your quickness and helpfulness. i must go learn how to do queries now.
1466783606

Edited 1466783708
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
As an example to help you out, here's what the macro text in your attacks would be changed to (assuming it was a strength based attack): @{PC-whisper} &{template:pf_attack} @{toggle_accessible_flag} @{toggle_rounded_flag}{{color=@{rolltemplate_color}}} {{character_name=@{character_name}}} {{character_id=@{character_id}}} {{subtitle}} {{name=@{name}}} {{attack=[[ 1d20cs>[[ @{crit-target} ]] + [[ @{total-attack} ]] + ?{Werewolf|yes,4|no,0} ]]}} {{damage=[[ @{damage-dice-num}d@{damage-die} + [[ @{total-damage} ]] + ?{Werewolf} ]]}} {{crit_confirm=[[ 1d20 + [[ @{total-attack} ]] + ?{Werewolf} ]]}} {{crit_damage=[[ [[ (@{damage-dice-num} * (@{crit-multiplier} - 1)) ]]d@{damage-die} + [[ ((@{total-damage} + ?{Werewolf} ) * (@{crit-multiplier} - 1)) ]] ]]}} {{type=@{type}}} {{weapon_notes=@{notes}}} @{iterative_attacks} @{macro_options} It also would be pretty easy to just pop your character sheet out into its own window and just have it on the buffs screen and simply toggle your werewolf buff on and off as needed. This might actually be better in the long run as I'm assuming that your werewolf form is active for a longer period of time than just a round or two in combat.
Scott C. said: As an example to help you out, here's what the macro text in your attacks would be changed to (assuming it was a strength based attack): @{PC-whisper} &{template:pf_attack} @{toggle_accessible_flag} @{toggle_rounded_flag}{{color=@{rolltemplate_color}}} {{character_name=@{character_name}}} {{character_id=@{character_id}}} {{subtitle}} {{name=@{name}}} {{attack=[[ 1d20cs>[[ @{crit-target} ]] + [[ @{total-attack} ]] + ?{Werewolf|yes,4|no,0} ]]}} {{damage=[[ @{damage-dice-num}d@{damage-die} + [[ @{total-damage} ]] + ?{Werewolf} ]]}} {{crit_confirm=[[ 1d20 + [[ @{total-attack} ]] + ?{Werewolf} ]]}} {{crit_damage=[[ [[ (@{damage-dice-num} * (@{crit-multiplier} - 1)) ]]d@{damage-die} + [[ ((@{total-damage} + ?{Werewolf} ) * (@{crit-multiplier} - 1)) ]] ]]}} {{type=@{type}}} {{weapon_notes=@{notes}}} @{iterative_attacks} @{macro_options} It also would be pretty easy to just pop your character sheet out into its own window and just have it on the buffs screen and simply toggle your werewolf buff on and off as needed. This might actually be better in the long run as I'm assuming that your werewolf form is active for a longer period of time than just a round or two in combat. My groupmate taught me about the queries, and your final solution does seem best but i am a forgetful person so i dont mind it asking everytime. Thanks again for all of your help! Cheers!
1466804100
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Sounds good, happy rolling