• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Other] Variables that involve multiple msgbox and Map Connections

  • 10
    Posts
    9
    Years
    • Seen Jun 3, 2015
    Hi guys, I have two issues in my ROM hack.

    Firstly, how do I make a person say 3 different types of message with other scripts activating a variable that changes the message.



    Secondly, I have connected a town to a route. With map connections, I connected the two maps with no glitches. However, I can pass from a town to the route but after that, I want to go back from the route to the town but I was blocked. It seems like its a one way gate. I can move from town to route but not back? The blockage is is directly at the point where the two map connects. Is there something wrong with the map connections?
     
    Well for the first part simply have some compare comands like the following
    Code:
    compare 0x4040 0x0
    if 0x1 goto @1
    compare 0x4040 0x1
    if 0x1 goto @2
    compare 0x4040 0x2
    if 0x4 goto @3 //The 0x4 there is so that any number higher that 2 is allowed(I believe 0x4 is correct)
     
    Well for the first part simply have some compare comands like the following
    Code:
    compare 0x4040 0x0
    if 0x1 goto @1
    compare 0x4040 0x1
    if 0x1 goto @2
    compare 0x4040 0x2
    if 0x4 goto @3 //The 0x4 there is so that any number higher that 2 is allowed(I believe 0x4 is correct)

    Ohh! I get it, I thought the 0x1 was the var value and I was doing it all wrong! Thanks man!
     
    I'm not sure about the first part, but for the second part, you've only completed half the task. You need to also make a map connection to your town from your route.

    Thanks so much for the quick reply :) It worked!
     
    Back
    Top