How does the loot1Chance field work?

Loot # Chance

An array of weights for rolling this Loot Set. Each entry in the array is an item. If the chest can dispense up to 2 items + 2 * the number of players, then the array should go up to at least 10.

Could someone please just give me a hint or [and I will not mind at all] tell me I should know how something this trivial works? I really don’t mind. =)

“An array of weights for rolling this Loot Set.” So I assume this means it’s referencing the next six (grouped) entries called loot#name# and loot#weight#. To break down this opening statement more “for rolling this Loot Set” this means the *chance* for any one of the next six entries to happen. On or Off, Yes or No, True of False, that loot will be generated.

Makes sense at this point and this is simply the *chance* of an item appearing from the Chest (some object) and nothing more.

“Each entry in the array is an item.” Ok now I’m confused again. So all the entries in this array is the chance of an item or is literally a reference to an item? Could it be a number used in a calculation? If so is it with this same dbr file or another file?

So moving on let’s see if the next statement helps alleviate my confusion.

“If the chest can dispense up to 2 items + 2 * the number of players, then the array should go up to at least 10.”

Ok looking at the formula it’s for 4 [potential] players in the game and it doubles it.

```
numSpawnMinEquation : numberOfPlayers*1
numSpawnMaxEquation : numberOfPlayers*1
loot1Chance : { 0.1, 0, 0, 0.1, 0, 0, 0, 0 } // 8 entries in this Array
```

Perfect there’s at least 8 entries.

So what do these entries mean inside this array? These 8 entries are an array of weights for rolling the Loot Set (the next six grouped entries) and each entry *is* an item according to the documentation so there’s is going to be 8 items from the chest.

Now is it 8 items only when there is a max amount of players (4) in the game?

Is it 8 item per character from the chest?

Why have 0’s in this array at all? Shouldn’t it just be 2 { 0.1, 0.1 } if six entries [of 0] are not going to do anything, anyways?

What do the numbers mean? Do all the players have 0.1% chance to get the first item or is “0.1” an ID or if it is a weight what is this number being weighed against? (The documentation clearly states these numbers directly deal with items)

Is this number being weighed against the other numbers totaled?

Going back now “Each entry in the array is an item.” – so these numbers are literally AN ITEM.(?) So what is the item now that is not a weight?

I feel I should get this, and instantly too, because it seems so trivial but I’m totally lost.

Anyways having a ton of fun making Masteries in the time being. I just can’t bang my head against this any longer.