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 Alchemist Macros

So, I'm starting to play an alchemist in the Pathfinder system and I have a couple macro related questions for the class. I will be specific Archetype called a Gun Chemist, the class can use an ability that increases damage by 1d6 plus intelligence and the number of d6 go up by level, similar to sneak attack for a rouge. My questions are; can I set up a macro, so that the damage die goes up as I level as well as when I attack it asks if I want to use that ability and add the damage if I do, as well as track the ability like ammunition.
1531706182

Edited 1531706315
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Heh, I'm starting a campaign as a gun chemist as well (tomorrow as a matter of fact)! So, this is possible but will get complicated, get ready for a deep dive into roll20 macro code. I'm not sure which pathfinder sheet you are using, but the below applies only to the community sheet (aka neceros). You're going to want to setup two attacks, one for single shot attacks and one for scattershot (assuming that your weapon can scattershot). Now, we're going to customize the macro text of each repeating attack: Single Shot Macro @{PC-whisper} &{template:pf_attack} ?{Iterative|Primary/Rapid Shot/Haste,0|2nd,5|3rd,10} ?{Rapid Shot|No,0|Yes,2} @{toggle_attack_accessible} @{toggle_rounded_flag} {{font=@{apply_specfont_chat}@{use_specfont}}} {{scroll_desc=@{scroll-desc}}} {{color=@{rolltemplate_color}}} {{character_name=@{character_name}}} {{character_id=@{character_id}}} {{damage=[[@{damage-dice-num}d@{damage-die} + @{damage_macro}]]}} {{crit_confirm=[[ 1d20 + @{attack_macro} + [[ @{crit_conf_mod} ]] -?{Iterative}-?{Rapid Shot} ]]}} {{crit_damage=[[ [[ @{damage-dice-num} * (@{crit-multiplier} - 1) ]]d@{damage-die} + ((@{damage_macro}) * [[ @{crit-multiplier} - 1 ]]) ]]}} {{type=@{type}}} {{weapon_notes=@{notes}}} @{iterative_attacks} @{macro_options} {{vs=@{vs}}} {{attack=[[ 1d20cs>[[ @{crit-target} ]]?{Ammunition|Metal Cartridge,cf<[[{3,?{Alchemical Ordnance|None,20}kl1]] + @{attack_macro} - ?{Iterative} - ?{Rapid Shot} ]]}}|Fire,1}kl1]] + @{attack_macro} - ?{Iterative} - ?{Rapid Shot} ]]}} {{precision_dmg1=[[[[ceil((@{class-0-level}+1)/2)]]d6+@{INT-mod}]] }} {{precision_dmg1_type= }} {{critical_dmg1=[[2d6+@{INT-mod}*2]] }} {{critical_dmg1_type= }}}|Flare Cartridge,cf<[[{4,?{Alchemical Ordnance|None,20}kl1]] + @{attack_macro} - ?{Iterative} - ?{Rapid Shot} ]]}}|Fire,1}kl1]] + @{attack_macro} - ?{Iterative} - ?{Rapid Shot} ]]}} {{precision_dmg1=[[[[ceil((@{class-0-level}+1)/2)]]d6+@{INT-mod}]] }} {{precision_dmg1_type= }} {{critical_dmg1=[[2d6+@{INT-mod}*2]] }} {{critical_dmg1_type= }}}{{precision_dmg2_type=1/2 damage & DC [[16+ceil((@{class-0-level}-5)/3)]] Reflex or }} {{precision_dmg2=blinded for 1 round, dazzled in 5 ft radius }} } Scatter Shot Macro @{PC-whisper} &{template:pf_attack} ?{Iterative|Primary/Rapid Shot/Haste,0|2nd,5|3rd,10} ?{Rapid Shot|No,0|Yes,2} @{toggle_attack_accessible} @{toggle_rounded_flag} {{font=@{apply_specfont_chat}@{use_specfont}}} {{scroll_desc=@{scroll-desc}}} {{color=@{rolltemplate_color}}} {{character_name=@{character_name}}} {{character_id=@{character_id}}} {{damage=[[@{damage-dice-num}d@{damage-die} + @{damage_macro}]]}} {{crit_confirm=[[ 1d20 + @{attack_macro} + [[ @{crit_conf_mod} ]] -?{Iterative}-?{Rapid Shot} ]]}} {{crit_damage=[[ [[ @{damage-dice-num} * (@{crit-multiplier} - 1) ]]d@{damage-die} + ((@{damage_macro}) * [[ @{crit-multiplier} - 1 ]]) ]]}} {{type=@{type}}} {{weapon_notes=@{notes}}} @{iterative_attacks} @{macro_options} {{vs=@{vs}}} {{attack=[[ 1d20cs>[[ @{crit-target} ]]?{Ammunition | Entangling Shot,cf<[[{4,?{Alchemical Ordnance|None,20}kl1]] + @{attack_macro} - ?{Iterative} - ?{Rapid Shot} ]]}}|Fire,1}kl1]] + @{attack_macro} - ?{Iterative} - ?{Rapid Shot} ]]}} {{precision_dmg1=[[[[ceil((@{class-0-level}+1)/2)]]+@{INT-mod}]] }} {{precision_dmg1_type= }} {{critical_dmg1=[[2+@{INT-mod}*2]] }} {{critical_dmg1_type= }}}{{precision_dmg2=entangled for [[2d4]]rds}} {{precision_dmg2_type=DC [[16+ceil((@{class-0-level}-5)/3)]] Reflex or}} | Molten Cartridge,cf<[[{4,?{Alchemical Ordnance|None,20}kl1]] + @{attack_macro} - ?{Iterative} - ?{Rapid Shot} ]]}}|Fire,1}kl1]] + @{attack_macro} - ?{Iterative} - ?{Rapid Shot} ]]}} {{precision_dmg1=[[[[ceil((@{class-0-level}+1)/2)]]+@{INT-mod}]] }} {{precision_dmg1_type= }} {{critical_dmg1=[[2+@{INT-mod}*2]] }} {{critical_dmg1_type= }}}{{precision_dmg2_type=1/2 damage & DC [[16+ceil((@{class-0-level}-5)/3)]] Reflex or}} {{precision_dmg2=[[1d6+@{INT-mod}]] (1d6+@{INT-mod}) for 3 rounds}} {{damage=[[@{damage-dice-num}d@{damage-die} + @{damage_macro} + @{INT-mod}]] }} } These macros will ask you what iterative attack you are making and apply the attack penalty appropriate, if you are rapid shotting and apply that penalty. It will then ask what type of ammunition you are using (replace metal cartridge with paper cartridge, this is a fluff change for my game) and apply the appropriate critical failure point to represent  that ammo's misfire chance. It will even modify this misfire chance if you are using alchemical ordnance using cartridge savant. The damage for the alchemical ordnance increases based on your level (assuming that your first class on the neceros sheet is your gun chemist). The only thing that this macro won't do is decrement your remaining uses of alchemical ordnance, this requires an API script (pro perk) to do, but is pretty easy using a wide variety of scripts. These macros are built to work for my gnome gun chemist's paddlefoot pistol. They may need some tweaking based on your size and weapon of choice.
Excellent, so If I do end up only using one type of cartridge and want to skip that step in the asking process lol, where I would remove that in the macro? Or would that be too much to remove just a little bit?
1531708451

Edited 1531708478
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
It's doable, although I wouldn't recommend trying it by direct editing of the macro. I can get it crafted for you using some tools I've got. What cartridge are you using? and are you going to use regular black powder - shot as well as a cartridge? Also, what gun are you using?
That would be awesome yeah. I"ll probably just be using a paper cartridge with a Pistol from the Early Firearms.  I'll actually be dual weilding if that means anything, as well as have both fire and shock bombs if any of that is relevent. What tools are you using may I ask? Are they something anyone can learn to use? I'd love to learn more about macros and what not. Make it so I can do everything streamlined and easier on me lol
1531788648

Edited 1531788686
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
It's a spread sheet that I made to automate these html encodings. It's linked in the stupid tricks thread . And, actually, the macros I currently use are what are in there as the examples.
Well, alright then lol. I checked it out and yeah that's out of my knowledge base.
Also, sorry to keep bothering you. I need to have a macro that adds my class level to a skill, but I think I'm doing that wrong. I thought it was Just + (@{class-0-level} but that doesn't seem to be working. What am I doing wrong?
1531847271
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
It looks like you have an extraneous leading parenthesis there.