what is the iterator variable being used in IPP3

I have a table running a random number of times.
What is the iterator variable used to tell what iteration the process is on?
so i am pulling 1d8+22 pages on the following chart

TABLE: BookOfInfinateSpellsPagesContents
ROLL: 1d100
01-100: page {$IteratorVarible} - ([@BookOfInfinateSpellsPage])\n

so what {$IteratorVarible} do I call to have the output read

(30 pages)
page ? 1 ? - (Magic-User L7 Charm Plants PHB087)
page ? 2 ? - (Blank)
page ? 3 ? - (Magic-User L4 Evard's Black Tentacles UA056)

Hopefully i would want it to count up from 1 to 30 (in this case)

Comments

  • edited May 2

    I think it's {rep}. This will record the repetition you are on. So if you do 25 reps of a table, it'll show there.

    table: doit
    Rep is {rep}
    

    If you need to know how many rolls you've done on a table, you'll need to make your own counter variable. You can use Set: at the top of the table and increment by one each time.

    set: n={0}
    
    table: counter
    [@{1d6} inctest]
    
    table: inctest
    {n==n+1}Rep is {rep} Count is {n}\n
    

Leave a Comment