Increasing the Odds for Repeated Love Interests

Hey everyone

I'm currently planning a project I want to incorporate a dynamic dating system for your side character. The idea is that the side character has the opportunity to date different potential love interests. Each day, the game will generate a random number between 1 and 10, with each number representing a different love interest. Based on the generated number, the side character will go on a date with the corresponding love interest for that day.

However, the more the side character goes out with a specific love interest, the higher the chances should become of getting selected again in future random draws. In other words, if "3" comes up frequently, I want to increase the probability of 3 being selected again. I'm looking for a way to modify the random number generation or the selection process in RPGM MZ to reflect this preference based on past dates.

Does anyone have any ideas or scripts that could help implement a system where previous selections influence future probabilities in this way? I'm aiming for a more nuanced and dynamic dating system that reflects the growing attachment between the side character and their love interests. I think every romance character will have their own variable of "affection" towards the side character.
You would have an array [1,2,3,4,5,6,7,8,9,10], randomly choose one of those, then push the selected number into the array so there's now two of that entry, i.e. [1,2,3,3,4...]
Why, yes! Zombie does have a way. I am sure there are other ways, but this is what I would do.

I would use an Array. So say you have 10 love interests. So I would make an Array with the numbers 1-10.

Then, I would randomly select a number from that Array for Day 1. That would be the number to use for that day. Also, I would push that same value into the Array. So now the Array has 11 values and one of those values is duplicated.

Then I would just repeat.

Randomly select a value from the Array to use. Push that same value into the Array so the Array has another value.

The more times a number is randomly selected, that same number gets added to the Array as a new value and increases the chance of that number being selected.

That is what I would try at first. This uses pretty simple scripts.

If you don’t know how to do the scripts and you want to try this, I can post a sample Event that does this when I get back to my computer.

Or maybe someone else has a better possible option.

Good luck!

EDIT: Damn, ninja’d
Oh, thank you so much for your answers. Arrays are something I'm not familiar and I can't really code, this seems a bit hard for me right now so I'll probably think of something simplier.
I'm at the planning stage so I'm not losing any kind of content
thank you again
You can do a lot by learning to use Arrays. They may not be the easiest to follow, but I have a lot of tutorials that use Arrays.

Whenever you are ready, learning some Java Script can really open up more possibilities.

Good luck!
You can also do this without arrays, just by using common event logic (you still need one script call).

Let's say I have four girlfriends, they each have their own variable:
Variable 15 (Kaitlyn) = 1
Variable 16 (Liara) = 1
Variable 17 (Morrigan)= 1
Variable 18 (Arueshalae) = 1

Make variable 19 the sum of variables 15 through 18.

Then Control Variables on 19 -> Script ->
Code:
Math.randomInt($gameVariables.value(19))
that will make 19 have a random number from 0 through the sum of those variables - 1.

Then you just do conditional branches.
If variable 19 < variable 15, date with Kaitlyn
else if variable 19 < variable 16, date with Liara
etc.

Then you increment that girl's variable by 1.

That means next time you do all of that, if I went on a date with Kaitlyn I'd get another date on a roll of 0 or 1 (two chances). Each other girl would still have only one chance after that.
Let's say I have four girlfriends
Hooray for polyamory!
Hooray for Polly-amory!
No, I'm not dating a parrot.

Original thread: https://forums.rpgmakerweb.com/threads/increasing-the-odds-for-repeated-love-interests.167447/