Picking a number between two variables

Masterfw

Villager
Member
Joined
Mar 20, 2018
Messages
5
Reaction score
0
First Language
English
Primarily Uses
RMVXA
I want to run an event that picks a number between two variables. I have one variable that controls the total number of instances of an event, and two more that give it some variance. Say variable 1 is set to 100. I want variable 2 to be 95%, variable 3 to be 105%, and an event or script to pick a number between variables 2 and 3. If variable 1 goes to 200, the event should pick between 190-210, etc. I've looked for other scripts but no luck.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,035
Reaction score
13,672
First Language
English
Primarily Uses
RMMV
This question belongs in the support forum for the engine you are using - especially if you get a scripted solution, it will be different depending on the engine.

Are you using VX Ace or something different?
 

Masterfw

Villager
Member
Joined
Mar 20, 2018
Messages
5
Reaction score
0
First Language
English
Primarily Uses
RMVXA
I'm using MV.
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,770
Reaction score
5,204
First Language
Dutch
Primarily Uses
RMXP

I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

People1.png & SF_People1.png added!!!!

Adventurer:
"Why your body looks like a bird?"

Stranger:
"Because I'm harpy"

Adventurer:
"Clap along if you feel like a room without a roof"

*Both dancing to Pharrell Williams song*
Stream will be live shortly with a make-up session of the Interactive Text Adventure! Feel free to drop by!
Pootscooter wrote on Pharonix's profile.
Hey @Pharonix, just wondering what you're up to lately and if you've had an opportunity to check out the LTBS thread in the past few days...(a couple of us could really use your expertise). Hope you are well and Happy Thanksgiving!
Anyone know the best size image to put in signature?

Forum statistics

Threads
105,501
Messages
1,014,243
Members
137,165
Latest member
keochauau
Top