luckytyphlosion

Gold Any% Backup Save Mystery Egg Collision Box Names + Sauce Code

Oct 25th, 2020 (edited)
3,200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; BOX1 - BOX3
  2. ; é g 'd E é [ 'd 'd
  3. ; é H 'd F é 'v 2 H
  4. ; é ] 'd a é é 4 'd
  5.  
  6. ; BOX12
  7. ; Q é d 2 D 'm v 2
  8.  
  9.  
  10. ; Sauce Code / Notes
  11.  
  12. ; regs:
  13. ; af - 0040
  14. ; bc - ff9e, 0000 after jump
  15. ; de - 0009
  16. ; hl - f91f
  17. ; sp - dfcb
  18. ; pc - f91f
  19.  
  20. ; BOX 12 d922-d92a
  21. ; Q é d 2 D 'm v 2
  22. ; LLDA sRRDD SLDA ULURA sDRDA sDDDA UA DDLLA A
  23.     sub b ; $00 get $01
  24.     ld [$f8a3], a ; make red appear
  25.     add e ; $01 get $0a
  26.     jp nc, $f8b5 ; jumps into safe code just before box 1 name (almost all nops, one ld bc, xxxx)
  27.  
  28. ; at f8b8
  29.     ld bc, $0000
  30.  
  31. ; BOX 1 d8bf-d8c7
  32. ; é g 'd E é [ 'd 'd
  33. ; sDDDA SDLLA URUURA sSLDRA sULUUA sLLLLA sLLLLA A A
  34.     ld [$d0a6], a ; y displacement
  35.     add h ; $0a get $03
  36.     ld [$d09e], a ; map group
  37.     ret nc ; not triggered, filler (can omit, but easier to mash 'd twice than 'd + Start)
  38.     db $50
  39.  
  40. ; BOX 2 d8c8-d8d0
  41. ; é H 'd F é 'v 2 H
  42. ; sDDDA sSDLA sURUURA sDDLDLA sULUUA LLA RRRDA sSDLA A
  43.     ld [$d087], a ; map height for connection warp
  44.     add l ; $03 get $22
  45.     ld [$f8d6], a ; self-modify for party count
  46.     add a ; $22 get $44
  47.     db $50
  48.  
  49. ; BOX 3 d8d1-d8d9
  50. ; é ] 'd a é é 4 'd
  51. ; sDDDA sLLLA sRRRRA SRDA DDDA A SLUA LLUA A
  52.     ld [$d09f], a ; map number
  53.     and b ; get $00
  54.     ld [$fa(22)], a ; party count
  55.     ret nc
  56.     db $50
  57.  
Add Comment
Please, Sign In to add comment