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

[PF] Brackets not working on all rolls.

Good day, I am attempting to make a spell that targets multiple enemies. I am using the roll templates from the pathfinder character sheet. I found the part of the sheet that handles the roll templates and ripped it out, so I am using just that. My roll, currently, is this: &{template:pf_spell} {{name=Fireball}} {{character_name=@{selected|token_name}}} {{character_id=@{selected|character_id}}} {{level= %{Level|Level}}} {{Aura Cost=%{Spell_Cost|Aura_Cost}}} {{casting_time=%{Spell_Cost|Action_Cost}}} {{components=V, S}} {{range=%{Spell_Range|Close_Range}}} {{Area=2x2 Square}} {{@{target|Target1|token_name}=%{Spell_Acc|Accuracy_1}; [[%{Spell_Dam_AoE_Fire|Fire_Damage_2x2_1}]] }} {{@{target|Target2|token_name}=%{Spell_Acc|Accuracy_2}; [[%{Spell_Dam_AoE_Fire|Fire_Damage_2x2_2}]] }} {{@{target|Target3|token_name}=%{Spell_Acc|Accuracy_3}; [[%{Spell_Dam_AoE_Fire|Fire_Damage_2x2_3}]] }} {{description=@{selected|token_name} throws an exploding ball of fire at the targeted area.}} The problem I am having is that Targets 2 and 3 do not roll properly. 1 Rolls correctly. 2 and 3, however, seem to ignore the brackets [[ ]] and just display the ability without fully rolling it. Targets 2 and 3 are copy pasted from 1, with the only exception being that the numbers for the target are changed. Additionally, I have done the same thing for all components that occur within each respective roll. Additionally, if I put one further set of brackets around them then I can make them roll. The trouble with that, at least in terms of the accuracy rolls, is that with the way it is set up it would not be able to show me critical hits or fails.  Is there a limitation that I am not aware of? I was hoping to extend this further with at least 5 targets (5 accuracy rolls, 5 damage rolls). Thanks for any help. Let me know if I need to provide more detailed information about the nature of any of the individual calls within that formula.
Hi, Alexander . Do Targets 2 and 3 have the same token_name? {{<propertyname>=<value>}} Given multiple, identical propertynames, Roll Templates will only display the lattermost tag.
1466448709

Edited 1466448873
vÍnce
Pro
Sheet Author
Try something like {{target 2=@{target|Target2|token_name}: ...}} {{target 3=@{target|Target3|token_name}: ...}}  
I think that I may not have been clear enough. The issue is with the three target sections, but not with the first part of them. I did already run into the issue of it displaying the lattermost tag, and make sure to always test it on separate targets to prevent that. Rather, the issue is with the %{Spell_Acc|Accuracy_2}; [[%{Spell_Dam_AoE_Fire|Fire_Damage_2x2_2}]] portion of the roll. It should output two numbers, such as 5;21. Instead, whats its giving me is [[1d20cs>20 + -10]]; [[21]] It is appearing in that fashion on the third target. The second target has the left roll display like that, and the right roll displays correctly. The first target works fine. For some reason, it is ignoring one set of brackets on some, but not all, of the rolls. I am not sure why. All of the rolls are carbon copies of each other, with the only difference being that I adjusted them to target the second or third target, depending on which was appropriate.
Try padding the interiors of the outwardmost inline roll brackets with spaces (e.g. Damage=[[foo]] → Damage=[[ foo ]]).
First off, thank you once again Silvyre. The spacing of the brackets fixed it. However, it was in an extremely strange fashion. When I spaced roll 2's accuracy, it fixed roll 3. When I spaced roll 1's accuracy, it fixed roll 2. When I spaced roll 1's damage formula, it fixed roll 3. I have no idea what sort of arcane wizardry is occurring in the system to cause this, but I am glad that it now works. Thank you very much.