Ok, so looking at the different materials in the program it looks like there is one material that multiplies the base item cost (which is what you're shooting for, right?). Cold Iron doubles the base item cost and has this eval script:
First 10000
~ Double our weapon cost.
container.child[gCustMagic].field[gCustSCost].value *= 2
Comparing that to the relevant portion of your code:
container.child[gCustMagic].field[gCustCost].value *= 0.5
It seems that the only problem is that you are multiplying the "gCustCost" field, but you should be multiplying the "gCustSCost" field
|