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

Adding in option for Favored Enemy

Hey everyone, got a question. Here is the macro i use right now for my longbow: @{Fenrith|wtype}&{template:atkdmg} {{mod=+8}} {{rname=Longbow}} {{r1=[[@{Fenrith|d20}cs>20 + 4[DEX] + 2[MOD] + 2[PROF]]]}} @{Fenrith|rtype}cs>20 + 4[DEX] + 2[MOD] + 2[PROF]]]}} {{attack=1}} {{range=150/600}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d8 + 4[DEX]]]}} {{dmg1type=Piercing }} 0 {{dmg2=[[0]]}} {{dmg2type=}} {{crit1=[[1d8[CRIT]]]}} {{crit2=[[1d10[CRIT]]]}} 0 {{desc=}} {{spelllevel=}} {{innate=}} @{Fenrith|global_attack_mod} @{Fenrith|global_damage_mod} @{Fenrith|global_damage_mod_crit} {{globaldamagetype=@{Fenrith|global_damage_type}}} ammo=Arrows @{Fenrith|charname_output} Is there a way for it to ask if I am attacking a favored enemy so that i can add 2 to the damage roll? Any and all help is appreciated.
1522525311

Edited 1522529284
Of course! @{Fenrith|wtype}&{template:atkdmg} {{mod=+8}} {{rname=Longbow}} {{r1=[[@{Fenrith|d20}cs>20 + 4[DEX] + 2[MOD] + 2[PROF]]]}} @{Fenrith|rtype}cs>20 + 4[DEX] + 2[MOD] + 2[PROF]]]}} {{attack=1}} {{range=150/600}} {{damage=1}} {{dmg1flag=1}} {{dmg1= [[1d8 + 4[DEX] + ?{Favored Enemy|Yes,2|No,0}[FAV]]]} } {{dmg1type=Piercing }} 0 {{dmg2=[[0]]}} {{dmg2type=}} {{crit1=[[1d8[CRIT]]]}} {{crit2=[[1d10[CRIT]]]}} 0 {{desc=}} {{spelllevel=}} {{innate=}} @{Fenrith|global_attack_mod} @{Fenrith|global_damage_mod} @{Fenrith|global_damage_mod_crit} {{globaldamagetype=@{Fenrith|global_damage_type}}} ammo=Arrows @{Fenrith|charname_output}
Its not resolving like it should.....
1522528253
Ziechael
Forum Champion
Sheet Author
API Scripter
It is just missing an extra ]: {{dmg1= [[1d8 + 4[DEX] + ?{Favored Enemy|Yes,2|No,0}[FAV] ]]} }
Whoops. Sorry about that. I have fixed it in the above
no worries, got it working for all my shots now, thanks much
If you are using it in multiple places, I would recommend saving saving the important parts as attributes on the character. I would use two attributes for this, one to hold the damage since this will increase at a higher level and one for the actual query. favored_enemy_damage         2 favored_enemy                        ?{Favored Enemy|Yes,@{favored_enemy_damage}|No,0}[FAV] Then in your macros you would simply add +@{Fenrith|favored_enemy}  to the damage and it will handle it as above. The benefit to this is that you only need to change the favored_enemy_damage attribute and it will update all other usages of the attribute instead of modifying each macro individually.
1522603290

Edited 1522603357
Thank you Kyle G.  That is way above my pay grade when it comes to macros and this interface.  I just copied and pasted the information that i needed to add and put it on all of my shots.  One I gain Greater Favored Enemy, i'll just change the 2 to a 4.  I do understand what you are saying though and it makes perfect sense. Maybe one day I will be good enough to have all those attributes and other fun stuff added in.  This is my first character and first game on Roll20.
ok, new question for the same question.... I went and clicked the button for it to not roll damage unless i click the attack.  Getting the info from pressing up, i modified my macros but i lost the favored enemy query.  How do i add it in on this macro string? @{Fenrith|wtype}&{template:atk} {{mod=+8}} {{rname=[Longbow](~-L3uWZ5lf_eJ0cGASlex|repeating_attack_-L51ZbPtpqnIUoXd4yKy_attack_dmg)}} {{rnamec=[Longbow](~-L3uWZ5lf_eJ0cGASlex|repeating_attack_-L51ZbPtpqnIUoXd4yKy_attack_crit)}} {{r1=[[@{Fenrith|d20}cs>20 + 4[DEX] + 2[MOD] + 2[PROF]]]}} @{Fenrith|rtype}cs>20 + 4[DEX] + 2[MOD] + 2[PROF]]]}} {{range=150/600}} {{desc=}} {{spelllevel=}} {{innate=}} @{Fenrith|global_attack_mod} ammo=Arrows @{Fenrith|charname_output}
You need to update the Longbow attack from within the character sheet.  [Longbow](~-L3uWZ5lf_eJ0cGASlex|repeating_attack_-L51ZbPtpqnIUoXd4yKy_attack_dmg)  is an Ability Command Button to roll the damage. On the character sheet, click the cog wheel next to the attack and add the query to the damage like this. (My character is set up with the abilities as mentioned above.
Kyle G. sir, you are my hero!!!