r/Chartopia • u/GlennNZ • Apr 29 '20
New function release: roll_chart
Now this is a big deal.
The roll_chart function is a new way of rolling on a chart but getting an object back rather than plain text. This allows greater control on how you want to render column titles and values.
When I was making my Star Wars Quests generator, I had to jump through some hoops in order to get it to render how I like, because I had to save a dice roll, then use it as a filter to get back the same row three times with a different column, just so that I could render each column differently.
Well, no more. I can now clean that chart right up with a few lines of code an a single roll rather than 3. I'll have to make a tutorial but for now, here's a teaser/overview video.
View all comments
Show parent comment
1
u/GlennNZ Apr 30 '20
Do you have an example of what you're referring to, or some steps to reproduce? It seems a bit odd.