• 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.

[Map] Make Cave of Origin Open after E4

darthbr

Banned
  • 237
    Posts
    9
    Years
    • Seen Sep 13, 2024
    Whats up guys?

    How to Make Cave of Origin Open after E4???? someone have this script?
     
    While the cave is technically "open", it will be blocked by an NPC once you awaken Rayquaza. I've found the type 3 level script at offset 1E56EF in Sootopolis city using Advance Map.

    Here is the script:

    '---------------
    #org @start
    setflag 0x87D
    compare 0x405E 0x1
    if 0x1 call @snippet1
    compare 0x40CA 0x1
    if 0x1 call @snippet1
    call @snippet2
    call @snippet3
    compare 0x405E 0x1
    if 0x1 call @snippet4
    compare 0x405E 0x2
    if 0x1 call @snippet4
    compare 0x405E 0x3
    if 0x1 call @snippet4
    compare 0x405E 0x4
    if 0x1 call @snippet4
    compare 0x405E 0x5
    if 0x1 call @snippet4
    compare 0x405E 0x2
    if 0x1 call @snippet5
    compare 0x405E 0x3
    if 0x1 call @snippet5
    compare 0x405E 0x4
    if 0x1 call @snippet6
    compare 0x405E 0x5
    if 0x1 call @snippet7
    compare 0x405E 0x6
    if 0x1 call @snippet8
    end

    '---------------
    #org @snippet1
    setflag 0x4000
    return

    '---------------
    #org @snippet2
    compare 0x405E 0x0
    if 0x1 goto @snippet9
    compare 0x405E 0x6
    if 0x4 goto @snippet9
    compare 0x405E 0x1
    if 0x1 goto @snippet10
    compare 0x40CA 0x1
    if 0x1 goto @snippet10
    compare 0x40CA 0x1
    if 0x3 goto @snippet11
    return

    '---------------
    #org @snippet3
    compare 0x405E 0x0
    if 0x1 goto @snippet12
    compare 0x405E 0x6
    if 0x4 goto @snippet12
    compare 0x405E 0x1
    if 0x1 goto @snippet13
    compare 0x405E 0x2
    if 0x1 goto @snippet13
    compare 0x405E 0x3
    if 0x1 goto @snippet13
    compare 0x405E 0x4
    if 0x1 goto @snippet13
    compare 0x40CA 0x1
    if 0x3 goto @snippet13
    return

    '---------------
    #org @snippet4
    movesprite2 0x3 0xD 0x30
    movesprite2 0x5 0x2E 0x20
    movesprite2 0x4 0x30 0x29
    movesprite2 0x8 0x2D 0x2B
    spritebehave 0x3 0x7
    spritebehave 0x5 0x9
    spritebehave 0x4 0x9
    spritebehave 0x8 0x9
    return

    '---------------
    #org @snippet5
    checkflag 0x133
    if 0x1 goto @snippet14
    return

    '---------------
    #org @snippet6
    movesprite2 0x1 0x1E 0x12
    movesprite2 0x12 0x1F 0x12
    movesprite2 0x7 0x20 0x12
    end

    '---------------
    #org @snippet7
    movesprite2 0x1 0x1F 0x12
    movesprite2 0x7 0x1D 0x21
    movesprite2 0x10 0x21 0x23
    movesprite2 0x11 0x22 0x23
    compare 0x40D8 0x0
    if 0x1 call @snippet15
    compare 0x40D8 0x1
    if 0x1 call @snippet16
    compare 0x40D8 0x2
    if 0x1 call @snippet17
    return

    '---------------
    #org @snippet8
    movesprite2 0x1 0x1F 0x12
    return

    '---------------
    #org @snippet9
    return

    '---------------
    #org @snippet10
    setweather 0xD
    return

    '---------------
    #org @snippet11
    setweather 0xF
    return

    '---------------
    #org @snippet12
    return

    '---------------
    #org @snippet13
    setmapfooter 0x165
    return

    '---------------
    #org @snippet14
    movesprite2 0x1 0x1E 0x12
    movesprite2 0x7 0x20 0x12
    return

    '---------------
    #org @snippet15
    movesprite2 0x12 0x1F 0x21
    spritebehave 0x12 0x8
    return

    '---------------
    #org @snippet16
    movesprite2 0x12 0x20 0x21
    spritebehave 0x12 0x8
    return

    '---------------
    #org @snippet17
    movesprite2 0x12 0x1E 0x21
    spritebehave 0x12 0x8
    return



    The NPC that is blocking the cave entrance has the person event number 1 in Advance map and I'm pretty sure that this part of the script makes it stay near the entrance:

    #org @snippet8
    movesprite2 0x1 0x1F 0x12
    return

    So you could try modifying the 0x1f to some other value like 0x1e so the NPC is no longer blocking the cave.
     
    Last edited:
    Wow thank you!! im gonna try, basically i just want the npc move, and made it free xD
     
    Back
    Top