E
entegrade
Guest
Hey all, I’m trying to think of ways to make an RNG weapon system with rarities and attributes (Like Borderlands, Anthem, Destiny)
For example, the system would first choose a rarity, then a manufacturer, a weapon type, and finally different “perks” that could increase/decrease stats. After all that it would generate the weapon based on these values and set their respective sprites and animations.
I was wondering what the best way to approach this would be without a ton of messy if statements/case switches. And since this system could potentially generate thousands of combinations, I think an array for different weapon stats might be too long. (Unless its really needed)
For example, the system would first choose a rarity, then a manufacturer, a weapon type, and finally different “perks” that could increase/decrease stats. After all that it would generate the weapon based on these values and set their respective sprites and animations.
I was wondering what the best way to approach this would be without a ton of messy if statements/case switches. And since this system could potentially generate thousands of combinations, I think an array for different weapon stats might be too long. (Unless its really needed)