Announcement

Collapse
No announcement yet.

I need help!!!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    I need help!!!

    I am having a problem creating a random number script on RPG Maker 2.
    I would be so happy to have someone help.

    The thing is like this.

    I have 14 main characters I want to randomly give one of these characters as the character you begin with. I want it to be an auto event that is turned off by a flag.

    See if this is right so far.

    Begin with making a new var. (Random Number) and then on the script have the thing go Data. Var. [Random Number] set +1 ? +14.
    Script Branch: Condition. Var. [Random Number] = 1
    Party Formation change. Character. None None None
    Continue that with each number.

    #2
    Re: I need help!!!

    That seems okay, is something not working?
    .

    Comment


      #3
      Re: I need help!!!

      Correct.
      It is not working. What am I doing wrong?

      Comment


        #4
        Re: I need help!!!

        As I recall, the random number thingy is based on time spent on a map. (No computer can generate random numbers!)

        To create variance make an intro that requires a button press.

        That will sync the "random" number to something variable. If it's the first thing done, the time spent on the map is always identical, and so is the generated number.

        I hope that helps.

        Good Luck with it.

        Peace.

        MOO!




        Comment


          #5
          Re: I need help!!!

          A random number generator in an Auto Event should always give the same value, which is not what you want.

          It does this because the random number feature uses the current map time as the seed, and if you're using an Auto Event, the Script will always execute at the same map time, so it loses its randomness.

          If this is what's happening, you'll need to put the random number generator somewhere after you give the user control, so that it's based on how long the user takes to do something (which will vary), instead of how long the computer takes to do something (which won't vary).

          Edit: RODAK! Strange coincidence that we would post the same thing at nearly the same time!
          Last edited by BlueSenshi; 01-02-2007, 05:52 PM.
          What little I have you can borrow, 'cause I'm old...
          and I'm blue...

          Comment

          Working...
          X