Changing upraded Item Price? Eval

So been playing around with yanfly's item upgrade slots and I can't figure out how to change the price of upgraded items. Found this message on his site mentioning how a eval can


change the price.


"2015-10-17 at 8:56 AM



Potions and such, by default, do not have upgradeable means, although you can use Eval to modify their capabilities.


And yes, Eval can also change the price at how much upgraded items are priced for."          **Taken from Yanfly's Item Upgrade Slot message board.**

Eval: item.traits.push({"code": x, "dataId": y, "value": z})


I got this much from here https://docs.google.com/spreadsheets/d/1QsT1sLY4eqkdQq8Z3OGXZLrthxMXSueyngtkHyX6his/edit?pli=1#gid=0


It just doen't have the sell price "code value". I'm assuming that y would be 0. and z my new price. So yea just need x the code value for item price.


Curious if anyone knows the "code value" for price, been searching around but not sure where to find the right code.
look at B for x, look at E for y, look at G for z.
Yea that much I got I was curious what number I should use to affect price its not listed in the chart yet yanfly mentions it in a post.


That chart lists many other traits you can edit but not item price which is what im looking for exactly.
you can try

Code:
Eval: item.price = 100
Yea that much I got I was curious what number I should use to affect price its not listed in the chart yet yanfly mentions it in a post.


That chart lists many other traits you can edit but not item price which is what im looking for exactly.



This list contains the trait codes for armors and weapons.


Items have other codes.


But the price doesn't have a code, 'cause it's not a trait.


To alter the price try:

Code:
item.price = VALUE;
Thanks izyees that worked perfectly just added a += sign instead and now the item price goes up with the upgrade exactly what I wanted. 🤣  

Original thread: https://forums.rpgmakerweb.com/threads/changing-upraded-item-price-eval.57522/