Hi, I started getting into JS and MV coming from Ace. I just have a question regarding the plugin manager. Here's my code:
What it's supposed to do is really simple. I enter a value in the plugin manager then that should appear. I was just trying play around a bit but ended up curious as to why the values don't change in game despite changing the value (it's hard stuck on 500) in the plugin manager via editor. What am I doing wrong?
JavaScript:
/*:
* @plugindesc Test Script
* @author Verheffen
*
* @help
*
* @param Start Gold
* @desc Define starting gold of player
* @default 500
*
*/
(function() {
var parameters = PluginManager.parameters('HSBX_Core');
var startGold = Number(parameters["Start Gold"], 500);
var _GameParty_Init = Game_Party.prototype.initialize;
Game_Party.prototype.initialize = function() {
_GameParty_Init.call(this);
this._gold = startGold;
}
})();
What it's supposed to do is really simple. I enter a value in the plugin manager then that should appear. I was just trying play around a bit but ended up curious as to why the values don't change in game despite changing the value (it's hard stuck on 500) in the plugin manager via editor. What am I doing wrong?