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

Hit Location Table to Show in Chat

I've not been using Roll20 long, I only heard about it when all this Covid19 thing started, I'm not particularly good with computers, barely able to write a macro, and as I only have a Plus account I don't have access to the API, not that I would have any clue about using it anyway.  So I am hoping someone can help me sort out how to do a hit location table. I'm planning on running a Deadlands Classic game, for the hit locations you roll a D20 add a modifier if appropriate and then compare the result with the location table. The problems: The Rollable Tables options don't allow modifiers so aren't suitable, after doing a search it appears that people have been asking for this for seveal years so I'm not hopefull that that will be changed anytime soon. I can write a macro that rolls the D20 and asks for the modifier then lists the hit locations, however there are 8 locations (or 10 if legs and arms are done per side), when it shows in the chat box it only shows 5 rows of text before breaking and adding a new section, which looks really clunky (hopefully you know what I mean by that) I can't work out any way to actually add a table to the chat.  I could create a table in an arts package I have and save it as a PNG file and then save it to my token library, but I can't work out how to link that to a chat macro.  All of my tokens are stored in the Roll20 library or on my hard drive, I have Facebook for saving photos, but nothing like Imgur which I have seen mentioned for linking images to chat. All I really need is for it to roll a D20 + modifier and then show the locations table under the result so it can be compared manually. Thanks for any help or ideas.
1592220692
Spren
Sheet Author
Have you tried just using the default roll template? <a href="https://wiki.roll20.net/Roll_Templates#Default" rel="nofollow">https://wiki.roll20.net/Roll_Templates#Default</a> It would look something like this: &amp;{template:default} {{name=Hit Location}} {{01-04=Legs}} {{05-09=Lower Guts}} {{10-10=Gizzard}} {{11-14=Arms}}{{15-19=Upper Guts}} {{20-20=Noggin}}
I hadn't even come across the default template, i'll have a look at that later, thanks.
That works perfectly, I know just have to find out what other default templates there are to do things for me.
1592230418
Oosh
Sheet Author
API Scripter
&amp;{template:default} is the only universal one - this (AFAIK) functions in any Roll20 game. All the others are dependent on the sheet you use for the game. Default is always a solid choice if you need 2 columns though!
1592354361

Edited 1592354723
Mike deBoston
Compendium Curator
Oenanthe, check out the Savage Worlds wiki page . You'll find how we handle the Fear table (d20+modifier) and you'll find alternatives to the &amp;{template:default}. I prefer &amp;{template:info}. I think there are two solid ways to tackle this problem: 1) Use the macro above that Spren provided. I would make two cosmetic changes: Use &amp;{ template:info } instead of &amp;{ template:default } and use {{item=Hit Location}} instead of {{name=Hit Location}}. The main change I would make is to add the die roll into the macro. Add {{Hit location=[[1d20 + ?{Hit location modifier|0}}. So: &amp;{template:info} {{item=Hit Location}} {{+?{Hit Location Modifier|0} hit location roll=[[1d20 + ?{Hit Location Modifier}]]}} {{01-04=Legs}} {{05-09=Lower Guts}} {{10-10=Gizzard}} {{11-14=Arms}}{{15-19=Upper Guts}} {{20-20=Noggin}} 2) Build multiple tables like we did for the Fear table, and choose the correct table based on the modifier. Honestly, Spren's solution looks better to me now. The advantage of building tables is only that you get a 1-line result instead of getting the whole table. If you hit any snags, let me know. Please share your final macro here, I'd like to add it to the wiki page for the next person.
1592355666
Finderski
Plus
Sheet Author
Compendium Curator
Mike deBoston said: Oenanthe, check out the Savage Worlds wiki page . You'll find how we handle the Fear table (d20+modifier) and you'll find alternatives to the &amp;{template:default}. I prefer &amp;{template:info}. the info template only works if you're using the Savage Worlds Tabbed sheet, though. &nbsp;Since we are talking a Deadlands classic game, I'm assuming they won't be using the Savage Worlds Tabbed Sheet.
1592413631
Mike deBoston
Compendium Curator
Oh. I always forget that Deadlands exists outside of Savage Worlds!