Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rboninsegna/a4a63c2b66c42e371a94f860eae55361 to your computer and use it in GitHub Desktop.
Save rboninsegna/a4a63c2b66c42e371a94f860eae55361 to your computer and use it in GitHub Desktop.
Pokemon Ruby/Sapphire flags and variables
data includes all maps EXCEPT 0:0, 0:1, 0:2, 0:3 (main cities)
to be rechecked: Slateport shipbuilders/Museum/Harbor,
anything in Littleroot,
contest halls mainly 13:4
Rival fights
Sootopolis overworld
"(?)" symbols means I'm not sure of the English name, please contribute
"bank:map" numbers are base 10
Lowercase-starting descriptions are partial or the ones I'm doubtful of
Some speculation or incorrect interpretations may have escaped the above convention
"Kyogre" means whatever flagship legendary your version has
0x1 LOCAL/TEMP
0x2 LOCAL/TEMP
0x4 Winstrate Family's grandma met -- POSSIBLY LOCAL/TEMP
-0x11 to 0x20 disabled on Route 130 when Mirage Island isn't there
0xD5 Premier Ball obtained from Devon Condominium
0x51 Clock set in room
0x52 Starter obtained
0x58 Prof Birch's assistant introduced himself
0x59 Rydel met in Mauville
0x5A Bike received from Rydel
0x5E Wailmer Pail received from Pretty Petal Flower Shop assistant
0x5F Pokeblock Case received
0x60 Secret base created
0x64 Mossdeep Gym arrow tiles puzzle flip switch
0x65 Mossdeep Gym arrow tiles puzzle flip switch
0x66 Mossdeep Gym arrow tiles puzzle flip switch
0x67 Mossdeep Gym arrow tiles puzzle flip switch
0x6A Strength HM obtained at Rusturf Tunnel
0x6B Rock Smash HM obtained in Mauville
0x6D Flash HM obtained at Granite Cave
0x70 Submarine departed with Archie/Maxie at Lilycove hideout
0x71 Have red/blue orb -- for earthquakes in Cave of Origin, if enabled can give back red/blue orb at Mt Pyre
0x73 Meteorite removed from Mt Chimney
0x74 Pokeballs purchaseable, footprint researcher out of the way
0x76 can do Hidden Power TM quiz
0x79 TM 31 obtained from house in Sootopolis
0x7A Surf HM obtained from Wally's father
0x7B Dive HM obtained from Steven's house
0x7D Wally reached Evergrande
0x7E see 0x35A
0x7F Pretty Petal Flower Shop owner met in-store
0x81 Submarine disappeared from under Seafloor Cavern, have Orb - enabled when Kyogre awakened
0x82 Rival beaten on Route 103
0x83 Lanette's gift received
0x84
0x85 Amulet Coin received from Mom (after 5th badge)
0x86 Egg ready at Daycare
0x87 Wally's father met in Petalburg
0x89 Cut HM obtained in Rustboro
0x8B Meteorite removable or removed from Mt Chimney
0x8C Slateport Beach House (?) cleared, and 6 free Soda Pops claimed
0x8D Slateport Beach House (?) cleared
0x8E Devon Goods currently stolen
0x8F Devon Goods recovered, Mr Briney rescued
0x90 Authorized to enter Devon
0x93 Mr Briney met at his home after rescuing him
0x94 Dock met at Slateport shipyard
0x95 Devon Goods delivered to Stern in Museum
0x96 Contest Pass already received in Verdanturf
0x97 Castform received at Weather Institute
0x98 Super Rod received in Mossdeep
0x9A Pacifidlog town in-game trade done
0x9B Fortree town in-game trade done
0xA0 Lilycove Museum painting available
0xA1 Lilycove Museum painting available
0xA2 Lilycove Museum painting available
0xA3 Lilycove Museum painting available
0xA4 Lilycove Museum painting available
0xA5 TM 39 obtained from 1st Gym leader
0xA6 TM 08 obtained from 2nd Gym leader
0xA7 TM 34 obtained from 3rd Gym leader
0xA8 TM 50 obtained from 4th Gym leader
0xA9 TM 42 obtained from 5th Gym leader
0xAA TM 40 obtained from 6th Gym leader
0xAB tTM obtained from 7th Gym leader
0xAC TM 03 obtained from 8th Gym leader
0xAE set on entering Secret Base or your room at home
0xAF set on entering Secret Base or your room at home
0xB0 set on entering Secret Base or your room at home
0xB1 set on entering Secret Base or your room at home
0xB2 set on entering Secret Base or your room at home
0xB3 set on entering Secret Base or your room at home
0xB4 set on entering Secret Base or your room at home
0xB5 set on entering Secret Base or your room at home
0xB6 set on entering Secret Base or your room at home
0xB7 set on entering Secret Base or your room at home
0xB8 set on entering Secret Base or your room at home
0xB9 set on entering Secret Base or your room at home
0xBA set on entering Secret Base or your room at home
0xBB set on entering Secret Base or your room at home
0xBC Pokenav obtained
0xBD Letter given to Steven
0xBE something with Wally
0xC0 Sunstone obtained from Mossdeep Space Center
0xC1 Wally met in Verdanturf
0xC2 Trick House arrow tiles puzzle flip switch
0xC3 Trick House arrow tiles puzzle flip switch
0xC4 Trick House arrow tiles puzzle flip switch
0xC5 Trick House arrow tiles puzzle flip switch
0xC6 Trick House arrow tiles puzzle flip switch
0xC7 Rusturf Tunnel lovers rejoined
0xC8 Red Scarf received from Pokemon Fan Club president
0xC9 Blue Scarf received from Pokemon Fan Club president
0xCA Pink Scarf received from Pokemon Fan Club president
0xCB Green Scarf received from Pokemon Fan Club president
0xCC Yellow Scarf received from Pokemon Fan Club president
0xCE Lati*s event at Southern Island already initiated once
0xD9 Shard Trader met at his home (Route 124)
0xDD Go-Goggles obtained from rival
0xDE Fortree<>Mossdeep Mail Wingull departed from Fortree
0xDF Fortree<>Mossdeep Mail Wingull gave Mental Herb in Fortree
0xE0 Fortree<>Mossdeep Mail Wingull departed from Mossdeep
0xE2 Doll obtained from Casino
0xE4 First Relicanth Last Wailord puzzle solved
0xE5 Meteorite delivered to Prof Cozmo
0xE6 TM 36 obtained from Dewford Trendy House
0xE7 TM 05 obtained from Route 114
0xEA TM 44 obtained from Lilycove
0xEC Art Museum president prize claimed
0xED Battle Tower 50-streak prize claimed
0xEE Battle Tower 100-streak prize claimed
0xEF Abandoned Ship storage unlocked
0xF0 Abandoned Ship room 1 unlocked
0xF1 Abandoned Ship room 2 unlocked
0xF3 Abandoned Ship room 4 unlocked
0xF3 Abandoned Ship room 6 unlocked
0xF4 Prof Cozmo met at Meteor Falls
0xF5 Wailmer Doll obtained from Sootopolis
0xF6 Berry obtained from old woman on Route 104
0xF7 SS Tidal: all trainers beaten
0xF8 Spelon Berry obtained from Berry Master's Wife
0xF9 Pamtre Berry obtained from Berry Master's Wife
0xFA Watmel Berry obtained from Berry Master's Wife
0xFB Durin Berry obtained from Berry Master's Wife
0xFC Belue Berry obtained from Berry Master's Wife
0xFD
0xFE Charcoal obtained in Lavaridge
0xFF see 0x85D
0x100 Repeat Ball given by Devon employee on Route 116
0x101 Old Rod obtained in Dewford
0x102 Coin Case traded out of Harbor Mail
0x103 Red/Blue orb returned to Mt Pyre
0x104 checked when disembarking SS Tidal?
0x105 Dig obtained from Fossil Maniac's brother
0x107 All badges verified (actually only 6th lol) in Pokemon League building
0x108 TM 10 received in Fortree town
0x109 TM 41 received from Slateport contest hall
0x10A Lavaridge egg received
0x10B Fossil(s) revived
0x10E Contest painting awarded
0x110 Exp Share received from Devon president
0x111 Pokerus lecture from nurse already received
0x112 Running Shoes received
0x113 Quick Claw obtained from Trainer's School teacher
0x114 King's Rock obtained in Mossdeep
0x115 Macho Brace obtained from Winstrate family
0x117 White Herb obtained from outside Pretty Petal Flower Shop
0x11B Bandana (survive with 1 HP) item obtained at Shoal Cave
0x11D
0x11F Met Devon employee on route 116 - Repeat/Timer Balls announced
0x121 Silk Scarf obtained in Dewford
0x122 Steven met on Route 120
0x123 see 0x2DE
0x124 related to your rival when they're in their room
0x125 related to your rival when they're in their room
0x126 Abandoned Ship name discovered (unknown setter event, Scanner traded for DeepSea* ?)
0x127 related to 6th gym
0x128 Petalburg Mart upgraded
0x129 Miracle Seed obtained at Petalburg Woods
0x12A Beldum from Steven's house already obtained (don't respawn) (see 0x3C8,0x46D)
0x12B Return/Frustration TM already obtained this week
0x12C Return/Frustration man met in Pacifidlog
0x12D influences rival mom's dialogue
0x12E checked by letter in Steven's home
0x2D0 Prof Birch saved from Poochyena
0x2D1 disabled when Prof Birch saved from Poochyena
0x2D2 female player walking out of truck
0x2D6 Wally caught Ralts
0x2D7 disabled on entering HoF
0x2D8 Wally goes to catch Ralts
0x2DE disabled on entering HoF if 0x123 was unset
0x2E2 disabled when Mr Briney departing from Petalburg to Dewford
0x2E3 enabled when Mr Briney departing from Petalburg to Dewford
0x2E4 pokemon center
0x2E5 pokemon center
0x2E6 pokemon center
0x2EF disabled on entering HoF
0x2F2 Clock set in room
0x2F3 Clock set in room
0x2F6 female player walking out of truck
0x2F7 male player walking out of truck
0x2F8 male player walking out of truck
0x2F9 female player walking out of truck
0x2FA male player walking out of truck
0x30D disabled after 4th gym; enabled when League beat
0x310 male player walking out of truck
0x311 female player walking out of truck
0x320 fallarbor contest house: off
0x321 fallarbor contest house: off - Verdanturf reached: on
0x322 fallarbor contest house: off - Lilycove reached: on
0x323 fallarbor contest house: off
0x326 4th Gym leader defeated
0x328 disabled when Rusturf Tunnel lovers rejoined
0x32E enabled when visiting Mr Briney's home if 0xBC is enabled too
0x330 disabled when Kyogre awakened
0x333 Meteor Falls Magma/Aqua incident over
0x33C enabled when Kyogre awakened
0x33D enabled when Kyogre awakened
0x33F enabled when Kyogre awakened
0x354 Submarine departed with Archie/Maxie at Lilycove hideout
0x356 enabled when Kyogre awakened
0x357 disabled when Kyogre awakened
0x358 disabled when Kyogre awakened
0x35A Victory Road 1st room visited... only if 0x7E enabled
0x35B enabled when Kyogre awakened
0x35C disabled on entering HoF
0x35D disabled on entering HoF
0x362 disabled when Wally goes to catch Ralts
0x365 enabled on entering HoF
0x366 disabled when Lanette met in Fallarbor Pokemon center
0x371 enabled when Mr Briney departing from Petalburg to Dewford
0x372 Dock asked to forward Devon Goods to Stern
0x379 Wally goes to catch Ralts
0x37B Devon Goods recovered, Mr Briney rescued
0x37C disabled after exiting cleared Weather Institute
0x37D enabled after exiting cleared Weather Institute
0x37E Pokenav obtained
0x380 rival battled at Route 103
0x38F Lati*s battled at Southern Island
0x390 disabled when 5th badge obtained
0x391 5th badge obtained
0x396 Battle Tower island visited/some Battle Tower status, check map scripts of 26:4 and 26:5
0x39D disabled on entering HoF
0x3A5 Disabled when Fortree<>Mossdeep Mail Wingull departed from Mossdeep
0x3A6 Disabled when Fortree<>Mossdeep Mail Wingull departed from Fortree
0x3AC disabled when 5th badge obtained
0x3B0 disabled when Kyogre awakened
0x3B1 disabled when Kyogre awakened
0x3B2 enabled when Kyogre awakened
0x3B6 disabled on entering HoF
0x3B7 set when disembarking SS Tidal if 0x104 was on; speculation, boat visible in ports?
0x3B8 Shoal Salt availability (room 24:47 north)
0x3B9 Shoal Salt availability (room 24:47 south)
0x3BA Shoal Salt availability (room 24:48 with "multiple heights")
0x3BB Shoal Salt availability (room 24:49 linking to icy room)
0x3BC Shoal Shell availability (room 24:47)
0x3BD Shoal Shell availability (room 24:47)
0x3BE Shoal Shell availability (room 24:47)
0x3BF Shoal Shell availability (room 24:47)
0x3C2 Lilycove sales ongoing TEMP
0x3C3 Fossil available
0x3C4 Fossil available
0x3CD disabled when Kyogre awakened
0x3C7 enabled when Kyogre awakened
0x3C8 disabled on entering HoF if 12A was unset
0x3D3 disabled when Rival beaten on Route 103, enabled when meeting again in Oldale
0x3D4 Seafloor Cavern underwater entrance visited after Submarine departed (0x81)
0x3D8 disabled when Rusturf Tunnel lovers rejoined
0x3DF
0x46D Beldum from Steven's house obtained (hide ball)
0x4B1 1st gym leader defeated
0x4B4 2nd gym leader defeated
0x4B8 3rd gym leader defeated
0x4BD 4th gym leader defeated -- Wally leaves Verdanturf
0x4C1 5th gym leader defeated
0x4C9 6th gym leader defeated
0x4CD 7th gym leaders defeated
0x4D4 8th gym leader defeated
0x4DD Elite 4 1st trainer defeated
0x4DE Elite 4 2nd trainer defeated
0x4DF Elite 4 3rd trainer defeated
0x4E0 Elite 4 4th trainer defeated
-0x500 to maybe 0x7FF are trainer defeat flags -- pokeruby disasm
0x800 Pokemon [menu] obtained
0x801 Pokedex [menu] obtained
0x802 Pokenav [menu] obtained
0x804 League beaten
0x805 Text input used
0x806 sys_hipster_meet -- pokeruby disasm
0x807 1st badge obtained
0x808 2nd badge obtained
0x809 3rd badge obtained
0x80A 4th badge obtained
0x80B 5th badge obtained
0x80C 6th badge obtained
0x80D 7th badge obtained
0x80E 8th badge obtained
0x80F Littleroot reached
0x810 Oldale reached
0x811 Dewford reached
0x812 Lavaridge reached
0x813 Fallarbor reached
0x814 Verdanturf reached
0x815 Pacifidlog reached
0x816 Petalburg reached
0x817 Slateport reached
0x818 Mauville reached
0x819 Rustboro reached
0x81A Fortree reached
0x81B Lilycove reached
0x81C Mossdeep reached (actually walked through the city wall, not just map loaded)
0x81D Sootopolis reached
0x81E Evergrande reached (actually surfed past the waterfall, not just map loaded)
0x818 Record Corner unlocked
0x828 flash enabled? -- pokeruby disasm
0x829 Strength enabled
0x82A Severe weather in east Hoenn
0x82B Cycling Road; forcing bike mode
0x83A checked on load of Shoal Cave 24:47
0x83B [Pokenav menu] Ribbon obtained
0x83C Pretty Petal Flower Shop visited
0x83D Mr Briney's home visited
0x83E Abandoned Ship outer deck 24:54 visited
0x83F Slateport Beach House (?) visited
0x840 New Mauville entrance cave 24:52 visited
0x841 Old Woman's Hostel (?) the infinite loop healing house above the desert visited
0x843 Winstrate family member spoken to
0x844 glass blower (?)'s home visited
0x845 Lanette's home visited
0x846 Daycare visited
0x847 Seafloor Cavern underwater entrance visited
0x848 Battle Tower island visited
0x849 Southern Island visited
0x84A Fiery Path visited
0x84B Lanette met at her home
0x84C Mystery Gift enabled
0x84F Sealed Chamber wall dug
0x850 Regirock's room unlocked
0x851 Registeel's room unlocked
0x852 Regice's room unlocked
0x853 must be on to fight Lati*s event at Southern Island
0x854 Pokemon League building visited
0x855 Registeel's cave visited
0x856 Regirock's cave visited
0x857 Fossil Maniac's home visited
0x858 Scorched Slab (? the cave with the sunny day TM) 24:73 visited
0x859 Regice's cave visited
0x85A Rusturf Tunnel Inn visited
0x85B Shard Trader's home visited
0x85C Sealed Chamber braille alphabet room 24:71 visited
0x85D enabled on entering HoF if 0xFF unset
0x85E Sky Pillar entrance cave 24:77 visited
0x85F involved with the Shell Bell making man
0x860 Running Shoes obtained
0x861 checked in map 24:75 (master ball location) script, also 24:85 (Rayquaza room), etc - for making charas disappear?, New Mauville...
0x862 Title-screen RTC reset enabled (see variable 0x402C)
0x863 Berry Master's home visited
0x8C1 Berry Blender's (?) free berry obtained today
0x8CA ID number Lottery played today
0x8CB Berry obtained from guy near Lanette's home today
0x8CC Berry obtained from woman on Route 111 today
0x8CD Berry Master's berries obtained today
0x8CF Berry obtained from Lilycove man today
0x8D0 Pretty Petal Flower Shop' berry obtained today
0x8D1 Berry Master Wife's berry obtained today
0x8D2 Berry obtained from Kira in Sootopolis today
Variables are a lot less curated...
0x4001 0x01 for earthquakes in Cave of Origin -- THIS BLOCK IS LOCAL/TEMP
0x4002 0x01 for earthquakes in Cave of Origin
0x4003 0x01 for earthquakes in Cave of Origin
0x4004 0x01 for earthquakes in Cave of Origin
0x4005 0x01 for earthquakes in Cave of Origin
0x4011 0x75 entered Petalburg Woods -- THIS BLOCK IS LOCAL/TEMP
0x4012 0x76 entered Petalburg Woods
0x4014 0x77 entered Petalburg Woods
0x4015 0x78 entered Petalburg Woods
0x4016 0xC3 entered Petalburg Woods
0x4017 0xC4 entered Petalburg Woods
0x402C 0x920 Title-screen RTC reset enabled (see flag 0x862)
0x402D * e-reader berries?
0x402D 0x0 Received Enigma Berry from Norman
0x4044 * Trick House active room (number of puzzles cleared)
0x4044 0x8 Trick House cleared, Trick Master gone
0x4045 * Unclaimed prize of ID number lottery (Item number)
0x4048 * Volcanic Ash amount
0x4053 0x1 4th Gym leader defeated
0x405A 0x1 1st Gym leader defeated
0x405A 0x4 Devon Goods recovered, Mr Briney rescued
0x405E 0x1 Kyogre awakened
0x4060 0x3 Prof Birch saved from Poochyena
0x4062 0x1 Rival battled on Route 103
0x4069 0x1 rival battled on Route 110?
0x406F 0x2 Briney met outside Rusturf Tunnel, Peeko stolen
0x4071 0x1 Steven met on route 118
0x4074 0x1 Enemy team ran from Safari Zone to Mt Pyre
0x4082 0x1 female player walking out of truck
0x4084 0x2 Prof Birch saved from Poochyena
0x4084 0x3 prof Birch is back at the lab
0x4084 0x4 Rival battled on Route 103
0x4085 * controls Norman's gym? 1 added after 4th gym and then checked if == 6?
0x4085 0x1 Wally goes to catch Ralts
0x4085 0x2 Wally caught Ralts
0x4085 0x3 1 badge won
0x4085 0x4 2 badges won
0x4085 0x5 3 badges won
0x4085 0x6 Norman battleable
0x4085 0x7 Norman defeated
0x4086
0x4087 * Gate in front of Colosseum/Trade Center/Record Corner is open
0x4087 0x0 Entering multiplayer floor of Pokemon Center
0x4087 0x1 Returning from multiplayer Colosseum
0x4087 0x2 Returning from multiplayer Colosseum
0x4087 0x3 Returning from multiplayer Trade Center
0x4087 0x4 Returning from multiplayer Records Corner
0x4087 0x5 Returning from multiplayer Colosseum
0x4089 0x1 something involved with decorations (Secret Bases and player's room)
0x408C 0x2 male player walking out of truck
0x408E 0x1 Mr Briney departing from Petalburg to Dewford
0x4090 0x1 Devon Goods recovered, Mr Briney rescued
0x4092 0x1 male player walking out of truck
0x4092 0x2 female player walking out of truck
0x4092 0x4 sent to bedroom to set clock
0x4092 0x6 clock set
0x4094 * Lilycove Museum owner met 0/1
0x4095 * Pokemon Trainers Fan Club
0x4096 * set by Pokemon Center map scripts to itself/1/2/3
0x4097 0x1 set before "create secret base here?" question
0x4098 0x1 Devon researcher rescued at Petalburg Woods
0x409A 0x6 Rusturf Tunnel lovers rejoined
0x409C 0x0 Reset on entering HoF, probably something I ignored from the League rooms
0x40A2 0x1 Kyogre awakened
0x40A3 0x1 Cable Car going up
0x40A3 0x2 Cable Car going down
0x40A4 0x2 now in Safari Zone
0x40A6 * some Trick House data
0x40A7 * some Trick House data
0x40AB * Trick House puzzle: password obtained (0/1, 2 is checked by map script!?)
0x40B3 0x1 Weather Institute Magma/Aqua incident over
0x40B3 0x2 Weather Institute Magma/Aqua incident over, and building left
0x40B4 0x2 Boarded SS Tidal
0x40B4 0x4 SS Tidal arrived at Slateport
0x40B4 0x7 SS Tidal still at sea
0x40B4 0x8 SS Tidal arrived at Lilycove
0x40B6 * some Trick House data for the arrow-tile puzzle
0x40B7 * Pokemon Fan Club president's action 0 first time/1 introduced/2 award scarfs
0x40BA 0x2 New Mauville generator stopped
0x40BC 0x0 Battle Tower outdoor map loaded
0x40BD 0x0 set on Route 112
0x40BD 0x1 enables Battle Tower battle mode?
0x40BD 0x1 enables weather 6 on Jagged Pass
0x40BE * interaction status with glass blower (?), check map 30:0
0x40BE 0x1 Soot Sack obtained
0x40BF 0x1 Meteor Falls Magma/Aqua incident over
0x40C1 0/1 Trick House prize unclaimed since bag/secret base PC is full
0x40C3 0x1 Wally defeated at the end of Victory Road
0x40C4 * involved with Devon middle floor scientists
0x40C6 0x1 kyogre awakened or League beaten
0x40C7 0x1 Rival battled on Route 103
0x40C7 0x2 Rival met in Oldale
0x8004 0x112 Letter given to Steven -- POSSIBLY LOCAL/TEMP
0x8008 0x1 LOCAL/TEMP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment