Announcement

Collapse
No announcement yet.

A question

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

    A question

    In an event I have to put a Val-control branches for 9 different options. If I put 3 different Val-control branches with 3 options each, would it work?
    Game in progress: "Cards of Destiny"!
    How many of you have tried Game Maker, for PC?

    #2
    Re: A question

    Yes, but you'll need to probably use event transitions. you probably can't fit all nine branches and code in one event.

    Comment


      #3
      Re: A question

      What are event transitions?
      Last edited by ezz1692; 09-17-2007, 09:29 PM.
      Game in progress: "Cards of Destiny"!
      How many of you have tried Game Maker, for PC?

      Comment


        #4
        Re: A question

        I beleive you find them in control. It switchs from one event to the next. Thus, you could have three choices, each one event transistioning to an event with three choices. Four events, 9 branches.

        Comment


          #5
          Re: A question

          All nine branches DOES fit within a 50 line mode; however, it all depends on what you are doing within each branch where you might get into trouble using all the alloted lines.

          Make your first branch, with a variable equal to 1, 2, 3, and >=4. Then in the >=4 branch, make another branch where the variable equals 4, 5, 6, and >=7. Within >=7, make one last branch with the variable equal to 7, 8 and 9.


          Conversely, if you are making choices a player needs to pick from, make a 4 choice branch, with the last branch being something like "I don't like any of these choices. Let me see more options" or something. Then below that, make another branch with more options, keeping in mind that the fourth choice should always be "See more options". Then in each choice above (excluding the "see more options" branch), make sure you put an Event Ending code at the end of all the code you need for that branch. In effect, what this will do is stop the event from running anymore after you have each "choice" branch do what it needs to. But for each "See more choices" branch, it will continue to the next branch immediately below it. On the last branch, make one of the choices something like, "Let me see the first choices again," and the next time you talk to the person (yes, you will have to hit the button to talk to him again), it'll start at the beginning again.

          So for multiple branches with multiple choices/outcomes, these are the two best ways I've found to do things, depending on if you're using variables or choices.


          Hope that makes sense, and I hope that helps.
          Last edited by Perversion; 09-18-2007, 12:05 AM.

          Comment


            #6
            Re: A question

            That was it, Perversion. Thank you.
            Game in progress: "Cards of Destiny"!
            How many of you have tried Game Maker, for PC?

            Comment


              #7
              Re: A question

              There is a little problem, perversion. Supppose that the variable is actually nine and you have 3 branches as you said in the previous post. While playtesting, when the event runs, the screen goes black as you enter the fourht option of the branch. Then it returns to the dungeon, puts black again, goes to the dungeon, and goes outside. I mean, enters a branch, then another, then another. Is it clear, or confusing?
              Game in progress: "Cards of Destiny"!
              How many of you have tried Game Maker, for PC?

              Comment


                #8
                Re: A question

                http://www.pavilionboards.com/forum/...ad.php?t=10453

                perhaps this can help? or at least give you an idea

                Here I come Pav, like the Kool-Aid man barging into a funeral! Oh yeah!

                Comment


                  #9
                  Re: A question

                  Dunno....never had a problem like that...

                  Comment


                    #10
                    Re: A question

                    Place a val-cond branch at the end with

                    "If Var 01>8 then goto mode 2"

                    and in mode 2 put a "Modify Mode 1"(make it an auto event) <-This step resets the event

                    make sure mode one isnt an auto event, otherwise it will loop

                    there is no way to make an event that constantly checks the values of a variable, the game registers it as a loop and returns an error

                    Your problem wasnt explained very clearly...did it return a loop? how about posting the coding you have?
                    Last edited by JPS; 09-22-2007, 03:06 AM.

                    Here I come Pav, like the Kool-Aid man barging into a funeral! Oh yeah!

                    Comment


                      #11
                      Re: A question

                      The idea in the other thread was good, but the event is not that important to make the game revolve around it. Too much space.
                      The beforementioned idea was quite good, only that it seem that the screen flashes in and out. I'll have to deal with it, it douesn't occupy lots of space and it works. Thank you all.
                      Game in progress: "Cards of Destiny"!
                      How many of you have tried Game Maker, for PC?

                      Comment

                      Working...
                      X