# Need a little math help with regards to enemy encounter rate.

#### TakumaGao

##### Veteran
I'm back, and I'm still terrible at math!

So in this particular area of my game, there are 5 different enemy troops that can be encountered. I want three of those troops to have a 30% chance of being encountered each, totaling 90%. Then for the other two troops, I want them to only be encountered 5% of the time each.

So, on the Encounters tab of the map properties... how exactly would I achieve this? What value should I assign to each of these five troops in order to achieve that 30%/30%/30%/5%/5% split that I want?

#### ScorchedGround

##### Blizzards most disappointed fan (More than ever)
Assign the 30% troops the value 6 and the 5% troops the value 1.

so 30%/30%/30%/5%/5% -> 6/6/6/1/1

Here is brief explaination for what these numbers actually mean:

The probability for any given troop to appear equals " WEIGHT OF TROOP / TOTAL WEIGHT "
So in your case, 6+6+6+1+1 equals 20.

Then we can calculate:
6 / 20 = 0.3 -> 30%
1 / 20 = 0.05 -> 5%

#### TakumaGao

##### Veteran
Assign the 30% troops the value 6 and the 5% troops the value 1.

so 30%/30%/30%/5%/5% -> 6/6/6/1/1

Here is brief explaination for what these numbers actually mean:

The probability for any given troop to appear equals " WEIGHT OF TROOP / TOTAL WEIGHT "
So in your case, 6+6+6+1+1 equals 20.

Then we can calculate:
6 / 20 = 0.3 -> 30%
1 / 20 = 0.05 -> 5%
Thank you!

### Latest Profile Posts

Making games is the only thing I'm good at. Real talk.
So, uh... where's the RPG Maker MZ update with the MV animation system? Is there a release date confirmed?
Also I'm kind of brave enough to admit this. I... I have a crush on Sephiroth.
Please don't call me anything offensive. I'm naturally crazy.
thanks to a lot of lunatic coding... my game finally has a stun mechanic that I feel really good about. damage enemy's mental psyche (mp), and once empty, hitting with certain attacks trigger combos that can stack the damage.
Waiting for the 1.40 update before testing out my copy of MZ so that I don't end up adding unnecessary work to my plate. Meanwhile the current fourth draft for my story is taking shape, and I'm fleshing out the lore as I realize how things would make better sense here and there for the world that I'm building.
Just found out about your complications. I'm so sorry that you're going through this. I wish I could do something substantial for you, but our distance from each other makes that an impossibility. Still, if you ever need to talk or vent, I'm here.