Jump to content

On Ocarina Commands


mzxrules
 Share

Recommended Posts

So I've been looking into the scene data for the debug version / 1.0 with a custom program of mine, and I've figured out some things about command 19.

 

According to spinout's wiki, the command is used in the form 19XX0000 000000YY

 

I figured out the purpose of the YY component; it's used to set your location on the overworld map.

 

 

00 hyrule field / not applicable

01 kakariko

02 grave

03 zora river

04 kokiri forest

05 sacred forest meadow

06 lake hylia

07 zora's domain

08 zora's fountain

09 gerudo valley

0A Lost woods

0B Desert Colossus

0C Gerudo Fortress

0D Haunted Wasteland

0E Market

0F Hyrule castle

10 death mountain trail

11 Death Mountain Crater

12 Goron City

13 Lon Lon Ranch

14 ? (Windmill/Dampe's Grave)

15 Ganon's Castle

16+ Undefined

 

The XX component is somewhat mysterious, but there is some sort of relationship here...

 

ID - XX - Scene Name

 

44 - 10 - Kakariko Bazaar

45 - 10 - Kokiri Shop

46 - 10 - Goron Shop

47 - 10 - Zora Shop

48 - 10 - Kakariko Potion Shop

49 - 10 - Market Potion Shop

50 - 10 - Bombchu Shop

51 - 10 - Happy Mask Shop

38 - 20 - Know-it-all Brothers

39 - 20 - House of Twins

40 - 20 - Mido's House

41 - 20 - Saria's House

42 - 20 - Kakariko Village House

43 - 20 - Back Alley Village House

52 - 20 - Link's House

53 - 20 - Puppy Woman's House

54 - 20 - Stables

55 - 20 - Impa's House

57 - 20 - Carpenter's Tent

27 - 30 - Market Entrance - Day

28 - 30 - Market Entrance - Night

29 - 30 - Market Entrance - Adult

30 - 30 - Back Alley - Day

31 - 30 - Back Alley - Night

35 - 30 - Outside Temple of Time - Day

36 - 30 - Outside Temple of Time - Night

37 - 30 - Outside Temple of Time - Adult

58 - 30 - Gravekeeper's Hut

32 - 40 - Market - Day

33 - 40 - Market - Night

34 - 40 - Market - Adult

66 - 50 - Shooting Gallery

 

00 is used in scenes which don't rely on pre-rendered environments, and have free c-up camera control.

10 is used with shop scenes, which have a fixed camera that switch between two views, and no c-up option

20 is used in scenes which have pre-rendered backgrounds that can rotate, where pressing c-up gives you a bird eye view.

30 is used in scenes which have pre-rendered backgrounds that are fixed, no c-up option.

40 is used in scenes which have a pre-rendered backgrounds that rotate, but have no c-up option.

50 is used in the shooting gallery.

 

Setting this value to 20 has the most consistent effects. You can use c-up in most areas which normally have c-up locked. The camera also behaves differently depending on the scene.

  • Like 4
Link to comment
Share on other sites

This is good and will be useful for me at least. I remember having a little trouble with this before when using jpeg backgrounds but I don't think I ever actually documented it at all, so thanks. This may also help to find where the scrolling backgrounds (ex. Link's house) are since I don't think those were actually found in the ROM yet, or at least weren't referenced in maps/scenes iirc.

Link to comment
Share on other sites

  • 2 weeks later...

Been playing with the 0x08 command. It seems to affect various gameplay settings... Right now it looks as if it has the form 08xx0000 ????????.  xx- 01 prevents Sun's Song time effect- 02 can use the Sun's Song, disables Link's ability to backflip. Used in the Treasure Box Shop.- 05 can use the Sun's Song Not a whole lot, but a start. 

 

Here's a video showing off a weird effect that occurs in the release version. xx is set to 01 in the room I play the sun's song in, and twinrova's chamber has xx set to 05. 

  • Like 2
Link to comment
Share on other sites

Found more on the mysterious second word of the 0x08 command. Based on my scene printouts and poking, it looks to have the form

 

08xx0000 0000yyzz.

 

I figured out what the zz portion... I set it to what I thought was a garbage value, and tried running around zora's domain, scratching my head trying to see what changed when I stopped to check other things. When I came back to the game Link was getting on top of an invisible horse...

 

It affects Link's idle animation! This changes one of the idle animations depending on it's value... except for 03, which does something completely different... it sets a map as being too hot to explore without the Goron Tunic.

 

00 - Link tends to stand in place and glance back at the player

01 - Link's cold sneeze

02 - Link wipes his head

03 - Triggers the Heat timer! Camera seems to move in and out rapidly, and ever so slightly for the "heat" effect

04 - Link stretches and yawns?

06 - ?

07 - Bends over and gasps for breath

09 - Brandishes sword even if not equipped

0A - Re-adjusts his tunic?

 

FF - Link hops on Epona (even as a child)

 

I don't know what the yy does yet... it's set to 01 in maps 0/2 in Shadow, and 00 in map 1, but I can't see any difference.

 

Lastly, I'm not sure what purpose an xx of 05 serves. Every boss map is set to this value though... curious.

  • Like 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.