I did some playing around in RPG Maker MZ and found some ways on how to make a working Upgrading/Crafting Event work without bugging out on me.
But I do have a question though, How did you guys tackle a Weapon and Armor Upgrade system where is shows the player that they upgraded their Equipment to +9?
I tried several methods already which were "working" as in they worked both in visual and functionality terms, BUT the problem was that the Shops started selling Upgraded gear instead of the base Equipment. I was using the following Code to change the numbers from the Equipment into what it needs to be once the Variable for the weapon has changed.
As you can see, it DOES work for everything that needs changing but it also means that Shops will sell that "upgraded equipment" because the game pulls the same weapon Id from the actual weapon.
my current solution to this is to actually create a weapon/armor piece for EACH Weapon and Armor, so that I won't run into that issue again.
IF anybody gives Weapons/Armors to the player outside from shops and won't sell them in shops ever, changing the values is actually the easiest way to "Upgrade" your Weapon/Armor.
But I do have a question though, How did you guys tackle a Weapon and Armor Upgrade system where is shows the player that they upgraded their Equipment to +9?
I tried several methods already which were "working" as in they worked both in visual and functionality terms, BUT the problem was that the Shops started selling Upgraded gear instead of the base Equipment. I was using the following Code to change the numbers from the Equipment into what it needs to be once the Variable for the weapon has changed.
JavaScript:
// Revolver MK2 Upgrade from 0 to +1
if (this._data[265] === 0){$dataWeapons[65].name = "Revolver MK2";$dataWeapons[65].params[0] =0;$dataWeapons[65].params[1] =40;$dataWeapons[65].params[2] =30;$dataWeapons[65].params[3] =10;$dataWeapons[65].params[4] =30;$dataWeapons[65].params[5] =5;$dataWeapons[65].params[6] =20;$dataWeapons[65].params[7] =0;};
if (this._data[265] === 1){$dataWeapons[65].name = "Revolver MK2 +1";$dataWeapons[65].params[0] =0;$dataWeapons[65].params[1] =50;$dataWeapons[65].params[2] =38;$dataWeapons[65].params[3] =13;$dataWeapons[65].params[4] =38;$dataWeapons[65].params[5] =6;$dataWeapons[65].params[6] =25;$dataWeapons[65].params[7] =0;};
As you can see, it DOES work for everything that needs changing but it also means that Shops will sell that "upgraded equipment" because the game pulls the same weapon Id from the actual weapon.
my current solution to this is to actually create a weapon/armor piece for EACH Weapon and Armor, so that I won't run into that issue again.
IF anybody gives Weapons/Armors to the player outside from shops and won't sell them in shops ever, changing the values is actually the easiest way to "Upgrade" your Weapon/Armor.