You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Copycat labels; macro for the Crystal-only Unown chamber unlock words
This commit is contained in:
@@ -6048,7 +6048,7 @@ CheckPlayerHasUsableMoves: ; 3e786
|
|||||||
jr .loop
|
jr .loop
|
||||||
|
|
||||||
.done
|
.done
|
||||||
and a
|
and a ; This is probably a bug, and will result in a move with PP Up confusing the game.
|
||||||
ret nz
|
ret nz
|
||||||
|
|
||||||
.force_struggle
|
.force_struggle
|
||||||
|
@@ -1541,11 +1541,6 @@ BattleCheckTypeMatchup: ; 347c8
|
|||||||
and a
|
and a
|
||||||
jr z, CheckTypeMatchup
|
jr z, CheckTypeMatchup
|
||||||
ld hl, BattleMonType1
|
ld hl, BattleMonType1
|
||||||
|
|
||||||
; fallthrough
|
|
||||||
; 347d3
|
|
||||||
|
|
||||||
|
|
||||||
CheckTypeMatchup: ; 347d3
|
CheckTypeMatchup: ; 347d3
|
||||||
push hl
|
push hl
|
||||||
push de
|
push de
|
||||||
|
@@ -274,12 +274,12 @@ Function45be: ; 45be
|
|||||||
|
|
||||||
Function45c5: ; 45c5
|
Function45c5: ; 45c5
|
||||||
ld a, [VariableSprites + SPRITE_BIG_DOLL - SPRITE_VARS]
|
ld a, [VariableSprites + SPRITE_BIG_DOLL - SPRITE_VARS]
|
||||||
ld d, FACING_17
|
ld d, FACING_17 ; symmetric
|
||||||
cp SPRITE_BIG_SNORLAX
|
cp SPRITE_BIG_SNORLAX
|
||||||
jr z, .ok
|
jr z, .ok
|
||||||
cp SPRITE_BIG_LAPRAS
|
cp SPRITE_BIG_LAPRAS
|
||||||
jr z, .ok
|
jr z, .ok
|
||||||
ld d, FACING_16
|
ld d, FACING_16 ; asymmetric
|
||||||
|
|
||||||
.ok
|
.ok
|
||||||
ld hl, OBJECT_FACING_STEP
|
ld hl, OBJECT_FACING_STEP
|
||||||
|
@@ -23,7 +23,7 @@ Function14146: ; mobile
|
|||||||
push af
|
push af
|
||||||
res 7, [hl]
|
res 7, [hl]
|
||||||
set 6, [hl]
|
set 6, [hl]
|
||||||
call RunCallback_04
|
call MapCallbackSprites_LoadUsedSpritesGFX
|
||||||
pop af
|
pop af
|
||||||
ld [wSpriteFlags], a
|
ld [wSpriteFlags], a
|
||||||
ret
|
ret
|
||||||
@@ -35,7 +35,7 @@ Function14157: ; mobile
|
|||||||
push af
|
push af
|
||||||
set 7, [hl]
|
set 7, [hl]
|
||||||
res 6, [hl]
|
res 6, [hl]
|
||||||
call RunCallback_04
|
call MapCallbackSprites_LoadUsedSpritesGFX
|
||||||
pop af
|
pop af
|
||||||
ld [wSpriteFlags], a
|
ld [wSpriteFlags], a
|
||||||
ret
|
ret
|
||||||
@@ -43,7 +43,7 @@ Function14157: ; mobile
|
|||||||
|
|
||||||
RefreshSprites:: ; 14168
|
RefreshSprites:: ; 14168
|
||||||
call .Refresh
|
call .Refresh
|
||||||
call RunCallback_04
|
call MapCallbackSprites_LoadUsedSpritesGFX
|
||||||
ret
|
ret
|
||||||
; 1416f
|
; 1416f
|
||||||
|
|
||||||
@@ -165,7 +165,7 @@ endr
|
|||||||
; 14209
|
; 14209
|
||||||
|
|
||||||
|
|
||||||
RunCallback_04: ; 14209
|
MapCallbackSprites_LoadUsedSpritesGFX: ; 14209
|
||||||
ld a, MAPCALLBACK_SPRITES
|
ld a, MAPCALLBACK_SPRITES
|
||||||
call RunMapCallback
|
call RunMapCallback
|
||||||
call GetUsedSprites
|
call GetUsedSprites
|
||||||
|
@@ -114,7 +114,7 @@ SpecialsPointers:: ; c029
|
|||||||
add_special RandomPhoneRareWildMon
|
add_special RandomPhoneRareWildMon
|
||||||
add_special RandomPhoneWildMon
|
add_special RandomPhoneWildMon
|
||||||
add_special RandomPhoneMon
|
add_special RandomPhoneMon
|
||||||
add_special RunCallback_04
|
add_special MapCallbackSprites_LoadUsedSpritesGFX
|
||||||
add_special PlaySlowCry
|
add_special PlaySlowCry
|
||||||
add_special SpecialSnorlaxAwake
|
add_special SpecialSnorlaxAwake
|
||||||
add_special Special_YoungerHaircutBrother
|
add_special Special_YoungerHaircutBrother
|
||||||
|
@@ -341,7 +341,7 @@ AddOrSubtractX: ; 8d0ce
|
|||||||
push hl
|
push hl
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
ld hl, wCurrSpriteAddSubFlags
|
ld hl, wCurrSpriteAddSubFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl] ; x flip
|
||||||
jr z, .ok
|
jr z, .ok
|
||||||
; 8 - a
|
; 8 - a
|
||||||
add $8
|
add $8
|
||||||
@@ -573,7 +573,7 @@ SpriteAnimSeqData: ; 8d1c4
|
|||||||
db SPRITE_ANIM_FRAMESET_18, SPRITE_ANIM_SEQ_12, $00 ; 12
|
db SPRITE_ANIM_FRAMESET_18, SPRITE_ANIM_SEQ_12, $00 ; 12
|
||||||
db SPRITE_ANIM_FRAMESET_19, SPRITE_ANIM_SEQ_13, $00 ; 13
|
db SPRITE_ANIM_FRAMESET_19, SPRITE_ANIM_SEQ_13, $00 ; 13
|
||||||
db SPRITE_ANIM_FRAMESET_1A, SPRITE_ANIM_SEQ_14, $00 ; 14 radio tuning knob
|
db SPRITE_ANIM_FRAMESET_1A, SPRITE_ANIM_SEQ_14, $00 ; 14 radio tuning knob
|
||||||
db SPRITE_ANIM_FRAMESET_1B, SPRITE_ANIM_SEQ_NULL, $00 ; 15
|
db SPRITE_ANIM_FRAMESET_1B, SPRITE_ANIM_SEQ_NULL, $00 ; 15 chris on magnet train
|
||||||
db SPRITE_ANIM_FRAMESET_LEAF, SPRITE_ANIM_SEQ_15, $00 ; 16 leaves when cutting down a tree
|
db SPRITE_ANIM_FRAMESET_LEAF, SPRITE_ANIM_SEQ_15, $00 ; 16 leaves when cutting down a tree
|
||||||
db SPRITE_ANIM_FRAMESET_1E, SPRITE_ANIM_SEQ_NULL, $00 ; 17
|
db SPRITE_ANIM_FRAMESET_1E, SPRITE_ANIM_SEQ_NULL, $00 ; 17
|
||||||
db SPRITE_ANIM_FRAMESET_LEAF, SPRITE_ANIM_SEQ_FLY_LEAF, $00 ; 18 flying leaves
|
db SPRITE_ANIM_FRAMESET_LEAF, SPRITE_ANIM_SEQ_FLY_LEAF, $00 ; 18 flying leaves
|
||||||
@@ -583,7 +583,7 @@ SpriteAnimSeqData: ; 8d1c4
|
|||||||
db SPRITE_ANIM_FRAMESET_20, SPRITE_ANIM_SEQ_13, $00 ; 1c
|
db SPRITE_ANIM_FRAMESET_20, SPRITE_ANIM_SEQ_13, $00 ; 1c
|
||||||
db SPRITE_ANIM_FRAMESET_26, SPRITE_ANIM_SEQ_1A, $00 ; 1d
|
db SPRITE_ANIM_FRAMESET_26, SPRITE_ANIM_SEQ_1A, $00 ; 1d
|
||||||
db SPRITE_ANIM_FRAMESET_2D, SPRITE_ANIM_SEQ_NULL, $00 ; 1e
|
db SPRITE_ANIM_FRAMESET_2D, SPRITE_ANIM_SEQ_NULL, $00 ; 1e
|
||||||
db SPRITE_ANIM_FRAMESET_2E, SPRITE_ANIM_SEQ_NULL, $00 ; 1f
|
db SPRITE_ANIM_FRAMESET_2E, SPRITE_ANIM_SEQ_NULL, $00 ; 1f kris on magnet train
|
||||||
db SPRITE_ANIM_FRAMESET_2F, SPRITE_ANIM_SEQ_NULL, $00 ; 20
|
db SPRITE_ANIM_FRAMESET_2F, SPRITE_ANIM_SEQ_NULL, $00 ; 20
|
||||||
db SPRITE_ANIM_FRAMESET_30, SPRITE_ANIM_SEQ_NULL, $00 ; 21
|
db SPRITE_ANIM_FRAMESET_30, SPRITE_ANIM_SEQ_NULL, $00 ; 21
|
||||||
db SPRITE_ANIM_FRAMESET_31, SPRITE_ANIM_SEQ_NULL, $00 ; 22
|
db SPRITE_ANIM_FRAMESET_31, SPRITE_ANIM_SEQ_NULL, $00 ; 22
|
||||||
|
149
event/unown.asm
149
event/unown.asm
@@ -107,18 +107,18 @@ SpecialKabutoChamber: ; 8ae4e
|
|||||||
|
|
||||||
Special_DisplayUnownWords: ; 8ae68
|
Special_DisplayUnownWords: ; 8ae68
|
||||||
ld a, [ScriptVar]
|
ld a, [ScriptVar]
|
||||||
ld hl, MenuDataHeader_0x8aed5
|
ld hl, .MenuDataHeader_Escape
|
||||||
and a
|
and a
|
||||||
jr z, .asm_8ae79
|
jr z, .load
|
||||||
|
|
||||||
ld d, $0
|
ld d, $0
|
||||||
ld e, $5
|
ld e, $5
|
||||||
.asm_8ae75
|
.loop
|
||||||
add hl, de
|
add hl, de
|
||||||
dec a
|
dec a
|
||||||
jr nz, .asm_8ae75
|
jr nz, .loop
|
||||||
|
|
||||||
.asm_8ae79
|
.load
|
||||||
call LoadMenuDataHeader
|
call LoadMenuDataHeader
|
||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
@@ -127,29 +127,27 @@ Special_DisplayUnownWords: ; 8ae68
|
|||||||
call ApplyTilemap
|
call ApplyTilemap
|
||||||
call MenuBoxCoord2Tile
|
call MenuBoxCoord2Tile
|
||||||
inc hl
|
inc hl
|
||||||
ld d, $0
|
ld d, 0
|
||||||
ld e, $14
|
ld e, SCREEN_WIDTH
|
||||||
rept 2
|
add hl, de
|
||||||
add hl, de
|
add hl, de
|
||||||
endr
|
|
||||||
ld a, [ScriptVar]
|
ld a, [ScriptVar]
|
||||||
ld c, a
|
ld c, a
|
||||||
ld de, Unknown_8aebc
|
ld de, .UnownText
|
||||||
and a
|
and a
|
||||||
jr z, .asm_8aea5
|
jr z, .copy
|
||||||
.asm_8ae9c
|
.loop2
|
||||||
ld a, [de]
|
ld a, [de]
|
||||||
inc de
|
inc de
|
||||||
cp $ff
|
cp $ff
|
||||||
jr nz, .asm_8ae9c
|
jr nz, .loop2
|
||||||
dec c
|
dec c
|
||||||
jr nz, .asm_8ae9c
|
jr nz, .loop2
|
||||||
|
.copy
|
||||||
.asm_8aea5
|
call .CopyWord
|
||||||
call Function8af09
|
|
||||||
ld bc, AttrMap - TileMap
|
ld bc, AttrMap - TileMap
|
||||||
add hl, bc
|
add hl, bc
|
||||||
call Function8aee9
|
call .FillAttr
|
||||||
call WaitBGMap2
|
call WaitBGMap2
|
||||||
call JoyWaitAorB
|
call JoyWaitAorB
|
||||||
call PlayClickSFX
|
call PlayClickSFX
|
||||||
@@ -157,59 +155,91 @@ endr
|
|||||||
ret
|
ret
|
||||||
; 8aebc
|
; 8aebc
|
||||||
|
|
||||||
Unknown_8aebc: ; 8aebc
|
.UnownText: ; 8aebc
|
||||||
db $08, $44, $04, $00, $2e, $08, $ff
|
|
||||||
db $26, $20, $0c, $0e, $46, $ff
|
unownwall: MACRO
|
||||||
db $4c, $00, $46, $08, $42, $ff
|
rept _NARG
|
||||||
db $0e, $2c, $64, $2c, $0e, $ff
|
if \1 == "-"
|
||||||
|
x = $64
|
||||||
|
else
|
||||||
|
if \1 >= "Y"
|
||||||
|
x = 2 * (\1 - "Y") + $60
|
||||||
|
else
|
||||||
|
if \1 >= "Q"
|
||||||
|
x = 2 * (\1 - "Q") + $40
|
||||||
|
else
|
||||||
|
if \1 >= "I"
|
||||||
|
x = 2 * (\1 - "I") + $20
|
||||||
|
else
|
||||||
|
x = 2 * (\1 - "A")
|
||||||
|
endc
|
||||||
|
endc
|
||||||
|
endc
|
||||||
|
endc
|
||||||
|
db x
|
||||||
|
shift
|
||||||
|
endr
|
||||||
|
db $ff
|
||||||
|
endm
|
||||||
|
|
||||||
|
.UnownText_Escape:
|
||||||
|
; db $08, $44, $04, $00, $2e, $08, $ff
|
||||||
|
unownwall "E", "S", "C", "A", "P", "E"
|
||||||
|
.UnownText_Light:
|
||||||
|
; db $26, $20, $0c, $0e, $46, $ff
|
||||||
|
unownwall "L", "I", "G", "H", "T"
|
||||||
|
.UnownText_Water:
|
||||||
|
; db $4c, $00, $46, $08, $42, $ff
|
||||||
|
unownwall "W", "A", "T", "E", "R"
|
||||||
|
.UnownText_Ho_Oh:
|
||||||
|
; db $0e, $2c, $64, $2c, $0e, $ff
|
||||||
|
unownwall "H", "O", "-", "O", "H"
|
||||||
; 8aed5
|
; 8aed5
|
||||||
|
|
||||||
MenuDataHeader_0x8aed5: ; 0x8aed5
|
.MenuDataHeader_Escape: ; 0x8aed5
|
||||||
db $40 ; flags
|
db $40 ; flags
|
||||||
db 04, 03 ; start coords
|
db 04, 03 ; start coords
|
||||||
db 09, 16 ; end coords
|
db 09, 16 ; end coords
|
||||||
|
|
||||||
MenuDataHeader_0x8aeda: ; 0x8aeda
|
.MenuDataHeader_Light: ; 0x8aeda
|
||||||
db $40 ; flags
|
db $40 ; flags
|
||||||
db 04, 04 ; start coords
|
db 04, 04 ; start coords
|
||||||
db 09, 15 ; end coords
|
db 09, 15 ; end coords
|
||||||
|
|
||||||
MenuDataHeader_0x8aedf: ; 0x8aedf
|
.MenuDataHeader_Water: ; 0x8aedf
|
||||||
db $40 ; flags
|
db $40 ; flags
|
||||||
db 04, 04 ; start coords
|
db 04, 04 ; start coords
|
||||||
db 09, 15 ; end coords
|
db 09, 15 ; end coords
|
||||||
|
|
||||||
MenuDataHeader_0x8aee4: ; 0x8aee4
|
.MenuDataHeader_Ho_Oh: ; 0x8aee4
|
||||||
db $40 ; flags
|
db $40 ; flags
|
||||||
db 04, 04 ; start coords
|
db 04, 04 ; start coords
|
||||||
db 09, 15 ; end coords
|
db 09, 15 ; end coords
|
||||||
; 8aee9
|
; 8aee9
|
||||||
|
|
||||||
Function8aee9: ; 8aee9
|
.FillAttr: ; 8aee9
|
||||||
.asm_8aee9
|
|
||||||
ld a, [de]
|
ld a, [de]
|
||||||
cp $ff
|
cp $ff
|
||||||
ret z
|
ret z
|
||||||
cp $60
|
cp $60
|
||||||
ld a, $d
|
ld a, (1 << 3) | PAL_BG_BROWN
|
||||||
jr c, .asm_8aef5
|
jr c, .got_pal
|
||||||
ld a, $5
|
ld a, PAL_BG_BROWN
|
||||||
|
|
||||||
.asm_8aef5
|
.got_pal
|
||||||
call Function8aefd
|
call .PlaceSquare
|
||||||
rept 2
|
inc hl
|
||||||
inc hl
|
inc hl
|
||||||
endr
|
|
||||||
inc de
|
inc de
|
||||||
jr .asm_8aee9
|
jr .FillAttr
|
||||||
; 8aefd
|
; 8aefd
|
||||||
|
|
||||||
Function8aefd: ; 8aefd
|
.PlaceSquare: ; 8aefd
|
||||||
push hl
|
push hl
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
ld [hld], a
|
ld [hld], a
|
||||||
ld b, $0
|
ld b, 0
|
||||||
ld c, $14
|
ld c, SCREEN_WIDTH
|
||||||
add hl, bc
|
add hl, bc
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
@@ -217,42 +247,41 @@ Function8aefd: ; 8aefd
|
|||||||
ret
|
ret
|
||||||
; 8af09
|
; 8af09
|
||||||
|
|
||||||
Function8af09: ; 8af09
|
.CopyWord: ; 8af09
|
||||||
push hl
|
push hl
|
||||||
push de
|
push de
|
||||||
.asm_8af0b
|
.word_loop
|
||||||
ld a, [de]
|
ld a, [de]
|
||||||
cp $ff
|
cp $ff
|
||||||
jr z, .asm_8af19
|
jr z, .word_done
|
||||||
ld c, a
|
ld c, a
|
||||||
call Function8af1c
|
call .ConvertChar
|
||||||
rept 2
|
inc hl
|
||||||
inc hl
|
inc hl
|
||||||
endr
|
|
||||||
inc de
|
inc de
|
||||||
jr .asm_8af0b
|
jr .word_loop
|
||||||
|
|
||||||
.asm_8af19
|
.word_done
|
||||||
pop de
|
pop de
|
||||||
pop hl
|
pop hl
|
||||||
ret
|
ret
|
||||||
; 8af1c
|
; 8af1c
|
||||||
|
|
||||||
Function8af1c: ; 8af1c
|
.ConvertChar: ; 8af1c
|
||||||
push hl
|
push hl
|
||||||
ld a, c
|
ld a, c
|
||||||
cp $60
|
cp $60
|
||||||
jr z, .asm_8af3b
|
jr z, .Tile60
|
||||||
cp $62
|
cp $62
|
||||||
jr z, .asm_8af4b
|
jr z, .Tile62
|
||||||
cp $64
|
cp $64
|
||||||
jr z, .asm_8af5b
|
jr z, .Tile64
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
inc a
|
inc a
|
||||||
ld [hld], a
|
ld [hld], a
|
||||||
dec a
|
dec a
|
||||||
ld b, $0
|
ld b, 0
|
||||||
ld c, $14
|
ld c, SCREEN_WIDTH
|
||||||
add hl, bc
|
add hl, bc
|
||||||
ld c, $10
|
ld c, $10
|
||||||
add c
|
add c
|
||||||
@@ -262,11 +291,11 @@ Function8af1c: ; 8af1c
|
|||||||
pop hl
|
pop hl
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.asm_8af3b
|
.Tile60:
|
||||||
ld [hl], $5b
|
ld [hl], $5b
|
||||||
inc hl
|
inc hl
|
||||||
ld [hl], $5c
|
ld [hl], $5c
|
||||||
ld bc, $0013
|
ld bc, SCREEN_WIDTH - 1
|
||||||
add hl, bc
|
add hl, bc
|
||||||
ld [hl], $4d
|
ld [hl], $4d
|
||||||
inc hl
|
inc hl
|
||||||
@@ -274,11 +303,11 @@ Function8af1c: ; 8af1c
|
|||||||
pop hl
|
pop hl
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.asm_8af4b
|
.Tile62:
|
||||||
ld [hl], $4e
|
ld [hl], $4e
|
||||||
inc hl
|
inc hl
|
||||||
ld [hl], $4f
|
ld [hl], $4f
|
||||||
ld bc, $0013
|
ld bc, SCREEN_WIDTH - 1
|
||||||
add hl, bc
|
add hl, bc
|
||||||
ld [hl], $5e
|
ld [hl], $5e
|
||||||
inc hl
|
inc hl
|
||||||
@@ -286,11 +315,11 @@ Function8af1c: ; 8af1c
|
|||||||
pop hl
|
pop hl
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.asm_8af5b
|
.Tile64:
|
||||||
ld [hl], $2
|
ld [hl], $2
|
||||||
inc hl
|
inc hl
|
||||||
ld [hl], $3
|
ld [hl], $3
|
||||||
ld bc, $0013
|
ld bc, SCREEN_WIDTH - 1
|
||||||
add hl, bc
|
add hl, bc
|
||||||
ld [hl], $3
|
ld [hl], $3
|
||||||
inc hl
|
inc hl
|
||||||
|
2
hram.asm
2
hram.asm
@@ -1,5 +1,5 @@
|
|||||||
HRAM_START EQU $ff80
|
HRAM_START EQU $ff80
|
||||||
hPushOAM EQU $ff80
|
hPushOAM EQU $ff80 ; 10 bytes
|
||||||
|
|
||||||
hROMBankBackup EQU $ff8a
|
hROMBankBackup EQU $ff8a
|
||||||
hBuffer EQU $ff8b
|
hBuffer EQU $ff8b
|
||||||
|
124
macros/wram.asm
124
macros/wram.asm
@@ -199,6 +199,21 @@ hof_mon: MACRO
|
|||||||
\1End::
|
\1End::
|
||||||
endm
|
endm
|
||||||
|
|
||||||
|
roam_struct: MACRO
|
||||||
|
\1Species:: db
|
||||||
|
\1Level:: db
|
||||||
|
\1MapGroup:: db
|
||||||
|
\1MapNumber:: db
|
||||||
|
\1HP:: ds 1
|
||||||
|
\1DVs:: ds 2
|
||||||
|
ENDM
|
||||||
|
|
||||||
|
bugcontestwinner: macro
|
||||||
|
\1PersonID:: ds 1
|
||||||
|
\1Mon:: ds 1
|
||||||
|
\1Score:: ds 2
|
||||||
|
endm
|
||||||
|
|
||||||
hall_of_fame: MACRO
|
hall_of_fame: MACRO
|
||||||
\1::
|
\1::
|
||||||
\1WinCount:: ds 1
|
\1WinCount:: ds 1
|
||||||
@@ -249,3 +264,112 @@ slot_reel: MACRO
|
|||||||
\1Slot0e:: ds 1
|
\1Slot0e:: ds 1
|
||||||
\1Slot0f:: ds 1
|
\1Slot0f:: ds 1
|
||||||
endm
|
endm
|
||||||
|
|
||||||
|
object_struct: MACRO
|
||||||
|
\1Struct::
|
||||||
|
\1Sprite:: ds 1
|
||||||
|
\1MapObjectIndex:: ds 1
|
||||||
|
\1SpriteTile:: ds 1
|
||||||
|
\1MovementType:: ds 1
|
||||||
|
\1Flags:: ds 2
|
||||||
|
\1Palette:: ds 1
|
||||||
|
\1Walking:: ds 1
|
||||||
|
\1Direction:: ds 1
|
||||||
|
\1StepType:: ds 1
|
||||||
|
\1StepDuration:: ds 1
|
||||||
|
\1Action:: ds 1
|
||||||
|
\1ObjectStepFrame:: ds 1
|
||||||
|
\1Facing:: ds 1
|
||||||
|
\1StandingTile:: ds 1 ; collision
|
||||||
|
\1LastTile:: ds 1 ; collision
|
||||||
|
\1StandingMapX:: ds 1
|
||||||
|
\1StandingMapY:: ds 1
|
||||||
|
\1LastMapX:: ds 1
|
||||||
|
\1LastMapY:: ds 1
|
||||||
|
\1ObjectInitX:: ds 1
|
||||||
|
\1ObjectInitY:: ds 1
|
||||||
|
\1Radius:: ds 1
|
||||||
|
\1SpriteX:: ds 1
|
||||||
|
\1SpriteY:: ds 1
|
||||||
|
\1SpriteXOffset:: ds 1
|
||||||
|
\1SpriteYOffset:: ds 1
|
||||||
|
\1MovementByteIndex:: ds 1
|
||||||
|
\1Object28:: ds 1
|
||||||
|
\1Object29:: ds 1
|
||||||
|
\1Object30:: ds 1
|
||||||
|
\1Object31:: ds 1
|
||||||
|
\1Range:: ds 1
|
||||||
|
ds 7
|
||||||
|
\1StructEnd::
|
||||||
|
ENDM
|
||||||
|
|
||||||
|
map_object: MACRO
|
||||||
|
\1Object::
|
||||||
|
\1ObjectStructID:: ds 1
|
||||||
|
\1ObjectSprite:: ds 1
|
||||||
|
\1ObjectYCoord:: ds 1
|
||||||
|
\1ObjectXCoord:: ds 1
|
||||||
|
\1ObjectMovement:: ds 1
|
||||||
|
\1ObjectRadius:: ds 1
|
||||||
|
\1ObjectHour:: ds 1
|
||||||
|
\1ObjectTimeOfDay:: ds 1
|
||||||
|
\1ObjectColor:: ds 1
|
||||||
|
\1ObjectRange:: ds 1
|
||||||
|
\1ObjectScript:: ds 2
|
||||||
|
\1ObjectEventFlag:: ds 2
|
||||||
|
ds 2
|
||||||
|
endm
|
||||||
|
|
||||||
|
sprite_anim_struct: MACRO
|
||||||
|
\1Index:: ds 1 ; 0
|
||||||
|
\1FramesetID:: ds 1 ; 1
|
||||||
|
\1AnimSeqID:: ds 1 ; 2
|
||||||
|
\1TileID:: ds 1 ; 3
|
||||||
|
\1XCoord:: ds 1 ; 4
|
||||||
|
\1YCoord:: ds 1 ; 5
|
||||||
|
\1XOffset:: ds 1 ; 6
|
||||||
|
\1YOffset:: ds 1 ; 7
|
||||||
|
\1Duration:: ds 1 ; 8
|
||||||
|
\1DurationOffset:: ds 1 ; 9
|
||||||
|
\1FrameIndex:: ds 1 ; a
|
||||||
|
\1Sprite0b:: ds 1
|
||||||
|
\1Sprite0c:: ds 1
|
||||||
|
\1Sprite0d:: ds 1
|
||||||
|
\1Sprite0e:: ds 1
|
||||||
|
\1Sprite0f:: ds 1
|
||||||
|
ENDM
|
||||||
|
|
||||||
|
battle_anim_struct: MACRO
|
||||||
|
; Placeholder until we can figure out what it all means
|
||||||
|
\1_Index:: ds 1
|
||||||
|
\1_Anim01:: ds 1
|
||||||
|
\1_Anim02:: ds 1
|
||||||
|
\1_FramesetIndex:: ds 1
|
||||||
|
\1_FunctionIndex:: ds 1
|
||||||
|
\1_Anim05:: ds 1
|
||||||
|
\1_TileID:: ds 1
|
||||||
|
\1_XCoord:: ds 1
|
||||||
|
\1_YCoord:: ds 1
|
||||||
|
\1_XOffset:: ds 1
|
||||||
|
\1_YOffset:: ds 1
|
||||||
|
\1_Anim0b:: ds 1
|
||||||
|
\1_Anim0c:: ds 1
|
||||||
|
\1_Anim0d:: ds 1
|
||||||
|
\1_AnonJumptableIndex:: ds 1
|
||||||
|
\1_Anim0f:: ds 1
|
||||||
|
\1_Anim10:: ds 1
|
||||||
|
\1_Anim11:: ds 1
|
||||||
|
\1_Anim12:: ds 1
|
||||||
|
\1_Anim13:: ds 1
|
||||||
|
\1_Anim14:: ds 1
|
||||||
|
\1_Anim15:: ds 1
|
||||||
|
\1_Anim16:: ds 1
|
||||||
|
\1_Anim17:: ds 1
|
||||||
|
endm
|
||||||
|
|
||||||
|
battle_bg_effect: MACRO
|
||||||
|
\1_Function:: ds 1
|
||||||
|
\1_01:: ds 1
|
||||||
|
\1_02:: ds 1
|
||||||
|
\1_03:: ds 1
|
||||||
|
endm
|
||||||
|
2
main.asm
2
main.asm
@@ -42,7 +42,7 @@ LoadPushOAM:: ; 4031
|
|||||||
PushOAM: ; 403f
|
PushOAM: ; 403f
|
||||||
ld a, Sprites / $100
|
ld a, Sprites / $100
|
||||||
ld [rDMA], a
|
ld [rDMA], a
|
||||||
ld a, 40
|
ld a, (SpritesEnd - Sprites) / 4 ; 40
|
||||||
.loop
|
.loop
|
||||||
dec a
|
dec a
|
||||||
jr nz, .loop
|
jr nz, .loop
|
||||||
|
@@ -1,10 +1,10 @@
|
|||||||
const_value set 2
|
const_value set 2
|
||||||
const COPYCATSHOUSE2F_COPYCAT1
|
const COPYCATSHOUSE2F_COPYCAT1 ; if player is male
|
||||||
const COPYCATSHOUSE2F_DODRIO
|
const COPYCATSHOUSE2F_DODRIO
|
||||||
const COPYCATSHOUSE2F_FAIRYDOLL
|
const COPYCATSHOUSE2F_FAIRYDOLL ; lost item
|
||||||
const COPYCATSHOUSE2F_MONSTERDOLL
|
const COPYCATSHOUSE2F_MONSTERDOLL
|
||||||
const COPYCATSHOUSE2F_BIRDDOLL
|
const COPYCATSHOUSE2F_BIRDDOLL
|
||||||
const COPYCATSHOUSE2F_COPYCAT2
|
const COPYCATSHOUSE2F_COPYCAT2 ; if player is female
|
||||||
|
|
||||||
CopycatsHouse2F_MapScriptHeader:
|
CopycatsHouse2F_MapScriptHeader:
|
||||||
.MapTriggers:
|
.MapTriggers:
|
||||||
@@ -15,15 +15,15 @@ CopycatsHouse2F_MapScriptHeader:
|
|||||||
|
|
||||||
; callbacks
|
; callbacks
|
||||||
|
|
||||||
dbw MAPCALLBACK_OBJECTS, CopycatsHouse2FCallback
|
dbw MAPCALLBACK_OBJECTS, .Callback
|
||||||
|
|
||||||
CopycatsHouse2FCallback:
|
.Callback:
|
||||||
checkflag ENGINE_PLAYER_IS_FEMALE
|
checkflag ENGINE_PLAYER_IS_FEMALE
|
||||||
iftrue .Part1
|
iftrue .Female
|
||||||
disappear COPYCATSHOUSE2F_COPYCAT2
|
disappear COPYCATSHOUSE2F_COPYCAT2
|
||||||
appear COPYCATSHOUSE2F_COPYCAT1
|
appear COPYCATSHOUSE2F_COPYCAT1
|
||||||
jump .Done
|
jump .Done
|
||||||
.Part1:
|
.Female:
|
||||||
disappear COPYCATSHOUSE2F_COPYCAT1
|
disappear COPYCATSHOUSE2F_COPYCAT1
|
||||||
appear COPYCATSHOUSE2F_COPYCAT2
|
appear COPYCATSHOUSE2F_COPYCAT2
|
||||||
.Done:
|
.Done:
|
||||||
@@ -32,146 +32,146 @@ CopycatsHouse2FCallback:
|
|||||||
Copycat:
|
Copycat:
|
||||||
faceplayer
|
faceplayer
|
||||||
checkevent EVENT_GOT_PASS_FROM_COPYCAT
|
checkevent EVENT_GOT_PASS_FROM_COPYCAT
|
||||||
iftrue .Part15
|
iftrue .GotPass
|
||||||
checkevent EVENT_RETURNED_LOST_ITEM_TO_COPYCAT
|
checkevent EVENT_RETURNED_LOST_ITEM_TO_COPYCAT
|
||||||
iftrue .Part13
|
iftrue .TryGivePassAgain
|
||||||
checkitem LOST_ITEM
|
checkitem LOST_ITEM
|
||||||
iftrue .Part12
|
iftrue .ReturnLostItem
|
||||||
checkflag ENGINE_PLAYER_IS_FEMALE
|
checkflag ENGINE_PLAYER_IS_FEMALE
|
||||||
iftrue .Part1
|
iftrue .Default_Female_1
|
||||||
applymovement COPYCATSHOUSE2F_COPYCAT1, MovementData_0x18afd0
|
applymovement COPYCATSHOUSE2F_COPYCAT1, CopycatSpinAroundMovementData
|
||||||
faceplayer
|
faceplayer
|
||||||
variablesprite SPRITE_COPYCAT, SPRITE_CHRIS
|
variablesprite SPRITE_COPYCAT, SPRITE_CHRIS
|
||||||
jump .Part2
|
jump .Default_Merge_1
|
||||||
|
|
||||||
.Part1:
|
.Default_Female_1:
|
||||||
applymovement COPYCATSHOUSE2F_COPYCAT2, MovementData_0x18afd0
|
applymovement COPYCATSHOUSE2F_COPYCAT2, CopycatSpinAroundMovementData
|
||||||
faceplayer
|
faceplayer
|
||||||
variablesprite SPRITE_COPYCAT, SPRITE_KRIS
|
variablesprite SPRITE_COPYCAT, SPRITE_KRIS
|
||||||
.Part2:
|
.Default_Merge_1:
|
||||||
special RunCallback_04
|
special MapCallbackSprites_LoadUsedSpritesGFX
|
||||||
checkevent EVENT_RETURNED_MACHINE_PART
|
checkevent EVENT_RETURNED_MACHINE_PART
|
||||||
iftrue .Part7
|
iftrue .TalkAboutLostItem
|
||||||
opentext
|
opentext
|
||||||
checkflag ENGINE_PLAYER_IS_FEMALE
|
checkflag ENGINE_PLAYER_IS_FEMALE
|
||||||
iftrue .Part3
|
iftrue .Default_Female_2a
|
||||||
writetext UnknownText_0x18afda
|
writetext CopycatText_Male_1
|
||||||
jump .Part4
|
jump .Default_Merge_2a
|
||||||
|
|
||||||
.Part3:
|
.Default_Female_2a:
|
||||||
writetext UnknownText_0x18b316
|
writetext CopycatText_Female_1
|
||||||
.Part4:
|
.Default_Merge_2a:
|
||||||
waitbutton
|
waitbutton
|
||||||
closetext
|
closetext
|
||||||
checkflag ENGINE_PLAYER_IS_FEMALE
|
checkflag ENGINE_PLAYER_IS_FEMALE
|
||||||
iftrue .Part5
|
iftrue .Default_Female_3a
|
||||||
applymovement COPYCATSHOUSE2F_COPYCAT1, MovementData_0x18afd0
|
applymovement COPYCATSHOUSE2F_COPYCAT1, CopycatSpinAroundMovementData
|
||||||
jump .Part6
|
jump .Default_Merge_3a
|
||||||
|
|
||||||
.Part5:
|
.Default_Female_3a:
|
||||||
applymovement COPYCATSHOUSE2F_COPYCAT2, MovementData_0x18afd0
|
applymovement COPYCATSHOUSE2F_COPYCAT2, CopycatSpinAroundMovementData
|
||||||
.Part6:
|
.Default_Merge_3a:
|
||||||
faceplayer
|
faceplayer
|
||||||
variablesprite SPRITE_COPYCAT, SPRITE_LASS
|
variablesprite SPRITE_COPYCAT, SPRITE_LASS
|
||||||
special RunCallback_04
|
special MapCallbackSprites_LoadUsedSpritesGFX
|
||||||
opentext
|
opentext
|
||||||
writetext UnknownText_0x18b028
|
writetext CopycatText_QuickMimicking
|
||||||
waitbutton
|
waitbutton
|
||||||
closetext
|
closetext
|
||||||
end
|
end
|
||||||
|
|
||||||
.Part7:
|
.TalkAboutLostItem:
|
||||||
opentext
|
opentext
|
||||||
checkflag ENGINE_PLAYER_IS_FEMALE
|
checkflag ENGINE_PLAYER_IS_FEMALE
|
||||||
iftrue .Part8
|
iftrue .Default_Female_2b
|
||||||
writetext UnknownText_0x18b064
|
writetext CopycatText_Male_2
|
||||||
jump .Part9
|
jump .Default_Merge_2b
|
||||||
|
|
||||||
.Part8:
|
.Default_Female_2b:
|
||||||
writetext UnknownText_0x18b366
|
writetext CopycatText_Female_2
|
||||||
.Part9:
|
.Default_Merge_2b:
|
||||||
waitbutton
|
waitbutton
|
||||||
closetext
|
closetext
|
||||||
checkflag ENGINE_PLAYER_IS_FEMALE
|
checkflag ENGINE_PLAYER_IS_FEMALE
|
||||||
iftrue .Part10
|
iftrue .Default_Female_3b
|
||||||
applymovement COPYCATSHOUSE2F_COPYCAT1, MovementData_0x18afd0
|
applymovement COPYCATSHOUSE2F_COPYCAT1, CopycatSpinAroundMovementData
|
||||||
jump .Part11
|
jump .Default_Merge_3b
|
||||||
|
|
||||||
.Part10:
|
.Default_Female_3b:
|
||||||
applymovement COPYCATSHOUSE2F_COPYCAT2, MovementData_0x18afd0
|
applymovement COPYCATSHOUSE2F_COPYCAT2, CopycatSpinAroundMovementData
|
||||||
.Part11:
|
.Default_Merge_3b:
|
||||||
faceplayer
|
faceplayer
|
||||||
variablesprite SPRITE_COPYCAT, SPRITE_LASS
|
variablesprite SPRITE_COPYCAT, SPRITE_LASS
|
||||||
special RunCallback_04
|
special MapCallbackSprites_LoadUsedSpritesGFX
|
||||||
opentext
|
opentext
|
||||||
writetext UnknownText_0x18b116
|
writetext CopycatText_Worried
|
||||||
waitbutton
|
waitbutton
|
||||||
closetext
|
closetext
|
||||||
setevent EVENT_MET_COPYCAT_FOUND_OUT_ABOUT_LOST_ITEM
|
setevent EVENT_MET_COPYCAT_FOUND_OUT_ABOUT_LOST_ITEM
|
||||||
end
|
end
|
||||||
|
|
||||||
.Part12:
|
.ReturnLostItem:
|
||||||
opentext
|
opentext
|
||||||
writetext UnknownText_0x18b17f
|
writetext CopycatText_GiveDoll
|
||||||
buttonsound
|
buttonsound
|
||||||
takeitem LOST_ITEM
|
takeitem LOST_ITEM
|
||||||
setevent EVENT_RETURNED_LOST_ITEM_TO_COPYCAT
|
setevent EVENT_RETURNED_LOST_ITEM_TO_COPYCAT
|
||||||
clearevent EVENT_COPYCATS_HOUSE_2F_DOLL
|
clearevent EVENT_COPYCATS_HOUSE_2F_DOLL
|
||||||
jump .Part14
|
jump .GivePass
|
||||||
|
|
||||||
.Part13:
|
.TryGivePassAgain:
|
||||||
opentext
|
opentext
|
||||||
.Part14:
|
.GivePass:
|
||||||
writetext UnknownText_0x18b1e2
|
writetext CopycatText_GivePass
|
||||||
buttonsound
|
buttonsound
|
||||||
verbosegiveitem PASS
|
verbosegiveitem PASS
|
||||||
iffalse .Part22
|
iffalse .Cancel
|
||||||
setevent EVENT_GOT_PASS_FROM_COPYCAT
|
setevent EVENT_GOT_PASS_FROM_COPYCAT
|
||||||
writetext UnknownText_0x18b214
|
writetext CopycatText_ExplainPass
|
||||||
waitbutton
|
waitbutton
|
||||||
closetext
|
closetext
|
||||||
end
|
end
|
||||||
|
|
||||||
.Part15:
|
.GotPass:
|
||||||
checkflag ENGINE_PLAYER_IS_FEMALE
|
checkflag ENGINE_PLAYER_IS_FEMALE
|
||||||
iftrue .Part16
|
iftrue .GotPass_Female_1
|
||||||
applymovement COPYCATSHOUSE2F_COPYCAT1, MovementData_0x18afd0
|
applymovement COPYCATSHOUSE2F_COPYCAT1, CopycatSpinAroundMovementData
|
||||||
faceplayer
|
faceplayer
|
||||||
variablesprite SPRITE_COPYCAT, SPRITE_CHRIS
|
variablesprite SPRITE_COPYCAT, SPRITE_CHRIS
|
||||||
jump .Part17
|
jump .GotPass_Merge_1
|
||||||
|
|
||||||
.Part16:
|
.GotPass_Female_1:
|
||||||
applymovement COPYCATSHOUSE2F_COPYCAT2, MovementData_0x18afd0
|
applymovement COPYCATSHOUSE2F_COPYCAT2, CopycatSpinAroundMovementData
|
||||||
faceplayer
|
faceplayer
|
||||||
variablesprite SPRITE_COPYCAT, SPRITE_KRIS
|
variablesprite SPRITE_COPYCAT, SPRITE_KRIS
|
||||||
.Part17:
|
.GotPass_Merge_1:
|
||||||
special RunCallback_04
|
special MapCallbackSprites_LoadUsedSpritesGFX
|
||||||
opentext
|
opentext
|
||||||
checkflag ENGINE_PLAYER_IS_FEMALE
|
checkflag ENGINE_PLAYER_IS_FEMALE
|
||||||
iftrue .Part18
|
iftrue .GotPass_Female_2
|
||||||
writetext UnknownText_0x18b298
|
writetext CopycatText_Male_3
|
||||||
jump .Part19
|
jump .GotPass_Merge_2
|
||||||
|
|
||||||
.Part18:
|
.GotPass_Female_2:
|
||||||
writetext UnknownText_0x18b415
|
writetext CopycatText_Female_3
|
||||||
.Part19:
|
.GotPass_Merge_2:
|
||||||
waitbutton
|
waitbutton
|
||||||
closetext
|
closetext
|
||||||
checkflag ENGINE_PLAYER_IS_FEMALE
|
checkflag ENGINE_PLAYER_IS_FEMALE
|
||||||
iftrue .Part20
|
iftrue .GotPass_Female_3
|
||||||
applymovement COPYCATSHOUSE2F_COPYCAT1, MovementData_0x18afd0
|
applymovement COPYCATSHOUSE2F_COPYCAT1, CopycatSpinAroundMovementData
|
||||||
jump .Part21
|
jump .GotPass_Merge_3
|
||||||
|
|
||||||
.Part20:
|
.GotPass_Female_3:
|
||||||
applymovement COPYCATSHOUSE2F_COPYCAT2, MovementData_0x18afd0
|
applymovement COPYCATSHOUSE2F_COPYCAT2, CopycatSpinAroundMovementData
|
||||||
.Part21:
|
.GotPass_Merge_3:
|
||||||
faceplayer
|
faceplayer
|
||||||
variablesprite SPRITE_COPYCAT, SPRITE_LASS
|
variablesprite SPRITE_COPYCAT, SPRITE_LASS
|
||||||
special RunCallback_04
|
special MapCallbackSprites_LoadUsedSpritesGFX
|
||||||
opentext
|
opentext
|
||||||
writetext UnknownText_0x18b2f5
|
writetext CopycatText_ItsAScream
|
||||||
waitbutton
|
waitbutton
|
||||||
.Part22:
|
.Cancel:
|
||||||
closetext
|
closetext
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -191,7 +191,7 @@ CopycatsHouse2FDoll:
|
|||||||
CopycatsHouse2FBookshelf:
|
CopycatsHouse2FBookshelf:
|
||||||
jumpstd picturebookshelf
|
jumpstd picturebookshelf
|
||||||
|
|
||||||
MovementData_0x18afd0:
|
CopycatSpinAroundMovementData:
|
||||||
turn_head_down
|
turn_head_down
|
||||||
turn_head_left
|
turn_head_left
|
||||||
turn_head_up
|
turn_head_up
|
||||||
@@ -203,7 +203,7 @@ MovementData_0x18afd0:
|
|||||||
turn_head_down
|
turn_head_down
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
UnknownText_0x18afda:
|
CopycatText_Male_1:
|
||||||
text "<PLAYER>: Hi! Do"
|
text "<PLAYER>: Hi! Do"
|
||||||
line "you like #MON?"
|
line "you like #MON?"
|
||||||
|
|
||||||
@@ -214,7 +214,7 @@ UnknownText_0x18afda:
|
|||||||
line "You're strange!"
|
line "You're strange!"
|
||||||
done
|
done
|
||||||
|
|
||||||
UnknownText_0x18b028:
|
CopycatText_QuickMimicking:
|
||||||
text "COPYCAT: Hmm?"
|
text "COPYCAT: Hmm?"
|
||||||
line "Quit mimicking?"
|
line "Quit mimicking?"
|
||||||
|
|
||||||
@@ -222,7 +222,7 @@ UnknownText_0x18b028:
|
|||||||
line "favorite hobby!"
|
line "favorite hobby!"
|
||||||
done
|
done
|
||||||
|
|
||||||
UnknownText_0x18b064:
|
CopycatText_Male_2:
|
||||||
text "<PLAYER>: Hi!"
|
text "<PLAYER>: Hi!"
|
||||||
line "I heard that you"
|
line "I heard that you"
|
||||||
|
|
||||||
@@ -241,7 +241,7 @@ UnknownText_0x18b064:
|
|||||||
cont "to VERMILION CITY?"
|
cont "to VERMILION CITY?"
|
||||||
done
|
done
|
||||||
|
|
||||||
UnknownText_0x18b116:
|
CopycatText_Worried:
|
||||||
text "COPYCAT: Pardon?"
|
text "COPYCAT: Pardon?"
|
||||||
|
|
||||||
para "I shouldn't decide"
|
para "I shouldn't decide"
|
||||||
@@ -253,7 +253,7 @@ UnknownText_0x18b116:
|
|||||||
cont "someone finds it?"
|
cont "someone finds it?"
|
||||||
done
|
done
|
||||||
|
|
||||||
UnknownText_0x18b17f:
|
CopycatText_GiveDoll:
|
||||||
text "COPYCAT: Yay!"
|
text "COPYCAT: Yay!"
|
||||||
line "That's my CLEFAIRY"
|
line "That's my CLEFAIRY"
|
||||||
cont "# DOLL!"
|
cont "# DOLL!"
|
||||||
@@ -265,13 +265,13 @@ UnknownText_0x18b17f:
|
|||||||
line "proof!"
|
line "proof!"
|
||||||
done
|
done
|
||||||
|
|
||||||
UnknownText_0x18b1e2:
|
CopycatText_GivePass:
|
||||||
text "OK. Here's the"
|
text "OK. Here's the"
|
||||||
line "MAGNET TRAIN PASS"
|
line "MAGNET TRAIN PASS"
|
||||||
cont "like I promised!"
|
cont "like I promised!"
|
||||||
done
|
done
|
||||||
|
|
||||||
UnknownText_0x18b214:
|
CopycatText_ExplainPass:
|
||||||
text "COPYCAT: That's"
|
text "COPYCAT: That's"
|
||||||
line "the PASS for the"
|
line "the PASS for the"
|
||||||
cont "MAGNET TRAIN."
|
cont "MAGNET TRAIN."
|
||||||
@@ -284,7 +284,7 @@ UnknownText_0x18b214:
|
|||||||
cont "for the STATION."
|
cont "for the STATION."
|
||||||
done
|
done
|
||||||
|
|
||||||
UnknownText_0x18b298:
|
CopycatText_Male_3:
|
||||||
text "<PLAYER>: Hi!"
|
text "<PLAYER>: Hi!"
|
||||||
line "Thanks a lot for"
|
line "Thanks a lot for"
|
||||||
cont "the rail PASS!"
|
cont "the rail PASS!"
|
||||||
@@ -296,12 +296,12 @@ UnknownText_0x18b298:
|
|||||||
cont "my every move?"
|
cont "my every move?"
|
||||||
done
|
done
|
||||||
|
|
||||||
UnknownText_0x18b2f5:
|
CopycatText_ItsAScream:
|
||||||
text "COPYCAT: You bet!"
|
text "COPYCAT: You bet!"
|
||||||
line "It's a scream!"
|
line "It's a scream!"
|
||||||
done
|
done
|
||||||
|
|
||||||
UnknownText_0x18b316:
|
CopycatText_Female_1:
|
||||||
text "<PLAYER>: Hi. You"
|
text "<PLAYER>: Hi. You"
|
||||||
line "must like #MON."
|
line "must like #MON."
|
||||||
|
|
||||||
@@ -312,7 +312,7 @@ UnknownText_0x18b316:
|
|||||||
line "You're weird!"
|
line "You're weird!"
|
||||||
done
|
done
|
||||||
|
|
||||||
UnknownText_0x18b366:
|
CopycatText_Female_2:
|
||||||
text "<PLAYER>: Hi. Did"
|
text "<PLAYER>: Hi. Did"
|
||||||
line "you really lose"
|
line "you really lose"
|
||||||
cont "your # DOLL?"
|
cont "your # DOLL?"
|
||||||
@@ -331,7 +331,7 @@ UnknownText_0x18b366:
|
|||||||
cont "in VERMILION?"
|
cont "in VERMILION?"
|
||||||
done
|
done
|
||||||
|
|
||||||
UnknownText_0x18b415:
|
CopycatText_Female_3:
|
||||||
text "<PLAYER>: Thank you"
|
text "<PLAYER>: Thank you"
|
||||||
line "for the rail PASS!"
|
line "for the rail PASS!"
|
||||||
|
|
||||||
|
@@ -35,7 +35,7 @@ JanineScript_0x195db9:
|
|||||||
variablesprite SPRITE_FUCHSIA_GYM_2, SPRITE_LASS
|
variablesprite SPRITE_FUCHSIA_GYM_2, SPRITE_LASS
|
||||||
variablesprite SPRITE_FUCHSIA_GYM_3, SPRITE_LASS
|
variablesprite SPRITE_FUCHSIA_GYM_3, SPRITE_LASS
|
||||||
variablesprite SPRITE_FUCHSIA_GYM_4, SPRITE_YOUNGSTER
|
variablesprite SPRITE_FUCHSIA_GYM_4, SPRITE_YOUNGSTER
|
||||||
special RunCallback_04
|
special MapCallbackSprites_LoadUsedSpritesGFX
|
||||||
opentext
|
opentext
|
||||||
writetext UnknownText_0x195feb
|
writetext UnknownText_0x195feb
|
||||||
playsound SFX_GET_BADGE
|
playsound SFX_GET_BADGE
|
||||||
@@ -65,7 +65,7 @@ FuschiaGym1Script_0x195e1b:
|
|||||||
applymovement FUCHSIAGYM_FUCHSIA_GYM_1, MovementData_0x195f27
|
applymovement FUCHSIAGYM_FUCHSIA_GYM_1, MovementData_0x195f27
|
||||||
faceplayer
|
faceplayer
|
||||||
variablesprite SPRITE_FUCHSIA_GYM_1, SPRITE_LASS
|
variablesprite SPRITE_FUCHSIA_GYM_1, SPRITE_LASS
|
||||||
special RunCallback_04
|
special MapCallbackSprites_LoadUsedSpritesGFX
|
||||||
UnknownScript_0x195e2c:
|
UnknownScript_0x195e2c:
|
||||||
faceplayer
|
faceplayer
|
||||||
opentext
|
opentext
|
||||||
@@ -99,7 +99,7 @@ FuschiaGym2Script_0x195e55:
|
|||||||
applymovement FUCHSIAGYM_FUCHSIA_GYM_2, MovementData_0x195f27
|
applymovement FUCHSIAGYM_FUCHSIA_GYM_2, MovementData_0x195f27
|
||||||
faceplayer
|
faceplayer
|
||||||
variablesprite SPRITE_FUCHSIA_GYM_2, SPRITE_LASS
|
variablesprite SPRITE_FUCHSIA_GYM_2, SPRITE_LASS
|
||||||
special RunCallback_04
|
special MapCallbackSprites_LoadUsedSpritesGFX
|
||||||
UnknownScript_0x195e66:
|
UnknownScript_0x195e66:
|
||||||
faceplayer
|
faceplayer
|
||||||
opentext
|
opentext
|
||||||
@@ -133,7 +133,7 @@ FuschiaGym3Script_0x195e8f:
|
|||||||
applymovement FUCHSIAGYM_FUCHSIA_GYM_3, MovementData_0x195f27
|
applymovement FUCHSIAGYM_FUCHSIA_GYM_3, MovementData_0x195f27
|
||||||
faceplayer
|
faceplayer
|
||||||
variablesprite SPRITE_FUCHSIA_GYM_3, SPRITE_LASS
|
variablesprite SPRITE_FUCHSIA_GYM_3, SPRITE_LASS
|
||||||
special RunCallback_04
|
special MapCallbackSprites_LoadUsedSpritesGFX
|
||||||
UnknownScript_0x195ea0:
|
UnknownScript_0x195ea0:
|
||||||
faceplayer
|
faceplayer
|
||||||
opentext
|
opentext
|
||||||
@@ -167,7 +167,7 @@ FuschiaGym4Script_0x195ec9:
|
|||||||
applymovement FUCHSIAGYM_FUCHSIA_GYM_4, MovementData_0x195f27
|
applymovement FUCHSIAGYM_FUCHSIA_GYM_4, MovementData_0x195f27
|
||||||
faceplayer
|
faceplayer
|
||||||
variablesprite SPRITE_FUCHSIA_GYM_4, SPRITE_YOUNGSTER
|
variablesprite SPRITE_FUCHSIA_GYM_4, SPRITE_YOUNGSTER
|
||||||
special RunCallback_04
|
special MapCallbackSprites_LoadUsedSpritesGFX
|
||||||
UnknownScript_0x195eda:
|
UnknownScript_0x195eda:
|
||||||
faceplayer
|
faceplayer
|
||||||
opentext
|
opentext
|
||||||
|
@@ -35,7 +35,7 @@ JanineImpersonatorScript_0x196462:
|
|||||||
applymovement FUCHSIAPOKECENTER1F_JANINE_IMPERSONATOR, MovementData_0x196486
|
applymovement FUCHSIAPOKECENTER1F_JANINE_IMPERSONATOR, MovementData_0x196486
|
||||||
faceplayer
|
faceplayer
|
||||||
variablesprite SPRITE_JANINE_IMPERSONATOR, SPRITE_JANINE
|
variablesprite SPRITE_JANINE_IMPERSONATOR, SPRITE_JANINE
|
||||||
special RunCallback_04
|
special MapCallbackSprites_LoadUsedSpritesGFX
|
||||||
opentext
|
opentext
|
||||||
writetext UnknownText_0x19654e
|
writetext UnknownText_0x19654e
|
||||||
waitbutton
|
waitbutton
|
||||||
@@ -43,7 +43,7 @@ JanineImpersonatorScript_0x196462:
|
|||||||
applymovement FUCHSIAPOKECENTER1F_JANINE_IMPERSONATOR, MovementData_0x196486
|
applymovement FUCHSIAPOKECENTER1F_JANINE_IMPERSONATOR, MovementData_0x196486
|
||||||
faceplayer
|
faceplayer
|
||||||
variablesprite SPRITE_JANINE_IMPERSONATOR, SPRITE_LASS
|
variablesprite SPRITE_JANINE_IMPERSONATOR, SPRITE_LASS
|
||||||
special RunCallback_04
|
special MapCallbackSprites_LoadUsedSpritesGFX
|
||||||
end
|
end
|
||||||
|
|
||||||
MovementData_0x196486:
|
MovementData_0x196486:
|
||||||
|
@@ -49,7 +49,7 @@ UnknownScript_0x1a8833:
|
|||||||
disappear OLIVINECITY_OLIVINE_RIVAL
|
disappear OLIVINECITY_OLIVINE_RIVAL
|
||||||
special RestartMapMusic
|
special RestartMapMusic
|
||||||
variablesprite SPRITE_OLIVINE_RIVAL, SPRITE_SWIMMER_GUY
|
variablesprite SPRITE_OLIVINE_RIVAL, SPRITE_SWIMMER_GUY
|
||||||
special RunCallback_04
|
special MapCallbackSprites_LoadUsedSpritesGFX
|
||||||
end
|
end
|
||||||
|
|
||||||
UnknownScript_0x1a886b:
|
UnknownScript_0x1a886b:
|
||||||
@@ -73,7 +73,7 @@ UnknownScript_0x1a886b:
|
|||||||
dotrigger $1
|
dotrigger $1
|
||||||
special RestartMapMusic
|
special RestartMapMusic
|
||||||
variablesprite SPRITE_OLIVINE_RIVAL, SPRITE_SWIMMER_GUY
|
variablesprite SPRITE_OLIVINE_RIVAL, SPRITE_SWIMMER_GUY
|
||||||
special RunCallback_04
|
special MapCallbackSprites_LoadUsedSpritesGFX
|
||||||
end
|
end
|
||||||
|
|
||||||
SailorScript_0x1a88a3:
|
SailorScript_0x1a88a3:
|
||||||
|
@@ -99,7 +99,7 @@ DidntCatchSudowoodo:
|
|||||||
applymovement ROUTE36_WEIRD_TREE, WeirdTreeMovement_Flee
|
applymovement ROUTE36_WEIRD_TREE, WeirdTreeMovement_Flee
|
||||||
disappear ROUTE36_WEIRD_TREE
|
disappear ROUTE36_WEIRD_TREE
|
||||||
variablesprite SPRITE_WEIRD_TREE, SPRITE_TWIN
|
variablesprite SPRITE_WEIRD_TREE, SPRITE_TWIN
|
||||||
special RunCallback_04
|
special MapCallbackSprites_LoadUsedSpritesGFX
|
||||||
special RefreshSprites
|
special RefreshSprites
|
||||||
end
|
end
|
||||||
|
|
||||||
|
124
wram.asm
124
wram.asm
@@ -242,26 +242,6 @@ wc311:: ds 1
|
|||||||
wc312:: ds 1
|
wc312:: ds 1
|
||||||
wc313:: ds 1
|
wc313:: ds 1
|
||||||
wSpriteAnimationStructs::
|
wSpriteAnimationStructs::
|
||||||
|
|
||||||
sprite_anim_struct: MACRO
|
|
||||||
\1Index:: ds 1 ; 0
|
|
||||||
\1FramesetID:: ds 1 ; 1
|
|
||||||
\1AnimSeqID:: ds 1 ; 2
|
|
||||||
\1TileID:: ds 1 ; 3
|
|
||||||
\1XCoord:: ds 1 ; 4
|
|
||||||
\1YCoord:: ds 1 ; 5
|
|
||||||
\1XOffset:: ds 1 ; 6
|
|
||||||
\1YOffset:: ds 1 ; 7
|
|
||||||
\1Duration:: ds 1 ; 8
|
|
||||||
\1DurationOffset:: ds 1 ; 9
|
|
||||||
\1FrameIndex:: ds 1 ; a
|
|
||||||
\1Sprite0b:: ds 1
|
|
||||||
\1Sprite0c:: ds 1
|
|
||||||
\1Sprite0d:: ds 1
|
|
||||||
\1Sprite0e:: ds 1
|
|
||||||
\1Sprite0f:: ds 1
|
|
||||||
ENDM
|
|
||||||
|
|
||||||
; Field 0: Index
|
; Field 0: Index
|
||||||
; Fields 1-3: Loaded from SpriteAnimSeqData
|
; Fields 1-3: Loaded from SpriteAnimSeqData
|
||||||
wc314::
|
wc314::
|
||||||
@@ -1531,11 +1511,6 @@ wBufferMon:: party_struct wBufferMon
|
|||||||
wMonOrItemNameBuffer::
|
wMonOrItemNameBuffer::
|
||||||
ds wBufferMonNick - @
|
ds wBufferMonNick - @
|
||||||
|
|
||||||
bugcontestwinner: macro
|
|
||||||
\1PersonID:: ds 1
|
|
||||||
\1Mon:: ds 1
|
|
||||||
\1Score:: ds 2
|
|
||||||
endm
|
|
||||||
wBugContestResults::
|
wBugContestResults::
|
||||||
bugcontestwinner wBugContestFirstPlace
|
bugcontestwinner wBugContestFirstPlace
|
||||||
bugcontestwinner wBugContestSecondPlace
|
bugcontestwinner wBugContestSecondPlace
|
||||||
@@ -2351,44 +2326,6 @@ wFollowerMovementQueueLength:: ds 1
|
|||||||
wFollowMovementQueue:: ds 5
|
wFollowMovementQueue:: ds 5
|
||||||
|
|
||||||
ObjectStructs:: ; d4d6
|
ObjectStructs:: ; d4d6
|
||||||
object_struct: MACRO
|
|
||||||
\1Struct::
|
|
||||||
\1Sprite:: ds 1
|
|
||||||
\1MapObjectIndex:: ds 1
|
|
||||||
\1SpriteTile:: ds 1
|
|
||||||
\1MovementType:: ds 1
|
|
||||||
\1Flags:: ds 2
|
|
||||||
\1Palette:: ds 1
|
|
||||||
\1Walking:: ds 1
|
|
||||||
\1Direction:: ds 1
|
|
||||||
\1StepType:: ds 1
|
|
||||||
\1StepDuration:: ds 1
|
|
||||||
\1Action:: ds 1
|
|
||||||
\1ObjectStepFrame:: ds 1
|
|
||||||
\1Facing:: ds 1
|
|
||||||
\1StandingTile:: ds 1 ; collision
|
|
||||||
\1LastTile:: ds 1 ; collision
|
|
||||||
\1StandingMapX:: ds 1
|
|
||||||
\1StandingMapY:: ds 1
|
|
||||||
\1LastMapX:: ds 1
|
|
||||||
\1LastMapY:: ds 1
|
|
||||||
\1ObjectInitX:: ds 1
|
|
||||||
\1ObjectInitY:: ds 1
|
|
||||||
\1Radius:: ds 1
|
|
||||||
\1SpriteX:: ds 1
|
|
||||||
\1SpriteY:: ds 1
|
|
||||||
\1SpriteXOffset:: ds 1
|
|
||||||
\1SpriteYOffset:: ds 1
|
|
||||||
\1MovementByteIndex:: ds 1
|
|
||||||
\1Object28:: ds 1
|
|
||||||
\1Object29:: ds 1
|
|
||||||
\1Object30:: ds 1
|
|
||||||
\1Object31:: ds 1
|
|
||||||
\1Range:: ds 1
|
|
||||||
ds 7
|
|
||||||
\1StructEnd::
|
|
||||||
ENDM
|
|
||||||
|
|
||||||
object_struct Player
|
object_struct Player
|
||||||
object_struct Object1
|
object_struct Object1
|
||||||
object_struct Object2
|
object_struct Object2
|
||||||
@@ -2408,23 +2345,6 @@ wCmdQueue:: ds CMDQUEUE_CAPACITY * CMDQUEUE_ENTRY_SIZE
|
|||||||
ds $28
|
ds $28
|
||||||
|
|
||||||
MapObjects:: ; d71e
|
MapObjects:: ; d71e
|
||||||
map_object: MACRO
|
|
||||||
\1Object::
|
|
||||||
\1ObjectStructID:: ds 1
|
|
||||||
\1ObjectSprite:: ds 1
|
|
||||||
\1ObjectYCoord:: ds 1
|
|
||||||
\1ObjectXCoord:: ds 1
|
|
||||||
\1ObjectMovement:: ds 1
|
|
||||||
\1ObjectRadius:: ds 1
|
|
||||||
\1ObjectHour:: ds 1
|
|
||||||
\1ObjectTimeOfDay:: ds 1
|
|
||||||
\1ObjectColor:: ds 1
|
|
||||||
\1ObjectRange:: ds 1
|
|
||||||
\1ObjectScript:: ds 2
|
|
||||||
\1ObjectEventFlag:: ds 2
|
|
||||||
ds 2
|
|
||||||
endm
|
|
||||||
|
|
||||||
map_object Player
|
map_object Player
|
||||||
map_object Map1
|
map_object Map1
|
||||||
map_object Map2
|
map_object Map2
|
||||||
@@ -2921,15 +2841,6 @@ wDunsparceMapGroup:: ds 1
|
|||||||
wDunsparceMapNumber:: ds 1
|
wDunsparceMapNumber:: ds 1
|
||||||
wFishingSwarmFlag:: ds 1
|
wFishingSwarmFlag:: ds 1
|
||||||
|
|
||||||
roam_struct: MACRO
|
|
||||||
\1Species:: db
|
|
||||||
\1Level:: db
|
|
||||||
\1MapGroup:: db
|
|
||||||
\1MapNumber:: db
|
|
||||||
\1HP:: ds 1
|
|
||||||
\1DVs:: ds 2
|
|
||||||
ENDM
|
|
||||||
|
|
||||||
wRoamMon1:: roam_struct wRoamMon1 ; dfcf
|
wRoamMon1:: roam_struct wRoamMon1 ; dfcf
|
||||||
wRoamMon2:: roam_struct wRoamMon2 ; dfd6
|
wRoamMon2:: roam_struct wRoamMon2 ; dfd6
|
||||||
wRoamMon3:: roam_struct wRoamMon3 ; dfdd
|
wRoamMon3:: roam_struct wRoamMon3 ; dfdd
|
||||||
@@ -3064,34 +2975,6 @@ SECTION "Battle Animations", WRAMX [$d300], BANK [5]
|
|||||||
|
|
||||||
wBattleAnimTileDict:: ds 10
|
wBattleAnimTileDict:: ds 10
|
||||||
|
|
||||||
battle_anim_struct: MACRO
|
|
||||||
; Placeholder until we can figure out what it all means
|
|
||||||
\1_Index:: ds 1
|
|
||||||
\1_Anim01:: ds 1
|
|
||||||
\1_Anim02:: ds 1
|
|
||||||
\1_FramesetIndex:: ds 1
|
|
||||||
\1_FunctionIndex:: ds 1
|
|
||||||
\1_Anim05:: ds 1
|
|
||||||
\1_TileID:: ds 1
|
|
||||||
\1_XCoord:: ds 1
|
|
||||||
\1_YCoord:: ds 1
|
|
||||||
\1_XOffset:: ds 1
|
|
||||||
\1_YOffset:: ds 1
|
|
||||||
\1_Anim0b:: ds 1
|
|
||||||
\1_Anim0c:: ds 1
|
|
||||||
\1_Anim0d:: ds 1
|
|
||||||
\1_AnonJumptableIndex:: ds 1
|
|
||||||
\1_Anim0f:: ds 1
|
|
||||||
\1_Anim10:: ds 1
|
|
||||||
\1_Anim11:: ds 1
|
|
||||||
\1_Anim12:: ds 1
|
|
||||||
\1_Anim13:: ds 1
|
|
||||||
\1_Anim14:: ds 1
|
|
||||||
\1_Anim15:: ds 1
|
|
||||||
\1_Anim16:: ds 1
|
|
||||||
\1_Anim17:: ds 1
|
|
||||||
endm
|
|
||||||
|
|
||||||
ActiveAnimObjects:: ; d30a
|
ActiveAnimObjects:: ; d30a
|
||||||
AnimObject01:: battle_anim_struct AnimObject01
|
AnimObject01:: battle_anim_struct AnimObject01
|
||||||
AnimObject02:: battle_anim_struct AnimObject02
|
AnimObject02:: battle_anim_struct AnimObject02
|
||||||
@@ -3105,13 +2988,6 @@ AnimObject09:: battle_anim_struct AnimObject09
|
|||||||
AnimObject10:: battle_anim_struct AnimObject10
|
AnimObject10:: battle_anim_struct AnimObject10
|
||||||
ActiveAnimObjectsEnd:: ; d3aa
|
ActiveAnimObjectsEnd:: ; d3aa
|
||||||
|
|
||||||
battle_bg_effect: MACRO
|
|
||||||
\1_Function:: ds 1
|
|
||||||
\1_01:: ds 1
|
|
||||||
\1_02:: ds 1
|
|
||||||
\1_03:: ds 1
|
|
||||||
endm
|
|
||||||
|
|
||||||
ActiveBGEffects:: ; d3fa
|
ActiveBGEffects:: ; d3fa
|
||||||
BGEffect1:: battle_bg_effect BGEffect1
|
BGEffect1:: battle_bg_effect BGEffect1
|
||||||
BGEffect2:: battle_bg_effect BGEffect2
|
BGEffect2:: battle_bg_effect BGEffect2
|
||||||
|
Reference in New Issue
Block a user