Picking a number between two variables

● ARCHIVED · READ-ONLY
Started by Masterfw 4 posts View original ↗
  1. 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.
  2. 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?
  3. I'm using MV.
  4. I've moved this thread to MV Support. Thank you.