Using a similar technique of success/fail as above I've created a roll template that will allow you to put all of a character's attacks in the same roll template and have it only show the correct number of attacks for his current base attack bonus. The way this is currently designed makes it work with any system that has a base attack bonus that uses the formula of: +1 atk per xx base attack. I don't think it will work with fate or compound success or fail systems but I dont see any reason why the code cannot be adapted with a little tweaking.
Keep in mind it isn't finished and does not calculate confirm and crit damage for all attacks yet and I haven't set this up to look pretty with tables and spans. I'll update the code once I get it perfected if people want me to but the basic functions are here. Also, this
DOES NOT play nice with 3d dice, as all rolls in a roll template are in fact rolled even if they are not displayed in the chat. So using this you'll end up with entire bag full of dice being dumped on the table a the same time.
CSS Code required:
.sheet-rolltemplate-35AdvAttack .sheet-wrapper {
background:url(http://i.imgur.com/BLb0XMU.jpg) top left repeat;
}
.sheet-rolltemplate-35AdvAttack table {
width: 100%;
padding: 2px;
}
.sheet-rolltemplate-35AdvAttack .sheet-border {
border-color: #7E2D40;
border-style: solid;
border-width: 1px;
border-radius: 5px;
}
.sheet-rolltemplate-35AdvAttack th {
color: rgb(126, 45, 64);
padding-left: 5px;
line-height: 1.6em;
font-size: 1.2em;
text-align: left;
font-family:"Times New Roman", Times, serif;
font-variant: small-caps;
}
.sheet-rolltemplate-35AdvAttack .sheet-subheader {
color: #000;
font-size: 1em;
font-style: italic;
}
.sheet-rolltemplate-35AdvAttack .sheet-arrow-right {
border-top: 3px solid transparent;
border-bottom: 3px solid transparent;
border-left: 180px solid rgb(126, 45, 64);
}
.sheet-rolltemplate-35AdvAttack .sheet-tcat {
font-style: italic;
}
.sheet-rolltemplate-35AdvAttack td {
padding-left: 5px;
}
.sheet-rolltemplate-35AdvAttack .inlinerollresult {
background-color: transparent;
border: none;
}
.sheet-rolltemplate-35AdvAttack .inlinerollresult.fullcrit {
background-color: transparent;
color: #3FB315;
border: none;
}
.sheet-rolltemplate-35AdvAttack .inlinerollresult.fullfail {
background-color: transparent;
color: #B31515;
border: none;
}
.sheet-rolltemplate-35AdvAttack .inlinerollresult.importantroll {
background-color: transparent;
color: #4A57ED;
border: none;
}
HTML Required:
<rolltemplate class="sheet-rolltemplate-35AdvAttack">
<div class="sheet-wrapper">
<div class="sheet-border">
<table>
<tr><th>{{name}}</th></tr>
<tr><td class="subheader">{{subtags}}</td></tr>
<tr class="arrow-container"><td><div class="arrow-right"></div></td></tr>
<!-- Does not seem to hide this table row like it should... need to fix -->
<!-- Hidden table row holds base attack bonus for each successive attack for the template to check against -->
<tr style="display: hidden">{{bab_1}} {{bab_2}} {{bab_3}} {{bab_4}}</tr>
<tr class="rowcolor">
<td><span class="tcat">Atk: </span>{{atk1}}a {{#rollTotal() bab_2 1}}/
{{atk2}}b{{/rollTotal() bab_2 1}} {{#rollTotal() bab_3 1}}
/{{atk3}}c{{/rollTotal() bab_3 1}} {{#rollTotal() bab_4 1}}
/{{atk4}}d {{/rollTotal() bab_4 1}} vs AC</td>
</tr>
<tr>
{{#dmg1}}
<td><span class="tcat">Dam: </span>{{dmg1}}a {{#rollTotal() bab_2 1}}/
{{dmg2}}b{{/rollTotal() bab_2 1}} {{#rollTotal() bab_3 1}}/
{{dmg3}}c {{/rollTotal() bab_3 1}} {{#rollTotal() bab_4 1}}/
{{dmg4}}d {{/rollTotal() bab_4 1}}</td>
{{/dmg1}}
</tr>{{#rollWasCrit() atk1}}
<tr>
<td><span class="tcat">Confirm: </span>{{confirm}} vs AC</td>
</tr>
<tr>
<td><span class="tcat">Crit: </span>{{dmgcrit}}</td>
</tr>
{{/rollWasCrit() atk1}}
{{#notes}}
<tr>
<td><span class="tcat">Notes: </span>{{notes}}</td>
</tr>
{{/notes}}
{{#attk-notes}}
<tr>
<td><span class="tcat">Attack Notes: </span>{{attk-notes}}</td>
</tr>
{{/attk-notes}}
</table>
</div>
</div>
</rolltemplate>
Roll Template code for the macro or button:
&{template:35AdvAttack} {{name=+@{weapon1enh} @{weapon1name}}} {{subtags=@{weapon1type}, @{weapon1specialproperties}}} {{bab_1=1}} {{bab_2=[[{d0+@{bab2}}>1]]}} {{bab_3=[[{d0+@{bab3}}>1]]}} {{bab_4=[[{d0+@{bab4}}>1]] }} {{atk1=[[1d20cs>@{weapon1critmin}+@{wep1hit}]]}} {{atk2=[[1d20cs>@{weapon1critmin}+@{wep1hit}-5]]}} {{atk3=[[1d20cs>@{weapon1critmin}+@{wep1hit}-10]]}} {{atk4=[[1d20cs>@{weapon1critmin}+@{wep1hit}-15]]}} {{dmg1=[[@{weapon1damage}]]}}{{dmg2=[[@{weapon1damage}]]}} {{dmg3=[[@{weapon1damage}]]}} {{dmg4=[[@{weapon1damage}]]}} {{confirm=[[@{weapon1attackcalc}]]}} {{dmgcrit=[[@{weapon1damage}*@{weapon1critmult}]]}} {{type=[@{weapon1type}]}}
This roll template is designed to work with my template, but should work with the 3.5 template with very little tweaking.
{{name}} : Contains the Weapon Enh bonus and weapon name
{{subtags}} : Contains weapon type [B/P/S] and special properties such as keen, fiery, holy etc
{[bab_1}} Always equals 1 because no matter what your initial base attack is (even a negative) you still have one attack.
{{bab_2-4}} Contains the compare check for your second base attack which must be defined on your character sheet.
{{atk1-4}} Contains the roll macro for damage, I have this defined on the character sheet to shorten the roll template size, but you can include everything. the 1d20cf<xx>cs should ALWAYS be in the roll template, dont ask why, it just seems to work best that way. Keep in mind that this is also where you put the negative for each successive attack past the first, normally -5 cumulative. This could easily be modified though to handle class/race modifiers such as
flurry of blows or
Rapidshot/Multishot. Of course you'd also need to worry about how long each line is in the roll template.
{{dmg1-4}} Include the damage macro here, if you are doing all attacks on one row there wont be any room for anything else.
{{confirm}}, {{dmgcrit}} and {{type}} are not finished for this but the but the general theory holds for creating a show hide for them as well.
WARNING: If you have complicated formula to calculate your base attack, this will produce a javascript error and lock up your screen, I tried using this with auto-calc for 5 levels. each having Good/Average/Poor selection input and multiplying that by the number of levels in that class. It gave my browser a heart attack and it died. I spent almost a week trying to fix it. So just have static number or text fields for base attack, as many classes as you want, but it doesnt work with auto-calcs.
End Result:

Granted, the tables arn't set up and it doesn't look neat and pretty, but it is functional and it does work.