Name: 3 Yoshi Coin Door
Description: This door will play a wrong sound and open the first level message if you have less than 3 yoshi coins. If you have enough it will play a "you got it" sound and teleport to the current screen exit.
Good for puzzles!
Author: Jascha - Submitted by: Jascha
Reasons
It seems to only teleport you when you've got exactly 3 Yoshi Coins - once you have more then that, it only plays the "wrong" sound without displaying a message.
Frankly, the code's pretty inefficient as well. Here's how you *could* do it, although I admittedly haven't tested that code:
JMP Main : JMP Main : JMP Main : JMP End : JMP End : JMP End : JMP End
Main:
LDA $15
AND #$08
BEQ End
LDA $1420
CMP #$03
BCC NotEnough
LDA #$2A
STA $1DF9
LDA #$06
STA $71
STZ $88
STZ $89
RTL
NotEnough:
LDA #$2A
STA $1DFC
LDA #$01
STA $1426
End:
RTL
Description: This door will play a wrong sound and open the first level message if you have less than 3 yoshi coins. If you have enough it will play a "you got it" sound and teleport to the current screen exit.
Good for puzzles!
Author: Jascha - Submitted by: Jascha
Reasons
It seems to only teleport you when you've got exactly 3 Yoshi Coins - once you have more then that, it only plays the "wrong" sound without displaying a message.
Frankly, the code's pretty inefficient as well. Here's how you *could* do it, although I admittedly haven't tested that code:
JMP Main : JMP Main : JMP Main : JMP End : JMP End : JMP End : JMP End
Main:
LDA $15
AND #$08
BEQ End
LDA $1420
CMP #$03
BCC NotEnough
LDA #$2A
STA $1DF9
LDA #$06
STA $71
STZ $88
STZ $89
RTL
NotEnough:
LDA #$2A
STA $1DFC
LDA #$01
STA $1426
End:
RTL