Yet Again Another Event Problem...

Discussion in 'RPG Maker VX Ace' started by RouletteBunnie, Aug 11, 2019.

  1. RouletteBunnie

    RouletteBunnie Roulette Productions Veteran

    Messages:
    41
    Likes Received:
    94
    Location:
    Alberta, Canada
    First Language:
    English
    Primarily Uses:
    RMVXA
    I know this method works good with just the one control variable but when I try and make more than one.. The event freezes up and i cant do anything with the event after.
    I possibly might be doing it wrong.

    This time I got a picture but it isnt the best quality since it was off my phone before I had to head off to work.
     

    Attached Files:

    #1
  2. Kawers

    Kawers Ripping off Final Fantasy with Industrial Aplomb Member

    Messages:
    15
    Likes Received:
    49
    Location:
    UK
    First Language:
    English
    Primarily Uses:
    RMVXA
    I'm not totally sure what you're going for, but for my conditional branches, I usually have the positive outcomes first, then the "else" is for when they don't meet the criteria. You also seem to be checking twice when you probably don't have to- if you have 10 of the first item, it's only then that you need to check if you have 10 of the second item, since you can't complete the objective with just half of what you need.

    Those are the only things I can think of that might be causing the lock up.
     
    #2
  3. RouletteBunnie

    RouletteBunnie Roulette Productions Veteran

    Messages:
    41
    Likes Received:
    94
    Location:
    Alberta, Canada
    First Language:
    English
    Primarily Uses:
    RMVXA
    So with my conditional branches, i am trying to have it where it looks into your inventory and checks if you have enough items.
    I also have the text for those who might forget how many items they have and don't want to open up their menu to look.
    Which will prompt if your still less than 10.

    This method works fantastic with only one conditional branch but when I do multiple.. i think it's having issues reading it... or I have it completely setup wrong.

    I want the event to look for these items and make sure there is 10 of each before the quest is completed.
     
    #3
  4. xoferew

    xoferew Veteran Veteran

    Messages:
    110
    Likes Received:
    173
    First Language:
    English
    It looks like if you don't have enough bat items then it also checks if you don't have enough rat things, then if you DO have enough rat things it says you have enough items (even though you are short on the bat ones). There's nothing I see that tells it what to do if you DO have enough bat things. Does the bat item conditional have its own "else" for what to do when there are enough, or is else only on the rat conditional?

    Test it out with 2 bat items and 11 rat items (assuming 11 of each is the goal).
     
    #4
    Kawers likes this.
  5. RouletteBunnie

    RouletteBunnie Roulette Productions Veteran

    Messages:
    41
    Likes Received:
    94
    Location:
    Alberta, Canada
    First Language:
    English
    Primarily Uses:
    RMVXA
    Maybe what I am doing wrong is I am putting the conditional branch in the other conditional branch which is causing the freeze up. :kaoswt2:

    If I have them in their own standing branches that aren't overlapping then maybe it won't freeze up, because it will read the first conditional branch and then should read the second before completing the quest right? :kaosigh:
     
    #5
  6. Roninator2

    Roninator2 Gamer Veteran

    Messages:
    1,705
    Likes Received:
    376
    Location:
    Canada
    First Language:
    English
    Primarily Uses:
    RMVXA
    Alt+Prtscn please

    You do have it set wrong. What you have is (from the picture)...
    Check condition 1
    check condition 2
    - conditions are false - then it goes to else
    else
    check condition 1 <- problem
    check condition 2
    end
    end
    end
    end

    This is where you need to rethink the logic.
    Let me structure it for you.

    --Check condition 1
    ====Check condition 2
    ======false
    ====else
    ++++Check condition 1
    ======Check condition 2

    You are getting too deep.

    If you have multiple values to check 0, 10, 20, 30 etc
    then you need to build those and then build inside them the other conditions.

    --Check condition 1 < 10
    ====Check condition 2 < 10
    ======if true do stuff and end processing else false
    ====end
    ====Check condition 2 >= 10
    ======if true do stuff and end processing else false
    ====end
    --end
    --Check condition 1 <= 20
    ====Check condition 2 < 10
    ======if true do stuff and end processing else false
    ====end
    ====Check condition 2 >= 10
    ======if true do stuff and end processing else false
    ====end
    --end

    You can see how this gets confusing

    It's easier to do your check starting from the highest value.

    --Check condition 1 <= 100
    ====Check condition 2 <= 100
    ======if true do stuff and end processing else false
    ====end
    ====Check condition 2 <= 90
    ======if true do stuff and end processing else false
    ====end
    ====Check condition 2 <= 80
    ======if true do stuff and end processing else false
    ====end
    ...
    ====Check condition 2 <= 10
    ======if true do stuff and end processing else false
    ====end
    ====Check condition 2 == 0
    ======if true do stuff and end processing else false
    ====end

    ELSE

    Now here is where you can either do another set of conditions inside the else for 90 then another inside for 80 etc, ( not the good way) OR
    you end the condition and start a new one for Condition 1 <= 90
    then end that and start a new for Condition 1 <= 80
    etc

    So you build a big long lost for all conditions.
     
    #6
  7. xoferew

    xoferew Veteran Veteran

    Messages:
    110
    Likes Received:
    173
    First Language:
    English
    Here's what I would do:
    Do I have enough of item 1? If yes, counter=counter+1
    Do I have enough of item 2? If yes, counter=counter+1
    Does counter=2? If yes, do the exchange. If no, tell the player how many of each item they have.
    This way you won't get confused even if the recipe calls for six different ingredients. I would be sure to clear out the counter (reset it to 0) every time I used it in an event.

    This is probably not the clever, efficient way, but I am easily confused by logic so I go with what is most clear to me. ^_^
     
    #7
  8. RouletteBunnie

    RouletteBunnie Roulette Productions Veteran

    Messages:
    41
    Likes Received:
    94
    Location:
    Alberta, Canada
    First Language:
    English
    Primarily Uses:
    RMVXA
    Was in a hurry so I had no time to Alt+Print Screen

    But thank you, I will try this out! I figured I have it wrong just didn't know how to fully fix it. :kaoblush:
     
    #8
  9. Roninator2

    Roninator2 Gamer Veteran

    Messages:
    1,705
    Likes Received:
    376
    Location:
    Canada
    First Language:
    English
    Primarily Uses:
    RMVXA
    Really! Thats shocking. Alt+Prtscn takes 1 second.
    taking a photo and transfering it to you computer to upload takes way longer, unless you made that post from your phone.
    then it makes sense. But unless your computer is not connected to the internet, there should be no reason to not Alt+Prtscn.
    IMHO (in my humble opinion)
     
    #9
  10. RouletteBunnie

    RouletteBunnie Roulette Productions Veteran

    Messages:
    41
    Likes Received:
    94
    Location:
    Alberta, Canada
    First Language:
    English
    Primarily Uses:
    RMVXA
    Well first i am not at home on my personal computer, i am at work and i am on these forums on my phone. So when your in a rush to get to work and remember at the last minute to take a picture then the phone is alot more efficient in a rush.
    I get the alt-prtscn at home but there is certain situations that some people have to just work with, in my humble opinion. :kaohi:
     
    #10
  11. Roninator2

    Roninator2 Gamer Veteran

    Messages:
    1,705
    Likes Received:
    376
    Location:
    Canada
    First Language:
    English
    Primarily Uses:
    RMVXA
    sure, no problem. Makes sense then. Just remember that if anyone is going to help you, we wil still be here when you get home to put up a better picture.
    Aside from that side bar, Let us know if the event is working for you when you get back home to work on it.
    Cheers
     
    #11
    RouletteBunnie likes this.

Share This Page