• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

[ASM & Hex] Preventing the player from escaping from a map

Dr. Seuss

Will finish GS Chronicles, I swear!
  • 535
    Posts
    11
    Years
    Well. I'm using Fire Red and I'm wondering if there's a way to prevent the player from escaping from an outdoor type map using things like Fly, Teleport or a escape rope. I need it for an event I'm makin that requires the player to complete a task without escaping. I cannot just select the map type as indoors because it would not apply the DNS filters and Day/Night wild Pokémon switching. Not sure if this can be done via ASM or by hex editing.
     
    Total guessing here, but I would simply hack one of the unused map types(there are like 3/4 if im not mistaken)
    This should be easy to do with the CFRU,just copy paste an outdoor map type function but where it says MapAllowsFlyTeleport(dont remember the exact function) simply return FALSE
    PS:Btw,RIP Maradona best of all time
     
    I needed this while developing my hack, and I came up with one idea where once an event in cave took place, when player exits the cave, they need to talk to an npc before being able to fly/escape out of the map. I placed a script near the very exit of the cave (you can use a level script of the map you're entering), where I quickly cleared flag 828. This will disable the pokemon menu and player won't be able to use things like fly, cut rock smash etc. (the menu is restored upon talking to said NPC)

    I think that there are options where you could just change the map type in the header tab of Advance map, but then again it probably won't allow you to fly out of that map ever (changing the type to a cave for example).
     
    Last edited:
    I needed this while developing my hack, and I came up with one idea where once an event in cave took place, when player exits the cave, they need to talk to an npc before being able to fly/escape out of the map. I placed a script near the very exist of the cave (you can use a level script of the map you're entering), where I quickly cleared flag 828. This will disable the pokemon menu and player won't be able to use things like fly, cut rock smash etc. (the menu is restored upon talking to said NPC)

    I think that there are options where you could just change the map type in the header tab of Advance map, but then again it probably won't allow you to fly out of that map ever (changing the type to a cave for example).

    GENIUS : )
     
    I needed this while developing my hack, and I came up with one idea where once an event in cave took place, when player exits the cave, they need to talk to an npc before being able to fly/escape out of the map. I placed a script near the very exit of the cave (you can use a level script of the map you're entering), where I quickly cleared flag 828. This will disable the pokemon menu and player won't be able to use things like fly, cut rock smash etc. (the menu is restored upon talking to said NPC)

    I think that there are options where you could just change the map type in the header tab of Advance map, but then again it probably won't allow you to fly out of that map ever (changing the type to a cave for example).

    What is your ROM hack, I would love to play it
     
    Back
    Top