Baldur's Gate Wiki:Game source files/2DA/RNDMAGIC

RNDMAGIC is one of several 2da tables that determine which random treasure may be given as a reward for quests or found on creatures or at locations where random treasure is intended to be obtained.

It categorizes the treasure roughly by item values. Each row is referred to as " " in the master table,.

Baldur's Gate
The table from the original Baldur's Gate, without the original add-on Tales of the Sword Coast installed, has only two categories, "low" and "high" value. 2DA V1.0 2       3        4        5      6        7        8      9       10       11       12       13       14       15       16       17       18        19        20 LOW    AROW07   BOLT05   BULL03*3 POTN31 RNDSCR02 RNDSCR01 SCRL06 SCRL04  POTN08   POTN43   POTN44   POTN37   POTN19   POTN28   BULL02*5 AROW02*5 BOLT02*5  AROW11*3  BOLT06*3 HIGH  POTN09   POTN05   POTN03   SCRL08 SCRL09   RNDSCR03 SCRL16 POTN17  POTN08   POTN10   AROW04   AROW09   BOLT04   BOLT03   AROW06   AROW08   WAND03*10 WAND05*10 WAND06*10

Tales of the Sword Coast and Enhanced Edition
With the installation of the original Baldur's Gate add-on Tales of the Sword Coast, the table gets a "poop" row added that remains in it for packages and the Baldur's Gate: Enhanced Edition, including Baldur's Gate: Siege of Dragonspear. However, nothing in the games refers to random treasure from this row, so these items are unobtainable randomly. 2DA V1.0 2       3        4        5      6        7        8      9       10       11       12       13       14       15       16       17       18        19        20 LOW    AROW07   BOLT05   BULL03*3 POTN31 RNDSCR02 RNDSCR01 SCRL06 SCRL04  POTN08   POTN43   POTN44   POTN37   POTN19   POTN28   BULL02*5 AROW02*5 BOLT02*5  AROW11*3  BOLT06*3 HIGH  POTN09   POTN05   POTN03   SCRL08 SCRL09   RNDSCR03 SCRL16 POTN17  POTN08   POTN10   AROW04   AROW09   BOLT04   BOLT03   AROW06   AROW08   WAND03*10 WAND05*10 WAND06*10 POOP  POTN08   POTN13   POTN08   POTN36 POTN08   RNDSCR03 POTN08 SCRL91  POTN08   POTN18   POTN08   BOLT04*4 POTN08   AROW09*2 POTN08   WAND07*4 RNDSCR04  POTN08    SW1H22

Baldur's Gate II
The table is the same for Shadows of Amn, Throne of Bhaal and the Baldur's Gate II: Enhanced Edition. Compared with the version from the series' first part, the additional row is removed and several items are replaced, mostly to be even more random. 2DA V1.0 2       3        4        5      6        7        8      9       10       11       12       13       14       15       16       17       18        19        20 LOW    RNDWEP02 RNDWEP01 BULL03*3 POTN31 RNDSCR02 RNDSCR01 SCRL06 SCRL04  POTN08   POTN43   POTN44   POTN37   POTN19   POTN28   BULL02*5 AROW02*5 BOLT02*5  RNDWEP01  RNDWEP02 HIGH  RNDWEP03 RNDWEP02 RNDWEP01 SCRL08 SCRL09   RNDSCR03 SCRL16 POTN17  POTN08   POTN10   AROW04   AROW09   BOLT04   BOLT03   AROW06   RNDWEP01 RNDWEP02  RNDWEP02 RNDWEP03