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

table returns a roll of 0

I've made two tables for the Deathwatch RPG both are d100 tables and while is does spit out different item's it always says it roll a 0 woundering if it's sopposed to do that or if I've buggered something up
1649386340
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Yes, tables always return 0 as the numerical value unless you start the table entry with a number, and then it only returns that number.
1649387622
Kraynic
Pro
Sheet Author
If you put it in a roll template, you won't get that 0. &{template:default} {{name=Perils of the Warp}} {{=[[1t[Perils of the Warp]]]}}
1649389802
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
As a note to add to Kraynic's great suggestion of using an inline roll to make it so only the table entry is used; entries that start with a number will cause the inline roll on the table to show only the number that the entry starts with instead of it's entire value.
1649393108

Edited 1649393542
Kraynic said: If you put it in a roll template, you won't get that 0. &{template:default} {{name=Perils of the Warp}} {{=[[1t[Perils of the Warp]]]}} I got this back using that would  {{[[1d100]]=[[1t[Perils of the Warp]]]}}  work?
1649393931
Kraynic
Pro
Sheet Author
Hmm, that computed thing is back.  I thought they fixed that recently.  You could throw a roll in there.  It might also work with just a word before the =, like Result=.
1649394011

Edited 1649394028
GiGs
Pro
Sheet Author
API Scripter
computed:: is a bug resulting from a change to character sheet coding, that I believe only affects the default rolltemplate and only if you dont have keys (titles) for a template block. To get rid of it, try changing this part: {{=[[1t[Perils of the Warp]]]}} to one of these: {{[[1t[Perils of the Warp]]]}} {{ =[[1t[Perils of the Warp]]]}} {{Peril=[[1t[Perils of the Warp]]]}} Or use a different rolltemplate if your sheet gives access to them.
GiGs said: computed:: is a bug resulting from a change to character sheet coding, that I believe only affects the default rolltemplate and only if you dont have keys (titles) for a template block. To get rid of it, try changing this part: {{=[[1t[Perils of the Warp]]]}} to one of these: {{[[1t[Perils of the Warp]]]}} {{ =[[1t[Perils of the Warp]]]}} {{Peril=[[1t[Perils of the Warp]]]}} Or use a different rolltemplate if your sheet gives access to them. if some of the reults need to make a roll how would I code that? e.g.
1649401528
GiGs
Pro
Sheet Author
API Scripter
Rollable tables don't support that, but isnce you'r a pro user you can get around that with an API script. Look up Aaron's rollable tables script.
Kraynic said: Hmm, that computed thing is back.  I thought they fixed that recently.  You could throw a roll in there.  It might also work with just a word before the =, like Result=. I do believe THAT bug was warned that they were bringing it back again as some sort of fix, it was a sticky about dev server changes a month ago.  God I hope its not going to break a weekends worth of fun.