VX How does VX determine which enemy troop to use for random encounters?

Reason I ask this, is because I want to make sure there is a chance my players eventually come across a rare encounter, and also that they don't always run into slimes or toads 90% of the time, and miss out on fighting the other normal enemies in a given area. (I've ran into snakes eight times in a row when testing, and not once fought the demon rabbits or berserk bears I've assigned to a map. Bruh...)

So, does VX look at the troops for a map, and assigns a percentage to each based on the total number? (For example, if there are 10 troops, does each one have a 1-in-10 chance to be chosen?) Or does it go by ascending/descending order?

Thanks.
Reason I ask this, is because I want to make sure there is a chance my players eventually come across a rare encounter, and also that they don't always run into slimes or toads 90% of the time, and miss out on fighting the other normal enemies in a given area. (I've ran into snakes eight times in a row when testing, and not once fought the demon rabbits or berserk bears I've assigned to a map. Bruh...)

So, does VX look at the troops for a map, and assigns a percentage to each based on the total number? (For example, if there are 10 troops, does each one have a 1-in-10 chance to be chosen?) Or does it go by ascending/descending order?

Thanks.
Unlike later engines, encounters aren't weighted in VX. It simply takes the list of potential encounters, and picks one at random.

1748423812686.png
Thanks for the reply. Now, since we're playing with probability here, I could make duplicate troops to increase and decrease the chances of specific encounters, right? Three troops of snakes in the database and one troop of demon rabbits would mean the rabbits should be a less frequent encounter...

Database bloat, here I come! :LZSjoy:
Thanks for the reply. Now, since we're playing with probability here, I could make duplicate troops to increase and decrease the chances of specific encounters, right? Three troops of snakes in the database and one troop of demon rabbits would mean the rabbits should be a less frequent encounter...

Database bloat, here I come! :LZSjoy:
Thankfully you don't actually have to duplicate troops, you just have to duplicate the *encounter entries on the map settings*. You can put the same troop multiple times and it will be more likely to be the one chosen.
Thankfully you don't actually have to duplicate troops, you just have to duplicate the *encounter entries on the map settings*. You can put the same troop multiple times and it will be more likely to be the one chosen.
Can confirm. This is da wae
Keep in mind as well that you can define encounter areas in VX, something they removed from later versions in favour of regions (which work sort of the same way but not quite). So you can have a particular encounter only happen in a particular place on the map.
Thankfully you don't actually have to duplicate troops, you just have to duplicate the *encounter entries on the map settings*. You can put the same troop multiple times and it will be more likely to be the one chosen.

Well, I learned something new today. Thank you again. That also explains why I'm fighting snakes more often than bears and rabbits... I have my troops for the map in question set as Snake x2, Snake x3, Bear x1, and Demon Rabbit x2. I'll add some wolves and duplicate the rabbits. That way the bear will be a rare battle.

Keep in mind as well that you can define encounter areas in VX, something they removed from later versions in favour of regions (which work sort of the same way but not quite). So you can have a particular encounter only happen in a particular place on the map.


Wait. What? I honestly didn't know this was possible. Can you point me in the right direction?
Well, I learned something new today. Thank you again. That also explains why I'm fighting snakes more often than bears and rabbits... I have my troops set as Snake x2, Snake x3, Bear x1, and Demon Rabbit x2. I'll add some wolves and duplicate the rabbits. That way the bear will be a rare battle.




Wait. What? I honestly didn't know this was possible. Can you point me in the right direction?
Right click your map in the tree and select "new area..." You can define a rectangular portion of the map and have encounters that only happen there.
Without exaggeration, I am humbled and grateful for your help. How didn't I even notice that until today? Heck, I was trying to figure it out after reading your prior reply, without success. I feel like a total derp now. :LZSlol:

Very much appreciated. Now if you excuse me, I'm going to bang my head against the wall for being such an idiot. BONK! :LZYdizzy:
Without exaggeration, I am humbled and grateful for your help. How didn't I even notice that until today? Heck, I was trying to figure it out after reading your prior reply, without success. I feel like a total derp now. :LZSlol:

Very much appreciated. Now if you excuse me, I'm going to bang my head against the wall for being such an idiot. BONK! :LZYdizzy:
It's only easy if you know the answer. 🙂 You should have seen how long it took me to realise that if you double click a tile in XP you can choose any of the autotile patterns manually.
I haven't used VXace in a good while but you could also event Random Encounters. If the event command is there.

You could use variables to go up as the player moves, and after a set amount trigger Encounter and then 1+ to battle count if battle won and then once the Battle count is at 10 next encounter will be the rare one?
I haven't used VXace in a good while but you could also event Random Encounters. If the event command is there.

You could use variables to go up as the player moves, and after a set amount trigger Encounter and then 1+ to battle count if battle won and then once the Battle count is at 10 next encounter will be the rare one?
Good thing they're not talking about VXAce.
Good thing they're not talking about VXAce.
In fairness to Martin, the same approach would be possible in VX.

Original thread: https://forums.rpgmakerweb.com/threads/how-does-vx-determine-which-enemy-troop-to-use-for-random-encounters.177976/