- Joined
- Sep 16, 2013
- Messages
- 16
- Reaction score
- 0
- First Language
- English
- Primarily Uses
I'm working on a game where the player interacts with multiple different factions, and those factions approval of the player is measured by different variables. I want to use those variables to affect the prices of the items they sell. Using Archeia's handy-dandy Script Call Collection I was able to assemble this:
goods = [[0,11,1,20*(1-$game_variables[1]/40)], [0,14,1,20*(1-$game_variables[1]/40)], [0,44,1,10*(1-$game_variables[1]/40)], [0,48,1,10*(1-$game_variables[1]/40)]]SceneManager.call(Scene_Shop)SceneManager.scene.prepare(goods, true)I chose that formula because it would result in a 25% fluctuation in price when the approval rating maxes out at +10 or -10. It all works out in theory, but when I actually run this the prices never change, even after leaving and reentering the map. Can anyone tell me why that is?
goods = [[0,11,1,20*(1-$game_variables[1]/40)], [0,14,1,20*(1-$game_variables[1]/40)], [0,44,1,10*(1-$game_variables[1]/40)], [0,48,1,10*(1-$game_variables[1]/40)]]SceneManager.call(Scene_Shop)SceneManager.scene.prepare(goods, true)I chose that formula because it would result in a 25% fluctuation in price when the approval rating maxes out at +10 or -10. It all works out in theory, but when I actually run this the prices never change, even after leaving and reentering the map. Can anyone tell me why that is?

