• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Randomise 3 Reals

Status
Not open for further replies.
Level 14
Joined
Oct 16, 2010
Messages
749
Getting myself confused so I thought I would just ask

I want to make a system that randomises the strength, agility, and intelligence of a hero. The idea is that I can use this for a breeding type system or something like that

I want each stat to be able to vary +/- 10%, but the total stat adjustment stays as 100% of original stats (not sure if that makes any sense?)

My first method was to vary the first 2 stats, then build the 3rd stat based on the first two. This would guarantee 100% original stat value but means the last stat can vary from the +/- 10% I was going for. To explain - if the first 2 stats both get -10%, then the 3rd stat needs to get +23% to compensate, obviously this is not with the 10% tollerance!

It feels like this should be really simple but I'm just staring not knowing a better method!

EDIT: Scrap this think I've worked it out through finding averages!

EDIT 2: Yep Solved!
 
Last edited:
Status
Not open for further replies.
Top