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

Rollable Tables & Macros - Hide results & Ignore 0's?

January 25 (11 years ago)
Hi, everyone.

I just started experimenting with Rollable Tables and Macros, hoping to set up for a Star Wars game, which uses custom dice.

Now, I've created the Rollable Tables, but due to the formatting involved in running a Rollable Table, it's annoying and cumbersome to write out a full dice pool, because it ends up something like this:

/r 3t[A]
/r 2t[D]
/r 1t[B]

And so on, in this example, I used the Ability, Difficulty and Boost dice; there are several more dice in the Star Wars RPG, but this is a very basic roll.

So I created a macro to do it for me, that works very neatly. It looks like this:

/roll ?{Ability Die|0}t[A]
/roll ?{Proficiency Die|0}t[P]
/roll ?{Boost Die|0}t[B]
/roll ?{Setback Die|0}t[S]
/roll ?{Difficulty Die|0}t[D]
/roll ?{Challenge Die|0}t[C]

Those are all the dice (except the Force dice, but that's irrelevant atm).

This launches a prompt for each dice uping using the #Dicepool macro I made, which is actually extremely handy and quick to use. There's one problem though; It still displays all the rolls that includes 0 dice.

Is there any way to stop it from doing this? I would like it to simply not display the results for those rolls that does not include a dice. Is there a way to do this?

Also, since I am using pictures to display from the rolls, instead of numerical values, is there a way to hide results of 0? Every roll I make, whether it includes any dies or not, ends with " = 0", which is just useless space that I would like to get rid of.

I would be immensly grateful for any help anyone can give me, and I hope I've made everything clear. If anything's confusing, just ask.
January 25 (11 years ago)
Try putting them into inline brackets. [[ ?{Ability Die|0}t[A] ]]
January 25 (11 years ago)

Edited January 25 (11 years ago)
Thanks a lot, HoneyBadger, one step closer. :)

By making the Macro into this;

[[?{Ability Die|0}t[A]]]
[[?{Proficiency Die|0}t[P]]]
[[?{Boost Die|0}t[B]]]
[[?{Setback Die|0}t[S]]]
[[?{Difficulty Die|0}t[D]]]
[[?{Challenge Die|0}t[C]]]

I almost managed to get what I want. It cuts out everything I wanted to cut out... but it also no longer displays the images I want it to display (the images associated with each result on the Rollable Table) - it only displays the names of the results, not the images themselves.

Any ideas?
January 25 (11 years ago)

Edited January 25 (11 years ago)
Actually, nevermind. It doesn't display all the dies, it just displays one of them in text (the first result on each table, even if I roll on that table 4 times); that won't work at all. It absolutely need to display the individual results (preferably the images I made), otherwise I have to hover over each yellowed field to get the names of all the dies to see the results. :(

So I'm still looking for any ideas to help with this.

Edit: Nevermind. Apparently there's no neat way to do Custom Dice/Dice Pooling in Roll20 without shelling out 100 shekels per year and get access to the API-somethingoranother. I'm apparently far from the first person to try to work this out and failing, I realize after checking out what appears to be countless threads on the issue.
January 25 (11 years ago)
This isn't an ideal solution and you're probably aware of it anyway, but since you have images in the rollable tables you could turn them into tokens on the tabletop and then roll them on the tabletop. It'd be like rolling Edge of the Empire dice in real life.
January 25 (11 years ago)
Lithl
Pro
Sheet Author
API Scripter
Can't you do something like /r 3t[A]+2t[B]+1t[C]+etc...?
January 25 (11 years ago)

Brian said:

Can't you do something like /r 3t[A]+2t[B]+1t[C]+etc...?
Of course, but punching that in manually every time is arguably much worse than just referencing the conversion table and work it out manually. The objective here is to work something out that works fluidly and without hassle. Every roll in FFG:s Star Wars RPG requires it's own dice pool, depending on a variety of factors. You'd have to rewrite that line every single time you want to roll for absolutely anything.

Dave D. said:

This isn't an ideal solution and you're probably aware of it anyway, but since you have images in the rollable tables you could turn them into tokens on the tabletop and then roll them on the tabletop. It'd be like rolling Edge of the Empire dice in real life.
How would that work in practice?
January 25 (11 years ago)
Well, you'd keep a set of these dice tokens somewhere near where the action is. When you need to make a roll, you'd select the "dice" you want to roll and then right click the group and choose "multi-sided" -> "random side" from the menu. This results in a chat entry as well, but I think it'd be in line with what you wanted originally.

To speed things up, you could make each die type it's own entry in the character tab and make the token derived from the rollable table it's default token. Then when you needed an extra boost die, you could just drag one over from the character tab on to the tabletop.

If that makes no sense whatsoever - which is pretty likely upon a re-read - I can probably demonstrate it easier than describing it. Shoot me a PM to work on a time, if you'd like.
January 25 (11 years ago)
No, don't worry, it made perfect sense. I think I've worked everything out, and I'm going to test functionality in a little bit, once I've figured out how to line these tokens up. Thanks a lot, the suggestion was super-helpful and it's probably the best way to do it right now. :)

January 25 (11 years ago)
Because I can see it being a big hassle with bucketfulls of dice all over the place eventually, you might want to make a second campaign in a different window that just handles dice (maybe give everyone thier own dice). That way, it might be easier just to ALT+TAB back and forth over instead of constantly moving dice out of the way.

Either way, glad it's working for you!
January 25 (11 years ago)
On the other hand, you will rarely (if ever) use more than 5 dice of any one kind, so I just created a 6x5 grid (no need to keep Force dies on-hand) and then players will be able to select as many as they need and roll them all at once.

I'm going to run it all by them in the next coming few days and see what they say. At the very least, it sure as hell beats having to use the conversion table.
January 25 (11 years ago)
Gid
Roll20 Team
The thing about virtual dice that I love, is you can sort them in a neat little row and magically roll them without any of them budging an inch. Real life hax!
January 25 (11 years ago)

Edited January 25 (11 years ago)

Kristin C. said:

The thing about virtual dice that I love, is you can sort them in a neat little row and magically roll them without any of them budging an inch. Real life hax!
Someone after my own heart, I see.

I just arranged all the dies in neat little rows and then resized them to fit snugly at 4/5 of the space (5 dice across 4 squares). Looks great now and curse whomever ever moves them out of alignment because I have no idea how I'll get them back there without having to re-size everything back to square-size (70px), align it, and then size it back down to 4/5 (56px). :D

Edit: Is there any way to lock tokens in place but still allow players to interact with them, such as rolling?
January 25 (11 years ago)
Gid
Roll20 Team
Just treat the moved dice as sith lord mobs and TPK your group for touching what Must Not Be Touched.

As for my love for neat little rows of virtual dice: It's something that my husband could use in real life. For some reason he becomes a total butterfingers when he plays Warhammer 40K. His dice go EVERYWHERE! Under the table, under the couch. I have no idea what the heck he's doing!
January 25 (11 years ago)
Gid
Roll20 Team

Vargkungen said:

Edit: Is there any way to lock tokens in place but still allow players to interact with them, such as rolling?

Does EotE use a grid? I can't remember for the life of me.
January 26 (11 years ago)
Technically, although we've never used it, all the combat's narrative (which I'm not a huge fan of, but fair enough).

Either way, I'm going to have to use a grid to make the tokens line up properly to begin with. Why do you ask?
January 26 (11 years ago)
Gid
Roll20 Team
One thing you can do that I've used for design layouts on a page is make the grid smaller. So under page settings: Where you enable or disable the grid option, there's a input box for size. You don't have to have it set to 1.0 units. Set it to 0.5 and you have grid squares that are half their usual size which would mean your smaller than 70px x 70px dice tokens would snap into place easier if they're accidentally moved.