View Single Post
Lawful_g
Senior Member
Volunteer Data File Contributor
 
Join Date: Mar 2007
Posts: 1,245

Old September 29th, 2011, 08:03 PM
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
Lawful_g is offline   #7 Reply With Quote