I'm working on something which requires a hunter to attack an animal. This is what I have so far.
Attacker/Weapon POV
- Level - 1 to 50
- Base - base attack level of the weapon
- Weapon Impact - determines size of prey it can kill - base = 10, +10 every level
- Marksmanship - this is a skill which the hunter acquire with time. higher level animals will require a higher skill, Let's say it starts off at 50. Then the hunter can buy level 2 which will be let's say 150..so on..
- Ammo - different types of ammo will give different types of bonuses. Some will increase impact, some skill, some both.
- Random multiplier - need this to make everything a bit of a gamble. Can't allow users to figure out how the formula works
Animal POV
Defense - based on: base defense of the animal + weight factor + skill required to shoot him down
This is what I have in mind. Now..I tried to come up wth some formulas to represent all this..I made some simulations in excel. They seem to work but I don't know if I took the right approach determining this. It was mostly guess work..trial and error until I got some results which seemed ok. Any advice is welcome !
Each animal has a weight between min and max. However, the Weapon Impact will limit that weight at Weapon Impact / 10 kgs. => 10 Impact = 1 kg max, 20 impact = 2 kg max..etc. To avoid hunters shooting down an animal every time, I will generate animal weights between min and Impact max + a small percentage. For example let's say an animal is between 1 and 10 kg. With 50 impact the animal which we can shoot will have a weight between 1 and 5kg. however i will generate weights up to 5.5..to make hunters miss from time to time because the animal was to large for his level..etc.
Now to determine if a hunter shoots down an animal I compute an attack factor and a defense factor. If attack > defense.. asta la vista baby !
Attack Formula: Weapon Base + Impact + Ammo Bonus + Weapon Base *(lvl/max lvl) * multiplier
multiplier is randomly generated between 0.8 and 1.2 so it could help..or it could harm...
Defense formula = Base Defense + Base Defense*weight
... not sure how this will scale .. any ideas? where do ppl start to generate formulas like this ?