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

Roll Tables "Weight" Attribute

Is the "Weight" attribute on roll tables a percentile? If I make a table with the following: zombie - weight 100 corpse1 - weight 1 corpse2 - weight 1 corpse3 - weight 1 corpse4 - weight 1 corpse5 - weight 1 Will it, if it's set to zombie, change to a random corpse from one of the 5 options and, if it's set to one of the 5 corpses, always revert back to zombie?
1523347512
GiGs
Pro
Sheet Author
API Scripter
The weight is relative and proportional. Items have a default weight of 1, and roll20 adds up the weight of all items in the table. Your table has a total weight of 105. Zombies would be rolled 100/105 times, and each corpse would have a chance to roll of 1/105. If you need a percentile table for some reason, make sure all the weights add up to exactly 100.
1523353433
The Aaron
Pro
API Scripter
As a side note, once a Rollable Table Token is generated, the token’s sides all have a weight of 1 (technically, there is no weight, just an ordered collection of images).
The Aaron said: As a side note, once a Rollable Table Token is generated, the token’s sides all have a weight of 1 (technically, there is no weight, just an ordered collection of images). Ah okay then I wouldn't be able to use it for the purpose I wanted it for if that's the case.
1523364676
The Aaron
Pro
API Scripter
You could probably come up with a formula to use with TokenMod if you’re wanting to weight the sides. For example if you wanted to set a random corpse given the above list of sides: !token-mod --set current_side|[[1d5+1]]
The Aaron said: You could probably come up with a formula to use with TokenMod if you’re wanting to weight the sides. For example if you wanted to set a random corpse given the above list of sides: !token-mod --set current_side|[[1d5+1]] This issue I have with this is I wanted to, if the side was one of the 5 corpses, 100% of the time turn to the zombie side of the token. Right now I just have 6 tables with 2 entries, a zombie and a unique corpse image to vary the corpses. I just thought maybe I could handle it all in one table and randomize the corpses a little, but with the intention that if the side was set to a corpse, it would ALWAYS turn to the zombie side of the token.
Kastion said: The Aaron said: You could probably come up with a formula to use with TokenMod if you’re wanting to weight the sides. For example if you wanted to set a random corpse given the above list of sides: !token-mod --set current_side|[[1d5+1]] This issue I have with this is I wanted to, if the side was one of the 5 corpses, 100% of the time turn to the zombie side of the token. Right now I just have 6 tables with 2 entries, a zombie and a unique corpse image to vary the corpses. I just thought maybe I could handle it all in one table and randomize the corpses a little, but with the intention that if the side was set to a corpse, it would ALWAYS turn to the zombie side of the token. Well what you could do is set the table with side 1 being the zombie and the other 5 being the corpses, then use aarons macro to randomize which corpse side shows (since the result would always be atleast a 2) then just have a transform macro to set the token side to 1 when it goes zombie, if you wanted a chance at it being a zombie from the start you there are some slightly more complicated things that might work