Announcement

Collapse
No announcement yet.

How do I make a Val-con branch with more than four options?

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

    How do I make a Val-con branch with more than four options?

    I need one for at least 10.

    Thank you.
    I'm not signing shit!

    #2
    Re: How do I make a Val-con branch with more than four options?

    Have one or more of the branches branch off into more options. It'll sure look like a mess in the editor though.

    Comment


      #3
      Re: How do I make a Val-con branch with more than four options?

      I tried that. Could never get it to go past four though. :/
      I'm not signing shit!

      Comment


        #4
        Re: How do I make a Val-con branch with more than four options?

        It may have to do with the order in which you present the valid values. I think it goes straight down the list to see which branch to take, going with the first one that fits the value.

        Comment


          #5
          Re: How do I make a Val-con branch with more than four options?

          I have
          01-Val-Con Branch
          Variable 01
          Value 0
          Value 1
          Value 2
          Value 3
          02 Option 1/ Start
          03 Message
          04Option 1/End
          05 Option 2/ Start
          06 Message
          07 Option 2/End
          08 Option 3/ Start
          09 Message
          10 Option 3/ Stop
          11 Option 4/ Start
          12 Val-Con Branch

          Same all the way through.




          01
          I'm not signing shit!

          Comment


            #6
            Re: How do I make a Val-con branch with more than four options?

            Have you tired changing the mode on the fourth one and making another one with for. It may still only be four but it will act as if it were more. I think

            However I thought that the other val condition branch in the val condition branch would work so it may not.
            I was like a Cloud once!!!!

            Comment


              #7
              Re: How do I make a Val-con branch with more than four options?

              well if you can't get that to work you could....

              have one val con branch

              choice 1

              choice 2

              choice 3

              On choice 4 you could put in "more" or something for your text and put another val con branch under it.

              *Repeat as many times as you have to.


              Yeah that's my idea... I hope it makes sense
              I'll outrun those zookeepers eventually...

              Comment


                #8
                Re: How do I make a Val-con branch with more than four options?

                Let me guess..

                It works fine for 0-3, but nothing happens when the variable's value is 4-9.

                You can do one of two things:

                1) You can change the requirement for branch 4 to >= 3 (Greater than or equal to 3), rather than = 3. Do the same with branch 4 of the second set of branches.

                2) You can remove the val-conditional branch set from branch four and make it a separate val-conditional branch immediately after the first one ends, and do the same with the third set of branches, effectively making it three completely separate sets of branches.

                Either way, it's fundamentally the same code.

                Option 2 is cleaner and takes fewer lines (26 lines as opposed to 30), but will require more effort to implement.

                Basically, the system is assuming that there is nothing to do if the value of the variable is not 0, 1, 2, or 3. The change in option 1 tells the system to do actions for 0, 1, 2, 3, and any value greater than 3.

                Option 2 tells the system that if the value isn't 0-3, it should move on to the next command down the list, which is the next branch set. If the value isn't 4-7, then it moves on to the 2-way branch for 8-9. Any time that a variable is not within the range of values valid for a val-conditional branch, the entire branch code is ignored, and the system moves on to the next thing on the list.

                "Embedding" branches (What you're doing if you take option 1) makes the second branch part of the code for the initial branch, so even if the value is valid for the second branch, it will also be ignored by the system.

                Comment

                Working...
                X