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 How do I do this?[ XSE/A-MAP] (https://www.pokecommunity.com/showthread.php?t=352314)

ParsaMON July 16th, 2015 11:19 AM

How do I do this?[ XSE/A-MAP]
 
Hello there. Before you read this: My english can be very bad.

You know when you are going to choose a starter Pokemon in Oak's lab (FRLG) and you can't leave the lab before you have chosen a Pokemon?
Yeah? Can someone please explain me how I do that, or at least show me the script?

Thanks

Mana July 16th, 2015 11:42 AM

It's the green script tiles, they check for flags/variables and divert you back towards the table if you haven't pick.

In A-Map, click on one of the green script tiles and click 'open script' to have a looksie :).

Squeetz July 16th, 2015 11:48 AM

Here's the script:
'---------------
#org 0x1692C3 -- offset
lockall -- locks all sprites
textcolor 0x0 -- makes the text color for the next message to be blue
applymovement 0x4 0x81A75F1 -- Makes Oak look down
waitmovement 0x0 -- waits for the movement to stop
msgbox 0x818E177 MSG_KEEPOPEN '"OAK: Hey!\nDon't go away yet!" -- a msgbox that closes on keypress (see next command)
closeonkeypress -- waits for you to press a key before continuing through the script
applymovement MOVE_PLAYER 0x81692E5 -- forces the player to go up 1 tile
waitmovement 0x0 -- waits for the player movement to stop
releaseall -- releases all sprites
end -- ends the script


Here's a scripting tutorial by tajaros: http://www.pokecommunity.com/showthread.php?t=279345

ParsaMON July 16th, 2015 9:20 PM

Thank you very much!

ParsaMON July 16th, 2015 9:22 PM

Thank you too!


All times are GMT -8. The time now is 2:29 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.