Hello,
I've a script request to upgrade the equipment in a particular way.
I wish my weapons and my armors take an upgrade when they have been used a number of times. With each upgrade, display the +1, +2 ... after the name of the equipment.
Example : If I use Murasame to a physical attack, one point is counted and after a certain number of points, my Murasame becomes Murasame (+1). The same for the armor when receiving any type of attack.
Consequences of these upgrades : I wish that every upgrade, a bonus (attack for the weapons, defense for armors) is applied. And this is where it gets particular.
I use the Tsukihime script to put colors to my equipment names to define a rarity. This is a simple script to change the color names in the game with a simple notetag to put in the database.
The bonus to apply to my equipment will depend on this rarity. If the rarity of my equipment is low, the bonus for each upgrade will be low.
Example : I use a standard weapon purchased from the blacksmith (rarity is basic, the color of the name of this weapon is white). Whenever this weapon upgrade, it gains +1 attack. Thus, admitting it has 10 Basic Attack, it will increase to 11, then 12, then 13, etc ... Now if I use a rare super weapon with basic important stats (color name of this weapon is red), whenever this weapon upgrade, it gains +5 in attack. Thus, admitting it has 200 basic attack, it increased to 205, then 210, then 215, etc ...
That's it. If you manage to do that, I'll be really happy.