Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Fortune Teller sets 2 flags when leaving:
- 0x80406F98 to 4 (bit 3)
- Uses: Makes the Fortune Teller talk to you on scene load when returning
- Other uses: Is reset when skipping a cutscene (Lanayru cleared), can maybe be used to make other NPCs talk to you from far away?
- 0x80406FAB to 1 (bit 1)
- Uses: Locks savefile location, prevents Epona from spawning
- Both are event flags that lasts globally until manually reset or via softreset (not saved in savefile)
- Set via d_save::dSv_event_c::onEventBit
- r3 = 0x80406f98 = temp event flag region which are not saved in the savefile
- r4 = 0x4 for 0x80406F98 (no offset, adds 4/bit 3) | 0x1301 for 0x80406FAB (0x13 offset, adds 1/bit 1)
- Origins:
- 0x80406F98: talkProc (after remove, before getEventId)
- 0x80406FAB: evtProc_8daNpcT_cfv (after evtChange, before dStage_changeScene)
- Code search:
- 0x80406F98:
- li r4,0x4
- or li param_1,0x4
- 0x80406FAB:
- li r4,0x1301 (Search: http://prntscr.com/qhzbss) (Results: http://prntscr.com/qhzfoz)
- or li param_1,0x1301 (Results: http://prntscr.com/qhzmzv)
- isEventBit = flag is checked here. Done in daHorse_c::create (Epona creation), daTag_Telop::create (Location text banner override tag, e.g. Malo's shops), d_a_kytag14:daKytag14_Execute (Save Location setter) and d_com_inf_game::dComIfGp_calcNowRegion (setting current map region on the big game map after a new stage load)
- onEventBit = flag is enabled here. Only done in daNpc_Sha_c::cutPerformAugury (Fortune Teller)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement