Polraudio 122 Report post Posted July 17, 2009 Here is how you would make a common event to rise prices over time. This includes Buying and Selling items. First Step: Make a Common event with a switch to be turned on and a parallel process. Second Step: insert this code(Call script) in the 1st line $data_items[ID].price = $game_variables[ID] This part is where yo select what item you want to change the price on. $data_items[ID].price Replace ID with the ID of the item you want the price to be changed This part is where you change what variable is used to store the price of the item in $game_variables[ID] Replace ID with the ID of the variable you want to use to store the price. Third Step: Make a wait time. This will determine on how long it takes to increase the price. Fourth Step: Increase the value of the variable by 1 NOTE: You might want to set the variable to the normal price you have selected then it will add to the normal price. Here is what your event should look like. Share this post Link to post Share on other sites
Leon 55 Report post Posted July 17, 2009 Okay... now, time to challenge the novice scripter. Can you make a script that takes little user setup, and make it do it for all selected items? Share this post Link to post Share on other sites
Blackbound 4 Report post Posted July 18, 2009 $data_items[ID,ID,ID,ID,ID].price = $game_variables[ID,ID,ID,ID,ID] purely a guess... Share this post Link to post Share on other sites
Polraudio 122 Report post Posted July 18, 2009 $data_items[ID,ID,ID,ID,ID].price = $game_variables[ID,ID,ID,ID,ID] purely a guess... That wouldn't work. Okay... now, time to challenge the novice scripter. Can you make a script that takes little user setup, and make it do it for all selected items? I don't consider my self a novice yet. I'm just merely an advanced beginner. Not that i cannot do it. I dont have the time and its not worth taking 3 lines of events and turning it into 100's of lines of code. Share this post Link to post Share on other sites
Leon 55 Report post Posted July 18, 2009 Well, it is 3 lines of events, for each item you wish to increase the price of, and in a common event. This all equals lag. instead, you can get into playtime (or Graphics) and every time x amount of frames pass, set it so when those frames pass, it increases a varaible in Game_Temp. then, set it so when Scene_Shop is accessed, it will go through all prices of all items, and increase them by x, where x is what the variable equals. A lot less lag, and easier to control; because you can set another array to omit or only do it, to certain items. This way, you don't have the lag of common events. remember 2 or more common events at once is bad. EDIT: I don't say this all to show you up. I am merely saying I can see your potential, Pol, and I want you to show it off. Prove to everyone you ahve waht it takes to kick some XP ass Share this post Link to post Share on other sites