The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Other Variables that involve multiple msgbox and Map Connections (https://www.pokecommunity.com/showthread.php?t=349949)

Pokenon June 1st, 2015 7:47 PM

Variables that involve multiple msgbox and Map Connections
 
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?

Joexv June 1st, 2015 8:02 PM

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)



Pokenon June 1st, 2015 8:13 PM

Quote:

Originally Posted by joexv (Post 8778133)
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!

Pokenon June 1st, 2015 8:28 PM

Quote:

Originally Posted by Team Fail (Post 8778123)
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!


All times are GMT -8. The time now is 2:22 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.