MV Not sure why values don't change in-game

Hi, I started getting into JS and MV coming from Ace. I just have a question regarding the plugin manager. Here's my code:

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?
If it's always setting it to 500, then it isn't able to turn the "Start Gold" parameter into a Number for some reason. Have you checked what value "parameters" has at the point where startGold is being set?
If it's always setting it to 500, then it isn't able to turn the "Start Gold" parameter into a Number for some reason. Have you checked what value "parameters" has at the point where startGold is being set?
I'm not sure if I understood your question correctly but at Game_Party's init, this._gold is set to 0. I'm trying to go through the other JS files to see where I can change the value as well as to understand the structure even more. I might be missing something really simple.
It's probably because you've given Number two arguments. Change the line to

var startGold = isNaN(Number(parameters["Start Gold"])) ? 500 : Number(parameters["Start Gold"]);
Ah thank you! It was exactly that. Age has been catching up and did not notice something that simple 👋

Original thread: https://forums.rpgmakerweb.com/threads/not-sure-why-values-dont-change-in-game.138258/