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

TakumaGao

Veteran
Veteran
Joined
May 22, 2019
Messages
88
Reaction score
23
First Language
English
Primarily Uses
RMVXA
I'm back, and I'm still terrible at math! :p

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)
Veteran
Joined
Apr 12, 2020
Messages
658
Reaction score
938
First Language
German
Primarily Uses
RMMV
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
Veteran
Joined
May 22, 2019
Messages
88
Reaction score
23
First Language
English
Primarily Uses
RMVXA
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! :D
 

Latest Threads

Latest Profile Posts

I decided to reinstall one of my most favourite game of all times, Gothic 2. Time to get back to Khorinis!
So much game make... I needs to rest. The foods call.
-Casino with bunnysuit green check.png
1638563168795.png
Monday December 6th 2021 at 7PM Hawkzombie will stream A Thief's Voyage on his Twitch.

Hawkzombie Twitch

Check it out.​
Ladies and gentlepeeps, I'm working on a Chuck E Cheese horror game! Did you know that in the 80's, in the Pizza Time Theater, Helen Henny was a separate character who performed in a separate room called the Cabaret? She was one of the possible guest stars there, and she was a Hollywood star at the time. But this particular unit seems to have a dark secret...

Forum statistics

Threads
117,162
Messages
1,105,057
Members
153,245
Latest member
RiraiMel
Top