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

Can I use a dice roll to display a numbered item from a list? (Panic rolls for Alien: the RPG)

Hi, all. I'm setting up to run a session of the Alien RPG with a couple of new players, and I'm looking for a good way to create a macro around Panic rolls. The mechanic is: you roll a D6, add your character's stress level, then use the corresponding effect from a list. (And the higher the number is, in general, the worse the effect.) So, this isn't a rollable table, since I'm not picking from *all* of the items in the list. I'm just using the sum of a D6 and another number to pick an item from a list. Is there a good way to do that in a macro? The list is short enough that I wouldn't mind having to type out all of the items within a macro, but I'm not sure what syntax would accomplish that. Is there something like a myListOfEffects[1d6+(character.stressLevel)] ? Thanks!
1601954568
GiGs
Pro
Sheet Author
API Scripter
I dont think there's any way to do this in roll20 without the API (a Pro subscriber perk). If roll20 had a proper table system, this would be easy: just set up your table and roll. But roll20 tables cant work with modifiers, an incredibly baffling oversight considering roll20 is meant for roleplaying games where tables and modifiers have been a fixture since the very beginning of the hobby. One way you could do this, is create a different Rollable Table for each possible modifier. Each would have 6 entries. If you name them something like Panic-0, Panic-1, Panic-2, etc. you could call them with a roll like /roll 1t[Panic-?{Modifier?|0}]
1601955150

Edited 1601961840
Oosh
Sheet Author
API Scripter
I can think of two ways of achieving that. One is with Roll Tables - each one has only a single entry, and is called Xpanic, with X being numbers 1 to... whatever they go up to.So, for simplicity's sake, let's say you have the tables 1panic to 6panic. You would then call the appropriate table with: /r 1t[[[1d6+@{selected|stressLevel}]]panic] This would output the single entry contained in that table, which is the panic effect for a roll of 10 (or whatever). This doesn't work if you do the roll after the text string: tables called panic1, panic2 ... and a roll of /r 1t[panic[[1d6]]] does not work, I have no idea why. The other option is to use images, one for each effect, uploaded to an image sharing site that will let you link to the actual name of the image (or you can use tinyurl to shorten nasty-looking image links to something useable). You want a bunch of images with the same name, ending in different integers, which you will then link to with your roll, like in this post . So you have panic1.png through to panic20.png each of which is an image with the text (or drawing, whatever) containing the panic effect for that number. You would call them with: [[ [img]( <a href="https://imagehost.service/panic[[1d6" rel="nofollow">https://imagehost.service/panic[[1d6</a> + @{selected|stressLevel}]]#.png) You do need the extra set of squackets [[ at the start, even though they look funny.
Oosh said: ...The other option is to use images, one for each effect, uploaded to an image sharing site that will let you link to the actual name of the image (or you can use tinyurl to shorten nasty-looking image links to something useable). You want a bunch of images with the same name, ending in different integers, which you will then link to with your roll, like in this post ... Now *that* is an inventive hack. :) Thanks for the advice. I think I'll just make my players look up their own rolls, but I appreciate the suggestions!