With my game script so the main script there will be a PvP or PvE mode that heist player against player or player against environment so the monsters. Of course, these also have a defense value etc... By defeating the monsters you get money to upgrade your character with skill attributes etc. Now I want to include a kind of item generation for armor parts.

So i need help for the formel of the armor generation part.