1d12 is not a valid integer error

I'm trying to set a Lookup table that uses a d8+d12, the same as the old-school 1e random encounter tables. I put in the command Roll: {1d8+1d12}. Executing it throws a "1d12 is not a valid integer" error.

I thought this was legal syntax. There's a {4d6+8d8} example somewhere in the help. Can I not do this for a lookup roll?

A pity if so. The d8+d12 has a particular and very useful distribution.

Comments

  • You can use it in brackets, maybe you can't do it with the Roll command though. Here's a workaround if you need to index a roll on a lookup table. Table A generates the value and then looks that value up on Table B. Presumably you will want to put something more interesting on Table B, I just have it return the actual value to confirm it's working properly.

    Table: A
    [#{1d8+1d12} B]

    Table: B
    Type: Lookup
    2:2
    3:3
    4:4
    5:5
    6:6
    7:7
    8:8
    9:9
    10:10
    11:11
    12:12
    13:13
    14:14
    15:15
    16:16
    17:17
    18:18
    19:19
    20:20

  • Thank you! I realized I'd actually broken down the percentage chance for each number, so I just used that as a weight. Calling another table is making me think about some other parts of the beast though, where it may come in handy. Thanks for the quick response.
    I suspect this isn't implemented for Roll:

Leave a Comment