I need to amend my explanation.

At Lucky Charm 5+, you can get Gold, Precious, Common, Magic, or Rare items. Why? Here's the ST_SecGearMagic table:

Code
new treasuretable "ST_SecGearMagic"
new subtable "1,1"
object category "Garment",12,0,80,20,0,0,0,0
object category "Shoe",15,0,80,20,0,0,0,0
object category "Belt",15,0,80,20,0,0,0,0
object category "Glove",15,0,80,20,0,0,0,0
object category "Helmet",15,0,80,20,0,0,0,0
object category "HelmetMetal",13,0,80,20,0,0,0,0
object category "Shield",15,0,80,20,0,0,0,0

When an item is selected from this table, 80% of the time, that item will be Magic, but 20% of the time, that item will be Rare.

I apologize for the misinformation. The table names are counterintuitive.

But the way Lucky Charm works remains the same. And my previous explanation isn't wrong for Lucky Charm 1 through 4!

Lucky Charm 4
1. Player rolls for loot; a Rare Helmet is generated. [Lucky Charm 4 CANNOT produce this.]
2. Player rolls for loot; an Ingredient is generated. [Lucky Charm CANNOT produce this at all.]
3. Player rolls for a Lucky Find.
4. Lucky Find! Player rolls AGAIN for loot; a Common Belt is generated. [Lucky Charm CAN produce this.]

RESULT: Player obtains a Rare Helmet, an Ingredient, and a Common Belt.

The player knows that Lucky Charm was responsible for the Common Belt.

Lucky Charm 5
1. Player rolls for loot; a Rare Helmet is generated. [Lucky Charm 5 CAN produce this.]
2. Player rolls for loot; an Ingredient is generated. [Lucky Charm CANNOT produce this at all.]
3. Player rolls for a Lucky Find.
4. Lucky Find! Player rolls AGAIN for loot; a Common Belt is generated. [Lucky Charm CAN produce this.]

RESULT: Player obtains a Rare Helmet, an Ingredient, and a Common Belt.

The player can't know whether Lucky Charm was responsible for the Rare Helmet or the Common Belt.

Originally Posted by ClassifiedTSBBR
1) If the categories really are a percentage chance, Lucky Charm 4 may be bugged, because by the data above it adds up to 120% (I assume it's actually an equal chance of any the 6 categories, or the 1st 5 loaded [which would presumably dump "Precious"]).

They are weights, so they don't need to add up to 100%. Look up the term "weighted decision matrix."