What Am I Doing Wrong 4

I'm trying to get it to roll a prompt, but I am only able to base it off of a two prompt generator so I honestly don't know what I'm doing wrong. It is an individual treasure generator. I've only got Challenge 00-04 written on it so far but it is shown beneath this...

Header: Individual Treasure by Challenge
Prompt: Challenge Rate {0004|0510|1115|17+} 0004

Table: Main
[#{$prompt1} DieRoll]

Table: DieRoll
Type: Dictionary
0004: [@0004]

Table: 0004
Type: lookup
1-30: {5d6} cp
31-60: {4d6} sp
611-70: {3d6} ep
71-95: {3d6} gp
96-100: {1d6} pp

Comments

  • It's treating 0004 as a number, so it just becomes 4. Add a letter if you want to treat it as a string (e.g. T0004). Or change the DieRoll table to be a lookup instead of a dictionary table.

    You also don't have any value to look up on table 0004. That would be fine with a weighted table like this:

    Table: 0004
    30: {5d6} cp
    30: {4d6} sp
    10: {3d6} ep
    15: {3d6} gp
    15: {1d6} pp
    

    But a lookup table is looking up a value so you need to add a roll like "Roll: 1d100". Lookups are better if you are thinking you will eventually add some modifiers to that roll. Otherwise, I think weighted tables are easier, because you don't have to worry about what all the options add up to.

    This works:

    Header: Individual Treasure by Challenge
    Prompt: Challenge Rate {0004|0510|1115|17+} 0004
    
    Table: Main
    [#{$prompt1} DieRoll]
    
    Table: DieRoll
    Type: lookup
    0004: [@0004]
    
    Table: 0004
    Type: lookup
    Roll: 1d100
    1-30: {5d6} cp
    31-60: {4d6} sp
    611-70: {3d6} ep
    71-95: {3d6} gp
    96-100: {1d6} pp
    
  • Thank you so much.
    (^o^)

Leave a Comment