Sorry if the question is a bit unclear, but to put it into perspective I will share my idea how I want this to work. I’ve searched through the forum but can’t really find anything that answers my question.
I’m working on a loot system for a (hopefully) upcoming RPG-like game.
I’m still a beginner to both Unity and C# but I feel I’m getting the hang on it pretty well.
The idea with the loot is:
Each item-types (Sword, Crossbow, Armor etc) will roll a random “gearscore” (haven’t come up with a proper name yet). The idea with the gearscore is that the value of the gearscore is the total value of points to distribute to the items stats.
150 points will be randomly distributed to Strength, Attack speed, damage, etc etc).
150 points (the Gearscore) will be distributed like this (by random):
Strength: 55 p
Attack Speed: 25 p
Damage: 50 p
Critical Chance: 20 p
What would be the most effective, and easiest way to implement this function, to distribute the Gearscore to my stats (multiple variables)? How would you do it?
I don’t need a working code for it, just some ideas thrown at me from people that have been doing this for a while