aroymart

Untitled

Feb 6th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. _MomWakeUpText::
  2.     db $08
  3.    
  4.     ;write fastest text speed
  5.     ;ld a, $c0
  6.     ;ld [$D355], a 
  7.     ;ld d, 24
  8.    
  9.     ld bc, $9618
  10.     ;ld b, 150
  11.     ;ld c, 24
  12. .loop
  13.  
  14.     push bc
  15.     inc b;we're doing this for reasons. basically it actually assigns 1 - 151 as pokedex number, but the loop goes from 150 - 0
  16.     ld a, b;put the curr mon into a
  17.     ld [wd11e],a
  18.     callba PokedexToIndex;change to $40ff9
  19.     ld a,[wd11e]
  20.     ld b,a
  21.    
  22.     sub 63
  23.     jr z, .loop
  24.    
  25.     call GivePokemon
  26.     pop bc
  27.    
  28.     ;ld a, $1c
  29.     ;ld [$2000], a
  30.    
  31.     ;callba ChangeBox
  32.  
  33.    
  34.     dec c
  35.     jr z, .changeBox
  36.    
  37. .finishChangeBox
  38.    
  39.     dec b
  40.    
  41.     ;call GivePokemon
  42.     jp z, TextScriptEnd;skips pokedex of zero which is good since we have bulba already
  43.     jr .loop
  44. .changeBox
  45.     push bc
  46.     callba ChangeBox
  47.     pop bc
  48.     ld c,20
  49.     jr .finishChangeBox
Advertisement
Add Comment
Please, Sign In to add comment