If you appreciate the work done within the wiki, please consider supporting The Cutting Room Floor on Patreon. Thanks for all your support!

Proto:The Legend of Zelda: Ocarina of Time Master Quest/Event Editor

From The Cutting Room Floor
Jump to navigation Jump to search
This page contains changes which are not marked for translation.
Other languages:
English


This is a sub-page of Proto:The Legend of Zelda: Ocarina of Time Master Quest.

Description

OoTEventEditor.png

Ocarina of Time uses flags in order to track which events have occurred in a playthrough. When the player takes certain actions, such as triggering an event that advances the plot, talking to a particular NPC, or obtaining a particular item, the flags linked to these actions will change from 0 to 1. The Event Editor allows the flags to be turned off and on manually, affecting what the game thinks the player has done in their save file.

Flags are categorized by four different types of tables, described in their respective sections. Each table contains 0x0F (16) flags, represented by zeroes. For example, the last zero in event_chk_inf[4] is the flag that tracks whether or not Link has received Zelda's Letter. Changing this flag from 0 to 1 makes the game believe that the aforementioned event has occurred.

Haven't Received Letter Have Received Letter
event_chk_inf[4] event_chk_inf[4]
0000 0000 0000 0000 0000 0000 0000 0001

Mapping Flags

If you plan to test event flags in order to find out what triggers them, you may want to keep the following in mind:

  1. Sometimes, a single action turns on more than one event flag. Each time you perform an action, check every flag table to make sure you don't miss any!
  2. The Debug ROM's save file already has some flags set by default. Every time you use map select, the flags will be reset to these defaults. You can avoid the flags resetting by using an exit code to travel around the game, rather than map select.
    • Use these codes with an Exit List.
    • Edits Fairy Fountain -> Ganon's Castle Exit (Adult): 813C0288 XXXX
    • Edits Gerudo's Fortress -> Gerudo Valley Exit (Child): 813BE534 XXXX
  3. Using the event editor to turn on an event flag for receiving an item won't make that item appear in your inventory. Items must be added manually via the inventory editor.

Happy hunting!

Untested Events

  • Learn Saria's Song/Speak to Saria in Sacred Forest Meadow.
  • Check all Kokiris in Kokiri Forest as adult both before and beating Phantom Ganon, also check what flag causes Kokiri Forest to be infested with monsters.
  • Buy the Broken Goron Sword.
  • Obtain the Fire Arrows.
  • Steal the fisherman's hat and throw it in the water.
  • Find the Sinking Lure.
  • Catch the Hylian Loach.
  • Obtain all possible prizes at the Shooting Gallery.
  • Obtain all possible prizes at the Bombchu Bowling Alley.
  • Obtain all possible prizes at the Treasure Chest Shop.
  • Obtain all possible prizes at the Gerudo Archery Range.
  • Complete certain goals in temples (save the Gorons, kill the Poe Sisters, etc.).
  • Beat the Bottom of the Well boss.
  • Beat Ganon.

Access

To access the Event Editor, perform the following steps:

  1. Open the Debug ROM and enter a save file.
  2. Turn on the code below:
    • D01665C1 0010
    • 80222957 0003
  3. Press R on Controller 1 to bring up the Event Editor.
  4. Press L on Controller 1 to close it.


(Source: Code - fkualol & PPLToast)

Controls

The Event Editor is controlled with Controller 1.

Button Effect Button Effect
R Bring Up Event Editor D-Up Next Flag Table
L Close Event Editor D-Down Previous Flag Table
A Turn Flag On/Off D-Left Next Flag
D-Right Previous Flag

event_chk_inf

The flags in the Event Check Info table track which story events have taken place.

  • Legend:
    • Red Background: Not set or referenced by any code in the final game.
    • Yellow Background: Unused in normal gameplay, but set or referenced by code. Almost all of these are set by the early flag list, save for the ones noted in the section below.
    • Italics: Defined in the early flag list.
    • Asterisk: Set for the debug save file.
[x] F E D C B A 9 8 7 6 5 4 3 2 1 0
0 Spoke to Mido w/ Zelda's Letter* Met Deku Tree* Deku Tree Sprout Information Flag* Played Saria's Song for Mido as Adult* Used Deku Tree Blue Warp* Triforce Legend Cutscene Obtained Kokiri Emerald & Deku Tree Dead* Spoke to Saria After Deku Tree's Death Deku Tree Opened Mouth* Showed Mido Sword & Shield* Complained About Mido to Saria* First Spoke to Mido* * *
1 Won the Cow in Malon's Race* Destroyed the Royal Family's Tomb* Spoke to Mido After Deku Tree's Death* Rented Horse From Ingo* Obtained Kokiri's Emerald Obtained Epona* Great Deku Tree is Dead Invited to Sing With Child Malon* Spoke to Child Malon at Ranch* Talon Fled Hyrule Castle* Woke Talon* Obtained Pocket Egg* Spoke to Ingo at Ranch before Talon returns* Spoke to Child Malon at Castle or Market*
2 Death Mountain Erupted* Rescued Goron F Rescued Goron E* Rescued Goron D* Rescued Goron C* Rescued Goron B* Rescued Goron A Moved God Statue Passage to Fire Temple OK Goron Sobs Used Dodongo's Cavern Blue Warp* Defeated Boss Dodongo Bombed Dodongo's Cavern Entrance* Darunia Approves Use of Bomb Flowers* Goron Shopkeeper's Request* Spoke w/ Goron F Flag*
3 Finished Nabooru Battle* Began Nabooru Battle* Offered Fish to Jabu-Jabu* Opened Entrance to Zora's Domain* Obtained Silver Scale* Used Jabu-Jabu Blue Warp* Water Temple Room [9] {Blue} Nerve Cut Water Temple Room [8] {Green} Nerve Cut Water Temple Room [5] {Red} Nerve Cut King Zora Moved Aside* Spoke w/ Zora C Flag* Obtained Ruto's Letter* Spoke to a Zora*
4 Entered the Master Sword Chamber* Caught by Hyrule Castle Guards* Rainbow Bridge Built by Sages* [Set by Impa; Unread]* Opened the Door of Time* Used Water Temple Blue Warp* Used Fire Temple Blue Warp* Used Forest Temple Blue Warp* First Drew Master Sword as Adult Spiritual Stones' Sparkle Gone Pulled Master Sword from Pedestal* Message Left by Princess Zelda Obtained Ocarina of Time* Zora or Goron Gate Guard Opened Path* Showed Princess Zelda's Letter to Zora or Goron Gate Guard* Obtained Zelda's Letter*
5 Obtained Shadow Medallion Obtained Light Medallion Obtained Spirit Medallion Obtained Wind Medallion* Learned Song of Storms* Learned Sun's Song* Learned Zelda's Lullaby* Learned Saria's Song Sheik Moved From Sword Pedestal* Learned Nocturne of Shadow* Learned Gospel of Spirit Learned Serenade of Water* Learned Bolero of Fire* Learned Minuet of Forest*
6 Spoke to Kaepora Gaebora by Lost Woods* * Spoke to Talon After Saving Ranch* Woke Talon in Kakariko* Restored Lake Hylia's Water* Played Gerudo Archery Minigame* Drained Well in Kakariko Village* Ganon's Tower Appears Played Song of Storms in Windmill* Kakariko Village Fire Extinguished Kakariko Village Burning Nabooru Kidnapped Caravan A Built Bridge at Gerudo Valley Gave Master's Saw to Caravan A
7 Began Ganondorf Battle* Began Bongo Bongo Battle* Began Barinade Battle* Began Twinrova Battle* Began Morpha Battle* Began Volvagia Battle* Began Phantom Ganon Battle* Began King Dodongo Battle* Began Gohma Battle*
8 Paid Back Bunny Hood Fee* Paid Back Spooky Mask Fee* Paid Back Skull Mask Fee* Paid Back Keaton Mask Fee* Bridge Unlocked (After Zelda Escape Cutscene)* Zelda Fled Hyrule Castle*
9 Played Song for Scarecrow as Adult* Spoke to Cursed Man in Skulltula House* Nabooru Captured by Twinrova* Spoke to Nabooru in Spirit Temple* Rescued Green Carpenter* Rescued Blue Carpenter* Rescued Yellow Carpenter* Rescued Red Carpenter*
A Completed Spirit Trial* Learned Requiem of Spirit* Bongo Bongo Escaped Well* Learned Song of Time* Entered Deku Tree* Entered Temple of Time* Entered Goron City* Entered Hyrule Castle* Entered Zora's Domain* Entered Kakariko Village* Entered Death Mountain Trail* Entered Hyrule Field*
B Completed Light Trial* Completed Fire Trial* Completed Shadow Trial* Completed Water Trial* Completed Forest Trial* Entered Ganon's Castle (Exterior)* Entered Death Mountain Crater* Entered Desert Colossus* Entered Zora's Fountain* Entered Graveyard* Entered Jabu-Jabu's Belly* Entered Lon Lon Ranch* Entered Gerudo's Fortress* Entered Gerudo Valley* Entered Lake Hylia* Entered Dodongo's Cavern*
C Demo_Effect, Temple of Time Warp in blue aura + sfx the first time you spawn as Adult * Obtained Spirit Medallion* Watched Ganon's Tower Collapse / Caught by Gerudo* Spoke to Deku Tree Sprout* Sheik, Spawned at Master Sword Pedestal as Adult* Returned to Temple of Time With All Medallions* Dispelled Ganon's Tower Barrier* Spoke to Saria on Lost Woods Bridge* Nabooru Ordered to Fight by Twinrova*
D Obtained Skulltula House's Piece of Heart* Obtained Skulltula House's Bombchu* Obtained Giant's Wallet* Obtained Stone of Agony* Obtained Adult's Wallet* Played Song of Storms for Frogs* Played Song of Time for Frogs* Played Saria's Song for Frogs* Played Sun's Song for Frogs* Played Epona's Song for Frogs* Played Zelda's Lullaby for Frogs* Obtained Frogs' Piece of Heart*

Flags Referenced Outside Early Text Routine

22

This flag is defined by the early flag list as "Darunia Approves Use of Bomb Flowers". En_Du, Darunia's actor, contains code which sets the flag after Darunia says the following message (which was overwritten with Darunia's response to Link playing a melody other than Saria's Song).

ID Message
3020
Well, that's not quite what I 
was looking for...

I wanted to hear...a tune...
something...um...from outside 
the mountains...something...
green...natural...

That's the kind of music I want 
to hear...

It's also referenced by the early text routine.

In the final game, the flag is never read from.

4C

This flag is not defined by the early flag list. Demo_Im, Impa's actor, contains an unused function that checks whether Link has obtained Zelda's Letter, then branches to the unused function which sets the flag.

Missing Flags

For whatever reason, entering the following locations doesn't set any particular flag:

  • Spot 03 - Zora's River
  • Spot 04 - Kokiri Forest
  • Spot 05 - Sacred Forest Meadow
  • Spot 10 - Lost Woods
  • Spot 13 - Haunted Wasteland

item_get_inf

The flags in the Item Get Info table track which items have been obtained.

[x] F E D C B A 9 8 7 6 5 4 3 2 1 0
0 Obtained Biggest Quiver* Obtained Big Quiver* Obtained Bullet Bag Upgrade (Market)* Obtained Cucco Lady's Bottle* Obtained Scrub's Heart Piece* Bought Bombchu (Shelf 2: Top Left)* Bought Bombchu (Shelf 1: Bot. Left)* Bought Bombchu (Shelf 1: Top Right)* Bought Bombchu (Shelf 2: Bot. Right)* Bought Bombchu (Shelf 2: Bot. Left)* Bought Bombchu (Shelf 1: Top Left)* Bought Bombchu (Shelf 1: Bot. Right)* Bought Bombchu (Shelf 2: Top Right)* Obtained Super Cucco Bottle*
1 Obtained Deku Nut Upgrade (Stage)* Obtained Deku Stick Upgrade (Stage)* Obtained Bullet Bag Upgrade (Woods)* Obtained Grave-Dig Heart Piece* * Obtained Nayru's Love* Obtained Din's Fire* Obtained Farore's Wind* Obtained Skullkids' Heart Piece* Obtained Skullkid's Heart Piece* Obtained Roof Guy's Heart Piece* Obtained Deku Seeds* Obtained Bowling Heart Piece* Obtained Bowling Bomb Bag Upgrade* Obtained Scientist's Heart Piece*
2 Obtained Cojiro* Obtained Pocket Egg* Obtained Mask of Truth* Obtained Bunny Hood* Obtained Spooky Mask* Obtained Skull Mask* Obtained Keaton Mask*
3 Obtained Mask of Truth* Sold Bunny Hood* Sold Spooky Mask* Sold Skull Mask* Sold Keaton Mask* Obtained Poacher's Saw* Obtained Odd Potion*

inf_table

The flags in the Info table mostly track which NPCs Link has spoken to.

[x] F E D C B A 9 8 7 6 5 4 3 2 1 0
00 * Mido Asked to See Sword & Shield* Spoke to Saria in Saria's House* Complained About Mido to Saria* Spoke to Saria About Obtaining Fairy* Greeted by Saria*
01 Spoke to Kokiri Girl by Jumping Stones* Told Mido Saria Won't Return* * Spoke to Mido in Lost Woods as Adult* *
02 * * * * Spoke to Kokiri Girl About Training Center* Spoke to Kokiri Girl on Shop Awning* Spoke to Kokiri Boy Cutting Grass* Spoke to Kokiri Boy Guarding Forest Exit*
03 Spoke to Kokiri Boy on Bed in Mido's House *
04 ^* ^*
05 Spoke to Know-It-All Bro. About Temple* Spoke to Kokiri Girl in Saria's House*
06 Spoke to Dying Knight* * Spoke to Deku Tree Sprout After Cutscene* Spoke to Know-It-All Bro. About Saria*
07 Spoke to Talon in Lon Lon Ranch House?* Gate Guard Put On Keaton Mask* Showed Zelda's Letter to Gate Guard* ^*
08 Took Out Ocarina in Front of Adult Malon* ^* Played Epona's Song For Adult Malon* Spoke to Child Malon After Waking Talon* Child Malon Said Epona Was Afraid of You* Spoke to Child Malon at Castle or Market*
09 Spoke to Ingo as Adult* Spoke to Ingo at Ranch* Spoke to Ingo at Ranch Before Talon's Return*
10 Rode a Horse at Ingo's Ranch* Refused Ingo's 50 Rupee Rental Request*
11 Obtained Poacher's Saw* Spoke to Malon on Horseback* Spoke to Malon After Saving Ranch* Spoke to Fado in Kokiri Forest as Child* Spoke to Poe Collector in Ruined Market* Biggoron Asked For Eye Drops* Spoke to Medigoron as Adult* Spoke to Medigoron as Child*
12 Spoke to Thin Lady After Zelda's Escape (DBG)?* Spoke to Blue Jokester in Market (DBG)?* Spoke to Itchy Lady After Malon Left Town* Spoke to Blue Joker in Market (1.0) / Dog Lady as Adult (DBG)?* Spoke to Red Joker in Market* Spoke to Thin Lady After Zelda's Escape (1.0)?* Spoke to Thin Lady by Bombchu Bowling* Spoke to Old Man by Bombchu Bowling* Spoke to Old Woman by Market Fountain* Spoke to Thin Man by Market Target Shop* Spoke to Thief After Zelda's Escape* Spoke to Burly Man After Zelda's Escape* Spoke to Burly Man About Talon Search* Spoke to Fat Woman After Zelda's Escape* Spoke to Fat Woman by Market Potion Shop*
13 Spoke to Dampé as Child* * * * * *
14 Spoke to Goron by Bomb Flowers* Spoke to Goron by Woods Exit* Spoke to Goron Hiding Stick* Spoke to Goron by Dodongo's Cavern*
15 Spoke to Goron Shop Owner* Spoke to Goron Giving Hint Towards Saria's Song* Spoke to Ruby-Crazed Goron* Spoke to Goron at City Entrance*
16 Spoke to Goron Link After Clearing Fire Temple* Spoke to Goron Link About Fire Temple* Spoke to Goron Link About Ganondorf* Stopped Goron Link's Rolling* Spoke to Goron Link About Volvagia* ^* Goron City Doors Unlocked*
17 Obtained Bomb Bag Upgrade (Goron City)* Spoke to Darunia in Fire Temple* Spoke to Darunia in Goron City*
18 * Spoke to Zora Swimming Behind Zora Shop* Spoke to Zora Beside Zora Shop? Spoke to Zora Near Zora Shop?*
19 Obtained Zora Tunic* Thawed King Zora*
20 Ruto in JJ, Spawns on F1 Instead of B1* Ruto in JJ (M6) Kidnapped* Ruto in JJ (M6) on Sapphire platform* Ruto in JJ (?) Wants to be Tossed to Sapphire* Ruto in JJ (M10) Can Be Escorted* Ruto in JJ (M3) Talk First Time* Ruto in JJ (M2) Meet Ruto* Ruto in JJ (M7) on Blue Switch*
21
22 Refused Nabooru's Request* * * Spoke to Carpenter Boss's Wife as Adult* Spoke to Carpenter Boss's Wife as Child* Spoke to Man in Impa's House as Adult* Spoke to Man in Impa's House at Night* Spoke to Man in Impa's House During Day*
23 Running Man Suggested a Race* Declined Selling Bunny Hood to Running Man* Spoke to Green Carpenter in Tent* Spoke to Blue Carpenter in Tent* Spoke to Carpenter Boss in Kakariko* Declined Giving Poacher's Saw to Carpenter Boss* Spoke to Carpenter Boss in Valley*
24 ^
25 Caught Cucco Behind Potion Shop* Caught Cucco by Skulltula House* Caught Cucco in Crate* Caught Cucco Behind Windmill* Caught Cucco by Cucco Pen* Caught Cucco by Bazaar* Caught Cucco by Field Entrance* Obtained Small Magic Jar* Spoke to Cursed Man With 10 Tokens* Spoke to Cursed Man With <10 Tokens* Spoke to Kaepora in Lake Hylia* Obtained Deku Nut Upgrade (Grotto)* Obtained Deku Stick Upgrade (Lost Woods)* Obtained Dog Lady's Piece of Heart* Obtained Gerudo Archery Piece of Heart*
26 Entered Ganon's Castle (Collapsing) Entered Ganon's Tower (Collapsing) Entered Ganon's Castle* Entered Thieves' Hideout Entered Gerudo Training Ground* Entered Ganon's Tower Entered Ice Cavern* Entered Bottom of the Well* Entered Shadow Temple* Entered Spirit Temple* Entered Water Temple* Entered Fire Temple* Entered Forest Temple* Entered Jabu-Jabu's Belly* Entered Dodongo's Cavern* Entered Deku Tree*
27
28
29 (Reset When Sword Acquired) (Reset When Sword Acquired) (Reset When Sword Acquired) (Reset When Sword Acquired) (Reset When Sword Acquired) (Reset When Sword Acquired) (Reset When Sword Acquired) (Reset When Sword Acquired) (Reset When Sword Acquired) (Reset When Sword Acquired) (Reset When Sword Acquired) (Reset When Sword Acquired) (Reset When Sword Acquired) (Reset When Sword Acquired) (Reset When Sword Acquired) No Sword on B

event_inf

[x] F E D C B A 9 8 7 6 5 4 3 2 1 0
0 Rented Horse From Ingo Won Special Cucco Minigame? Finished Special Cucco Minigame / Began Gerudo Archery Racing Ingo For the Second Time Lost Race With Ingo? Won First Race With Ingo? Racing Ingo Rented Horse From Ingo
1 Racing Running Man
2 Market Crowd Text Randomizer Market Crowd Text Randomizer Market Crowd Text Randomizer Market Crowd Text Randomizer Market Crowd Text Randomizer
3 Entered the Market