Added labels to different parts of the map script and event headers

This commit is contained in:
PikalaxALT
2015-07-21 00:02:21 -04:00
parent 471492b775
commit 5631bdc0d7
395 changed files with 2403 additions and 2390 deletions

View File

@@ -1941,7 +1941,7 @@ Functionb1de: ; b1de
callba Function494ac callba Function494ac
jr c, .asm_b230 jr c, .asm_b230
ld a, [wRoofPalette] ld a, [wPermission]
and 7 and 7
ld e, a ld e, a
ld d, 0 ld d, 0
@@ -2007,7 +2007,7 @@ endr
ld a, $5 ; BANK(Unkn2Pals) ld a, $5 ; BANK(Unkn2Pals)
call FarCopyWRAM call FarCopyWRAM
ld a, [wRoofPalette] ld a, [wPermission]
cp 1 cp 1
jr z, .asm_b253 jr z, .asm_b253
cp 2 cp 2

View File

@@ -146,7 +146,7 @@ Function97cfd:: ; 97cfd
ld hl, StatusFlags ld hl, StatusFlags
bit 5, [hl] bit 5, [hl]
jr nz, .asm_97d21 jr nz, .asm_97d21
ld a, [wRoofPalette] ld a, [wPermission]
cp $4 cp $4
jr z, .asm_97d17 jr z, .asm_97d17
cp $7 cp $7

View File

@@ -14,7 +14,7 @@ ResetBikeFlags:: ; 2e56
; 2e5d ; 2e5d
ResetFlashIfOutOfCave:: ; 2e5d ResetFlashIfOutOfCave:: ; 2e5d
ld a, [wRoofPalette] ld a, [wPermission]
cp $2 cp $2
jr z, .asm_2e69 jr z, .asm_2e69
cp $1 cp $1

View File

@@ -2506,7 +2506,7 @@ Function_0xf5b1: ; f5b1
Itemfinder: ; f5b8 Itemfinder: ; f5b8
callba Function12580 callba ItemFinder
ret ret
; f5bf ; f5bf

123
main.asm
View File

@@ -12789,8 +12789,8 @@ MovementData_0x12579: ; 0x12579
; 0x12580 ; 0x12580
Function12580: ; 12580 ItemFinder: ; 12580
callba Functionb8172 callba CheckForSignpostItems
jr c, .asm_1258d jr c, .asm_1258d
ld hl, UnknownScript_0x125ba ld hl, UnknownScript_0x125ba
jr .asm_12590 jr .asm_12590
@@ -41327,7 +41327,7 @@ Function494ac: ; 494ac
ret ret
.ice_path .ice_path
ld a, [wRoofPalette] ; permission ld a, [wPermission] ; permission
and 7 and 7
cp 3 ; Hall of Fame cp 3 ; Hall of Fame
jr z, .do_nothing jr z, .do_nothing
@@ -52472,7 +52472,7 @@ VarActionTable: ; 80671
dwb MapGroup, $00 dwb MapGroup, $00
dwb MapNumber, $00 dwb MapNumber, $00
dwb Function806ff, $80 dwb Function806ff, $80
dwb wRoofPalette, $00 dwb wPermission, $00
dwb Function80715, $80 dwb Function80715, $80
dwb wd46c, $00 dwb wd46c, $00
dwb XCoord, $00 dwb XCoord, $00
@@ -64097,7 +64097,7 @@ Function8c365: ; 8c365 (23:4365)
jr nc, .asm_8c375 jr nc, .asm_8c375
set 0, e set 0, e
.asm_8c375 .asm_8c375
ld a, [wRoofPalette] ld a, [wPermission]
cp $4 cp $4
jr z, .asm_8c386 jr z, .asm_8c386
cp $5 cp $5
@@ -65623,13 +65623,13 @@ Function8ceae: ; 8ceae
ld [rSVBK], a ld [rSVBK], a
ld a, [TimeOfDayPal] ld a, [TimeOfDayPal]
push af push af
ld a, [wRoofPalette] ld a, [wPermission]
push af push af
ld a, [TimeOfDay] ld a, [TimeOfDay]
and $3 and $3
ld [TimeOfDayPal], a ld [TimeOfDayPal], a
ld a, $1 ld a, $1
ld [wRoofPalette], a ld [wPermission], a
ld b, $9 ld b, $9
call GetSGBLayout call GetSGBLayout
call UpdateTimePals call UpdateTimePals
@@ -65640,7 +65640,7 @@ Function8ceae: ; 8ceae
ld a, [rOBP1] ld a, [rOBP1]
ld [wcfc9], a ld [wcfc9], a
pop af pop af
ld [wRoofPalette], a ld [wPermission], a
pop af pop af
ld [TimeOfDayPal], a ld [TimeOfDayPal], a
pop af pop af
@@ -69283,7 +69283,7 @@ Function90178: ; 90178 (24:4178)
ret ret
Function90188: ; 90188 Function90188: ; 90188
ld a, [wRoofPalette] ld a, [wPermission]
cp $1 cp $1
jr z, .asm_90195 jr z, .asm_90195
cp $2 cp $2
@@ -76090,15 +76090,15 @@ Functionb8101: ; b8101 (2e:4101)
ld c, $0 ld c, $0
push hl push hl
ld hl, StringBuffer1 ld hl, StringBuffer1
.asm_b8107 .loop
ld a, [hli] ld a, [hli]
cp $50 cp $50
jr z, .asm_b8113 jr z, .stop
cp $25 cp $25
jr z, .asm_b8107 jr z, .loop
inc c inc c
jr .asm_b8107 jr .loop
.asm_b8113 .stop
pop hl pop hl
ret ret
@@ -76113,19 +76113,19 @@ rept 2
inc c inc c
endr endr
ld a, $87 ld a, $87
.asm_b811f .loop
push bc push bc
push hl push hl
.asm_b8121 .inner_loop
ld [hli], a ld [hli], a
dec c dec c
jr nz, .asm_b8121 jr nz, .inner_loop
pop hl pop hl
ld de, SCREEN_WIDTH ld de, SCREEN_WIDTH
add hl, de add hl, de
pop bc pop bc
dec b dec b
jr nz, .asm_b811f jr nz, .loop
ret ret
; b812f ; b812f
@@ -76134,94 +76134,105 @@ Functionb812f: ; b812f
ld a, $61 ld a, $61
ld [hli], a ld [hli], a
ld a, $62 ld a, $62
call Functionb8164 call .Fill5Words
ld a, $64 ld a, $64
ld [hli], a ld [hli], a
ld a, $65 ld a, $65
ld [hli], a ld [hli], a
call Functionb815b call .Fill18Bytes
ld a, $6b ld a, $6b
ld [hli], a ld [hli], a
ld a, $66 ld a, $66
ld [hli], a ld [hli], a
call Functionb815b call .Fill18Bytes
ld a, $6c ld a, $6c
ld [hli], a ld [hli], a
ld a, $67 ld a, $67
ld [hli], a ld [hli], a
ld a, $68 ld a, $68
call Functionb8164 call .Fill5Words
ld a, $6a ld a, $6a
ld [hl], a ld [hl], a
ret ret
; b815b ; b815b
Functionb815b: ; b815b .Fill18Bytes: ; b815b
ld c, $12 ld c, 18
ld a, $6d ld a, $6d
.asm_b815f .loop
ld [hli], a ld [hli], a
dec c dec c
jr nz, .asm_b815f jr nz, .loop
ret ret
; b8164 ; b8164
Functionb8164: ; b8164 .Fill5Words: ; b8164
ld c, $5 ld c, 5
jr .asm_b816a jr .enterloop
.asm_b8168 .continueloop
rept 2 rept 2
ld [hli], a ld [hli], a
endr endr
.asm_b816a .enterloop
inc a inc a
rept 2 rept 2
ld [hli], a ld [hli], a
endr endr
dec a dec a
dec c dec c
jr nz, .asm_b8168 jr nz, .continueloop
ret ret
; b8172 ; b8172
Functionb8172: ; b8172 CheckForSignpostItems: ; b8172
; Checks to see if there are hidden items on the screen that have not yet been found. If it finds one, returns carry.
call GetMapScriptHeaderBank call GetMapScriptHeaderBank
ld [Buffer1], a ld [Buffer1], a
; Get the coordinate of the bottom right corner of the screen, and load it in wd1ec/wd1ed.
ld a, [XCoord] ld a, [XCoord]
add $5 add SCREEN_WIDTH / 4
ld [wd1ed], a ld [wd1ed], a
ld a, [YCoord] ld a, [YCoord]
add $4 add SCREEN_HEIGHT / 4
ld [wd1ec], a ld [wd1ec], a
; Get the pointer for the first signpost header in the map...
ld hl, wdc02 ld hl, wdc02
ld a, [hli] ld a, [hli]
ld h, [hl] ld h, [hl]
ld l, a ld l, a
; ... before even checking to see if there are any signposts on this map.
ld a, [wCurrentMapSignpostCount] ld a, [wCurrentMapSignpostCount]
and a and a
jr z, .asm_b81dd jr z, .nosignpostitems
.asm_b8194 ; For i = 1:wCurrentMapSignpostCount...
.loop
; Store the counter in Buffer2, and store the signpost header pointer in the stack.
ld [Buffer2], a ld [Buffer2], a
push hl push hl
call Functionb81e2 ; Get the Y coordinate of the signpost.
call .GetFarByte
ld e, a ld e, a
; Is the Y coordinate of the signpost on the screen? If not, go to the next signpost.
ld a, [wd1ec] ld a, [wd1ec]
sub e sub e
jr c, .asm_b81d2 jr c, .next
cp $9 cp SCREEN_HEIGHT / 2
jr nc, .asm_b81d2 jr nc, .next
call Functionb81e2 ; Is the X coordinate of the signpost on the screen? If not, go to the next signpost.
call .GetFarByte
ld d, a ld d, a
ld a, [wd1ed] ld a, [wd1ed]
sub d sub d
jr c, .asm_b81d2 jr c, .next
cp $a cp SCREEN_WIDTH / 2
jr nc, .asm_b81d2 jr nc, .next
call Functionb81e2 ; Is this signpost a hidden item? If not, go to the next signpost.
cp $7 call .GetFarByte
jr nz, .asm_b81d2 cp SIGNPOST_ITEM
jr nz, .next
; Has this item already been found? If not, set off the Itemfinder.
ld a, [Buffer1] ld a, [Buffer1]
call GetFarHalfword call GetFarHalfword
ld a, [Buffer1] ld a, [Buffer1]
@@ -76232,27 +76243,29 @@ Functionb8172: ; b8172
call EventFlagAction call EventFlagAction
ld a, c ld a, c
and a and a
jr z, .asm_b81df jr z, .itemnearby
.asm_b81d2 .next
; Restore the signpost header pointer and increment it by the length of a signpost header.
pop hl pop hl
ld bc, $0005 ld bc, 5
add hl, bc add hl, bc
; Restore the signpost counter and decrement it. If it hits zero, there are no hidden items in range.
ld a, [Buffer2] ld a, [Buffer2]
dec a dec a
jr nz, .asm_b8194 jr nz, .loop
.asm_b81dd .nosignpostitems
xor a xor a
ret ret
.asm_b81df .itemnearby
pop hl pop hl
scf scf
ret ret
; b81e2 ; b81e2
Functionb81e2: ; b81e2 .GetFarByte: ; b81e2
ld a, [Buffer1] ld a, [Buffer1]
call GetFarByte call GetFarByte
inc hl inc hl

View File

@@ -1,8 +1,8 @@
AzaleaGym_MapScriptHeader: AzaleaGym_MapScriptHeader:
; trigger count .MapTriggers:
db 0 db 0
; callback count .MapCallbacks:
db 0 db 0
BugsyScript_0x18ec1e: BugsyScript_0x18ec1e:
@@ -356,20 +356,20 @@ AzaleaGym_MapEventHeader:
; filler ; filler
db 0, 0 db 0, 0
; warps .Warps:
db 2 db 2
warp_def $f, $4, 5, GROUP_AZALEA_TOWN, MAP_AZALEA_TOWN warp_def $f, $4, 5, GROUP_AZALEA_TOWN, MAP_AZALEA_TOWN
warp_def $f, $5, 5, GROUP_AZALEA_TOWN, MAP_AZALEA_TOWN warp_def $f, $5, 5, GROUP_AZALEA_TOWN, MAP_AZALEA_TOWN
; xy triggers .XYTriggers:
db 0 db 0
; signposts .Signposts:
db 2 db 2
signpost 13, 3, SIGNPOST_READ, AzaleaGymStatue signpost 13, 3, SIGNPOST_READ, AzaleaGymStatue
signpost 13, 6, SIGNPOST_READ, AzaleaGymStatue signpost 13, 6, SIGNPOST_READ, AzaleaGymStatue
; people-events .PersonEvents:
db 7 db 7
person_event SPRITE_BUGSY, 11, 9, OW_DOWN | $3, $0, -1, -1, (PAL_OW_GREEN << 4) | $80, 0, BugsyScript_0x18ec1e, -1 person_event SPRITE_BUGSY, 11, 9, OW_DOWN | $3, $0, -1, -1, (PAL_OW_GREEN << 4) | $80, 0, BugsyScript_0x18ec1e, -1
person_event SPRITE_BUG_CATCHER, 7, 9, OW_LEFT | $2, $0, -1, -1, (PAL_OW_BROWN << 4) | $82, 2, TrainerBug_catcherBug_catcher_benny, -1 person_event SPRITE_BUG_CATCHER, 7, 9, OW_LEFT | $2, $0, -1, -1, (PAL_OW_BROWN << 4) | $82, 2, TrainerBug_catcherBug_catcher_benny, -1

View File

@@ -1,8 +1,8 @@
AzaleaMart_MapScriptHeader: AzaleaMart_MapScriptHeader:
; trigger count .MapTriggers:
db 0 db 0
; callback count .MapCallbacks:
db 0 db 0
ClerkScript_0x18e040: ClerkScript_0x18e040:
@@ -44,18 +44,18 @@ AzaleaMart_MapEventHeader:
; filler ; filler
db 0, 0 db 0, 0
; warps .Warps:
db 2 db 2
warp_def $7, $2, 3, GROUP_AZALEA_TOWN, MAP_AZALEA_TOWN warp_def $7, $2, 3, GROUP_AZALEA_TOWN, MAP_AZALEA_TOWN
warp_def $7, $3, 3, GROUP_AZALEA_TOWN, MAP_AZALEA_TOWN warp_def $7, $3, 3, GROUP_AZALEA_TOWN, MAP_AZALEA_TOWN
; xy triggers .XYTriggers:
db 0 db 0
; signposts .Signposts:
db 0 db 0
; people-events .PersonEvents:
db 3 db 3
person_event SPRITE_CLERK, 7, 5, OW_LEFT | $1, $0, -1, -1, $0, 0, ClerkScript_0x18e040, -1 person_event SPRITE_CLERK, 7, 5, OW_LEFT | $1, $0, -1, -1, $0, 0, ClerkScript_0x18e040, -1
person_event SPRITE_COOLTRAINER_M, 9, 6, OW_UP | $3, $0, -1, -1, $0, 0, CooltrainerMScript_0x18e047, -1 person_event SPRITE_COOLTRAINER_M, 9, 6, OW_UP | $3, $0, -1, -1, $0, 0, CooltrainerMScript_0x18e047, -1

View File

@@ -1,11 +1,11 @@
AzaleaPokeCenter1F_MapScriptHeader: AzaleaPokeCenter1F_MapScriptHeader:
; trigger count .MapTriggers:
db 1 db 1
; triggers ; triggers
dw UnknownScript_0x18db27, $0000 dw UnknownScript_0x18db27, $0000
; callback count .MapCallbacks:
db 0 db 0
UnknownScript_0x18db27: UnknownScript_0x18db27:
@@ -76,19 +76,19 @@ AzaleaPokeCenter1F_MapEventHeader:
; filler ; filler
db 0, 0 db 0, 0
; warps .Warps:
db 3 db 3
warp_def $7, $3, 1, GROUP_AZALEA_TOWN, MAP_AZALEA_TOWN warp_def $7, $3, 1, GROUP_AZALEA_TOWN, MAP_AZALEA_TOWN
warp_def $7, $4, 1, GROUP_AZALEA_TOWN, MAP_AZALEA_TOWN warp_def $7, $4, 1, GROUP_AZALEA_TOWN, MAP_AZALEA_TOWN
warp_def $7, $0, 1, GROUP_POKECENTER_2F, MAP_POKECENTER_2F warp_def $7, $0, 1, GROUP_POKECENTER_2F, MAP_POKECENTER_2F
; xy triggers .XYTriggers:
db 0 db 0
; signposts .Signposts:
db 0 db 0
; people-events .PersonEvents:
db 4 db 4
person_event SPRITE_NURSE, 5, 7, OW_UP | $2, $0, -1, -1, $0, 0, NurseScript_0x18db28, -1 person_event SPRITE_NURSE, 5, 7, OW_UP | $2, $0, -1, -1, $0, 0, NurseScript_0x18db28, -1
person_event SPRITE_GENTLEMAN, 10, 13, OW_UP | $0, $10, -1, -1, $0, 0, GentlemanScript_0x18db2b, -1 person_event SPRITE_GENTLEMAN, 10, 13, OW_UP | $0, $10, -1, -1, $0, 0, GentlemanScript_0x18db2b, -1

View File

@@ -1,5 +1,5 @@
AzaleaTown_MapScriptHeader: AzaleaTown_MapScriptHeader:
; trigger count .MapTriggers:
db 3 db 3
; triggers ; triggers
@@ -7,7 +7,7 @@ AzaleaTown_MapScriptHeader:
dw .Trigger2, $0000 dw .Trigger2, $0000
dw .Trigger3, $0000 dw .Trigger3, $0000
; callback count .MapCallbacks:
db 1 db 1
; callbacks ; callbacks
@@ -450,7 +450,7 @@ AzaleaTown_MapEventHeader:
; filler ; filler
db 0, 0 db 0, 0
; warps .Warps:
db 8 db 8
warp_def $9, $f, 1, GROUP_AZALEA_POKECENTER_1F, MAP_AZALEA_POKECENTER_1F warp_def $9, $f, 1, GROUP_AZALEA_POKECENTER_1F, MAP_AZALEA_POKECENTER_1F
warp_def $d, $15, 1, GROUP_CHARCOAL_KILN, MAP_CHARCOAL_KILN warp_def $d, $15, 1, GROUP_CHARCOAL_KILN, MAP_CHARCOAL_KILN
@@ -461,13 +461,13 @@ AzaleaTown_MapEventHeader:
warp_def $a, $2, 3, GROUP_ILEX_FOREST_AZALEA_GATE, MAP_ILEX_FOREST_AZALEA_GATE warp_def $a, $2, 3, GROUP_ILEX_FOREST_AZALEA_GATE, MAP_ILEX_FOREST_AZALEA_GATE
warp_def $b, $2, 4, GROUP_ILEX_FOREST_AZALEA_GATE, MAP_ILEX_FOREST_AZALEA_GATE warp_def $b, $2, 4, GROUP_ILEX_FOREST_AZALEA_GATE, MAP_ILEX_FOREST_AZALEA_GATE
; xy triggers .XYTriggers:
db 3 db 3
xy_trigger 1, $a, $5, $0, UnknownScript_0x198018, $0, $0 xy_trigger 1, $a, $5, $0, UnknownScript_0x198018, $0, $0
xy_trigger 1, $b, $5, $0, UnknownScript_0x198034, $0, $0 xy_trigger 1, $b, $5, $0, UnknownScript_0x198034, $0, $0
xy_trigger 2, $6, $9, $0, UnknownScript_0x1980e5, $0, $0 xy_trigger 2, $6, $9, $0, UnknownScript_0x1980e5, $0, $0
; signposts .Signposts:
db 9 db 9
signpost 9, 19, SIGNPOST_READ, AzaleaTownSign signpost 9, 19, SIGNPOST_READ, AzaleaTownSign
signpost 9, 10, SIGNPOST_READ, KurtsHouseSign signpost 9, 10, SIGNPOST_READ, KurtsHouseSign
@@ -479,7 +479,7 @@ AzaleaTown_MapEventHeader:
signpost 9, 3, SIGNPOST_READ, AzaleaTownIlextForestSign signpost 9, 3, SIGNPOST_READ, AzaleaTownIlextForestSign
signpost 6, 31, SIGNPOST_ITEM, MapAzaleaTownSignpostItem8 signpost 6, 31, SIGNPOST_ITEM, MapAzaleaTownSignpostItem8
; people-events .PersonEvents:
db 12 db 12
person_event SPRITE_AZALEA_ROCKET, 13, 35, OW_UP | $2, $0, -1, -1, $0, 0, AzaleaRocketScript_0x1980ab, EVENT_AZALEA_TOWN_SLOWPOKETAIL_ROCKET person_event SPRITE_AZALEA_ROCKET, 13, 35, OW_UP | $2, $0, -1, -1, $0, 0, AzaleaRocketScript_0x1980ab, EVENT_AZALEA_TOWN_SLOWPOKETAIL_ROCKET
person_event SPRITE_GRAMPS, 13, 25, OW_DOWN | $2, $21, -1, -1, $0, 0, GrampsScript_0x1980b1, -1 person_event SPRITE_GRAMPS, 13, 25, OW_DOWN | $2, $21, -1, -1, $0, 0, GrampsScript_0x1980b1, -1

View File

@@ -1,12 +1,12 @@
BattleTower1F_MapScriptHeader: BattleTower1F_MapScriptHeader:
; trigger count .MapTriggers:
db 2 db 2
; triggers ; triggers
dw UnknownScript_0x9e39d, $0000 dw UnknownScript_0x9e39d, $0000
dw UnknownScript_0x9e3d3, $0000 dw UnknownScript_0x9e3d3, $0000
; callback count .MapCallbacks:
db 0 db 0
UnknownScript_0x9e39d: UnknownScript_0x9e39d:
@@ -795,20 +795,20 @@ BattleTower1F_MapEventHeader:
; filler ; filler
db 0, 0 db 0, 0
; warps .Warps:
db 3 db 3
warp_def $9, $7, 3, GROUP_BATTLE_TOWER_OUTSIDE, MAP_BATTLE_TOWER_OUTSIDE warp_def $9, $7, 3, GROUP_BATTLE_TOWER_OUTSIDE, MAP_BATTLE_TOWER_OUTSIDE
warp_def $9, $8, 4, GROUP_BATTLE_TOWER_OUTSIDE, MAP_BATTLE_TOWER_OUTSIDE warp_def $9, $8, 4, GROUP_BATTLE_TOWER_OUTSIDE, MAP_BATTLE_TOWER_OUTSIDE
warp_def $0, $7, 1, GROUP_BATTLE_TOWER_ELEVATOR, MAP_BATTLE_TOWER_ELEVATOR warp_def $0, $7, 1, GROUP_BATTLE_TOWER_ELEVATOR, MAP_BATTLE_TOWER_ELEVATOR
; xy triggers .XYTriggers:
db 0 db 0
; signposts .Signposts:
db 1 db 1
signpost 6, 6, SIGNPOST_READ, MapBattleTower1FSignpost0Script signpost 6, 6, SIGNPOST_READ, MapBattleTower1FSignpost0Script
; people-events .PersonEvents:
db 5 db 5
person_event SPRITE_RECEPTIONIST, 10, 11, OW_UP | $2, $0, -1, -1, $0, 0, ReceptionistScript_0x9e3e2, -1 person_event SPRITE_RECEPTIONIST, 10, 11, OW_UP | $2, $0, -1, -1, $0, 0, ReceptionistScript_0x9e3e2, -1
person_event SPRITE_YOUNGSTER, 13, 18, OW_LEFT | $1, $0, -1, -1, (PAL_OW_BROWN << 4) | $80, 0, YoungsterScript_0x9e55d, -1 person_event SPRITE_YOUNGSTER, 13, 18, OW_LEFT | $1, $0, -1, -1, (PAL_OW_BROWN << 4) | $80, 0, YoungsterScript_0x9e55d, -1

View File

@@ -1,12 +1,12 @@
BattleTowerBattleRoom_MapScriptHeader: BattleTowerBattleRoom_MapScriptHeader:
; trigger count .MapTriggers:
db 2 db 2
; triggers ; triggers
dw UnknownScript_0x9f419, $0000 dw UnknownScript_0x9f419, $0000
dw UnknownScript_0x9f420, $0000 dw UnknownScript_0x9f420, $0000
; callback count .MapCallbacks:
db 0 db 0
UnknownScript_0x9f419: UnknownScript_0x9f419:
@@ -142,18 +142,18 @@ BattleTowerBattleRoom_MapEventHeader:
; filler ; filler
db 0, 0 db 0, 0
; warps .Warps:
db 2 db 2
warp_def $7, $3, 4, GROUP_BATTLE_TOWER_HALLWAY, MAP_BATTLE_TOWER_HALLWAY warp_def $7, $3, 4, GROUP_BATTLE_TOWER_HALLWAY, MAP_BATTLE_TOWER_HALLWAY
warp_def $7, $4, 4, GROUP_BATTLE_TOWER_HALLWAY, MAP_BATTLE_TOWER_HALLWAY warp_def $7, $4, 4, GROUP_BATTLE_TOWER_HALLWAY, MAP_BATTLE_TOWER_HALLWAY
; xy triggers .XYTriggers:
db 0 db 0
; signposts .Signposts:
db 0 db 0
; people-events .PersonEvents:
db 2 db 2
person_event SPRITE_YOUNGSTER, 4, 8, OW_UP | $2, $0, -1, -1, $0, 0, ObjectEvent, EVENT_BATTLE_TOWER_BATTLE_ROOM_YOUNGSTER person_event SPRITE_YOUNGSTER, 4, 8, OW_UP | $2, $0, -1, -1, $0, 0, ObjectEvent, EVENT_BATTLE_TOWER_BATTLE_ROOM_YOUNGSTER
person_event SPRITE_RECEPTIONIST, 10, 5, OW_LEFT | $1, $0, -1, -1, $0, 0, ObjectEvent, -1 person_event SPRITE_RECEPTIONIST, 10, 5, OW_LEFT | $1, $0, -1, -1, $0, 0, ObjectEvent, -1

View File

@@ -1,12 +1,12 @@
BattleTowerElevator_MapScriptHeader: BattleTowerElevator_MapScriptHeader:
; trigger count .MapTriggers:
db 2 db 2
; triggers ; triggers
dw UnknownScript_0x9f562, $0000 dw UnknownScript_0x9f562, $0000
dw UnknownScript_0x9f567, $0000 dw UnknownScript_0x9f567, $0000
; callback count .MapCallbacks:
db 0 db 0
UnknownScript_0x9f562: UnknownScript_0x9f562:
@@ -47,17 +47,17 @@ BattleTowerElevator_MapEventHeader:
; filler ; filler
db 0, 0 db 0, 0
; warps .Warps:
db 2 db 2
warp_def $3, $1, 1, GROUP_BATTLE_TOWER_HALLWAY, MAP_BATTLE_TOWER_HALLWAY warp_def $3, $1, 1, GROUP_BATTLE_TOWER_HALLWAY, MAP_BATTLE_TOWER_HALLWAY
warp_def $3, $2, 1, GROUP_BATTLE_TOWER_HALLWAY, MAP_BATTLE_TOWER_HALLWAY warp_def $3, $2, 1, GROUP_BATTLE_TOWER_HALLWAY, MAP_BATTLE_TOWER_HALLWAY
; xy triggers .XYTriggers:
db 0 db 0
; signposts .Signposts:
db 0 db 0
; people-events .PersonEvents:
db 1 db 1
person_event SPRITE_RECEPTIONIST, 6, 5, OW_LEFT | $1, $0, -1, -1, $0, 0, MovementData_0x9f58f, -1 person_event SPRITE_RECEPTIONIST, 6, 5, OW_LEFT | $1, $0, -1, -1, $0, 0, MovementData_0x9f58f, -1

View File

@@ -1,12 +1,12 @@
BattleTowerHallway_MapScriptHeader: BattleTowerHallway_MapScriptHeader:
; trigger count .MapTriggers:
db 2 db 2
; triggers ; triggers
dw UnknownScript_0x9f5bb, $0000 dw UnknownScript_0x9f5bb, $0000
dw UnknownScript_0x9f5c0, $0000 dw UnknownScript_0x9f5c0, $0000
; callback count .MapCallbacks:
db 0 db 0
UnknownScript_0x9f5bb: UnknownScript_0x9f5bb:
@@ -79,7 +79,7 @@ BattleTowerHallway_MapEventHeader:
; filler ; filler
db 0, 0 db 0, 0
; warps .Warps:
db 6 db 6
warp_def $1, $b, 1, GROUP_BATTLE_TOWER_ELEVATOR, MAP_BATTLE_TOWER_ELEVATOR warp_def $1, $b, 1, GROUP_BATTLE_TOWER_ELEVATOR, MAP_BATTLE_TOWER_ELEVATOR
warp_def $0, $5, 1, GROUP_BATTLE_TOWER_BATTLE_ROOM, MAP_BATTLE_TOWER_BATTLE_ROOM warp_def $0, $5, 1, GROUP_BATTLE_TOWER_BATTLE_ROOM, MAP_BATTLE_TOWER_BATTLE_ROOM
@@ -88,12 +88,12 @@ BattleTowerHallway_MapEventHeader:
warp_def $0, $d, 1, GROUP_BATTLE_TOWER_BATTLE_ROOM, MAP_BATTLE_TOWER_BATTLE_ROOM warp_def $0, $d, 1, GROUP_BATTLE_TOWER_BATTLE_ROOM, MAP_BATTLE_TOWER_BATTLE_ROOM
warp_def $0, $f, 1, GROUP_BATTLE_TOWER_BATTLE_ROOM, MAP_BATTLE_TOWER_BATTLE_ROOM warp_def $0, $f, 1, GROUP_BATTLE_TOWER_BATTLE_ROOM, MAP_BATTLE_TOWER_BATTLE_ROOM
; xy triggers .XYTriggers:
db 0 db 0
; signposts .Signposts:
db 0 db 0
; people-events .PersonEvents:
db 1 db 1
person_event SPRITE_RECEPTIONIST, 6, 15, OW_UP | $2, $0, -1, -1, $0, 0, BattleTowerHallway_MapEventHeader, -1 person_event SPRITE_RECEPTIONIST, 6, 15, OW_UP | $2, $0, -1, -1, $0, 0, BattleTowerHallway_MapEventHeader, -1

View File

@@ -1,8 +1,8 @@
BattleTowerOutside_MapScriptHeader: BattleTowerOutside_MapScriptHeader:
; trigger count .MapTriggers:
db 0 db 0
; callback count .MapCallbacks:
db 2 db 2
; callbacks ; callbacks
@@ -126,21 +126,21 @@ BattleTowerOutside_MapEventHeader:
; filler ; filler
db 0, 0 db 0, 0
; warps .Warps:
db 4 db 4
warp_def $15, $8, 3, GROUP_ROUTE_40_BATTLE_TOWER_GATE, MAP_ROUTE_40_BATTLE_TOWER_GATE warp_def $15, $8, 3, GROUP_ROUTE_40_BATTLE_TOWER_GATE, MAP_ROUTE_40_BATTLE_TOWER_GATE
warp_def $15, $9, 4, GROUP_ROUTE_40_BATTLE_TOWER_GATE, MAP_ROUTE_40_BATTLE_TOWER_GATE warp_def $15, $9, 4, GROUP_ROUTE_40_BATTLE_TOWER_GATE, MAP_ROUTE_40_BATTLE_TOWER_GATE
warp_def $9, $8, 1, GROUP_BATTLE_TOWER_1F, MAP_BATTLE_TOWER_1F warp_def $9, $8, 1, GROUP_BATTLE_TOWER_1F, MAP_BATTLE_TOWER_1F
warp_def $9, $9, 2, GROUP_BATTLE_TOWER_1F, MAP_BATTLE_TOWER_1F warp_def $9, $9, 2, GROUP_BATTLE_TOWER_1F, MAP_BATTLE_TOWER_1F
; xy triggers .XYTriggers:
db 0 db 0
; signposts .Signposts:
db 1 db 1
signpost 10, 10, SIGNPOST_READ, MapBattleTowerOutsideSignpost0Script signpost 10, 10, SIGNPOST_READ, MapBattleTowerOutsideSignpost0Script
; people-events .PersonEvents:
db 4 db 4
person_event SPRITE_STANDING_YOUNGSTER, 16, 10, OW_UP | $3, $0, -1, -1, (PAL_OW_RED << 4) | $80, 0, StandingYoungsterScript_0x9f85f, -1 person_event SPRITE_STANDING_YOUNGSTER, 16, 10, OW_UP | $3, $0, -1, -1, (PAL_OW_RED << 4) | $80, 0, StandingYoungsterScript_0x9f85f, -1
person_event SPRITE_BUENA, 15, 17, OW_DOWN | $2, $11, -1, -1, (PAL_OW_GREEN << 4) | $80, 0, BuenaScript_0x9f862, -1 person_event SPRITE_BUENA, 15, 17, OW_DOWN | $2, $11, -1, -1, (PAL_OW_GREEN << 4) | $80, 0, BuenaScript_0x9f862, -1

View File

@@ -1,8 +1,8 @@
BillsHouse_MapScriptHeader: BillsHouse_MapScriptHeader:
; trigger count .MapTriggers:
db 0 db 0
; callback count .MapCallbacks:
db 0 db 0
GrampsScript_0x189538: GrampsScript_0x189538:
@@ -354,17 +354,17 @@ BillsHouse_MapEventHeader:
; filler ; filler
db 0, 0 db 0, 0
; warps .Warps:
db 2 db 2
warp_def $7, $2, 1, GROUP_ROUTE_25, MAP_ROUTE_25 warp_def $7, $2, 1, GROUP_ROUTE_25, MAP_ROUTE_25
warp_def $7, $3, 1, GROUP_ROUTE_25, MAP_ROUTE_25 warp_def $7, $3, 1, GROUP_ROUTE_25, MAP_ROUTE_25
; xy triggers .XYTriggers:
db 0 db 0
; signposts .Signposts:
db 0 db 0
; people-events .PersonEvents:
db 1 db 1
person_event SPRITE_GRAMPS, 7, 6, OW_UP | $3, $20, -1, -1, (PAL_OW_BLUE << 4) | $80, 0, GrampsScript_0x189538, -1 person_event SPRITE_GRAMPS, 7, 6, OW_UP | $3, $20, -1, -1, (PAL_OW_BLUE << 4) | $80, 0, GrampsScript_0x189538, -1

View File

@@ -1,8 +1,8 @@
BlackthornCity_MapScriptHeader: BlackthornCity_MapScriptHeader:
; trigger count .MapTriggers:
db 0 db 0
; callback count .MapCallbacks:
db 2 db 2
; callbacks ; callbacks
@@ -307,7 +307,7 @@ BlackthornCity_MapEventHeader:
; filler ; filler
db 0, 0 db 0, 0
; warps .Warps:
db 8 db 8
warp_def $b, $12, 1, GROUP_BLACKTHORN_GYM_1F, MAP_BLACKTHORN_GYM_1F warp_def $b, $12, 1, GROUP_BLACKTHORN_GYM_1F, MAP_BLACKTHORN_GYM_1F
warp_def $15, $d, 1, GROUP_BLACKTHORN_DRAGON_SPEECH_HOUSE, MAP_BLACKTHORN_DRAGON_SPEECH_HOUSE warp_def $15, $d, 1, GROUP_BLACKTHORN_DRAGON_SPEECH_HOUSE, MAP_BLACKTHORN_DRAGON_SPEECH_HOUSE
@@ -318,10 +318,10 @@ BlackthornCity_MapEventHeader:
warp_def $9, $24, 2, GROUP_ICE_PATH_1F, MAP_ICE_PATH_1F warp_def $9, $24, 2, GROUP_ICE_PATH_1F, MAP_ICE_PATH_1F
warp_def $1, $14, 1, GROUP_DRAGONS_DEN_1F, MAP_DRAGONS_DEN_1F warp_def $1, $14, 1, GROUP_DRAGONS_DEN_1F, MAP_DRAGONS_DEN_1F
; xy triggers .XYTriggers:
db 0 db 0
; signposts .Signposts:
db 7 db 7
signpost 24, 34, SIGNPOST_READ, BlackthornCitySign signpost 24, 34, SIGNPOST_READ, BlackthornCitySign
signpost 13, 17, SIGNPOST_READ, BlackthornGymSign signpost 13, 17, SIGNPOST_READ, BlackthornGymSign
@@ -331,7 +331,7 @@ BlackthornCity_MapEventHeader:
signpost 29, 16, SIGNPOST_READ, BlackthornCityMartSign signpost 29, 16, SIGNPOST_READ, BlackthornCityMartSign
signpost 29, 22, SIGNPOST_READ, BlackthornCityPokeCenterSign signpost 29, 22, SIGNPOST_READ, BlackthornCityPokeCenterSign
; people-events .PersonEvents:
db 9 db 9
person_event SPRITE_SUPER_NERD, 16, 22, OW_UP | $2, $0, -1, -1, (PAL_OW_RED << 4) | $80, 0, SuperNerdScript_0x1a46e8, EVENT_BLACKTHORN_CITY_SUPER_NERD_BLOCKS_GYM person_event SPRITE_SUPER_NERD, 16, 22, OW_UP | $2, $0, -1, -1, (PAL_OW_RED << 4) | $80, 0, SuperNerdScript_0x1a46e8, EVENT_BLACKTHORN_CITY_SUPER_NERD_BLOCKS_GYM
person_event SPRITE_SUPER_NERD, 16, 23, OW_UP | $2, $0, -1, -1, (PAL_OW_RED << 4) | $80, 0, SuperNerdScript_0x1a46e8, EVENT_BLACKTHORN_CITY_SUPER_NERD_DOES_NOT_BLOCK_GYM person_event SPRITE_SUPER_NERD, 16, 23, OW_UP | $2, $0, -1, -1, (PAL_OW_RED << 4) | $80, 0, SuperNerdScript_0x1a46e8, EVENT_BLACKTHORN_CITY_SUPER_NERD_DOES_NOT_BLOCK_GYM

View File

@@ -1,8 +1,8 @@
BlackthornDodrioTradeHouse_MapScriptHeader: BlackthornDodrioTradeHouse_MapScriptHeader:
; trigger count .MapTriggers:
db 0 db 0
; callback count .MapCallbacks:
db 0 db 0
Emy: Emy:
@@ -20,19 +20,19 @@ BlackthornDodrioTradeHouse_MapEventHeader:
; filler ; filler
db 0, 0 db 0, 0
; warps .Warps:
db 2 db 2
warp_def $7, $2, 3, GROUP_BLACKTHORN_CITY, MAP_BLACKTHORN_CITY warp_def $7, $2, 3, GROUP_BLACKTHORN_CITY, MAP_BLACKTHORN_CITY
warp_def $7, $3, 3, GROUP_BLACKTHORN_CITY, MAP_BLACKTHORN_CITY warp_def $7, $3, 3, GROUP_BLACKTHORN_CITY, MAP_BLACKTHORN_CITY
; xy triggers .XYTriggers:
db 0 db 0
; signposts .Signposts:
db 2 db 2
signpost 1, 0, SIGNPOST_READ, EmysHouseBookshelf signpost 1, 0, SIGNPOST_READ, EmysHouseBookshelf
signpost 1, 1, SIGNPOST_READ, EmysHouseBookshelf signpost 1, 1, SIGNPOST_READ, EmysHouseBookshelf
; people-events .PersonEvents:
db 1 db 1
person_event SPRITE_LASS, 7, 6, OW_DOWN | $3, $0, -1, -1, (PAL_OW_GREEN << 4) | $80, 0, Emy, -1 person_event SPRITE_LASS, 7, 6, OW_DOWN | $3, $0, -1, -1, (PAL_OW_GREEN << 4) | $80, 0, Emy, -1

View File

@@ -1,8 +1,8 @@
BlackthornDragonSpeechHouse_MapScriptHeader: BlackthornDragonSpeechHouse_MapScriptHeader:
; trigger count .MapTriggers:
db 0 db 0
; callback count .MapCallbacks:
db 0 db 0
GrannyScript_0x195949: GrannyScript_0x195949:
@@ -45,18 +45,18 @@ BlackthornDragonSpeechHouse_MapEventHeader:
; filler ; filler
db 0, 0 db 0, 0
; warps .Warps:
db 2 db 2
warp_def $7, $2, 2, GROUP_BLACKTHORN_CITY, MAP_BLACKTHORN_CITY warp_def $7, $2, 2, GROUP_BLACKTHORN_CITY, MAP_BLACKTHORN_CITY
warp_def $7, $3, 2, GROUP_BLACKTHORN_CITY, MAP_BLACKTHORN_CITY warp_def $7, $3, 2, GROUP_BLACKTHORN_CITY, MAP_BLACKTHORN_CITY
; xy triggers .XYTriggers:
db 0 db 0
; signposts .Signposts:
db 0 db 0
; people-events .PersonEvents:
db 2 db 2
person_event SPRITE_GRANNY, 7, 6, OW_DOWN | $3, $0, -1, -1, $0, 0, GrannyScript_0x195949, -1 person_event SPRITE_GRANNY, 7, 6, OW_DOWN | $3, $0, -1, -1, $0, 0, GrannyScript_0x195949, -1
person_event SPRITE_EKANS, 9, 9, OW_UP | $12, $0, -1, -1, (PAL_OW_BLUE << 4) | $80, 0, EkansScript_0x19594c, -1 person_event SPRITE_EKANS, 9, 9, OW_UP | $12, $0, -1, -1, (PAL_OW_BLUE << 4) | $80, 0, EkansScript_0x19594c, -1

View File

@@ -1,8 +1,8 @@
BlackthornGym1F_MapScriptHeader: BlackthornGym1F_MapScriptHeader:
; trigger count .MapTriggers:
db 0 db 0
; callback count .MapCallbacks:
db 1 db 1
; callbacks ; callbacks
@@ -384,7 +384,7 @@ BlackthornGym1F_MapEventHeader:
; filler ; filler
db 0, 0 db 0, 0
; warps .Warps:
db 7 db 7
warp_def $11, $4, 1, GROUP_BLACKTHORN_CITY, MAP_BLACKTHORN_CITY warp_def $11, $4, 1, GROUP_BLACKTHORN_CITY, MAP_BLACKTHORN_CITY
warp_def $11, $5, 1, GROUP_BLACKTHORN_CITY, MAP_BLACKTHORN_CITY warp_def $11, $5, 1, GROUP_BLACKTHORN_CITY, MAP_BLACKTHORN_CITY
@@ -394,15 +394,15 @@ BlackthornGym1F_MapEventHeader:
warp_def $7, $7, 4, GROUP_BLACKTHORN_GYM_2F, MAP_BLACKTHORN_GYM_2F warp_def $7, $7, 4, GROUP_BLACKTHORN_GYM_2F, MAP_BLACKTHORN_GYM_2F
warp_def $6, $7, 5, GROUP_BLACKTHORN_GYM_2F, MAP_BLACKTHORN_GYM_2F warp_def $6, $7, 5, GROUP_BLACKTHORN_GYM_2F, MAP_BLACKTHORN_GYM_2F
; xy triggers .XYTriggers:
db 0 db 0
; signposts .Signposts:
db 2 db 2
signpost 15, 3, SIGNPOST_READ, BlackthornGymStatue signpost 15, 3, SIGNPOST_READ, BlackthornGymStatue
signpost 15, 6, SIGNPOST_READ, BlackthornGymStatue signpost 15, 6, SIGNPOST_READ, BlackthornGymStatue
; people-events .PersonEvents:
db 5 db 5
person_event SPRITE_CLAIR, 7, 9, OW_UP | $2, $0, -1, -1, (PAL_OW_BLUE << 4) | $80, 0, ClairScript_0x194e24, -1 person_event SPRITE_CLAIR, 7, 9, OW_UP | $2, $0, -1, -1, (PAL_OW_BLUE << 4) | $80, 0, ClairScript_0x194e24, -1
person_event SPRITE_COOLTRAINER_M, 10, 10, OW_UP | $2, $0, -1, -1, (PAL_OW_RED << 4) | $82, 3, TrainerCooltrainermMike, -1 person_event SPRITE_COOLTRAINER_M, 10, 10, OW_UP | $2, $0, -1, -1, (PAL_OW_RED << 4) | $82, 3, TrainerCooltrainermMike, -1

View File

@@ -1,8 +1,8 @@
BlackthornGym2F_MapScriptHeader: BlackthornGym2F_MapScriptHeader:
; trigger count .MapTriggers:
db 0 db 0
; callback count .MapCallbacks:
db 1 db 1
; callbacks ; callbacks
@@ -129,7 +129,7 @@ BlackthornGym2F_MapEventHeader:
; filler ; filler
db 0, 0 db 0, 0
; warps .Warps:
db 5 db 5
warp_def $7, $1, 3, GROUP_BLACKTHORN_GYM_1F, MAP_BLACKTHORN_GYM_1F warp_def $7, $1, 3, GROUP_BLACKTHORN_GYM_1F, MAP_BLACKTHORN_GYM_1F
warp_def $9, $7, 4, GROUP_BLACKTHORN_GYM_1F, MAP_BLACKTHORN_GYM_1F warp_def $9, $7, 4, GROUP_BLACKTHORN_GYM_1F, MAP_BLACKTHORN_GYM_1F
@@ -137,13 +137,13 @@ BlackthornGym2F_MapEventHeader:
warp_def $7, $8, 6, GROUP_BLACKTHORN_GYM_1F, MAP_BLACKTHORN_GYM_1F warp_def $7, $8, 6, GROUP_BLACKTHORN_GYM_1F, MAP_BLACKTHORN_GYM_1F
warp_def $3, $8, 7, GROUP_BLACKTHORN_GYM_1F, MAP_BLACKTHORN_GYM_1F warp_def $3, $8, 7, GROUP_BLACKTHORN_GYM_1F, MAP_BLACKTHORN_GYM_1F
; xy triggers .XYTriggers:
db 0 db 0
; signposts .Signposts:
db 0 db 0
; people-events .PersonEvents:
db 8 db 8
person_event SPRITE_COOLTRAINER_M, 5, 8, OW_LEFT | $1, $0, -1, -1, (PAL_OW_RED << 4) | $82, 1, TrainerCooltrainermCody, -1 person_event SPRITE_COOLTRAINER_M, 5, 8, OW_LEFT | $1, $0, -1, -1, (PAL_OW_RED << 4) | $82, 1, TrainerCooltrainermCody, -1
person_event SPRITE_COOLTRAINER_F, 15, 8, OW_LEFT | $0, $0, -1, -1, (PAL_OW_RED << 4) | $82, 1, TrainerCooltrainerfFran, -1 person_event SPRITE_COOLTRAINER_F, 15, 8, OW_LEFT | $0, $0, -1, -1, (PAL_OW_RED << 4) | $82, 1, TrainerCooltrainerfFran, -1

Some files were not shown because too many files have changed in this diff Show More