I'm creating a level UP system for the weapons in my game, initially the weapon comes in the default form of the database, inside the game I have a function to add upgrades +1 +2 +3... Every + the weapon will receive a increase in your ATK attribute for example.
I would like to know if there is any script to change the atk value of weapons. I tried to change the character's atk value but it's not working very well due to the amount of weapons.
In short, I want a command that adds +3 atk to my weapon when it upgrades to +1.
Below is the code I tried to use but it didn't work.
To work correctly what I want, I need to change the atk value of the weapons, directly in the database.
My project will only have unique weapons, so I have no problem changing the global parameter.
I want to avoid plugins that do this, because my project is completely made for mobile in a customized way.
I appreciate any help
I would like to know if there is any script to change the atk value of weapons. I tried to change the character's atk value but it's not working very well due to the amount of weapons.
In short, I want a command that adds +3 atk to my weapon when it upgrades to +1.
Below is the code I tried to use but it didn't work.
Code:
$gameActors.actor(1).addParam(2, 3);
To work correctly what I want, I need to change the atk value of the weapons, directly in the database.
My project will only have unique weapons, so I have no problem changing the global parameter.
I want to avoid plugins that do this, because my project is completely made for mobile in a customized way.
I appreciate any help