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

Specific roll template question

1484555864

Edited 1484556353
Matthew C
Pro
Sheet Author
Hey, currently i have the following template, sorry that it is a little long. What I am wondering is, if it is possible, to split, the  hit location, the damage and the effects into 3 lines. Right now I have this all printed using this: /me &{template:Criticalhitlocation}{{name= hits with @{Manifestations1_Name} causing @{Manifestations_Slot1_Damage} damage and }}{{roll=[[1d100]]}} Which is fine, it prints out in a nice sentence, what is happening. But I am curious if I can use the normal style of templates (and design it to fit my game) and have it in a table stating Weapon Name: Weapon Damage: Hit Location: Bonus Damage: *Total Damage:* (Not sure if this can even be done) Status effects: Any help would be awesome, you all have helped me so much already :D <rolltemplate class="sheet-rolltemplate-Criticalhitlocation"> <td> <!-- Critical hit location list here --> {{name}} {{#rollTotal() roll 1}} <td><b>hits The T-Box causing an additional 50 damage and a chance of the following status effects: Blindness III, Bleeding III and Stunned III</b> </td>{{/rollTotal() roll 1}} {{#rollTotal() roll 2}} <td><b>hits The Head causing an additional 32 damage and a chance of the following status effects: Bleeding III</b> </td>{{/rollTotal() roll 2}} {{#rollTotal() roll 3}} <td><b>hits The Head causing an additional 32 damage and a chance of the following status effects: Stunned III</b> </td>{{/rollTotal() roll 3}} {{#rollTotal() roll 4}} <td><b>hits The Head causing an additional 32 damage and a chance of the following status effects: Deafened III</b> </td>{{/rollTotal() roll 4}} {{#rollTotal() roll 5}} <td><b>hits The Head causing an additional 32 damage and a chance of the following status effects: Suffocating II</b> </td>{{/rollTotal() roll 5}} {{#rollTotal() roll 6}} <td><b>hits The Neck causing an additional 50 damage and a chance of the following status effects: Bleeding III and Suffocating II</b> </td>{{/rollTotal() roll 6}} {{#rollTotal() roll 7}} <td><b>hits The Left Shoulder causing an additional 18 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 7}} {{#rollTotal() roll 8}} <td><b>hits The Left Shoulder causing an additional 24 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 8}} {{#rollTotal() roll 9}} <td><b>hits The Left Shoulder causing an additional 18 damage and a chance of the following status effects: Crippled II</b> </td>{{/rollTotal() roll 9}} {{#rollTotal() roll 10}} <td><b>hits The Left Shoulder causing an additional 24 damage and a chance of the following status effects: Bleeding I</b> </td>{{/rollTotal() roll 10}} {{#rollTotal() roll 11}} <td><b>hits The Right Shoulder causing an additional 18 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 11}} {{#rollTotal() roll 12}} <td><b>hits The Right Shoulder causing an additional 24 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 12}} {{#rollTotal() roll 13}} <td><b>hits The Right Shoulder causing an additional 18 damage and a chance of the following status effects: Crippled II</b> </td>{{/rollTotal() roll 13}} {{#rollTotal() roll 14}} <td><b>hits The Right Shoulder causing an additional 24 damage and a chance of the following status effects: Bleeding I</b> </td>{{/rollTotal() roll 14}} {{#rollTotal() roll 15}} <td><b>hits The Left Upper Arm causing an additional 18 damage and a chance of the following status effects: Crippled II</b> </td>{{/rollTotal() roll 15}} {{#rollTotal() roll 16}} <td><b>hits The Left Upper Arm causing an additional 18 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 16}} {{#rollTotal() roll 17}} <td><b>hits The Left Upper Arm causing an additional 24 damage and a chance of the following status effects: Bleeding I</b> </td>{{/rollTotal() roll 17}} {{#rollTotal() roll 18}} <td><b>hits The Right Upper Arm causing an additional 18 damage and a chance of the following status effects: Crippled II</b> </td>{{/rollTotal() roll 18}} {{#rollTotal() roll 19}} <td><b>hits The Right Upper Arm causing an additional 18 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 19}} {{#rollTotal() roll 20}} <td><b>hits The Right Upper Arm causing an additional 24 damage and a chance of the following status effects: Bleeding I</b> </td>{{/rollTotal() roll 20}} {{#rollTotal() roll 21}} <td><b>hits The Left Elbow causing an additional 24 damage and a chance of the following status effects: Crippled II</b> </td>{{/rollTotal() roll 21}} {{#rollTotal() roll 22}} <td><b>hits The Left Elbow causing an additional 24 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 22}} {{#rollTotal() roll 23}} <td><b>hits The Right Elbow causing an additional 24 damage and a chance of the following status effects: Crippled II</b> </td>{{/rollTotal() roll 23}} {{#rollTotal() roll 24}} <td><b>hits The Right Elbow causing an additional 24 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 24}} {{#rollTotal() roll 25}} <td><b>hits The Left Forearm causing an additional 18 damage and a chance of the following status effects: Crippled II</b> </td>{{/rollTotal() roll 25}} {{#rollTotal() roll 26}} <td><b>hits The Left Forearm causing an additional 18 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 26}} {{#rollTotal() roll 27}} <td><b>hits The Right Forearm causing an additional 18 damage and a chance of the following status effects: Crippled II</b> </td>{{/rollTotal() roll 27}} {{#rollTotal() roll 28}} <td><b>hits The Right Forearm causing an additional 18 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 28}} {{#rollTotal() roll 29}} <td><b>hits The Left Hand causing an additional 24 damage and a chance of the following status effects: Crippled II</b> </td>{{/rollTotal() roll 29}} {{#rollTotal() roll 30}} <td><b>hits The Right Hand causing an additional 24 damage and a chance of the following status effects: Crippled II</b> </td>{{/rollTotal() roll 30}} {{#rollTotal() roll 31}} <td><b>hits The Thorax causing an additional 24 damage and a chance of the following status effects: Pain I</b> </td>{{/rollTotal() roll 31}} {{#rollTotal() roll 32}} <td><b>hits The Thorax causing an additional 24 damage and a chance of the following status effects: Weakened II</b> </td>{{/rollTotal() roll 32}} {{#rollTotal() roll 33}} <td><b>hits The Thorax causing an additional 24 damage and a chance of the following status effects: Crippled II</b> </td>{{/rollTotal() roll 33}} {{#rollTotal() roll 34}} <td><b>hits The Thorax causing an additional 24 damage and a chance of the following status effects: Suffocating II</b> </td>{{/rollTotal() roll 34}} {{#rollTotal() roll 35}} <td><b>hits The Thorax causing an additional 24 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 35}} {{#rollTotal() roll 36}} <td><b>hits The Thorax causing an additional 24 damage and a chance of the following status effects: Bleeding III, Suffocating II</b> </td>{{/rollTotal() roll 36}} {{#rollTotal() roll 37}} <td><b>hits The Thorax causing an additional 30 damage and a chance of the following status effects: Pain I</b> </td>{{/rollTotal() roll 37}} {{#rollTotal() roll 38}} <td><b>hits The Thorax causing an additional 30 damage and a chance of the following status effects: Suffocating II</b> </td>{{/rollTotal() roll 38}} {{#rollTotal() roll 39}} <td><b>hits The Thorax causing an additional 30 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 39}} {{#rollTotal() roll 40}} <td><b>hits The Thorax causing an additional 30 damage and a chance of the following status effects: Bleeding III, Suffocating II</b> </td>{{/rollTotal() roll 40}} {{#rollTotal() roll 41}} <td><b>hits The Abdomen causing an additional 18 damage and a chance of the following status effects: Pain I</b> </td>{{/rollTotal() roll 41}} {{#rollTotal() roll 42}} <td><b>hits The Abdomen causing an additional 18 damage and a chance of the following status effects: Crippled II</b> </td>{{/rollTotal() roll 42}} {{#rollTotal() roll 43}} <td><b>hits The Abdomen causing an additional 18 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 43}} {{#rollTotal() roll 44}} <td><b>hits The Abdomen causing an additional 18 damage and a chance of the following status effects: Weakened II</b> </td>{{/rollTotal() roll 44}} {{#rollTotal() roll 45}} <td><b>hits The Abdomen causing an additional 18 damage and a chance of the following status effects: Sickened I</b> </td>{{/rollTotal() roll 45}} {{#rollTotal() roll 46}} <td><b>hits The Abdomen causing an additional 24 damage and a chance of the following status effects: Pain I</b> </td>{{/rollTotal() roll 46}} {{#rollTotal() roll 47}} <td><b>hits The Abdomen causing an additional 24 damage and a chance of the following status effects: Crippled II</b> </td>{{/rollTotal() roll 47}} {{#rollTotal() roll 48}} <td><b>hits The Abdomen causing an additional 24 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 48}} {{#rollTotal() roll 49}} <td><b>hits The Abdomen causing an additional 24 damage and a chance of the following status effects: Weakened II</b> </td>{{/rollTotal() roll 49}} {{#rollTotal() roll 50}} <td><b>hits The Abdomen causing an additional 24 damage and a chance of the following status effects: Sickened I</b> </td>{{/rollTotal() roll 50}} {{#rollTotal() roll 51}} <td><b>hits The Abdomen causing an additional 30 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 51}} {{#rollTotal() roll 52}} <td><b>hits The Abdomen causing an additional 30 damage and a chance of the following status effects: Stunned II</b> </td>{{/rollTotal() roll 52}} {{#rollTotal() roll 53}} <td><b>hits The Abdomen causing an additional 30 damage and a chance of the following status effects: Bleeding III, Poisoned I</b> </td>{{/rollTotal() roll 53}} {{#rollTotal() roll 54}} <td><b>hits The Groin causing an additional 24 damage and a chance of the following status effects: Pain I</b> </td>{{/rollTotal() roll 54}} {{#rollTotal() roll 55}} <td><b>hits The Groin causing an additional 24 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 55}} {{#rollTotal() roll 56}} <td><b>hits The Groin causing an additional 24 damage and a chance of the following status effects: Bleeding II, Pain I</b> </td>{{/rollTotal() roll 56}} {{#rollTotal() roll 57}} <td><b>hits The Left Hip causing an additional 18 damage and a chance of the following status effects: Crippled I</b> </td>{{/rollTotal() roll 57}} {{#rollTotal() roll 58}} <td><b>hits The Left Hip causing an additional 18 damage and a chance of the following status effects: Crippled II</b> </td>{{/rollTotal() roll 58}} {{#rollTotal() roll 59}} <td><b>hits The Left Hip causing an additional 18 damage and a chance of the following status effects: Crippled III</b> </td>{{/rollTotal() roll 59}} {{#rollTotal() roll 60}} <td><b>hits The Right Hip causing an additional 18 damage and a chance of the following status effects: Crippled I</b> </td>{{/rollTotal() roll 60}} {{#rollTotal() roll 61}} <td><b>hits The Right Hip causing an additional 18 damage and a chance of the following status effects: Crippled II</b> </td>{{/rollTotal() roll 61}} {{#rollTotal() roll 62}} <td><b>hits The Right Hip causing an additional 18 damage and a chance of the following status effects: Crippled III</b> </td>{{/rollTotal() roll 62}} {{#rollTotal() roll 63}} <td><b>hits The Left Upper Legs causing an additional 18 damage and a chance of the following status effects: Pain I</b> </td>{{/rollTotal() roll 63}} {{#rollTotal() roll 64}} <td><b>hits The Left Upper Legs causing an additional 18 damage and a chance of the following status effects: Crippled II</b> </td>{{/rollTotal() roll 64}} {{#rollTotal() roll 65}} <td><b>hits The Left Upper Legs causing an additional 18 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 65}} {{#rollTotal() roll 66}} <td><b>hits The Left Upper Legs causing an additional 18 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 66}} {{#rollTotal() roll 67}} <td><b>hits The Left Upper Legs causing an additional 24 damage</b> </td>{{/rollTotal() roll 67}} {{#rollTotal() roll 68}} <td><b>hits The Left Upper Legs causing an additional 24 damage and a chance of the following status effects: Pain I</b> </td>{{/rollTotal() roll 68}} {{#rollTotal() roll 69}} <td><b>hits The Left Upper Legs causing an additional 24 damage and a chance of the following status effects: Crippled II</b> </td>{{/rollTotal() roll 69}} {{#rollTotal() roll 70}} <td><b>hits The Left Upper Legs causing an additional 24 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 70}} {{#rollTotal() roll 71}} <td><b>hits The Left Upper Legs causing an additional 24 damage and a chance of the following status effects: Bleeding III</b> </td>{{/rollTotal() roll 71}} {{#rollTotal() roll 72}} <td><b>hits The Right Upper Legs causing an additional 18 damage and a chance of the following status effects: Pain I</b> </td>{{/rollTotal() roll 72}} {{#rollTotal() roll 73}} <td><b>hits The Right Upper Legs causing an additional 18 damage and a chance of the following status effects: Crippled II</b> </td>{{/rollTotal() roll 73}} {{#rollTotal() roll 74}} <td><b>hits The Right Upper Legs causing an additional 18 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 74}} {{#rollTotal() roll 75}} <td><b>hits The Right Upper Legs causing an additional 18 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 75}} {{#rollTotal() roll 76}} <td><b>hits The Right Upper Legs causing an additional 24 damage</b> </td>{{/rollTotal() roll 76}} {{#rollTotal() roll 77}} <td><b>hits The Right Upper Legs causing an additional 24 damage and a chance of the following status effects: Pain I</b> </td>{{/rollTotal() roll 77}} {{#rollTotal() roll 78}} <td><b>hits The Right Upper Legs causing an additional 24 damage and a chance of the following status effects: Crippled II</b> </td>{{/rollTotal() roll 78}} {{#rollTotal() roll 79}} <td><b>hits The Right Upper Legs causing an additional 24 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 79}} {{#rollTotal() roll 80}} <td><b>hits The Right Upper Legs causing an additional 24 damage and a chance of the following status effects: Bleeding III</b> </td>{{/rollTotal() roll 80}} {{#rollTotal() roll 81}} <td><b>hits The Left Knee causing an additional 24 damage and a chance of the following status effects: Crippled III</b> </td>{{/rollTotal() roll 81}} {{#rollTotal() roll 82}} <td><b>hits The Right Knee causing an additional 24 damage and a chance of the following status effects: Crippled III</b> </td>{{/rollTotal() roll 82}} {{#rollTotal() roll 83}} <td><b>hits The Left Lower Legs causing an additional 18 damage and a chance of the following status effects: Pain I</b> </td>{{/rollTotal() roll 83}} {{#rollTotal() roll 84}} <td><b>hits The Left Lower Legs causing an additional 18 damage and a chance of the following status effects: Crippled II</b> </td>{{/rollTotal() roll 84}} {{#rollTotal() roll 85}} <td><b>hits The Left Lower Legs causing an additional 18 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 85}} {{#rollTotal() roll 86}} <td><b>hits The Left Lower Legs causing an additional 18 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 86}} {{#rollTotal() roll 87}} <td><b>hits The Left Lower Legs causing an additional 24 damage</b> </td>{{/rollTotal() roll 87}} {{#rollTotal() roll 88}} <td><b>hits The Left Lower Legs causing an additional 24 damage and a chance of the following status effects: Pain I</b> </td>{{/rollTotal() roll 88}} {{#rollTotal() roll 89}} <td><b>hits The Left Lower Legs causing an additional 24 damage and a chance of the following status effects: Crippled II</b> </td>{{/rollTotal() roll 89}} {{#rollTotal() roll 90}} <td><b>hits The Left Lower Legs causing an additional 24 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 90}} {{#rollTotal() roll 91}} <td><b>hits The Right Lower Legs causing an additional 18 damage and a chance of the following status effects: Pain I</b> </td>{{/rollTotal() roll 91}} {{#rollTotal() roll 92}} <td><b>hits The Right Lower Legs causing an additional 18 damage and a chance of the following status effects: Crippled II</b> </td>{{/rollTotal() roll 92}} {{#rollTotal() roll 93}} <td><b>hits The Right Lower Legs causing an additional 18 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 93}} {{#rollTotal() roll 94}} <td><b>hits The Right Lower Legs causing an additional 18 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 94}} {{#rollTotal() roll 95}} <td><b>hits The Right Lower Legs causing an additional 24 damage</b> </td>{{/rollTotal() roll 95}} {{#rollTotal() roll 96}} <td><b>hits The Right Lower Legs causing an additional 24 damage and a chance of the following status effects: Pain I</b> </td>{{/rollTotal() roll 96}} {{#rollTotal() roll 97}} <td><b>hits The Right Lower Legs causing an additional 24 damage and a chance of the following status effects: Crippled II</b> </td>{{/rollTotal() roll 97}} {{#rollTotal() roll 98}} <td><b>hits The Right Lower Legs causing an additional 24 damage and a chance of the following status effects: Bleeding II</b> </td>{{/rollTotal() roll 98}} {{#rollTotal() roll 99}} <td><b>hits The Left Foot causing an additional 18 damage and a chance of the following status effects: Crippled II</b> </td>{{/rollTotal() roll 99}} {{#rollTotal() roll 100}} <td><b>hits The Right Foot causing an additional 18 damage and a chance of the following status effects: Crippled II</b> </td>{{/rollTotal() roll 100}} </td> </tr> </rolltemplate>
1484572541
GiGs
Pro
Sheet Author
API Scripter
Yes, it should be possible. Obviously you need to redesign your rolltemplate and the roll structure. Here's one way you might do it. &{template:Criticalhitlocation}{{attacker=@{myname} }} {{weapon=@{Manifestations1_Name}}} {{damage=@{Manifestations_Slot1_Damage} }} {{roll=[[1d100]]}}  <rolltemplate class="sheet-rolltemplate-Criticalhitlocation"> <table> <tr> <td> Attacker: </td> <td> {{attacker}} </td> </tr> <tr> <td> Weapon Name: </td> <td> {{weapon}} </td> </tr><tr> <td> Weapon Damage: </td> <td> {{damage} </td> </tr><tr> <td> Hit Location: </td> <td> {{#rollTotal() roll 1}} T-Box {{/rollTotal() roll 1}} {{#rollBetween() roll 2 5}} Head {{/rollBetween() roll 2 5}} {{#rollTotal() roll 6}} Neck {{/rollTotal() roll 6}} {{#rollBetween() roll 7 10}} Right Shoulder {{/rollBetween() roll 7 10}} etc... </td> </tr><tr> <td> Bonus Damage: </td> <td> {{#rollTotal() roll 1}} 50 {{/rollTotal() roll 1}} {{#rollBetween() roll 2 5}} 32 {{/rollBetween() roll 2 5}} {{#rollTotal() roll 6}} 50 {{/rollTotal() roll 6}} {{#rollTotal() roll 7}} 18 {{/rollTotal() roll 7}} {{#rollTotal() roll 8}} 24 {{/rollTotal() roll 8}} and so on... </td> </tr><tr> <td> Total Damage: </td> <td> (I dont think this is possible with the wayt he table is constructed) </td> </tr><tr> <td> Status Effects: </td> <td> (see bonus damage and hit location for how to do this) </td> </tr> </table> </rolltemplate> You might want to add style labels to the rows and cells, or cell content, to prettify it, but this will produce your table data.
1484572760
Matthew C
Pro
Sheet Author
Thanks, I will test this out and see how it works. I understand that if this works, I would need to work with CSS to make it look nice and pretty, I was just curious if this was possible :D
1484573306

Edited 1484573351
GiGs
Pro
Sheet Author
API Scripter
Note that you could have 4 columns per row, if you want to compress the output a bit, like <tr> <td>Weapon Name:</td> <td>{{weapon}}</td> <td>Hit Location:</td> <td>(hit location code here)</td> </tr><tr> <td>Weapon Damage:</td> <td>{{damage}}</td> <td>Bonus Damage:</td> <td>(bonus damage code here)</td> </tr><tr> <td>Status Effects:</td> <td colspan="3">(status effects code here)</td> </tr> The colspan on the last line makes that 2d column span columns 2-4, so its the same width as the rows above.
1484584596
Matthew C
Pro
Sheet Author
It is looking good so far, if it is possible to make it so that the damage from an attribute get's added to the damage from the macro (Maybe give it an attribute?) so that we can add them together would be awesome :D