Changing upraded Item Price? Eval

Quickdraws

Veteran
Veteran
Joined
May 31, 2013
Messages
55
Reaction score
8
First Language
English
Primarily Uses
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.
 

izyees

My Secret Santa
Veteran
Joined
Oct 24, 2015
Messages
248
Reaction score
67
First Language
english
look at B for x, look at E for y, look at G for z.
 

Quickdraws

Veteran
Veteran
Joined
May 31, 2013
Messages
55
Reaction score
8
First Language
English
Primarily Uses
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.
 
Last edited by a moderator:

izyees

My Secret Santa
Veteran
Joined
Oct 24, 2015
Messages
248
Reaction score
67
First Language
english
you can try

Code:
Eval: item.price = 100
 
Last edited by a moderator:

kiriseo

Veteran
Veteran
Joined
Oct 27, 2015
Messages
245
Reaction score
82
First Language
German
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;
 

Quickdraws

Veteran
Veteran
Joined
May 31, 2013
Messages
55
Reaction score
8
First Language
English
Primarily Uses
Thanks izyees that worked perfectly just added a += sign instead and now the item price goes up with the upgrade exactly what I wanted. :guffaw:  
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,859
Messages
1,017,030
Members
137,566
Latest member
Fl0shVS
Top