2013-08-04 08:57:48 +00:00
|
|
|
SECTION "tiles0",VRAM[$8000],BANK[0]
|
2013-02-04 09:27:56 +00:00
|
|
|
VTiles0:
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "tiles1",VRAM[$8800],BANK[0]
|
2013-02-04 09:27:56 +00:00
|
|
|
VTiles1:
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "tiles2",VRAM[$9000],BANK[0]
|
2013-02-04 09:27:56 +00:00
|
|
|
VTiles2:
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "bgmap0",VRAM[$9800],BANK[0]
|
2013-02-04 09:27:56 +00:00
|
|
|
VBGMap0:
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "bgmap1",VRAM[$9C00],BANK[0]
|
2013-02-04 09:27:56 +00:00
|
|
|
VBGMap1:
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "WRAMBank0",WRAM0[$c000]
|
2013-02-04 09:27:56 +00:00
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "stack",WRAM0[$c000]
|
2013-07-02 18:10:49 +00:00
|
|
|
ds $100
|
2013-02-04 09:27:56 +00:00
|
|
|
Stack: ; c100
|
2012-12-14 08:00:10 +00:00
|
|
|
|
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "audio",WRAM0[$c100]
|
2012-11-02 22:43:05 +00:00
|
|
|
MusicPlaying: ; c100
|
|
|
|
; nonzero if playing
|
|
|
|
ds 1
|
2012-10-09 06:32:05 +00:00
|
|
|
|
|
|
|
Channels:
|
|
|
|
Channel1:
|
|
|
|
Channel1MusicID: ; c101
|
|
|
|
ds 2
|
|
|
|
Channel1MusicBank: ; c103
|
|
|
|
ds 1
|
2012-11-02 22:43:05 +00:00
|
|
|
Channel1Flags: ; c104
|
|
|
|
; 0: on/off
|
|
|
|
; 1: subroutine
|
|
|
|
; 2:
|
|
|
|
; 3:
|
|
|
|
; 4: noise sampling on/off
|
|
|
|
; 5:
|
|
|
|
; 6:
|
|
|
|
; 7:
|
|
|
|
ds 1
|
|
|
|
Channel1Flags2: ; c105
|
|
|
|
; 0: vibrato on/off
|
|
|
|
; 1:
|
|
|
|
; 2: duty cycle on/off
|
|
|
|
; 3:
|
|
|
|
; 4:
|
|
|
|
; 5:
|
|
|
|
; 6:
|
|
|
|
; 7:
|
|
|
|
ds 1
|
|
|
|
Channel1Flags3: ; c106
|
|
|
|
; 0: vibrato up/down
|
|
|
|
; 1:
|
|
|
|
; 2:
|
|
|
|
; 3:
|
|
|
|
; 4:
|
|
|
|
; 5:
|
|
|
|
; 6:
|
|
|
|
; 7:
|
2012-10-09 06:32:05 +00:00
|
|
|
ds 1
|
|
|
|
Channel1MusicAddress: ; c107
|
|
|
|
ds 2
|
2012-11-02 22:43:05 +00:00
|
|
|
Channel1LastMusicAddress: ; c109
|
|
|
|
ds 2
|
|
|
|
; could have been meant as a third-level address
|
2013-07-02 18:10:49 +00:00
|
|
|
ds 2
|
2012-11-02 22:43:05 +00:00
|
|
|
Channel1NoteFlags: ; c10d
|
|
|
|
; 0:
|
|
|
|
; 1:
|
|
|
|
; 2:
|
|
|
|
; 3:
|
|
|
|
; 4:
|
|
|
|
; 5: rest
|
|
|
|
; 6:
|
|
|
|
; 7:
|
|
|
|
ds 1
|
|
|
|
Channel1Condition: ; c10e
|
|
|
|
; used for conditional jumps
|
|
|
|
ds 1
|
|
|
|
Channel1DutyCycle: ; c10f
|
|
|
|
; uses top 2 bits only
|
|
|
|
; 0: 12.5%
|
|
|
|
; 1: 25%
|
|
|
|
; 2: 50%
|
|
|
|
; 3: 75%
|
|
|
|
ds 1
|
|
|
|
Channel1Intensity: ; c110
|
|
|
|
; hi: pressure
|
|
|
|
; lo: velocity
|
|
|
|
ds 1
|
2012-11-03 04:45:14 +00:00
|
|
|
Channel1Frequency:
|
2012-11-02 22:43:05 +00:00
|
|
|
; 11 bits
|
2012-11-03 04:45:14 +00:00
|
|
|
Channel1FrequencyLo: ; c111
|
|
|
|
ds 1
|
|
|
|
Channel1FrequencyHi: ; c112
|
|
|
|
ds 1
|
2012-11-02 22:43:05 +00:00
|
|
|
Channel1Pitch: ; c113
|
|
|
|
; 0: rest
|
|
|
|
; 1: C
|
|
|
|
; 2: C#
|
|
|
|
; 3: D
|
|
|
|
; 4: D#
|
|
|
|
; 5: E
|
|
|
|
; 6: F
|
|
|
|
; 7: F#
|
|
|
|
; 8: G
|
|
|
|
; 9: G#
|
|
|
|
; a: A
|
|
|
|
; b: A#
|
|
|
|
; c: B
|
|
|
|
ds 1
|
|
|
|
Channel1Octave: ; c114
|
|
|
|
; 0: highest
|
|
|
|
; 7: lowest
|
|
|
|
ds 1
|
|
|
|
Channel1StartingOctave ; c115
|
|
|
|
; raises existing octaves by this value
|
|
|
|
; used for repeating phrases in a higher octave to save space
|
|
|
|
ds 1
|
|
|
|
Channel1NoteDuration: ; c116
|
|
|
|
; number of frames remaining in the current note
|
|
|
|
ds 1
|
|
|
|
; c117
|
|
|
|
ds 1
|
|
|
|
; c118
|
|
|
|
ds 1
|
|
|
|
Channel1LoopCount ; c119
|
|
|
|
ds 1
|
|
|
|
Channel1Tempo: ; c11a
|
2012-10-09 06:32:05 +00:00
|
|
|
ds 2
|
2012-11-02 22:43:05 +00:00
|
|
|
Channel1Tracks: ; c11c
|
|
|
|
; hi: l
|
|
|
|
; lo: r
|
2012-10-09 06:32:05 +00:00
|
|
|
ds 1
|
2012-11-02 22:43:05 +00:00
|
|
|
; c11d
|
2012-10-09 06:32:05 +00:00
|
|
|
ds 1
|
2012-11-02 22:43:05 +00:00
|
|
|
|
|
|
|
Channel1VibratoDelayCount: ; c11e
|
|
|
|
; initialized at the value in VibratoDelay
|
|
|
|
; decrements each frame
|
|
|
|
; at 0, vibrato starts
|
|
|
|
ds 1
|
|
|
|
Channel1VibratoDelay: ; c11f
|
|
|
|
; number of frames a note plays until vibrato starts
|
|
|
|
ds 1
|
|
|
|
Channel1VibratoExtent: ; c120
|
|
|
|
; difference in
|
|
|
|
ds 1
|
|
|
|
Channel1VibratoRate: ; c121
|
|
|
|
; counts down from a max of 15 frames
|
|
|
|
; over which the pitch is alternated
|
|
|
|
; hi: init frames
|
|
|
|
; lo: frame count
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
; c122
|
|
|
|
ds 1
|
|
|
|
; c123
|
|
|
|
ds 1
|
|
|
|
; c124
|
|
|
|
ds 1
|
|
|
|
; c125
|
|
|
|
ds 1
|
|
|
|
; c126
|
|
|
|
ds 1
|
2013-02-23 21:47:39 +00:00
|
|
|
; c127
|
|
|
|
ds 1
|
|
|
|
Channel1CryPitch: ; c128
|
|
|
|
ds 1
|
|
|
|
Channel1CryEcho: ; c129
|
|
|
|
ds 1
|
|
|
|
ds 4
|
2012-11-02 22:43:05 +00:00
|
|
|
Channel1NoteLength: ; c12e
|
|
|
|
; # frames per 16th note
|
|
|
|
ds 1
|
|
|
|
; c12f
|
|
|
|
ds 1
|
|
|
|
; c130
|
|
|
|
ds 1
|
|
|
|
; c131
|
|
|
|
ds 1
|
|
|
|
; c132
|
|
|
|
ds 1
|
|
|
|
; end
|
2012-10-09 06:32:05 +00:00
|
|
|
|
|
|
|
Channel2: ; c133
|
|
|
|
ds 50
|
|
|
|
Channel3: ; c165
|
|
|
|
ds 50
|
|
|
|
Channel4: ; c197
|
|
|
|
ds 50
|
|
|
|
|
2012-10-12 00:35:22 +00:00
|
|
|
SFXChannels:
|
2012-10-09 06:32:05 +00:00
|
|
|
Channel5: ; c1c9
|
|
|
|
ds 50
|
|
|
|
Channel6: ; c1fb
|
|
|
|
ds 50
|
|
|
|
Channel7: ; c22d
|
|
|
|
ds 50
|
|
|
|
Channel8: ; c25f
|
|
|
|
ds 50
|
|
|
|
|
2012-11-02 22:43:05 +00:00
|
|
|
; c291
|
|
|
|
ds 1
|
|
|
|
; c292
|
|
|
|
ds 1
|
|
|
|
; c293
|
|
|
|
ds 1
|
|
|
|
; c294
|
|
|
|
ds 1
|
|
|
|
; c295
|
|
|
|
ds 1
|
|
|
|
; c296
|
2012-10-09 06:32:05 +00:00
|
|
|
ds 1
|
2012-11-02 22:43:05 +00:00
|
|
|
; c297
|
2012-10-09 06:32:05 +00:00
|
|
|
ds 1
|
|
|
|
|
2012-11-02 22:43:05 +00:00
|
|
|
CurMusicByte: ; c298
|
|
|
|
ds 1
|
|
|
|
CurChannel: ; c299
|
|
|
|
ds 1
|
2012-10-09 06:32:05 +00:00
|
|
|
Volume: ; c29a
|
|
|
|
; corresponds to $ff24
|
|
|
|
; Channel control / ON-OFF / Volume (R/W)
|
|
|
|
; bit 7 - Vin->SO2 ON/OFF
|
|
|
|
; bit 6-4 - SO2 output level (volume) (# 0-7)
|
|
|
|
; bit 3 - Vin->SO1 ON/OFF
|
|
|
|
; bit 2-0 - SO1 output level (volume) (# 0-7)
|
|
|
|
ds 1
|
2012-11-02 22:43:05 +00:00
|
|
|
SoundOutput: ; c29b
|
|
|
|
; corresponds to $ff25
|
|
|
|
; bit 4-7: ch1-4 so2 on/off
|
|
|
|
; bit 0-3: ch1-4 so1 on/off
|
|
|
|
ds 1
|
|
|
|
SoundInput: ; c29c
|
|
|
|
; corresponds to $ff26
|
|
|
|
; bit 7: global on/off
|
|
|
|
; bit 0: ch1 on/off
|
|
|
|
; bit 1: ch2 on/off
|
|
|
|
; bit 2: ch3 on/off
|
|
|
|
; bit 3: ch4 on/off
|
|
|
|
ds 1
|
2012-10-09 06:32:05 +00:00
|
|
|
|
|
|
|
MusicID:
|
|
|
|
MusicIDLo: ; c29d
|
|
|
|
ds 1
|
|
|
|
MusicIDHi: ; c29e
|
|
|
|
ds 1
|
|
|
|
MusicBank: ; c29f
|
|
|
|
ds 1
|
2012-11-02 22:43:05 +00:00
|
|
|
NoiseSampleAddress:
|
|
|
|
NoiseSampleAddressLo: ; c2a0
|
|
|
|
ds 1
|
|
|
|
NoiseSampleAddressHi: ; c2a1
|
|
|
|
ds 1
|
|
|
|
; noise delay? ; c2a2
|
|
|
|
ds 1
|
|
|
|
; c2a3
|
|
|
|
ds 1
|
|
|
|
MusicNoiseSampleSet: ; c2a4
|
|
|
|
ds 1
|
|
|
|
SFXNoiseSampleSet: ; c2a5
|
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
Danger: ; c2a6
|
|
|
|
; bit 7: on/off
|
|
|
|
; bit 4: pitch
|
|
|
|
; bit 0-3: counter
|
2012-11-02 22:43:05 +00:00
|
|
|
ds 1
|
|
|
|
MusicFade: ; c2a7
|
|
|
|
; fades volume over x frames
|
|
|
|
; bit 7: fade in/out
|
|
|
|
; bit 0-5: number of frames for each volume level
|
|
|
|
; $00 = none (default)
|
|
|
|
ds 1
|
|
|
|
MusicFadeCount: ; c2a8
|
|
|
|
ds 1
|
|
|
|
MusicFadeID:
|
|
|
|
MusicFadeIDLo: ; c2a9
|
|
|
|
ds 1
|
|
|
|
MusicFadeIDHi: ; c2aa
|
|
|
|
ds 1
|
2013-02-23 21:47:39 +00:00
|
|
|
ds 5
|
|
|
|
CryPitch: ; c2b0
|
|
|
|
ds 1
|
|
|
|
CryEcho: ; c2b1
|
|
|
|
ds 1
|
|
|
|
CryLength: ; c2b2
|
|
|
|
ds 2
|
2012-11-02 22:43:05 +00:00
|
|
|
LastVolume: ; c2b4
|
|
|
|
ds 1
|
|
|
|
ds 1
|
|
|
|
SFXPriority: ; c2b6
|
|
|
|
; if nonzero, turn off music when playing sfx
|
|
|
|
ds 1
|
|
|
|
ds 6
|
2013-01-01 19:20:15 +00:00
|
|
|
CryTracks: ; c2bd
|
2012-11-02 22:43:05 +00:00
|
|
|
; plays only in left or right track depending on what side the monster is on
|
|
|
|
; both tracks active outside of battle
|
|
|
|
ds 1
|
|
|
|
ds 1
|
2012-10-12 00:35:22 +00:00
|
|
|
CurSFX: ; c2bf
|
|
|
|
; id of sfx currently playing
|
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
CurMusic: ; c2c0
|
|
|
|
; id of music currently playing
|
|
|
|
ds 1
|
2012-10-09 06:32:05 +00:00
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "auto",WRAM0[$c2c7]
|
2012-12-23 08:21:19 +00:00
|
|
|
InputType: ; c2c7
|
2013-07-02 18:10:49 +00:00
|
|
|
AUTO_INPUT EQU $ff
|
2012-12-23 08:21:19 +00:00
|
|
|
ds 1
|
|
|
|
AutoInputAddress: ; c2c8
|
|
|
|
ds 2
|
|
|
|
AutoInputBank: ; c2ca
|
|
|
|
ds 1
|
|
|
|
AutoInputLength: ; c2cb
|
|
|
|
ds 1
|
2012-10-09 06:32:05 +00:00
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "linkbattle",WRAM0[$c2dc]
|
2012-12-14 08:00:10 +00:00
|
|
|
InLinkBattle: ; c2dc
|
2012-12-23 08:21:19 +00:00
|
|
|
; 0 not in link battle
|
|
|
|
; 1 link battle
|
|
|
|
; 4 mobile battle
|
|
|
|
ds 1
|
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "scriptengine",WRAM0[$c2dd]
|
2012-12-23 08:21:19 +00:00
|
|
|
ScriptVar: ; c2dd
|
|
|
|
ds 1
|
2012-09-11 03:36:50 +00:00
|
|
|
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "tiles",WRAM0[$c2fa]
|
2012-11-24 02:19:02 +00:00
|
|
|
TileDown: ; c2fa
|
|
|
|
ds 1
|
|
|
|
TileUp: ; c2fb
|
|
|
|
ds 1
|
|
|
|
TileLeft: ; c2fc
|
|
|
|
ds 1
|
|
|
|
TileRight: ; c2fd
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
TilePermissions: ; c2fe
|
|
|
|
; set if tile behavior prevents
|
|
|
|
; you from walking in that direction
|
|
|
|
; bit 3: down
|
|
|
|
; bit 2: up
|
|
|
|
; bit 1: left
|
|
|
|
; bit 0: right
|
|
|
|
ds 1
|
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "icons",WRAM0[$c3b6]
|
2013-02-04 09:27:56 +00:00
|
|
|
|
|
|
|
CurIcon: ; c3b6
|
|
|
|
ds 1
|
2012-06-06 04:26:18 +00:00
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "gfx",WRAM0[$c400]
|
2012-12-14 08:00:10 +00:00
|
|
|
|
|
|
|
Sprites: ; c400
|
|
|
|
; 4 bytes per sprite
|
|
|
|
; 40 sprites
|
|
|
|
; struct:
|
|
|
|
; y in pixels
|
|
|
|
; x in pixels
|
|
|
|
; tile id
|
|
|
|
; attributes:
|
|
|
|
; bit 7: priority
|
|
|
|
; bit 6: y flip
|
|
|
|
; bit 5: x flip
|
|
|
|
; bit 4: pal # (non-cgb)
|
|
|
|
; bit 3: vram bank (cgb only)
|
|
|
|
; bit 2-0: pal # (cgb only)
|
|
|
|
ds 160
|
2013-07-22 07:00:07 +00:00
|
|
|
SpritesEnd
|
2012-12-14 08:00:10 +00:00
|
|
|
|
|
|
|
TileMap: ; c4a0
|
|
|
|
; 20x18 grid of 8x8 tiles
|
|
|
|
ds 360
|
|
|
|
|
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "BattleMons",WRAM0[$c608]
|
2012-12-14 08:00:10 +00:00
|
|
|
|
|
|
|
EnemyMoveStruct:
|
|
|
|
EnemyMoveAnimation: ; c608
|
|
|
|
ds 1
|
|
|
|
EnemyMoveEffect: ; c609
|
|
|
|
ds 1
|
|
|
|
EnemyMovePower: ; c60a
|
|
|
|
ds 1
|
|
|
|
EnemyMoveType: ; c60b
|
|
|
|
ds 1
|
|
|
|
EnemyMoveAccuracy: ; c60c
|
|
|
|
ds 1
|
|
|
|
EnemyMovePP: ; c60d
|
|
|
|
ds 1
|
|
|
|
EnemyMoveEffectChance: ; c60e
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
PlayerMoveStruct:
|
|
|
|
PlayerMoveAnimation: ; c60f
|
|
|
|
ds 1
|
|
|
|
PlayerMoveEffect: ; c610
|
|
|
|
ds 1
|
|
|
|
PlayerMovePower: ; c611
|
|
|
|
ds 1
|
|
|
|
PlayerMoveType: ; c612
|
2012-09-12 02:37:03 +00:00
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
PlayerMoveAccuracy: ; c613
|
2012-09-12 02:37:03 +00:00
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
PlayerMovePP: ; c614
|
|
|
|
ds 1
|
|
|
|
PlayerMoveEffectChance: ; c615
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
EnemyMonNick: ; c616
|
|
|
|
ds 11
|
|
|
|
BattleMonNick: ; c621
|
|
|
|
ds 11
|
|
|
|
|
|
|
|
|
|
|
|
BattleMonSpecies: ; c62c
|
2012-09-12 02:37:03 +00:00
|
|
|
ds 1
|
2012-06-06 04:26:18 +00:00
|
|
|
BattleMonItem: ; c62d
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
BattleMonMoves:
|
|
|
|
BattleMonMove1: ; c62e
|
|
|
|
ds 1
|
|
|
|
BattleMonMove2: ; c62f
|
|
|
|
ds 1
|
|
|
|
BattleMonMove3: ; c630
|
|
|
|
ds 1
|
|
|
|
BattleMonMove4: ; c631
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
BattleMonDVs:
|
|
|
|
BattleMonAtkDefDV: ; c632
|
|
|
|
ds 1
|
|
|
|
BattleMonSpdSpclDV: ; c633
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
BattleMonPP:
|
|
|
|
BattleMonPPMove1: ; c634
|
|
|
|
ds 1
|
|
|
|
BattleMonPPMove2: ; c635
|
|
|
|
ds 1
|
|
|
|
BattleMonPPMove3: ; c636
|
|
|
|
ds 1
|
|
|
|
BattleMonPPMove4: ; c637
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
BattleMonHappiness: ; c638
|
|
|
|
ds 1
|
|
|
|
BattleMonLevel: ; c639
|
|
|
|
ds 1
|
|
|
|
|
2012-09-12 02:37:03 +00:00
|
|
|
BattleMonStatus: ; c63a
|
|
|
|
ds 2
|
2012-06-06 04:26:18 +00:00
|
|
|
|
|
|
|
BattleMonHP: ; c63c
|
|
|
|
ds 2
|
|
|
|
BattleMonMaxHP: ; c63e
|
|
|
|
ds 2
|
|
|
|
|
|
|
|
BattleMonAtk: ; c640
|
|
|
|
ds 2
|
|
|
|
BattleMonDef: ; c642
|
|
|
|
ds 2
|
|
|
|
BattleMonSpd: ; c644
|
|
|
|
ds 2
|
|
|
|
BattleMonSpclAtk: ; c646
|
|
|
|
ds 2
|
|
|
|
BattleMonSpclDef: ; c648
|
|
|
|
ds 2
|
|
|
|
|
2013-03-26 09:22:22 +00:00
|
|
|
BattleMonType1: ; c64a
|
|
|
|
ds 1
|
|
|
|
BattleMonType2: ; c64b
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
ds 23
|
2012-12-14 08:00:10 +00:00
|
|
|
|
|
|
|
CurOTMon: ; c663
|
|
|
|
ds 1
|
|
|
|
|
2013-03-26 09:22:22 +00:00
|
|
|
ds 1
|
|
|
|
|
|
|
|
TypeModifier: ; c665
|
|
|
|
; >10: super-effective
|
|
|
|
; 10: normal
|
|
|
|
; <10: not very effective
|
|
|
|
|
2013-04-19 07:50:13 +00:00
|
|
|
; bit 7: stab
|
2013-03-26 09:22:22 +00:00
|
|
|
ds 1
|
|
|
|
|
|
|
|
CriticalHit: ; c666
|
|
|
|
; nonzero for a critical hit
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
AttackMissed: ; c667
|
|
|
|
; nonzero for a miss
|
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
|
|
|
|
PlayerSubStatus1: ; c668
|
|
|
|
; bit
|
|
|
|
; 7 attract
|
|
|
|
; 6 encore
|
|
|
|
; 5 endure
|
|
|
|
; 4 perish song
|
2013-05-03 05:29:57 +00:00
|
|
|
; 3 identified
|
2012-12-14 08:00:10 +00:00
|
|
|
; 2 protect
|
|
|
|
; 1 curse
|
|
|
|
; 0 nightmare
|
|
|
|
ds 1
|
|
|
|
PlayerSubStatus2: ; c669
|
2013-03-26 09:22:22 +00:00
|
|
|
; bit
|
|
|
|
; 7
|
|
|
|
; 6
|
|
|
|
; 5
|
|
|
|
; 4
|
|
|
|
; 3
|
|
|
|
; 2
|
|
|
|
; 1
|
2013-03-27 05:52:04 +00:00
|
|
|
; 0 curled
|
2012-12-14 08:00:10 +00:00
|
|
|
ds 1
|
|
|
|
PlayerSubStatus3: ; c66a
|
|
|
|
; bit
|
2013-05-03 05:29:57 +00:00
|
|
|
; 7 confused
|
2013-03-26 09:22:22 +00:00
|
|
|
; 6 flying
|
|
|
|
; 5 underground
|
2012-12-14 08:00:10 +00:00
|
|
|
; 4 charged
|
2013-03-26 09:22:22 +00:00
|
|
|
; 3 flinch
|
2012-12-14 08:00:10 +00:00
|
|
|
; 2
|
|
|
|
; 1 rollout
|
|
|
|
; 0 bide
|
|
|
|
ds 1
|
|
|
|
PlayerSubStatus4: ; c66b
|
|
|
|
; bit
|
|
|
|
; 7 leech seed
|
2013-03-27 05:52:04 +00:00
|
|
|
; 6 rage
|
2012-12-14 08:00:10 +00:00
|
|
|
; 5 recharge
|
|
|
|
; 4 substitute
|
|
|
|
; 3
|
2013-03-26 09:22:22 +00:00
|
|
|
; 2 focus energy
|
2013-05-03 05:29:57 +00:00
|
|
|
; 1 mist
|
2013-03-26 09:22:22 +00:00
|
|
|
; 0 bide: unleashed energy
|
2012-12-14 08:00:10 +00:00
|
|
|
ds 1
|
|
|
|
PlayerSubStatus5: ; c66c
|
2013-03-26 09:22:22 +00:00
|
|
|
; bit
|
2013-05-03 06:42:25 +00:00
|
|
|
; 7 cant run
|
2013-03-27 05:52:04 +00:00
|
|
|
; 6 destiny bond
|
2013-03-26 09:22:22 +00:00
|
|
|
; 5 lock-on
|
|
|
|
; 4
|
|
|
|
; 3
|
|
|
|
; 2
|
|
|
|
; 1
|
2013-05-03 05:29:57 +00:00
|
|
|
; 0 toxic
|
2012-12-14 08:00:10 +00:00
|
|
|
ds 1
|
|
|
|
|
|
|
|
EnemySubStatus1: ; c66d
|
|
|
|
; see PlayerSubStatus1
|
|
|
|
ds 1
|
2013-03-26 09:22:22 +00:00
|
|
|
EnemySubStatus2: ; c66e
|
2012-12-14 08:00:10 +00:00
|
|
|
; see PlayerSubStatus2
|
|
|
|
ds 1
|
|
|
|
EnemySubStatus3: ; c66f
|
|
|
|
; see PlayerSubStatus3
|
|
|
|
ds 1
|
|
|
|
EnemySubStatus4: ; c670
|
|
|
|
; see PlayerSubStatus4
|
|
|
|
ds 1
|
|
|
|
EnemySubStatus5: ; c671
|
|
|
|
; see PlayerSubStatus5
|
|
|
|
ds 1
|
|
|
|
|
2013-04-19 07:50:13 +00:00
|
|
|
PlayerRolloutCount: ; c672
|
2013-03-26 09:22:22 +00:00
|
|
|
ds 1
|
|
|
|
PlayerConfuseCount: ; c673
|
|
|
|
ds 1
|
|
|
|
ds 1
|
|
|
|
PlayerDisableCount: ; c675
|
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
PlayerEncoreCount: ; c676
|
|
|
|
ds 1
|
|
|
|
PlayerPerishCount: ; c677
|
|
|
|
ds 1
|
2013-04-19 07:50:13 +00:00
|
|
|
PlayerFuryCutterCount: ; c678
|
2012-12-14 08:00:10 +00:00
|
|
|
ds 1
|
|
|
|
ds 1
|
|
|
|
|
2013-04-19 07:50:13 +00:00
|
|
|
EnemyRolloutCount: ; c67a
|
|
|
|
ds 1
|
|
|
|
EnemyConfuseCount: ; c67b
|
|
|
|
ds 1
|
|
|
|
ds 1
|
2013-05-03 05:29:57 +00:00
|
|
|
EnemyDisableCount: ; c67d
|
2013-04-19 07:50:13 +00:00
|
|
|
ds 1
|
2013-05-03 05:29:57 +00:00
|
|
|
EnemyEncoreCount: ; c67e
|
2013-04-19 07:50:13 +00:00
|
|
|
ds 1
|
2013-05-03 05:29:57 +00:00
|
|
|
EnemyPerishCount: ; c67f
|
2013-04-19 07:50:13 +00:00
|
|
|
ds 1
|
|
|
|
EnemyFuryCutterCount: ; c680
|
|
|
|
ds 1
|
2013-05-03 05:29:57 +00:00
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2013-05-03 05:29:57 +00:00
|
|
|
PlayerDamageTaken: ; c682
|
2012-12-14 08:00:10 +00:00
|
|
|
ds 2
|
2013-05-03 05:29:57 +00:00
|
|
|
EnemyDamageTaken: ; c684
|
2012-12-14 08:00:10 +00:00
|
|
|
ds 2
|
|
|
|
|
2013-05-03 05:29:57 +00:00
|
|
|
ds 3
|
2013-03-27 05:52:04 +00:00
|
|
|
|
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
|
|
|
|
BattleScriptBuffer: ; c68a
|
|
|
|
ds 40
|
|
|
|
|
2013-03-22 08:08:47 +00:00
|
|
|
BattleScriptBufferLoc: ; c6b2
|
|
|
|
ds 2
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2013-06-13 20:10:39 +00:00
|
|
|
ds 2
|
|
|
|
|
|
|
|
PlayerStats: ; c6b6
|
|
|
|
ds 10
|
|
|
|
ds 1
|
|
|
|
EnemyStats: ; c6c1
|
|
|
|
ds 10
|
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
|
|
|
|
PlayerStatLevels: ; c6cc
|
|
|
|
; 07 neutral
|
2013-03-26 09:22:22 +00:00
|
|
|
PlayerAtkLevel: ; c6cc
|
|
|
|
ds 1
|
|
|
|
PlayerDefLevel: ; c6cd
|
|
|
|
ds 1
|
|
|
|
PlayerSpdLevel: ; c6ce
|
|
|
|
ds 1
|
|
|
|
PlayerSAtkLevel: ; c6cf
|
|
|
|
ds 1
|
|
|
|
PlayerSDefLevel: ; c6d0
|
|
|
|
ds 1
|
|
|
|
PlayerAccLevel: ; c6d1
|
|
|
|
ds 1
|
|
|
|
PlayerEvaLevel: ; c6d2
|
|
|
|
ds 1
|
|
|
|
; c6d3
|
|
|
|
ds 1
|
2013-04-08 06:15:08 +00:00
|
|
|
PlayerStatLevelsEnd:
|
2013-03-26 09:22:22 +00:00
|
|
|
|
2012-12-14 08:00:10 +00:00
|
|
|
EnemyStatLevels: ; c6d4
|
|
|
|
; 07 neutral
|
2013-03-26 09:22:22 +00:00
|
|
|
EnemyAtkLevel: ; c6d4
|
|
|
|
ds 1
|
|
|
|
EnemyDefLevel: ; c6d5
|
|
|
|
ds 1
|
|
|
|
EnemySpdLevel: ; c6d6
|
|
|
|
ds 1
|
|
|
|
EnemySAtkLevel: ; c6d7
|
|
|
|
ds 1
|
|
|
|
EnemySDefLevel: ; c6d8
|
|
|
|
ds 1
|
|
|
|
EnemyAccLevel: ; c6d9
|
|
|
|
ds 1
|
|
|
|
EnemyEvaLevel: ; c6da
|
|
|
|
ds 1
|
|
|
|
; c6db
|
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
|
|
|
|
EnemyTurnsTaken: ; c6dc
|
|
|
|
ds 1
|
|
|
|
PlayerTurnsTaken: ; c6dd
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
ds 5
|
|
|
|
|
|
|
|
CurPlayerMove: ; c6e3
|
|
|
|
ds 1
|
|
|
|
CurEnemyMove: ; c6e4
|
|
|
|
ds 1
|
|
|
|
|
2012-11-24 02:19:02 +00:00
|
|
|
LinkBattleRNCount: ; c6e5
|
2012-12-14 08:00:10 +00:00
|
|
|
; how far through the prng stream
|
|
|
|
ds 1
|
|
|
|
|
2013-03-26 09:22:22 +00:00
|
|
|
ds 3
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2013-03-26 09:22:22 +00:00
|
|
|
CurEnemyMoveNum: ; c6e9
|
2012-12-14 08:00:10 +00:00
|
|
|
ds 1
|
|
|
|
|
2013-03-26 09:22:22 +00:00
|
|
|
ds 10
|
|
|
|
|
|
|
|
AlreadyDisobeyed: ; c6f4
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
DisabledMove: ; c6f5
|
|
|
|
ds 1
|
2013-05-04 01:04:34 +00:00
|
|
|
EnemyDisabledMove: ; c6f6
|
2013-03-26 09:22:22 +00:00
|
|
|
ds 1
|
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
|
|
|
|
; exists so you can't counter on switch
|
|
|
|
LastEnemyCounterMove: ; c6f8
|
|
|
|
ds 1
|
|
|
|
LastPlayerCounterMove: ; c6f9
|
|
|
|
ds 1
|
|
|
|
|
2013-03-27 22:50:10 +00:00
|
|
|
ds 1
|
|
|
|
|
|
|
|
AlreadyFailed: ; c6fb
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
ds 3
|
2013-03-26 09:22:22 +00:00
|
|
|
|
|
|
|
PlayerScreens: ; c6ff
|
2013-05-03 05:29:57 +00:00
|
|
|
; bit
|
|
|
|
; 4 reflect
|
|
|
|
; 3 light screen
|
2013-05-06 15:41:12 +00:00
|
|
|
; 2 safeguard
|
2013-05-03 05:29:57 +00:00
|
|
|
; 0 spikes
|
2013-03-26 09:22:22 +00:00
|
|
|
ds 1
|
2013-04-20 06:57:11 +00:00
|
|
|
|
|
|
|
EnemyScreens: ; c700
|
2013-05-03 05:29:57 +00:00
|
|
|
; see PlayerScreens
|
2013-04-20 06:57:11 +00:00
|
|
|
ds 1
|
|
|
|
|
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
|
|
|
|
PlayerLightScreenCount: ; c702
|
|
|
|
ds 1
|
|
|
|
PlayerReflectCount: ; c703
|
2012-11-24 02:19:02 +00:00
|
|
|
ds 1
|
|
|
|
|
2013-04-27 21:12:23 +00:00
|
|
|
ds 2
|
|
|
|
|
|
|
|
EnemyLightScreenCount: ; c706
|
|
|
|
ds 1
|
|
|
|
EnemyReflectCount: ; c707
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
ds 2
|
2012-12-14 08:00:10 +00:00
|
|
|
|
|
|
|
Weather: ; c70a
|
|
|
|
; 00 normal
|
|
|
|
; 01 rain
|
|
|
|
; 02 sun
|
|
|
|
; 03 sandstorm
|
|
|
|
; 04 rain stopped
|
|
|
|
; 05 sunliight faded
|
|
|
|
; 06 sandstorm subsided
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
WeatherCount: ; c70b
|
|
|
|
; # turns remaining
|
|
|
|
ds 1
|
|
|
|
|
2013-06-13 20:10:39 +00:00
|
|
|
LoweredStat: ; c70c
|
|
|
|
ds 1
|
|
|
|
EffectFailed: ; c70d
|
|
|
|
ds 1
|
|
|
|
FailedMessage: ; c70e
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
ds 3
|
2012-12-14 08:00:10 +00:00
|
|
|
|
|
|
|
PlayerUsedMoves: ; c712
|
|
|
|
; add a move that has been used once by the player
|
|
|
|
; added in order of use
|
|
|
|
ds 4
|
|
|
|
|
|
|
|
ds 5
|
|
|
|
|
|
|
|
LastPlayerMove: ; c71b
|
|
|
|
ds 1
|
|
|
|
LastEnemyMove: ; c71c
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "battle",WRAM0[$c734]
|
2013-06-17 22:19:45 +00:00
|
|
|
BattleEnded: ; c734
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "overworldmap",WRAM0[$c800]
|
2012-12-14 08:00:10 +00:00
|
|
|
OverworldMap: ; c800
|
2013-01-25 08:25:48 +00:00
|
|
|
ds 1300
|
2013-04-08 06:15:08 +00:00
|
|
|
OverworldMapEnd:
|
2013-01-25 08:25:48 +00:00
|
|
|
|
|
|
|
ds 12
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "gfx2",WRAM0[$cd20]
|
2013-07-30 03:59:05 +00:00
|
|
|
CreditsPos:
|
|
|
|
BGMapBuffer: ; cd20
|
2013-02-26 05:47:46 +00:00
|
|
|
ds 2
|
|
|
|
CreditsTimer: ; cd22
|
|
|
|
ds 1
|
|
|
|
ds 37
|
2012-12-14 08:00:10 +00:00
|
|
|
|
|
|
|
BGMapPalBuffer: ; cd48
|
|
|
|
ds 40
|
|
|
|
|
|
|
|
BGMapBufferPtrs: ; cd70
|
|
|
|
; 20 bg map addresses (16x8 tiles)
|
|
|
|
ds 40
|
|
|
|
|
|
|
|
SGBPredef: ; cd98
|
|
|
|
ds 1
|
|
|
|
PlayerHPPal: ; cd99
|
|
|
|
ds 1
|
|
|
|
EnemyHPPal: ; cd9a
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
ds 62
|
|
|
|
|
|
|
|
AttrMap: ; cdd9
|
|
|
|
; 20x18 grid of palettes for 8x8 tiles
|
|
|
|
; read horizontally from the top row
|
|
|
|
; bit 3: vram bank
|
|
|
|
; bit 0-2: palette id
|
|
|
|
ds 360
|
|
|
|
|
|
|
|
ds 30
|
|
|
|
|
|
|
|
MonType: ; cf5f
|
2013-07-02 18:10:49 +00:00
|
|
|
PARTYMON EQU 0
|
|
|
|
OTPARTYMON EQU 1
|
|
|
|
BOXMON EQU 2
|
|
|
|
WILDMON EQU 4
|
2012-12-14 08:00:10 +00:00
|
|
|
ds 1
|
|
|
|
|
2013-01-11 20:08:28 +00:00
|
|
|
CurSpecies: ; cf60
|
2012-12-14 08:00:10 +00:00
|
|
|
ds 1
|
|
|
|
|
2013-05-07 23:22:41 +00:00
|
|
|
ds $13
|
|
|
|
|
|
|
|
MenuSelection:; cf74
|
2013-07-02 02:55:13 +00:00
|
|
|
ds 1
|
|
|
|
|
2012-12-14 08:00:10 +00:00
|
|
|
|
|
|
|
|
2013-08-21 17:54:35 +00:00
|
|
|
SECTION "VBlank",WRAM0[$cfb1]
|
2013-07-20 05:25:20 +00:00
|
|
|
OverworldDelay: ; cfb1
|
|
|
|
ds 1
|
2012-12-23 08:21:19 +00:00
|
|
|
TextDelayFrames: ; cfb2
|
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
VBlankOccurred: ; cfb3
|
|
|
|
ds 1
|
|
|
|
|
2012-12-23 08:21:19 +00:00
|
|
|
ds 8
|
|
|
|
|
|
|
|
GameTimerPause: ; cfbc
|
|
|
|
; bit 0
|
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "Engine",WRAM0[$cfc2]
|
2012-12-14 08:00:10 +00:00
|
|
|
FXAnimID:
|
|
|
|
FXAnimIDLo: ; cfc2
|
|
|
|
ds 1
|
|
|
|
FXAnimIDHi: ; cfc3
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
ds 2
|
|
|
|
|
|
|
|
TileAnimationTimer: ; cfc6
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
ds 5
|
|
|
|
|
2012-10-09 06:32:05 +00:00
|
|
|
Options: ; cfcc
|
|
|
|
; bit 0-2: number of frames to delay when printing text
|
|
|
|
; fast 1; mid 3; slow 5
|
2012-12-23 08:21:19 +00:00
|
|
|
; bit 3: ?
|
|
|
|
; bit 4: no text delay
|
2012-10-09 06:32:05 +00:00
|
|
|
; bit 5: stereo off/on
|
|
|
|
; bit 6: battle style shift/set
|
|
|
|
; bit 7: battle scene off/on
|
|
|
|
ds 1
|
2012-11-24 02:19:02 +00:00
|
|
|
|
|
|
|
ds 1
|
2012-10-09 06:32:05 +00:00
|
|
|
|
|
|
|
TextBoxFrame: ; cfce
|
|
|
|
; bits 0-2: textbox frame 0-7
|
|
|
|
ds 1
|
2012-11-24 02:19:02 +00:00
|
|
|
|
|
|
|
ds 1
|
2012-10-09 06:32:05 +00:00
|
|
|
|
|
|
|
GBPrinter: ; cfd0
|
|
|
|
; bit 0-6: brightness
|
|
|
|
; lightest: $00
|
|
|
|
; lighter: $20
|
|
|
|
; normal: $40 (default)
|
|
|
|
; darker: $60
|
|
|
|
; darkest: $7F
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
Options2: ; cfd1
|
|
|
|
; bit 1: menu account off/on
|
|
|
|
ds 1
|
|
|
|
|
2013-02-04 05:22:53 +00:00
|
|
|
ds 46
|
2012-11-24 02:19:02 +00:00
|
|
|
|
2013-07-02 18:10:49 +00:00
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "WRAMBank1",WRAMX[$d000],BANK[1]
|
2013-07-02 18:10:49 +00:00
|
|
|
|
2013-02-04 05:22:53 +00:00
|
|
|
ds 2
|
|
|
|
|
|
|
|
DefaultFlypoint: ; d002
|
|
|
|
ds 1
|
|
|
|
; d003
|
|
|
|
ds 1
|
|
|
|
; d004
|
|
|
|
ds 1
|
|
|
|
StartFlypoint: ; d005
|
|
|
|
ds 1
|
|
|
|
EndFlypoint: ; d006
|
|
|
|
ds 1
|
2013-06-27 04:34:49 +00:00
|
|
|
|
|
|
|
MovementBuffer: ; d007
|
|
|
|
|
2013-05-03 19:40:45 +00:00
|
|
|
ds 55
|
|
|
|
|
2013-05-07 23:22:41 +00:00
|
|
|
MenuItemsList:
|
2013-06-27 04:34:49 +00:00
|
|
|
CurFruitTree:
|
|
|
|
CurInput:
|
|
|
|
EngineBuffer1: ; d03e
|
2013-05-03 19:40:45 +00:00
|
|
|
ds 1
|
|
|
|
CurFruit: ; d03f
|
|
|
|
ds 1
|
|
|
|
|
2013-08-03 21:23:28 +00:00
|
|
|
MartPointer: ; d040
|
2013-06-27 04:34:49 +00:00
|
|
|
ds 2
|
|
|
|
|
|
|
|
MovementAnimation: ; d042
|
|
|
|
ds 1
|
2013-07-02 18:10:49 +00:00
|
|
|
|
2013-06-27 04:34:49 +00:00
|
|
|
WalkingDirection: ; d043
|
2013-07-02 18:10:49 +00:00
|
|
|
STANDING EQU -1
|
|
|
|
DOWN EQU 0
|
|
|
|
UP EQU 1
|
|
|
|
LEFT EQU 2
|
|
|
|
RIGHT EQU 3
|
2013-06-27 04:34:49 +00:00
|
|
|
ds 1
|
2013-07-02 18:10:49 +00:00
|
|
|
|
2013-06-27 04:34:49 +00:00
|
|
|
FacingDirection: ; d044
|
2013-07-02 18:10:49 +00:00
|
|
|
FACE_CURRENT EQU 0
|
|
|
|
FACE_DOWN EQU 8
|
|
|
|
FACE_UP EQU 4
|
|
|
|
FACE_LEFT EQU 2
|
|
|
|
FACE_RIGHT EQU 1
|
2013-06-27 04:34:49 +00:00
|
|
|
ds 1
|
2013-07-02 18:10:49 +00:00
|
|
|
|
2013-06-27 04:34:49 +00:00
|
|
|
WalkingX: ; d045
|
|
|
|
ds 1
|
|
|
|
WalkingY: ; d046
|
|
|
|
ds 1
|
|
|
|
WalkingTile: ; d047
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
ds 43
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2012-11-24 02:19:02 +00:00
|
|
|
StringBuffer1: ; d073
|
|
|
|
ds 19
|
|
|
|
StringBuffer2: ; d086
|
|
|
|
ds 19
|
|
|
|
StringBuffer3: ; d099
|
|
|
|
ds 19
|
2013-05-21 23:03:31 +00:00
|
|
|
StringBuffer4: ; d0ac
|
|
|
|
ds 19
|
2012-12-14 08:00:10 +00:00
|
|
|
|
2013-05-21 23:03:31 +00:00
|
|
|
ds 21
|
2012-12-14 08:00:10 +00:00
|
|
|
|
|
|
|
CurBattleMon: ; d0d4
|
|
|
|
ds 1
|
|
|
|
CurMoveNum: ; d0d5
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
ds 23
|
2012-10-09 06:32:05 +00:00
|
|
|
|
|
|
|
VramState: ; d0ed
|
|
|
|
; bit 0: overworld sprite updating on/off
|
|
|
|
; bit 6: something to do with text
|
|
|
|
; bit 7: on when surf initiates
|
|
|
|
; flickers when climbing waterfall
|
|
|
|
ds 1
|
|
|
|
|
2013-08-03 21:23:28 +00:00
|
|
|
ds 2
|
|
|
|
|
|
|
|
CurMart: ; d0f0
|
|
|
|
ds 16
|
|
|
|
CurMartEnd
|
|
|
|
|
|
|
|
ds 6
|
2013-04-30 01:19:42 +00:00
|
|
|
|
|
|
|
CurItem: ; d106
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
ds 1
|
2012-11-24 02:19:02 +00:00
|
|
|
|
|
|
|
CurPartySpecies: ; d108
|
|
|
|
ds 1
|
2012-10-09 06:32:05 +00:00
|
|
|
|
|
|
|
CurPartyMon: ; d109
|
2012-11-24 02:19:02 +00:00
|
|
|
; contains which monster in a party
|
2012-10-09 06:32:05 +00:00
|
|
|
; is being dealt with at the moment
|
|
|
|
; 0-5
|
|
|
|
ds 1
|
|
|
|
|
2013-04-12 21:21:22 +00:00
|
|
|
ds 4
|
|
|
|
|
|
|
|
TempMon:
|
|
|
|
TempMonSpecies: ; d10e
|
|
|
|
ds 1
|
|
|
|
TempMonItem: ; d10f
|
|
|
|
ds 1
|
|
|
|
TempMonMoves: ; d110
|
|
|
|
TempMonMove1: ; d110
|
|
|
|
ds 1
|
|
|
|
TempMonMove2: ; d111
|
|
|
|
ds 1
|
|
|
|
TempMonMove3: ; d112
|
|
|
|
ds 1
|
|
|
|
TempMonMove4: ; d113
|
|
|
|
ds 1
|
|
|
|
TempMonID: ; d114
|
|
|
|
ds 2
|
|
|
|
TempMonExp: ; d116
|
|
|
|
ds 3
|
|
|
|
TempMonHPExp: ; d119
|
|
|
|
ds 2
|
|
|
|
TempMonAtkExp: ; d11b
|
|
|
|
ds 2
|
|
|
|
TempMonDefExp: ; d11d
|
|
|
|
ds 2
|
|
|
|
TempMonSpdExp: ; d11f
|
|
|
|
ds 2
|
|
|
|
TempMonSpclExp: ; d121
|
|
|
|
ds 2
|
|
|
|
TempMonDVs: ; d123
|
|
|
|
; hp = %1000 for each dv
|
|
|
|
ds 1 ; atk/def
|
|
|
|
ds 1 ; spd/spc
|
|
|
|
TempMonPP: ; d125
|
|
|
|
ds 4
|
|
|
|
TempMonHappiness: ; d129
|
|
|
|
ds 1
|
|
|
|
TempMonPokerusStatus: ; d12a
|
|
|
|
ds 1
|
|
|
|
TempMonCaughtData: ; d12b
|
|
|
|
TempMonCaughtTime: ; d12b
|
|
|
|
TempMonCaughtLevel: ; d12b
|
|
|
|
ds 1
|
|
|
|
TempMonCaughtGender: ; d12c
|
|
|
|
TempMonCaughtLocation: ; d12c
|
|
|
|
ds 1
|
|
|
|
TempMonLevel: ; d12d
|
|
|
|
ds 1
|
|
|
|
TempMonStatus: ; d12e
|
|
|
|
ds 1
|
|
|
|
; d12f
|
|
|
|
ds 1
|
|
|
|
TempMonCurHP: ; d130
|
|
|
|
ds 2
|
|
|
|
TempMonMaxHP: ; d132
|
|
|
|
ds 2
|
|
|
|
TempMonAtk: ; d134
|
|
|
|
ds 2
|
|
|
|
TempMonDef: ; d136
|
|
|
|
ds 2
|
|
|
|
TempMonSpd: ; d138
|
|
|
|
ds 2
|
|
|
|
TempMonSpclAtk: ; d13a
|
|
|
|
ds 2
|
|
|
|
TempMonSpclDef: ; d13c
|
|
|
|
ds 2
|
2013-07-02 02:55:13 +00:00
|
|
|
TempMonEnd ; d13e
|
2013-04-12 21:21:22 +00:00
|
|
|
|
|
|
|
ds 3
|
2013-01-14 08:40:27 +00:00
|
|
|
|
2013-07-02 02:55:13 +00:00
|
|
|
PartyMenuActionText: ; d141
|
|
|
|
ds 1
|
|
|
|
ds 1
|
2012-11-24 02:19:02 +00:00
|
|
|
|
|
|
|
CurPartyLevel: ; d143
|
|
|
|
ds 1
|
|
|
|
|
2013-05-13 19:37:14 +00:00
|
|
|
|
2013-08-21 17:54:35 +00:00
|
|
|
SECTION "UsedSprites",WRAMX[$d154],BANK[1]
|
2013-07-08 05:35:41 +00:00
|
|
|
UsedSprites: ; d154
|
|
|
|
ds 32
|
|
|
|
|
2013-08-21 17:54:35 +00:00
|
|
|
SECTION "map",WRAMX[$d1a3],BANK[1]
|
2013-07-20 05:25:20 +00:00
|
|
|
|
|
|
|
MapEventBank: ; d1a3
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
ds 5
|
2013-05-13 19:37:14 +00:00
|
|
|
|
2013-05-13 22:40:33 +00:00
|
|
|
MapConnections:
|
|
|
|
|
|
|
|
NorthMapConnection: ; d1a9
|
|
|
|
NorthConnectedMapGroup: ; d1a9
|
2013-05-13 19:37:14 +00:00
|
|
|
ds 1
|
2013-05-13 22:40:33 +00:00
|
|
|
NorthConnectedMapNumber: ; d1aa
|
2013-05-13 19:37:14 +00:00
|
|
|
ds 1
|
2013-05-13 22:40:33 +00:00
|
|
|
NorthConnectionStripPointer: ; d1ab
|
2013-05-13 19:37:14 +00:00
|
|
|
ds 2
|
2013-05-13 22:40:33 +00:00
|
|
|
NorthConnectionStripLocation: ; d1ad
|
2013-05-13 19:37:14 +00:00
|
|
|
ds 2
|
2013-05-13 22:40:33 +00:00
|
|
|
NorthConnectionStripLength: ; d1af
|
2013-05-13 19:37:14 +00:00
|
|
|
ds 1
|
2013-05-13 22:40:33 +00:00
|
|
|
NorthConnectedMapWidth: ; d1b0
|
2013-05-13 19:37:14 +00:00
|
|
|
ds 1
|
2013-05-14 02:09:01 +00:00
|
|
|
NorthConnectionStripYOffset: ; d1b1
|
2013-05-13 19:37:14 +00:00
|
|
|
ds 1
|
2013-05-14 02:09:01 +00:00
|
|
|
NorthConnectionStripXOffset: ; d1b2
|
2013-05-13 19:37:14 +00:00
|
|
|
ds 1
|
2013-05-13 22:40:33 +00:00
|
|
|
NorthConnectionWindow: ; d1b3
|
2013-05-13 19:37:14 +00:00
|
|
|
ds 2
|
|
|
|
|
2013-05-13 22:40:33 +00:00
|
|
|
SouthMapConnection: ; d1b5
|
|
|
|
SouthConnectedMapGroup: ; d1b5
|
|
|
|
ds 1
|
|
|
|
SouthConnectedMapNumber: ; d1b6
|
|
|
|
ds 1
|
|
|
|
SouthConnectionStripPointer: ; d1b7
|
|
|
|
ds 2
|
|
|
|
SouthConnectionStripLocation: ; d1b9
|
|
|
|
ds 2
|
|
|
|
SouthConnectionStripLength: ; d1bb
|
|
|
|
ds 1
|
|
|
|
SouthConnectedMapWidth: ; d1bc
|
|
|
|
ds 1
|
2013-05-14 02:09:01 +00:00
|
|
|
SouthConnectionStripYOffset: ; d1bd
|
2013-05-13 22:40:33 +00:00
|
|
|
ds 1
|
2013-05-14 02:09:01 +00:00
|
|
|
SouthConnectionStripXOffset: ; d1be
|
2013-05-13 22:40:33 +00:00
|
|
|
ds 1
|
|
|
|
SouthConnectionWindow: ; d1bf
|
|
|
|
ds 2
|
|
|
|
|
|
|
|
WestMapConnection: ; d1c1
|
|
|
|
WestConnectedMapGroup: ; d1c1
|
|
|
|
ds 1
|
|
|
|
WestConnectedMapNumber: ; d1c2
|
|
|
|
ds 1
|
|
|
|
WestConnectionStripPointer: ; d1c3
|
|
|
|
ds 2
|
|
|
|
WestConnectionStripLocation: ; d1c5
|
|
|
|
ds 2
|
|
|
|
WestConnectionStripLength: ; d1c7
|
|
|
|
ds 1
|
|
|
|
WestConnectedMapWidth: ; d1c8
|
|
|
|
ds 1
|
2013-05-14 02:09:01 +00:00
|
|
|
WestConnectionStripYOffset: ; d1c9
|
2013-05-13 22:40:33 +00:00
|
|
|
ds 1
|
2013-05-14 02:09:01 +00:00
|
|
|
WestConnectionStripXOffset: ; d1ca
|
2013-05-13 22:40:33 +00:00
|
|
|
ds 1
|
|
|
|
WestConnectionWindow: ; d1cb
|
|
|
|
ds 2
|
|
|
|
|
|
|
|
EastMapConnection: ; d1cd
|
|
|
|
EastConnectedMapGroup: ; d1cd
|
|
|
|
ds 1
|
|
|
|
EastConnectedMapNumber: ; d1ce
|
|
|
|
ds 1
|
|
|
|
EastConnectionStripPointer: ; d1cf
|
|
|
|
ds 2
|
|
|
|
EastConnectionStripLocation: ; d1d1
|
|
|
|
ds 2
|
|
|
|
EastConnectionStripLength: ; d1d3
|
|
|
|
ds 1
|
|
|
|
EastConnectedMapWidth: ; d1d4
|
|
|
|
ds 1
|
2013-05-14 02:09:01 +00:00
|
|
|
EastConnectionStripYOffset: ; d1d5
|
2013-05-13 22:40:33 +00:00
|
|
|
ds 1
|
2013-05-14 02:09:01 +00:00
|
|
|
EastConnectionStripXOffset: ; d1d6
|
2013-05-13 22:40:33 +00:00
|
|
|
ds 1
|
|
|
|
EastConnectionWindow: ; d1d7
|
|
|
|
ds 2
|
2013-05-13 19:37:14 +00:00
|
|
|
|
2012-12-14 08:00:10 +00:00
|
|
|
|
|
|
|
TileSetHeader:
|
|
|
|
TileSetBank: ; d1d9
|
|
|
|
ds 1
|
|
|
|
TileSetAddress: ; d1da
|
|
|
|
ds 2
|
|
|
|
TileSetBlocksBank: ; d1dc
|
|
|
|
ds 1
|
|
|
|
TileSetBlocksAddress: ; d1dd
|
|
|
|
ds 2
|
|
|
|
TileSetCollisionBank: ; d1df
|
|
|
|
ds 1
|
|
|
|
TileSetCollisionAddress: ; d1e0
|
|
|
|
ds 2
|
|
|
|
TileSetAnim: ; d1e2
|
|
|
|
; bank 3f
|
|
|
|
ds 2
|
|
|
|
; unused ; d1e4
|
|
|
|
ds 2
|
|
|
|
TileSetPalettes: ; d1e6
|
|
|
|
; bank 3f
|
|
|
|
ds 2
|
|
|
|
|
2013-04-19 07:48:07 +00:00
|
|
|
EvolvableFlags: ; d1e8
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
ds 1
|
2012-11-24 02:19:02 +00:00
|
|
|
|
2013-07-30 03:59:05 +00:00
|
|
|
MagikarpLength:
|
|
|
|
Buffer1: ; d1ea
|
2012-11-24 02:19:02 +00:00
|
|
|
ds 1
|
2013-06-27 04:34:49 +00:00
|
|
|
MovementType:
|
2013-02-18 09:40:01 +00:00
|
|
|
Buffer2: ; d1eb
|
2012-11-24 02:19:02 +00:00
|
|
|
ds 1
|
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "BattleMons2",WRAMX[$d1fa],BANK[1]
|
2012-11-24 02:19:02 +00:00
|
|
|
LinkBattleRNs: ; d1fa
|
|
|
|
ds 10
|
|
|
|
|
2012-12-14 08:00:10 +00:00
|
|
|
TempEnemyMonSpecies: ; d204
|
2012-09-12 02:37:03 +00:00
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
TempBattleMonSpecies: ; d205
|
2012-09-12 02:37:03 +00:00
|
|
|
ds 1
|
2013-04-29 19:42:31 +00:00
|
|
|
|
|
|
|
EnemyMon:
|
2012-12-14 08:00:10 +00:00
|
|
|
EnemyMonSpecies: ; d206
|
2012-09-12 02:37:03 +00:00
|
|
|
ds 1
|
|
|
|
EnemyMonItem: ; d207
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
EnemyMonMoves:
|
|
|
|
EnemyMonMove1: ; d208
|
|
|
|
ds 1
|
|
|
|
EnemyMonMove2: ; d209
|
|
|
|
ds 1
|
|
|
|
EnemyMonMove3: ; d20a
|
|
|
|
ds 1
|
|
|
|
EnemyMonMove4: ; d20b
|
|
|
|
ds 1
|
2013-05-04 01:04:34 +00:00
|
|
|
EnemyMonMovesEnd
|
2012-09-12 02:37:03 +00:00
|
|
|
|
|
|
|
EnemyMonDVs:
|
|
|
|
EnemyMonAtkDefDV: ; d20c
|
|
|
|
ds 1
|
|
|
|
EnemyMonSpdSpclDV: ; d20d
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
EnemyMonPP:
|
|
|
|
EnemyMonPPMove1: ; d20e
|
|
|
|
ds 1
|
|
|
|
EnemyMonPPMove2: ; d20f
|
|
|
|
ds 1
|
|
|
|
EnemyMonPPMove3: ; d210
|
|
|
|
ds 1
|
|
|
|
EnemyMonPPMove4: ; d211
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
EnemyMonHappiness: ; d212
|
|
|
|
ds 1
|
|
|
|
EnemyMonLevel: ; d213
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
EnemyMonStatus: ; d214
|
|
|
|
ds 2
|
2012-09-23 16:50:44 +00:00
|
|
|
|
|
|
|
EnemyMonHP:
|
|
|
|
EnemyMonHPHi: ; d216
|
|
|
|
ds 1
|
|
|
|
EnemyMonHPLo: ; d217
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
EnemyMonMaxHP:
|
|
|
|
EnemyMonMaxHPHi: ; d218
|
|
|
|
ds 1
|
|
|
|
EnemyMonMaxHPLo: ; d219
|
|
|
|
ds 1
|
2012-09-12 02:37:03 +00:00
|
|
|
|
2013-04-29 20:32:05 +00:00
|
|
|
EnemyMonStats:
|
2012-09-12 02:37:03 +00:00
|
|
|
EnemyMonAtk: ; d21a
|
|
|
|
ds 2
|
|
|
|
EnemyMonDef: ; d21c
|
|
|
|
ds 2
|
|
|
|
EnemyMonSpd: ; d21e
|
|
|
|
ds 2
|
|
|
|
EnemyMonSpclAtk: ; d220
|
|
|
|
ds 2
|
|
|
|
EnemyMonSpclDef: ; d222
|
|
|
|
ds 2
|
2013-04-29 20:32:05 +00:00
|
|
|
EnemyMonStatsEnd
|
2012-09-12 02:37:03 +00:00
|
|
|
|
2013-03-26 09:22:22 +00:00
|
|
|
EnemyMonType1: ; d224
|
|
|
|
ds 1
|
|
|
|
EnemyMonType2: ; d225
|
|
|
|
ds 1
|
|
|
|
|
2013-04-29 19:42:31 +00:00
|
|
|
EnemyMonBaseStats: ; d226
|
|
|
|
ds 5
|
|
|
|
|
|
|
|
EnemyMonCatchRate: ; d22b
|
|
|
|
ds 1
|
|
|
|
EnemyMonBaseExp: ; d22c
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
EnemyMonEnd
|
2013-03-26 09:22:22 +00:00
|
|
|
|
2012-11-24 02:19:02 +00:00
|
|
|
|
2012-12-14 08:00:10 +00:00
|
|
|
IsInBattle: ; d22d
|
|
|
|
; 0: overworld
|
|
|
|
; 1: wild battle
|
2012-11-24 02:19:02 +00:00
|
|
|
; 2: trainer battle
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
ds 1
|
2012-09-11 03:20:58 +00:00
|
|
|
|
2012-12-14 08:00:10 +00:00
|
|
|
OtherTrainerClass: ; d22f
|
2012-09-11 03:20:58 +00:00
|
|
|
; class (Youngster, Bug Catcher, etc.) of opposing trainer
|
|
|
|
; 0 if opponent is a wild Pokémon, not a trainer
|
|
|
|
ds 1
|
|
|
|
|
2012-12-14 08:00:10 +00:00
|
|
|
BattleType: ; d230
|
2012-11-24 02:19:02 +00:00
|
|
|
; $00 normal
|
|
|
|
; $01
|
|
|
|
; $02
|
|
|
|
; $03 dude
|
|
|
|
; $04 fishing
|
|
|
|
; $05 roaming
|
|
|
|
; $06
|
|
|
|
; $07 shiny
|
|
|
|
; $08 headbutt/rock smash
|
|
|
|
; $09
|
|
|
|
; $0a force Item1
|
|
|
|
; $0b
|
|
|
|
; $0c suicune
|
2012-09-11 03:20:58 +00:00
|
|
|
ds 1
|
|
|
|
|
2012-12-14 08:00:10 +00:00
|
|
|
OtherTrainerID: ; d231
|
2012-09-11 03:20:58 +00:00
|
|
|
; which trainer of the class that you're fighting
|
|
|
|
; (Joey, Mikey, Albert, etc.)
|
|
|
|
ds 1
|
|
|
|
|
2013-05-04 06:14:02 +00:00
|
|
|
ds 1
|
|
|
|
|
|
|
|
TrainerClass: ; d233
|
|
|
|
ds 1
|
2012-11-24 02:19:02 +00:00
|
|
|
|
|
|
|
UnownLetter: ; d234
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
ds 1
|
|
|
|
|
2013-04-29 19:08:13 +00:00
|
|
|
CurBaseData: ; d236
|
2013-04-29 18:04:25 +00:00
|
|
|
BaseDexNo: ; d236
|
|
|
|
ds 1
|
2013-04-29 19:08:13 +00:00
|
|
|
BaseStats: ; d237
|
2013-04-29 18:04:25 +00:00
|
|
|
BaseHP: ; d237
|
|
|
|
ds 1
|
|
|
|
BaseAttack: ; d238
|
|
|
|
ds 1
|
|
|
|
BaseDefense: ; d239
|
|
|
|
ds 1
|
|
|
|
BaseSpeed: ; d23a
|
|
|
|
ds 1
|
|
|
|
BaseSpecialAttack: ; d23b
|
|
|
|
ds 1
|
|
|
|
BaseSpecialDefense: ; d23c
|
|
|
|
ds 1
|
|
|
|
BaseType: ; d23d
|
2013-04-29 19:42:31 +00:00
|
|
|
BaseType1: ; d23d
|
|
|
|
ds 1
|
|
|
|
BaseType2: ; d23e
|
|
|
|
ds 1
|
2013-04-29 18:04:25 +00:00
|
|
|
BaseCatchRate: ; d23f
|
|
|
|
ds 1
|
|
|
|
BaseExp: ; d240
|
|
|
|
ds 1
|
|
|
|
BaseItems: ; d241
|
|
|
|
ds 2
|
|
|
|
BaseGender: ; d243
|
|
|
|
ds 1
|
|
|
|
BaseUnknown1: ; d244
|
|
|
|
ds 1
|
|
|
|
BaseEggSteps: ; d245
|
|
|
|
ds 1
|
|
|
|
BaseUnknown2: ; d246
|
|
|
|
ds 1
|
|
|
|
BasePicSize: ; d247
|
|
|
|
ds 1
|
|
|
|
BasePadding: ; d248
|
|
|
|
ds 4
|
|
|
|
BaseGrowthRate: ; d24c
|
|
|
|
ds 1
|
|
|
|
BaseEggGroups: ; d24d
|
|
|
|
ds 1
|
|
|
|
BaseTMHM: ; d24e
|
|
|
|
ds 8
|
|
|
|
|
2012-11-24 02:19:02 +00:00
|
|
|
|
2013-03-26 09:22:22 +00:00
|
|
|
CurDamage: ; d256
|
|
|
|
ds 2
|
|
|
|
|
2013-04-29 18:04:25 +00:00
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "TimeOfDay",WRAMX[$d269],BANK[1]
|
2012-09-11 03:20:58 +00:00
|
|
|
|
2012-12-14 08:00:10 +00:00
|
|
|
TimeOfDay: ; d269
|
2013-07-02 18:10:49 +00:00
|
|
|
MORN EQU 0
|
|
|
|
DAY EQU 1
|
|
|
|
NITE EQU 2
|
|
|
|
DARKNESS EQU 3
|
2012-09-11 03:20:58 +00:00
|
|
|
ds 1
|
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "OTParty",WRAMX[$d280],BANK[1]
|
2012-06-06 03:28:55 +00:00
|
|
|
|
2013-01-01 22:08:26 +00:00
|
|
|
OTPartyCount: ; d280
|
|
|
|
ds 1 ; number of Pokémon in party
|
|
|
|
OTPartySpecies: ; d281
|
|
|
|
ds 6 ; species of each Pokémon in party
|
|
|
|
; d287
|
|
|
|
ds 1 ; any empty slots including the 7th must be FF
|
|
|
|
; or the routine will keep going
|
2012-06-06 03:28:55 +00:00
|
|
|
|
|
|
|
OTPartyMon1:
|
2013-04-08 06:15:08 +00:00
|
|
|
OTPartyMon1Species: ; d288
|
2012-06-06 03:28:55 +00:00
|
|
|
ds 1
|
|
|
|
OTPartyMon1Item: ; d289
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
OTPartyMon1Moves: ; d28a
|
|
|
|
OTPartyMon1Move1: ; d28a
|
|
|
|
ds 1
|
|
|
|
OTPartyMon1Move2: ; d28b
|
|
|
|
ds 1
|
|
|
|
OTPartyMon1Move3: ; d28c
|
|
|
|
ds 1
|
|
|
|
OTPartyMon1Move4: ; d28d
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
OTPartyMon1ID: ; d28e
|
|
|
|
ds 2
|
|
|
|
OTPartyMon1Exp: ; d290
|
|
|
|
ds 3
|
|
|
|
OTPartyMon1HPExp: ; d293
|
|
|
|
ds 2
|
|
|
|
OTPartyMon1AtkExp: ; d295
|
|
|
|
ds 2
|
|
|
|
OTPartyMon1DefExp: ; d297
|
|
|
|
ds 2
|
|
|
|
OTPartyMon1SpdExp: ; d299
|
|
|
|
ds 2
|
|
|
|
OTPartyMon1SpclExp: ; d29b
|
|
|
|
ds 2
|
|
|
|
|
|
|
|
OTPartyMon1DVs: ; d29d
|
|
|
|
OTPartyMon1AtkDefDV: ; d29d
|
|
|
|
ds 1
|
|
|
|
OTPartyMon1SpdSpclDV: ; d29e
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
OTPartyMon1PP: ; d29f
|
|
|
|
OTPartyMon1PPMove1: ; d29f
|
|
|
|
ds 1
|
|
|
|
OTPartyMon1PPMove2: ; d2a0
|
|
|
|
ds 1
|
|
|
|
OTPartyMon1PPMove3: ; d2a1
|
|
|
|
ds 1
|
|
|
|
OTPartyMon1PPMove4: ; d2a2
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
OTPartyMon1Happiness: ; d2a3
|
|
|
|
ds 1
|
|
|
|
OTPartyMon1PokerusStatus: ; d2a4
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
OTPartyMon1CaughtData: ; d2a5
|
|
|
|
OTPartyMon1CaughtGender: ; d2a5
|
|
|
|
OTPartyMon1CaughtLocation: ; d2a5
|
|
|
|
ds 1
|
|
|
|
OTPartyMon1CaughtTime: ; d2a6
|
|
|
|
ds 1
|
|
|
|
OTPartyMon1Level: ; d2a7
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
OTPartyMon1Status: ; d2a8
|
|
|
|
ds 1
|
|
|
|
OTPartyMon1Unused: ; d2a9
|
|
|
|
ds 1
|
|
|
|
OTPartyMon1CurHP: ; d2aa
|
|
|
|
ds 2
|
|
|
|
OTPartyMon1MaxHP: ; d2ac
|
|
|
|
ds 2
|
|
|
|
OTPartyMon1Atk: ; d2ae
|
|
|
|
ds 2
|
|
|
|
OTPartyMon1Def: ; d2b0
|
|
|
|
ds 2
|
|
|
|
OTPartyMon1Spd: ; d2b2
|
|
|
|
ds 2
|
|
|
|
OTPartyMon1SpclAtk: ; d2b4
|
|
|
|
ds 2
|
|
|
|
OTPartyMon1SpclDef: ; d2b6
|
|
|
|
ds 2
|
|
|
|
|
|
|
|
OTPartyMon2: ; d2b8
|
2013-01-01 22:08:26 +00:00
|
|
|
ds 48
|
2012-06-06 03:28:55 +00:00
|
|
|
OTPartyMon3: ; d2e8
|
2013-01-01 22:08:26 +00:00
|
|
|
ds 48
|
2012-06-06 03:28:55 +00:00
|
|
|
OTPartyMon4: ; d318
|
2013-01-01 22:08:26 +00:00
|
|
|
ds 48
|
2012-06-06 03:28:55 +00:00
|
|
|
OTPartyMon5: ; d348
|
2013-01-01 22:08:26 +00:00
|
|
|
ds 48
|
2012-06-06 03:28:55 +00:00
|
|
|
OTPartyMon6: ; d378
|
2013-01-01 22:08:26 +00:00
|
|
|
ds 48
|
2012-06-06 03:28:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
OTPartyMonOT:
|
|
|
|
OTPartyMon1OT: ; d3a8
|
|
|
|
ds 11
|
|
|
|
OTPartyMon2OT: ; d3b3
|
|
|
|
ds 11
|
|
|
|
OTPartyMon3OT: ; d3be
|
|
|
|
ds 11
|
|
|
|
OTPartyMon4OT: ; d3c9
|
|
|
|
ds 11
|
|
|
|
OTPartyMon5OT: ; d3d4
|
|
|
|
ds 11
|
|
|
|
OTPartyMon6OT: ; d3df
|
|
|
|
ds 11
|
|
|
|
|
|
|
|
OTPartyMonNicknames:
|
|
|
|
OTPartyMon1Nickname: ; d3ea
|
|
|
|
ds 11
|
|
|
|
OTPartyMon2Nickname: ; d3f5
|
|
|
|
ds 11
|
|
|
|
OTPartyMon3Nickname: ; d400
|
|
|
|
ds 11
|
|
|
|
OTPartyMon4Nickname: ; d40b
|
|
|
|
ds 11
|
|
|
|
OTPartyMon5Nickname: ; d416
|
|
|
|
ds 11
|
|
|
|
OTPartyMon6Nickname: ; d421
|
|
|
|
ds 11
|
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "Scripting",WRAMX[$d434],BANK[1]
|
2013-07-04 09:37:20 +00:00
|
|
|
ScriptFlags: ; d434
|
|
|
|
SCRIPT_RUNNING EQU 2
|
|
|
|
ds 1
|
2013-07-20 05:25:20 +00:00
|
|
|
ScriptFlags2: ; d435
|
|
|
|
ds 1
|
|
|
|
ScriptFlags3: ; d436
|
|
|
|
ds 1
|
2013-02-28 21:45:34 +00:00
|
|
|
|
2013-07-04 09:37:20 +00:00
|
|
|
ScriptMode: ; d437
|
|
|
|
SCRIPT_OFF EQU 0
|
|
|
|
SCRIPT_READ EQU 1
|
|
|
|
SCRIPT_WAIT_MOVEMENT EQU 2
|
|
|
|
SCRIPT_WAIT EQU 3
|
|
|
|
ds 1
|
2013-07-04 08:11:28 +00:00
|
|
|
ScriptRunning: ; d438
|
|
|
|
ds 1
|
2013-02-28 21:45:34 +00:00
|
|
|
ScriptBank: ; d439
|
|
|
|
ds 1
|
|
|
|
ScriptPos: ; d43a
|
|
|
|
ds 2
|
2012-11-24 02:19:02 +00:00
|
|
|
|
2013-07-04 09:37:20 +00:00
|
|
|
ds 17
|
|
|
|
|
|
|
|
ScriptDelay: ; d44d
|
|
|
|
ds 1
|
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "Player",WRAMX[$d472],BANK[1]
|
2013-02-04 05:22:53 +00:00
|
|
|
PlayerGender: ; d472
|
|
|
|
; bit 0:
|
|
|
|
; 0 male
|
|
|
|
; 1 female
|
|
|
|
ds 1
|
|
|
|
ds 8
|
2012-12-14 08:00:10 +00:00
|
|
|
PlayerID: ; d47b
|
2012-07-05 03:42:39 +00:00
|
|
|
ds 2
|
2013-07-21 09:53:04 +00:00
|
|
|
|
2012-12-14 08:00:10 +00:00
|
|
|
PlayerName: ; d47d
|
2012-07-05 03:42:39 +00:00
|
|
|
ds 11
|
2013-07-21 09:53:04 +00:00
|
|
|
MomsName: ; d488
|
2013-05-13 00:36:40 +00:00
|
|
|
ds 11
|
2013-07-21 09:53:04 +00:00
|
|
|
RivalName: ; d493
|
|
|
|
ds 11
|
|
|
|
RedsName: ; d49e
|
|
|
|
ds 11
|
|
|
|
GreensName: ; d4a9
|
2013-05-13 00:36:40 +00:00
|
|
|
ds 11
|
|
|
|
|
2013-07-21 09:53:04 +00:00
|
|
|
ds 2
|
2012-07-05 03:42:39 +00:00
|
|
|
|
2012-11-24 02:19:02 +00:00
|
|
|
; init time set at newgame
|
|
|
|
StartDay: ; d4b6
|
|
|
|
ds 1
|
|
|
|
StartHour: ; d4b7
|
|
|
|
ds 1
|
|
|
|
StartMinute: ; d4b8
|
|
|
|
ds 1
|
|
|
|
StartSecond: ; d4b9
|
|
|
|
ds 1
|
|
|
|
|
2012-12-14 08:00:10 +00:00
|
|
|
ds 9
|
|
|
|
|
|
|
|
GameTimeCap: ; d4c3
|
|
|
|
ds 1
|
2012-12-23 08:21:19 +00:00
|
|
|
GameTimeHours: ; d4c4
|
2012-12-14 08:00:10 +00:00
|
|
|
ds 2
|
|
|
|
GameTimeMinutes: ; d4c6
|
|
|
|
ds 1
|
|
|
|
GameTimeSeconds: ; d4c7
|
|
|
|
ds 1
|
|
|
|
GameTimeFrames: ; d4c8
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
ds 2
|
2012-11-24 02:19:02 +00:00
|
|
|
|
|
|
|
CurDay: ; d4cb
|
2013-07-02 18:10:49 +00:00
|
|
|
SUNDAY EQU 0
|
|
|
|
MONDAY EQU 1
|
|
|
|
TUESDAY EQU 2
|
|
|
|
WEDNESDAY EQU 3
|
|
|
|
THURSDAY EQU 4
|
|
|
|
FRIDAY EQU 5
|
|
|
|
SATURDAY EQU 6
|
2012-11-24 02:19:02 +00:00
|
|
|
ds 1
|
|
|
|
|
2013-07-22 07:00:07 +00:00
|
|
|
ds 10
|
|
|
|
|
|
|
|
ds 2
|
2012-11-24 02:19:02 +00:00
|
|
|
|
2012-12-14 08:00:10 +00:00
|
|
|
PlayerSprite: ; d4d8
|
2012-09-12 02:37:03 +00:00
|
|
|
ds 1
|
2012-11-24 02:19:02 +00:00
|
|
|
|
|
|
|
ds 5
|
|
|
|
|
2012-09-23 16:50:44 +00:00
|
|
|
PlayerDirection: ; d4de
|
|
|
|
; uses bits 2 and 3 / $0c / %00001100
|
|
|
|
; %00 down
|
|
|
|
; %01 up
|
|
|
|
; %10 left
|
|
|
|
; $11 right
|
|
|
|
ds 1
|
2012-09-12 02:37:03 +00:00
|
|
|
|
2013-06-27 04:34:49 +00:00
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "MapEngine",WRAMX[$d4e4],BANK[1]
|
2013-06-27 04:34:49 +00:00
|
|
|
StandingTile: ; d4e4
|
|
|
|
ds 1
|
|
|
|
StandingTile2: ; d4e5
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
; relative to the map struct including borders
|
|
|
|
MapX: ; d4e6
|
|
|
|
ds 1
|
|
|
|
MapY: ; d4e7
|
|
|
|
ds 1
|
|
|
|
MapX2: ; d4e8
|
|
|
|
ds 1
|
|
|
|
MapY2: ; d4e9
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
ds 3
|
|
|
|
|
|
|
|
; relative to the bg map, in px
|
|
|
|
PlayerSpriteX: ; d4ed
|
|
|
|
ds 1
|
|
|
|
PlayerSpriteY: ; d4ee
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "Objects",WRAMX[$d71e],BANK[1]
|
2013-07-04 08:11:28 +00:00
|
|
|
MapObjects: ; d71e
|
|
|
|
|
|
|
|
PLAYER_OBJECT EQU 0
|
|
|
|
|
|
|
|
NUM_OBJECTS EQU $10
|
|
|
|
OBJECT_LENGTH EQU $10
|
|
|
|
ds OBJECT_LENGTH * NUM_OBJECTS
|
|
|
|
|
|
|
|
|
2013-08-21 17:54:35 +00:00
|
|
|
SECTION "VariableSprites",WRAMX[$d82e],BANK[1]
|
2013-07-08 05:35:41 +00:00
|
|
|
VariableSprites: ; d82e
|
|
|
|
ds $10
|
|
|
|
|
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "Status",WRAMX[$d841],BANK[1]
|
2012-12-23 08:21:19 +00:00
|
|
|
TimeOfDayPal: ; d841
|
|
|
|
ds 1
|
|
|
|
ds 4
|
|
|
|
; d846
|
|
|
|
ds 1
|
|
|
|
ds 1
|
|
|
|
CurTimeOfDay: ; d848
|
|
|
|
ds 1
|
|
|
|
|
2013-07-02 02:55:13 +00:00
|
|
|
ds 3
|
|
|
|
|
|
|
|
StatusFlags: ; d84c
|
|
|
|
ds 1
|
|
|
|
StatusFlags2: ; d84d
|
|
|
|
ds 1
|
2012-12-23 08:21:19 +00:00
|
|
|
|
2012-09-12 02:37:03 +00:00
|
|
|
Money: ; d84e
|
|
|
|
ds 3
|
|
|
|
|
2012-10-09 08:43:45 +00:00
|
|
|
ds 6
|
|
|
|
|
2012-09-22 23:27:57 +00:00
|
|
|
Badges:
|
|
|
|
JohtoBadges: ; d857
|
|
|
|
ds 1
|
|
|
|
KantoBadges: ; d858
|
|
|
|
ds 1
|
2012-09-12 02:37:03 +00:00
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "Items",WRAMX[$d859],BANK[1]
|
2012-09-12 02:37:03 +00:00
|
|
|
TMsHMs: ; d859
|
|
|
|
ds 57
|
2013-07-31 23:17:35 +00:00
|
|
|
TMsHMsEnd
|
2012-09-12 02:37:03 +00:00
|
|
|
|
|
|
|
NumItems: ; d892
|
|
|
|
ds 1
|
|
|
|
Items: ; d893
|
2013-07-03 03:01:34 +00:00
|
|
|
ds 41
|
2013-07-31 23:17:35 +00:00
|
|
|
ItemsEnd
|
2012-09-12 02:37:03 +00:00
|
|
|
|
2012-09-17 01:20:04 +00:00
|
|
|
NumKeyItems: ; d8bc
|
2012-09-12 02:37:03 +00:00
|
|
|
ds 1
|
2012-09-17 01:20:04 +00:00
|
|
|
KeyItems: ; d8bd
|
2013-07-03 03:01:34 +00:00
|
|
|
ds 26
|
2013-07-31 23:17:35 +00:00
|
|
|
KeyItemsEnd
|
2013-07-03 03:01:34 +00:00
|
|
|
|
2012-09-12 02:37:03 +00:00
|
|
|
NumBalls: ; d8d7
|
|
|
|
ds 1
|
|
|
|
Balls: ; d8d8
|
|
|
|
ds 25
|
2013-07-31 23:17:35 +00:00
|
|
|
BallsEnd
|
2012-09-23 16:50:44 +00:00
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "overworld",WRAMX[$d95b],BANK[1]
|
2013-07-03 03:01:34 +00:00
|
|
|
WhichRegisteredItem: ; d95b
|
|
|
|
REGISTERED_POCKET EQU %11000000
|
|
|
|
REGISTERED_NUMBER EQU %00111111
|
|
|
|
ds 1
|
|
|
|
RegisteredItem: ; d95c
|
|
|
|
ds 1
|
|
|
|
|
2012-09-23 16:50:44 +00:00
|
|
|
PlayerState: ; d95d
|
2013-07-02 18:10:49 +00:00
|
|
|
PLAYER_NORMAL EQU 0
|
|
|
|
PLAYER_BIKE EQU 1
|
|
|
|
PLAYER_SLIP EQU 2
|
|
|
|
PLAYER_SURF EQU 4
|
|
|
|
PLAYER_SURF_PIKA EQU 8
|
2012-09-23 16:50:44 +00:00
|
|
|
ds 1
|
2012-09-12 02:37:03 +00:00
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "scriptram",WRAMX[$d962],BANK[1]
|
2012-12-14 08:00:10 +00:00
|
|
|
MooMooBerries: ; d962
|
2012-07-05 06:19:52 +00:00
|
|
|
ds 1 ; how many berries fed to MooMoo
|
2012-12-14 08:00:10 +00:00
|
|
|
UndergroundSwitchPositions: ; d963
|
2012-07-05 06:19:52 +00:00
|
|
|
ds 1 ; which positions the switches are in
|
2012-12-14 08:00:10 +00:00
|
|
|
FarfetchdPosition: ; d964
|
2012-07-05 06:19:52 +00:00
|
|
|
ds 1 ; which position the ilex farfetch'd is in
|
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "Events",WRAMX[$dad4],BANK[1]
|
2012-06-06 04:49:44 +00:00
|
|
|
|
2012-06-06 04:52:42 +00:00
|
|
|
;RoomDecorations: ; dac6
|
|
|
|
; db 7
|
|
|
|
|
2012-06-06 04:49:44 +00:00
|
|
|
HoOhEvent: ; dad4
|
|
|
|
ds 1
|
|
|
|
LugiaEvent: ; dad5
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
; TODO
|
|
|
|
;SuicuneEvent: ; dad8 (tin tower)
|
|
|
|
;TeamRocketAzaleaTownAttackEvent: ; db51
|
|
|
|
;SudowoodoEvent: ; db51
|
|
|
|
;PoliceAtElmsLabEvent: ; db52
|
|
|
|
;SalesmanMahoganyTownEvent: ; db5c
|
|
|
|
;RedGyaradosEvent: ; db5c
|
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "BoxNames",WRAMX[$db75],BANK[1]
|
2012-04-19 04:18:36 +00:00
|
|
|
; 8 chars + $50
|
2012-12-14 08:00:10 +00:00
|
|
|
Box1Name: ; db75
|
2012-06-06 03:28:55 +00:00
|
|
|
ds 9
|
2013-02-05 06:20:51 +00:00
|
|
|
Box2Name: ; db7e
|
2012-06-06 03:28:55 +00:00
|
|
|
ds 9
|
2013-02-05 06:20:51 +00:00
|
|
|
Box3Name: ; db87
|
2012-06-06 03:28:55 +00:00
|
|
|
ds 9
|
2013-02-05 06:20:51 +00:00
|
|
|
Box4Name: ; db90
|
2012-06-06 03:28:55 +00:00
|
|
|
ds 9
|
2013-02-05 06:20:51 +00:00
|
|
|
Box5Name: ; db99
|
2012-06-06 03:28:55 +00:00
|
|
|
ds 9
|
2013-02-05 06:20:51 +00:00
|
|
|
Box6Name: ; dba2
|
2012-06-06 03:28:55 +00:00
|
|
|
ds 9
|
2013-02-05 06:20:51 +00:00
|
|
|
Box7Name: ; dbab
|
2012-06-06 03:28:55 +00:00
|
|
|
ds 9
|
2013-02-05 06:20:51 +00:00
|
|
|
Box8Name: ; dbb4
|
2012-06-06 03:28:55 +00:00
|
|
|
ds 9
|
2013-02-05 06:20:51 +00:00
|
|
|
Box9Name: ; dbbd
|
2012-06-06 03:28:55 +00:00
|
|
|
ds 9
|
2013-02-05 06:20:51 +00:00
|
|
|
Box10Name: ; dbc6
|
2012-06-06 03:28:55 +00:00
|
|
|
ds 9
|
2013-02-05 06:20:51 +00:00
|
|
|
Box11Name: ; dbcf
|
2012-06-06 03:28:55 +00:00
|
|
|
ds 9
|
2013-02-05 06:20:51 +00:00
|
|
|
Box12Name: ; dbd8
|
2012-06-06 03:28:55 +00:00
|
|
|
ds 9
|
2013-02-05 06:20:51 +00:00
|
|
|
Box13Name: ; dbe1
|
2012-06-06 03:28:55 +00:00
|
|
|
ds 9
|
2013-02-05 06:20:51 +00:00
|
|
|
Box14Name: ; dbea
|
2012-06-06 03:28:55 +00:00
|
|
|
ds 9
|
2012-04-19 04:18:36 +00:00
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "bike", WRAMX[$dbf5],BANK[1]
|
2013-06-27 04:34:49 +00:00
|
|
|
BikeFlags: ; dbf5
|
|
|
|
; bit 1: always on bike
|
|
|
|
; bit 2: downhill
|
|
|
|
ds 1
|
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "decorations", WRAMX[$dc0f],BANK[1]
|
2013-05-29 22:56:09 +00:00
|
|
|
; Sprite id of each decoration
|
|
|
|
Bed: ; dc0f
|
|
|
|
ds 1
|
|
|
|
Carpet: ; dc10
|
|
|
|
ds 1
|
|
|
|
Plant: ; dc11
|
|
|
|
ds 1
|
|
|
|
Poster: ; dc12
|
|
|
|
ds 1
|
|
|
|
Console: ; dc13
|
|
|
|
ds 1
|
|
|
|
LeftOrnament: ; dc14
|
|
|
|
ds 1
|
|
|
|
RightOrnament: ; dc15
|
|
|
|
ds 1
|
|
|
|
BigDoll: ; dc16
|
|
|
|
ds 1
|
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "fruittrees", WRAMX[$dc27],BANK[1]
|
2013-05-03 19:40:45 +00:00
|
|
|
FruitTreeFlags: ; dc27
|
|
|
|
ds 1
|
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "steps", WRAMX[$dc73],BANK[1]
|
2013-03-22 08:08:47 +00:00
|
|
|
StepCount: ; dc73
|
|
|
|
ds 1
|
|
|
|
PoisonStepCount: ; dc74
|
|
|
|
ds 1
|
2013-02-04 05:22:53 +00:00
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "FlypointPermissions", WRAMX[$dca5],BANK[1]
|
2013-02-05 06:21:51 +00:00
|
|
|
FlypointPerms: ; dca5
|
2013-02-04 05:22:53 +00:00
|
|
|
ds 4
|
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "BackupMapInfo", WRAMX[$dcad],BANK[1]
|
2012-09-11 03:20:58 +00:00
|
|
|
|
|
|
|
; used on maps like second floor pokécenter, which are reused, so we know which
|
|
|
|
; map to return to
|
2012-12-14 08:00:10 +00:00
|
|
|
BackupMapGroup: ; dcad
|
2012-09-11 03:20:58 +00:00
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
BackupMapNumber: ; dcae
|
2012-09-11 03:20:58 +00:00
|
|
|
ds 1
|
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "PlayerMapInfo", WRAMX[$dcb4],BANK[1]
|
2012-07-05 04:13:23 +00:00
|
|
|
|
2012-12-14 08:00:10 +00:00
|
|
|
WarpNumber: ; dcb4
|
2012-07-05 04:13:23 +00:00
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
MapGroup: ; dcb5
|
2012-07-05 04:13:23 +00:00
|
|
|
ds 1 ; map group of current map
|
2012-12-14 08:00:10 +00:00
|
|
|
MapNumber: ; dcb6
|
2012-07-05 04:13:23 +00:00
|
|
|
ds 1 ; map number of current map
|
2012-12-14 08:00:10 +00:00
|
|
|
YCoord: ; dcb7
|
2012-07-05 04:13:23 +00:00
|
|
|
ds 1 ; current y coordinate relative to top-left corner of current map
|
2012-12-14 08:00:10 +00:00
|
|
|
XCoord: ; dcb8
|
2012-07-05 04:13:23 +00:00
|
|
|
ds 1 ; current x coordinate relative to top-left corner of current map
|
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "PlayerParty",WRAMX[$dcd7],BANK[1]
|
2012-04-19 04:18:36 +00:00
|
|
|
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyCount: ; dcd7
|
2012-03-21 04:23:40 +00:00
|
|
|
ds 1 ; number of Pokémon in party
|
2012-12-14 08:00:10 +00:00
|
|
|
PartySpecies: ; dcd8
|
2012-03-21 04:23:40 +00:00
|
|
|
ds 6 ; species of each Pokémon in party
|
2013-04-08 06:15:08 +00:00
|
|
|
PartyEnd: ; dcde
|
|
|
|
ds 1 ; legacy functions don't check PartyCount
|
2012-04-19 04:18:36 +00:00
|
|
|
|
2012-09-17 01:20:04 +00:00
|
|
|
PartyMons:
|
2012-04-19 04:18:36 +00:00
|
|
|
PartyMon1:
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1Species: ; dcdf
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1Item: ; dce0
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 1
|
2012-09-17 01:20:04 +00:00
|
|
|
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1Moves: ; dce1
|
|
|
|
PartyMon1Move1: ; dce1
|
2012-04-19 04:24:49 +00:00
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1Move2: ; dce2
|
2012-04-19 04:24:49 +00:00
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1Move3: ; dce3
|
2012-04-19 04:24:49 +00:00
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1Move4: ; dce4
|
2012-04-19 04:24:49 +00:00
|
|
|
ds 1
|
2012-09-17 01:20:04 +00:00
|
|
|
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1ID: ; dce5
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 2
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1Exp: ; dce7
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 3
|
2013-01-01 22:08:26 +00:00
|
|
|
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1HPExp: ; dcea
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 2
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1AtkExp: ; dcec
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 2
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1DefExp: ; dcee
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 2
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1SpdExp: ; dcf0
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 2
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1SpclExp: ; dcf2
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 2
|
2013-01-01 22:08:26 +00:00
|
|
|
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1DVs: ; dcf4
|
2013-01-01 22:08:26 +00:00
|
|
|
; hp = %1000 for each dv
|
|
|
|
ds 1 ; atk/def
|
|
|
|
ds 1 ; spd/spc
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1PP: ; dcf6
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 4
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1Happiness: ; dcfa
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1PokerusStatus: ; dcfb
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1CaughtData: ; dcfc
|
|
|
|
PartyMon1CaughtTime: ; dcfc
|
2013-04-08 06:15:08 +00:00
|
|
|
PartyMon1CaughtLevel: ; dcfc
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1CaughtGender: ; dcfd
|
|
|
|
PartyMon1CaughtLocation: ; dcfd
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1Level: ; dcfe
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1Status: ; dcff
|
2012-03-21 04:23:40 +00:00
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
; dd00 unused
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 1
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1CurHP: ; dd01
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 2
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1MaxHP: ; dd03
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 2
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1Atk: ; dd05
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 2
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1Def: ; dd07
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 2
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1Spd: ; dd09
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 2
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1SpclAtk: ; dd0b
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 2
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1SpclDef: ; dd0d
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 2
|
|
|
|
|
2012-03-21 04:23:40 +00:00
|
|
|
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon2: ; dd0f
|
2013-01-01 22:08:26 +00:00
|
|
|
ds 48
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon3: ; dd3f
|
2013-01-01 22:08:26 +00:00
|
|
|
ds 48
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon4: ; dd6f
|
2013-01-01 22:08:26 +00:00
|
|
|
ds 48
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon5: ; dd9f
|
2013-01-01 22:08:26 +00:00
|
|
|
ds 48
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon6: ; ddcf
|
2013-01-01 22:08:26 +00:00
|
|
|
ds 48
|
2012-04-19 04:18:36 +00:00
|
|
|
|
2013-01-01 22:08:26 +00:00
|
|
|
PartyMonOT:
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1OT: ; ddff
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 11
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon2OT: ; de0a
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 11
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon3OT: ; de15
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 11
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon4OT: ; de20
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 11
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon5OT: ; de2b
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 11
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon6OT: ; de36
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 11
|
2012-03-21 04:23:40 +00:00
|
|
|
|
2013-04-29 18:04:25 +00:00
|
|
|
PartyMonNicknames:
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon1Nickname: ; de41
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 11
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon2Nickname: ; de4c
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 11
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon3Nickname: ; de57
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 11
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon4Nickname: ; de62
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 11
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon5Nickname: ; de6d
|
2012-04-19 04:18:36 +00:00
|
|
|
ds 11
|
2012-12-14 08:00:10 +00:00
|
|
|
PartyMon6Nickname: ; de78
|
2012-06-06 03:28:55 +00:00
|
|
|
ds 11
|
2012-10-09 06:40:36 +00:00
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "Pokedex",WRAMX[$de99],BANK[1]
|
2012-11-24 02:19:02 +00:00
|
|
|
PokedexSeen: ; de99
|
|
|
|
ds 32
|
2013-05-21 23:03:31 +00:00
|
|
|
EndPokedexSeen:
|
2012-11-24 02:19:02 +00:00
|
|
|
PokedexCaught: ; deb9
|
|
|
|
ds 32
|
2013-05-21 23:03:31 +00:00
|
|
|
EndPokedexCaught:
|
2012-11-24 02:19:02 +00:00
|
|
|
UnownDex: ; ded9
|
|
|
|
ds 26
|
2013-02-05 06:21:51 +00:00
|
|
|
UnlockedUnowns: ; def3
|
2012-11-24 02:19:02 +00:00
|
|
|
ds 1
|
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "Breeding",WRAMX[$def5],BANK[1]
|
2012-10-09 08:43:45 +00:00
|
|
|
DaycareMan: ; def5
|
2012-10-09 06:40:36 +00:00
|
|
|
; bit 7: active
|
|
|
|
; bit 6: monsters are compatible
|
2012-10-09 08:43:45 +00:00
|
|
|
; bit 5: egg ready
|
2012-10-09 06:40:36 +00:00
|
|
|
; bit 0: monster 1 in daycare
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
BreedMon1:
|
|
|
|
BreedMon1Nick: ; def6
|
|
|
|
ds 11
|
|
|
|
BreedMon1OT: ; df01
|
|
|
|
ds 11
|
|
|
|
BreedMon1Stats:
|
2013-07-08 05:35:41 +00:00
|
|
|
BreedMon1Species: ; df0c
|
2012-10-09 06:40:36 +00:00
|
|
|
ds 1
|
|
|
|
ds 31
|
|
|
|
|
2012-10-09 08:43:45 +00:00
|
|
|
DaycareLady: ; df2c
|
2012-10-09 06:40:36 +00:00
|
|
|
; bit 7: active
|
|
|
|
; bit 0: monster 2 in daycare
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
StepsToEgg: ; df2d
|
|
|
|
ds 1
|
|
|
|
DittoInDaycare: ; df2e
|
|
|
|
; z: yes
|
|
|
|
; nz: no
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
BreedMon2:
|
|
|
|
BreedMon2Nick: ; df2f
|
|
|
|
ds 11
|
|
|
|
BreedMon2OT: ; df3a
|
|
|
|
ds 11
|
|
|
|
BreedMon2Stats:
|
2013-04-07 04:26:32 +00:00
|
|
|
BreedMon2Species: ; df45
|
2012-10-09 06:40:36 +00:00
|
|
|
ds 1
|
|
|
|
ds 31
|
|
|
|
|
|
|
|
EggNick: ; df65
|
|
|
|
; EGG@
|
|
|
|
ds 11
|
|
|
|
EggOT: ; df70
|
|
|
|
ds 11
|
|
|
|
EggStats:
|
|
|
|
EggSpecies: ; df7b
|
|
|
|
ds 1
|
|
|
|
ds 31
|
2012-11-24 02:19:02 +00:00
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "RoamMons",WRAMX[$dfcf],BANK[1]
|
2012-11-24 02:19:02 +00:00
|
|
|
RoamMon1Species: ; dfcf
|
|
|
|
ds 1
|
|
|
|
RoamMon1Level: ; dfd0
|
|
|
|
ds 1
|
|
|
|
RoamMon1MapGroup: ; dfd1
|
|
|
|
ds 1
|
|
|
|
RoamMon1MapNumber: ; dfd2
|
|
|
|
ds 1
|
|
|
|
RoamMon1CurHP: ; dfd3
|
|
|
|
ds 1
|
|
|
|
RoamMon1DVs: ; dfd4
|
|
|
|
ds 2
|
|
|
|
|
|
|
|
RoamMon2Species: ; dfd6
|
|
|
|
ds 1
|
|
|
|
RoamMon2Level: ; dfd7
|
|
|
|
ds 1
|
|
|
|
RoamMon2MapGroup: ; dfd8
|
|
|
|
ds 1
|
|
|
|
RoamMon2MapNumber: ; dfd9
|
|
|
|
ds 1
|
|
|
|
RoamMon2CurHP: ; dfda
|
|
|
|
ds 1
|
|
|
|
RoamMon2DVs: ; dfdb
|
|
|
|
ds 2
|
|
|
|
|
|
|
|
RoamMon3Species: ; dfdd
|
|
|
|
ds 1
|
|
|
|
RoamMon3Level: ; dfde
|
|
|
|
ds 1
|
|
|
|
RoamMon3MapGroup: ; dfdf
|
|
|
|
ds 1
|
|
|
|
RoamMon3MapNumber: ; dfe0
|
|
|
|
ds 1
|
|
|
|
RoamMon3CurHP: ; dfe1
|
|
|
|
ds 1
|
|
|
|
RoamMon3DVs: ; dfe2
|
2013-01-14 08:40:27 +00:00
|
|
|
ds 2
|
2013-07-02 18:10:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2013-08-04 08:57:48 +00:00
|
|
|
SECTION "WRAMBank5",WRAMX[$d000],BANK[5]
|
2013-07-02 18:10:49 +00:00
|
|
|
|
|
|
|
; 8 4-color palettes
|
2013-08-04 08:57:48 +00:00
|
|
|
Unkn1Pals:
|
|
|
|
ds $40
|
|
|
|
Unkn2Pals:
|
|
|
|
ds $40
|
|
|
|
BGPals:
|
|
|
|
ds $40
|
|
|
|
OBPals:
|
|
|
|
ds $40
|
2013-07-02 18:10:49 +00:00
|
|
|
|