Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Hey all. I am trying to add the Silvered item material from Ravenloft. The description is as follows:
Quote:
I've tried a few different things. The current script (for reference) is: Pre-Levels/7500 Code:
var cost as number cost = container.parent.field[gSizeCost].value*5 container.parent.field[gCost].value += cost Anyone know a way to do this? None of the other materials work this way. Last edited by Sendric; March 25th, 2014 at 11:59 AM. |
|
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
I think you might need to mess around with the gCustMagic helper inside the gizmo to get this working. For example:
container.child[gCustMagic].field[gCustCost].value += 100 |
#2 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Thanks, Aaron! That worked perfectly. For the record, here is the code (run at Pre-levels/7500)
Code:
var cost as number cost = container.parent.field[gSizeCost].value*5 container.child[gCustMagic].field[gCustCost].value = cost |
#3 |
|
|