Primary Zelda Hacking
April 21, 2014, 09:25:31 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: There is now an official Primary Zelda Hacking Press!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How the Intro 'Talk-to-all-NPCs' Works  (Read 355 times)
Lin
ZOLE Creator
Administrator
Hero Member
*****
Online Online

Posts: 580



View Profile
« on: June 08, 2011, 09:02:37 AM »

I was checking out the script home to NPC 3C00 (The NPC in the intro who says "Shhh! I can't hear Nayru sing!") and I noticed he ORs CFDE by 04. What this does is sets it so you've talked to this specific NPC, and once you talk to all of them CFDE should equal a certain value. Why CFDE? It's out of the viewable map data, so it won't get changed when loading another map but also won't get saved when you exit the game.

Pretty cool and I just decided to share.

~Lin
Logged
Jigglysaint
Hacking Guru
Full Member
*****
Offline Offline

Posts: 150


View Profile
« Reply #1 on: June 08, 2011, 03:24:32 PM »

Furthermore, I noticed that the interaction in Seasons where you have to open chests in the right order in level 5 uses data from there too.  What happens is each Armos that you kill, it's starting position is saved into this section of ram.  Then, when you go to open the chests, it checks to see if the chest you are opening is the same as the first position in the list.  If it is, then it gives you the item that's coded in.  If not, you get the default 1 rupee chest.

Basically, this area of ram is the interaction "pallete"  what I mean by that is it's a spot where values can be loaded in and out to achieve different effects.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!