Picking a number between two variables

Discussion in 'RPG Maker MV' started by Masterfw, Oct 31, 2018.

  1. Masterfw

    Masterfw Villager Member

    Messages:
    5
    Likes Received:
    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.
     
    #1
  2. Shaz

    Shaz Veteran Veteran

    Messages:
    37,307
    Likes Received:
    11,121
    Location:
    Australia
    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?
     
    #2
  3. Masterfw

    Masterfw Villager Member

    Messages:
    5
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMVXA
    I'm using MV.
     
    #3
  4. slimmmeiske2

    slimmmeiske2 Little Red Riding Hood Moderator

    Messages:
    5,312
    Likes Received:
    3,957
    Location:
    Belgium
    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.

     
    #4

Share This Page