What is the best way to programmatically increase item gold value?
ForSerious
Member Posts: 471
What I'm hoping to do is increase the gold piece value of an item when I change the quality item property. (For example from Destroyed to Ruined, the GP value goes from 1000 to 2000.)
I was hoping to find a way to do this with scripting, but it looks like that area of functions is high and dry.
The next way to do it would be modifying the 2da for item properties like quality. I'm not really sure how to do that, but know I can figure it out. I am worried about messing up item level restrictions by going that route.
Anyway, do you guys know what the best way would be?
I was hoping to find a way to do this with scripting, but it looks like that area of functions is high and dry.
The next way to do it would be modifying the 2da for item properties like quality. I'm not really sure how to do that, but know I can figure it out. I am worried about messing up item level restrictions by going that route.
Anyway, do you guys know what the best way would be?
0
Comments
Modifying the 2da's for various item properties is one way to adjust value, but doesn't produce a specific increase (like "1000 gold") but works in multipliers that can be a bit complex.
Another options is that, when the quality changes, replace the whole item with a different item (same basetype) but with +1000 "Additional value" set in the toolset, then change all the details/properties of the new item to match the old item before destroying the old one.
With NWNX available, you could adjust this by script.