; ============================================================================== ; Impa - Sprite #76 Zelda ; ; Goals: Make the Impa sprite interact with the "Uncle/Priest/Mantle" object ; in the forest. This will trigger the intro cutscene with Farore and the ; antagonist of the story. ; ; Ideas: Maybe make the "Mantle" the Maku Tree? ; ============================================================================== ; from `sprites/npcs/sprite_uncle_and_priest.asm` ; $2DD72-$2DD9E JUMP LOCATION { LDA.b #$00 : STA $0EB0, X : STA $0DE0, X LDA $0DF0, X : BNE .alpha ; "Princess Zelda, you are safe! Is this your doing, [Name]?" message LDA.b #$17 LDY.b #$00 JSL Sprite_ShowMessageUnconditional INC $0D80, X LDA.b #$01 : STA $7FFE01 JSR Zelda_TransitionFromTagalong LDA.b #$01 : STA $02E4 LDA.b #$01 : STA $7EF3C7 .alpha RTS } ; ============================================================================== ; from `sprites/npcs/sprite_zelda.asm` ; *$2EC4C-$2EC8D LOCAL Zelda_TransitionFromTagalong: { ; Transition princess Zelda back into a sprite from the tagalong ; state (the sage's sprite is doing this). LDA.b #$76 : JSL Sprite_SpawnDynamically PHX LDX $02CF LDA $1A64, X : AND.b #$03 : STA $0EB0, Y : STA $0DE0, Y LDA $20 : STA $0D00, Y LDA $21 : STA $0D20, Y LDA $22 : STA $0D10, Y LDA $23 : STA $0D30, Y LDA.b #$01 : STA $0E80, Y LDA.b #$00 : STA $7EF3CC LDA $0BA0, Y : INC A : STA $0BA0, Y LDA.b #$03 : STA $0F60, Y PLX RTS } ; ============================================================================== ; *$2EC9E-$2ECBE LOCAL Sprite_Zelda: { JSL CrystalMaiden_Draw JSR Sprite2_CheckIfActive JSL Sprite_PlayerCantPassThrough JSL Sprite_MakeBodyTrackHeadDirection : BCC .cant_move JSR Sprite2_Move .cant_move LDA $0E80, X JSL UseImplicitRegIndexedLocalJumpTable dw Zelda_InPrison dw Zelda_EnteringSanctuary dw Zelda_AtSanctuary } ; ==============================================================================