the cutting room mirror

en

This article has a talk page!
view on tcrf.net

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

Description#

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.

[x]

F

E

D

C

B

A

9

8

7

6

5

4

3

2

1

0

0

Met Deku Tree

Played Saria's Song for Mido as Adult

Used Blue Warp in Gohma's Lair

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 Royal Family's Tomb

Spoke to Mido After Deku Tree's Death

Rented Horse From Ingo

Obtained Kokiri's Emerald

Obtained Epona

Deku Tree 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's Return

Spoke to Child Malon at Castle or Market

2

Death Mountain Erupted

Obtained Goron's Ruby

Bombed Dodongo's Cavern Entrance

3

Finished Nabooru Battle

Began Nabooru Battle

Offered Fish to Jabu-Jabu

Opened Entrance to Zora's Domain

Obtained Silver Scale

Obtained Zora's Sapphire

King Zora Moved Aside

Obtained Ruto's Letter

Spoke to a Zora

4

Entered the Master Sword Chamber

Caught by Hyrule Castle Guards

Rainbow Bridge Built by Sages

Opened Door of Time

Obtained Water Medallion

Obtained Fire Medallion

Obtained Forest Medallion

Drew Master Sword From Pedestal

Obtained Ocarina of Time

Obtained Zelda's Letter

5

Learned Song of Storms

Learned Sun's Song

Learned Zelda's Lullaby

Sheik Moved From Sword Pedestal

Learned Nocturne of Shadow

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 Level

Played Gerudo Archery Minigame

Drained Well in Kakariko Village

Played Song of Storms in Windmill

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

10

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

11

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

12

Returned to Temple of Time

Obtained Spirit Medallion

Watched Ganon's Tower Collapse / Caught by Gerudo

Spoke to Deku Tree Sprout

Returned to Temple of Time by Rauru

Returned to Temple of Time With All Medallions / Played Scarecrow's Song to Bonooru?

Dispelled Ganon's Tower Barrier

Spoke to Saria on Lost Woods Bridge

Nabooru Ordered to Fight by Twinrova

13

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

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

0

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

1

Spoke to Kokiri Girl by Jumping Stones

Told Mido Saria Won't Return

Spoke to Mido in Lost Woods as Adult

2

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

3

Spoke to Kokiri Boy on Bed in Mido's House

4

5

Spoke to Know-It-All Bro. About Temple

Spoke to Kokiri Girl in Saria's House

6

Spoke to Dying Knight

Spoke to Deku Tree Sprout After Cutscene

Spoke to Know-It-All Bro. About Saria

7

Spoke to Talon in Lon Lon Ranch House

Gate Guard Put On Keaton Mask

Showed Zelda's Letter to Gate Guard

8

Entered Hyrule Castle

Child Malon Said Epona Was Afraid of You

Spoke to Child Malon at Castle or Market

9

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

Spoke to Carpenter Boss by Tent

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

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 Cavern

15

Spoke to Goron Shop Owner

Spoke to Ruby-Crazed Goron

Spoke to Goron at City? Entrance

16

Spoke to Goron Link

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

Spoke to Green Carpenter in Tent

Spoke to Blue Carpenter in Tent

Spoke to Carpenter Boss in Kakariko

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