mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Organize debug-only structures for test maps and levels (#16)
This commit is contained in:
parent
eb728d5151
commit
674e838460
@ -62,6 +62,9 @@
|
||||
const ENGINE_UNLOCKED_UNOWNS_UNUSED_7
|
||||
; wVisitedSpawns
|
||||
const ENGINE_FLYPOINT_LEVEL_1
|
||||
if DEF(_DEBUG)
|
||||
const ENGINE_FLYPOINT_DEBUGLEVEL_1
|
||||
endc
|
||||
const ENGINE_FLYPOINT_UNUSED
|
||||
; wLuckyNumberShowFlag
|
||||
const ENGINE_LUCKY_NUMBER_SHOW
|
||||
|
@ -1,10 +1,13 @@
|
||||
; Landmarks indexes (see data/maps/landmarks.asm)
|
||||
const_def
|
||||
const LANDMARK_LEVEL_1 ; 00
|
||||
const LANDMARK_LEVEL_2 ; 01
|
||||
const LANDMARK_LEVEL_3 ; 02
|
||||
const LANDMARK_LEVEL_4 ; 03
|
||||
const LANDMARK_LEVEL_5 ; 04
|
||||
if DEF(_DEBUG)
|
||||
const LANDMARK_DEBUGLEVEL_1 ; 00
|
||||
const LANDMARK_DEBUGLEVEL_2 ; 01
|
||||
const LANDMARK_DEBUGLEVEL_3 ; 02
|
||||
const LANDMARK_DEBUGLEVEL_4 ; 03
|
||||
const LANDMARK_DEBUGLEVEL_5 ; 04
|
||||
endc
|
||||
DEF NUM_LANDMARKS EQU const_value
|
||||
|
||||
; used in CaughtData
|
||||
|
@ -44,4 +44,10 @@ ENDM
|
||||
; map_const LEVEL_2_MAP_1, 4, 4 ; 1
|
||||
; endgroup
|
||||
|
||||
if DEF(_DEBUG)
|
||||
newgroup DEBUGLEVEL_1
|
||||
map_const DEBUGLEVEL_1_MAP_1, 5, 4 ; 1
|
||||
endgroup
|
||||
endc
|
||||
|
||||
DEF NUM_MAP_GROUPS EQU const_value
|
||||
|
@ -79,8 +79,10 @@ DEF NUM_FISHGROUPS EQU const_value - 1
|
||||
const_def
|
||||
const SPAWN_LEVEL_1
|
||||
; const SPAWN_LEVEL_2
|
||||
if DEF(_DEBUG)
|
||||
const SPAWN_DEBUGLEVEL_1
|
||||
endc
|
||||
DEF NUM_SPAWNS EQU const_value
|
||||
|
||||
DEF SPAWN_N_A EQU -1
|
||||
|
||||
; Flypoints indexes (see data/maps/flypoints.asm)
|
||||
|
@ -72,6 +72,9 @@ EngineFlags:
|
||||
|
||||
; fly
|
||||
engine_flag wVisitedSpawns, SPAWN_LEVEL_1
|
||||
if DEF(_DEBUG)
|
||||
engine_flag wVisitedSpawns, SPAWN_DEBUGLEVEL_1
|
||||
endc
|
||||
engine_flag wVisitedSpawns, NUM_SPAWNS ; unused
|
||||
|
||||
engine_flag wLuckyNumberShowFlag, LUCKYNUMBERSHOW_GAME_OVER_F
|
||||
|
@ -18,18 +18,24 @@ ENDM
|
||||
|
||||
LevelSelectionMenu_Landmarks:
|
||||
.landmark1
|
||||
level_selection_menu_landmark 0, 16, 11, .Level1LandmarkName, SPAWN_LEVEL_1 ; LANDMARK_LEVEL_1
|
||||
level_selection_menu_landmark 0, 16, 12, .Level1LandmarkName, SPAWN_LEVEL_1 ; LANDMARK_LEVEL_1
|
||||
.landmark2
|
||||
level_selection_menu_landmark 0, 11, 9, .Level2LandmarkName, SPAWN_LEVEL_1 ; LANDMARK_LEVEL_2
|
||||
level_selection_menu_landmark 0, 9, 11, .Level3LandmarkName, SPAWN_LEVEL_1 ; LANDMARK_LEVEL_3
|
||||
level_selection_menu_landmark 1, 16, 11, .Level4LandmarkName, SPAWN_LEVEL_1 ; LANDMARK_LEVEL_4
|
||||
level_selection_menu_landmark 2, 9, 5, .Level5LandmarkName, SPAWN_LEVEL_1 ; LANDMARK_LEVEL_5
|
||||
if DEF(_DEBUG)
|
||||
level_selection_menu_landmark 0, 16, 11, .DebugLevel1LandmarkName, SPAWN_DEBUGLEVEL_1 ; LANDMARK_DEBUGLEVEL_1
|
||||
level_selection_menu_landmark 0, 11, 9, .DebugLevel2LandmarkName, SPAWN_DEBUGLEVEL_1 ; LANDMARK_DEBUGLEVEL_2
|
||||
level_selection_menu_landmark 0, 9, 11, .DebugLevel3LandmarkName, SPAWN_DEBUGLEVEL_1 ; LANDMARK_DEBUGLEVEL_3
|
||||
level_selection_menu_landmark 1, 16, 11, .DebugLevel4LandmarkName, SPAWN_DEBUGLEVEL_1 ; LANDMARK_DEBUGLEVEL_4
|
||||
level_selection_menu_landmark 2, 9, 5, .DebugLevel5LandmarkName, SPAWN_DEBUGLEVEL_1 ; LANDMARK_DEBUGLEVEL_5
|
||||
endc
|
||||
|
||||
.Level1LandmarkName: db "LEVEL 1@"
|
||||
.Level2LandmarkName: db "LEVEL 2@"
|
||||
.Level3LandmarkName: db "LEVEL 3@"
|
||||
.Level4LandmarkName: db "LEVEL 4@"
|
||||
.Level5LandmarkName: db "LEVEL 5@"
|
||||
if DEF(_DEBUG)
|
||||
.DebugLevel1LandmarkName: db "DEBUG LEVEL 1@"
|
||||
.DebugLevel2LandmarkName: db "DEBUG LEVEL 2@"
|
||||
.DebugLevel3LandmarkName: db "DEBUG LEVEL 3@"
|
||||
.DebugLevel4LandmarkName: db "DEBUG LEVEL 4@"
|
||||
.DebugLevel5LandmarkName: db "DEBUG LEVEL 5@"
|
||||
endc
|
||||
|
||||
MACRO level_selection_menu_landmark_transition
|
||||
; any number of (direction, num_steps (in tiles)) pairs
|
||||
@ -52,33 +58,45 @@ LevelSelectionMenu_LandmarkTransitions:
|
||||
|
||||
; LANDMARK_LEVEL_1
|
||||
level_selection_menu_landmark_transition DOWN, FALSE
|
||||
if !DEF(_DEBUG)
|
||||
level_selection_menu_landmark_transition UP, FALSE
|
||||
level_selection_menu_landmark_transition LEFT, 5, UP, 2, LANDMARK_LEVEL_2
|
||||
level_selection_menu_landmark_transition RIGHT, FALSE
|
||||
|
||||
; LANDMARK_LEVEL_2
|
||||
level_selection_menu_landmark_transition DOWN, 2, RIGHT, 5, LANDMARK_LEVEL_1
|
||||
level_selection_menu_landmark_transition UP, 3, LEFT, 2, DOWN, 5, LANDMARK_LEVEL_3
|
||||
else
|
||||
level_selection_menu_landmark_transition UP, 1, LANDMARK_DEBUGLEVEL_1
|
||||
endc
|
||||
level_selection_menu_landmark_transition LEFT, FALSE
|
||||
level_selection_menu_landmark_transition RIGHT, FALSE
|
||||
|
||||
; LANDMARK_LEVEL_3
|
||||
level_selection_menu_landmark_transition DOWN, 7, DOWN, 1, LANDMARK_LEVEL_5
|
||||
level_selection_menu_landmark_transition UP, 5, RIGHT, 2, DOWN, 3, LANDMARK_LEVEL_2
|
||||
level_selection_menu_landmark_transition LEFT, 7, LEFT, 4, LANDMARK_LEVEL_4
|
||||
level_selection_menu_landmark_transition RIGHT, 7, LANDMARK_LEVEL_1
|
||||
if DEF(_DEBUG)
|
||||
; LANDMARK_DEBUGLEVEL_1
|
||||
level_selection_menu_landmark_transition DOWN, 1, LANDMARK_LEVEL_1
|
||||
level_selection_menu_landmark_transition UP, FALSE
|
||||
level_selection_menu_landmark_transition LEFT, 5, UP, 2, LANDMARK_DEBUGLEVEL_2
|
||||
level_selection_menu_landmark_transition RIGHT, FALSE
|
||||
|
||||
; LANDMARK_LEVEL_4
|
||||
; LANDMARK_DEBUGLEVEL_2
|
||||
level_selection_menu_landmark_transition DOWN, 2, RIGHT, 5, LANDMARK_DEBUGLEVEL_1
|
||||
level_selection_menu_landmark_transition UP, 3, LEFT, 2, DOWN, 5, LANDMARK_DEBUGLEVEL_3
|
||||
level_selection_menu_landmark_transition LEFT, FALSE
|
||||
level_selection_menu_landmark_transition RIGHT, FALSE
|
||||
|
||||
; LANDMARK_DEBUGLEVEL_3
|
||||
level_selection_menu_landmark_transition DOWN, 7, DOWN, 1, LANDMARK_DEBUGLEVEL_5
|
||||
level_selection_menu_landmark_transition UP, 5, RIGHT, 2, DOWN, 3, LANDMARK_DEBUGLEVEL_2
|
||||
level_selection_menu_landmark_transition LEFT, 7, LEFT, 4, LANDMARK_DEBUGLEVEL_4
|
||||
level_selection_menu_landmark_transition RIGHT, 7, LANDMARK_DEBUGLEVEL_1
|
||||
|
||||
; LANDMARK_DEBUGLEVEL_4
|
||||
level_selection_menu_landmark_transition DOWN, FALSE
|
||||
level_selection_menu_landmark_transition UP, FALSE
|
||||
level_selection_menu_landmark_transition LEFT, FALSE
|
||||
level_selection_menu_landmark_transition RIGHT, 7, RIGHT, 4, LANDMARK_LEVEL_3
|
||||
level_selection_menu_landmark_transition RIGHT, 7, RIGHT, 4, LANDMARK_DEBUGLEVEL_3
|
||||
|
||||
; LANDMARK_LEVEL_5
|
||||
; LANDMARK_DEBUGLEVEL_5
|
||||
level_selection_menu_landmark_transition DOWN, FALSE
|
||||
level_selection_menu_landmark_transition UP, 7, UP, 1, LANDMARK_LEVEL_3
|
||||
level_selection_menu_landmark_transition UP, 7, UP, 1, LANDMARK_DEBUGLEVEL_3
|
||||
level_selection_menu_landmark_transition LEFT, FALSE
|
||||
level_selection_menu_landmark_transition RIGHT, FALSE
|
||||
endc
|
||||
|
||||
assert const_value == NUM_LANDMARKS * NUM_DIRECTIONS
|
||||
|
||||
|
@ -103,3 +103,9 @@ ENDM
|
||||
; map_attributes NewBarkTown, NEW_BARK_TOWN, $05, WEST | EAST
|
||||
; connection west, Route29, ROUTE_29, 0
|
||||
; connection east, Route27, ROUTE_27, 0
|
||||
|
||||
if DEF(_DEBUG)
|
||||
map_attributes DebugLevel1_Map1, DEBUGLEVEL_1_MAP_1, $00, SOUTH | NORTH
|
||||
connection south, DebugLevel1_Map1, DEBUGLEVEL_1_MAP_1, 0
|
||||
connection north, DebugLevel1_Map1, DEBUGLEVEL_1_MAP_1, 0
|
||||
endc
|
||||
|
@ -2,3 +2,8 @@ SECTION "Map Blocks 1", ROMX
|
||||
|
||||
Level1_Map1_Blocks:
|
||||
INCBIN "maps/Level1_Map1.blk"
|
||||
|
||||
if DEF(_DEBUG)
|
||||
DebugLevel1_Map1_Blocks:
|
||||
INCBIN "maps/DebugLevel1_Map1.blk"
|
||||
endc
|
||||
|
@ -1,6 +1,8 @@
|
||||
Flypoints:
|
||||
; entries correspond to FLY_* constants
|
||||
; Johto
|
||||
; landmark, spawn point
|
||||
db LANDMARK_LEVEL_1, SPAWN_LEVEL_1
|
||||
if DEF(_DEBUG)
|
||||
db LANDMARK_DEBUGLEVEL_1, SPAWN_DEBUGLEVEL_1
|
||||
endc
|
||||
db -1 ; end
|
||||
|
@ -19,6 +19,9 @@ MapGroupPointers::
|
||||
table_width 2, MapGroupPointers
|
||||
dw MapGroup_Level1 ; 1
|
||||
; dw MapGroup_Level2 ; 2
|
||||
if DEF(_DEBUG)
|
||||
dw MapGroup_DebugLevel1 ; 1
|
||||
endc
|
||||
assert_table_length NUM_MAP_GROUPS
|
||||
|
||||
MapGroup_Level1:
|
||||
@ -31,3 +34,10 @@ MapGroup_Level1:
|
||||
; table_width MAP_LENGTH, MapGroup_Level2
|
||||
; map Level2_Map1 ...
|
||||
; assert_table_length NUM_LEVEL_2_MAPS
|
||||
|
||||
if DEF(_DEBUG)
|
||||
MapGroup_DebugLevel1:
|
||||
table_width MAP_LENGTH, MapGroup_DebugLevel1
|
||||
map DebugLevel1_Map1, TILESET_PLAYERS_ROOM, INDOOR_BUILDING, LANDMARK_DEBUGLEVEL_1, MUSIC_NEW_BARK_TOWN, FALSE, PALETTE_DAY, FISHGROUP_SHORE
|
||||
assert_table_length NUM_DEBUGLEVEL_1_MAPS
|
||||
endc
|
@ -6,10 +6,12 @@ OutdoorSprites:
|
||||
table_width 2, OutdoorSprites
|
||||
dw Level1GroupSprites
|
||||
; dw Level2GroupSprites
|
||||
if DEF(_DEBUG)
|
||||
dw DebugLevel1GroupSprites
|
||||
endc
|
||||
assert_table_length NUM_MAP_GROUPS
|
||||
|
||||
Level1GroupSprites:
|
||||
; Level2GroupSprites:
|
||||
db SPRITE_YOUNGSTER
|
||||
db SPRITE_BUG_CATCHER
|
||||
db SPRITE_FISHER
|
||||
@ -25,3 +27,25 @@ Level1GroupSprites:
|
||||
db SPRITE_ROCK
|
||||
; max 3 of 10 still sprites
|
||||
db 0 ; end
|
||||
|
||||
; Level2GroupSprites:
|
||||
; db 0 ; end
|
||||
|
||||
if DEF(_DEBUG)
|
||||
DebugLevel1GroupSprites:
|
||||
db SPRITE_YOUNGSTER
|
||||
db SPRITE_BUG_CATCHER
|
||||
db SPRITE_FISHER
|
||||
db SPRITE_COOLTRAINER_M
|
||||
db SPRITE_COOLTRAINER_F
|
||||
db SPRITE_SUPER_NERD
|
||||
db SPRITE_GRAMPS
|
||||
db SPRITE_TEACHER
|
||||
db SPRITE_LASS
|
||||
; max 9 of 9 walking sprites
|
||||
db SPRITE_POKE_BALL
|
||||
db SPRITE_FRUIT_TREE
|
||||
db SPRITE_ROCK
|
||||
; max 3 of 10 still sprites
|
||||
db 0 ; end
|
||||
endc
|
||||
|
@ -13,6 +13,9 @@ MapGroupRoofs:
|
||||
table_width 1, MapGroupRoofs
|
||||
db -1 ; 0
|
||||
db ROOF_OLIVINE ; 1 (Level1)
|
||||
if DEF(_DEBUG)
|
||||
db ROOF_OLIVINE ; 1 (DebugLevel1)
|
||||
endc
|
||||
assert_table_length NUM_MAP_GROUPS + 1
|
||||
|
||||
Roofs:
|
||||
|
@ -1,3 +1,7 @@
|
||||
SECTION "Map Scripts 1", ROMX
|
||||
|
||||
INCLUDE "maps/Level1_Map1.asm"
|
||||
|
||||
if DEF(_DEBUG)
|
||||
INCLUDE "maps/DebugLevel1_Map1.asm"
|
||||
endc
|
||||
|
@ -10,7 +10,9 @@ SpawnPoints:
|
||||
|
||||
spawn LEVEL_1_MAP_1, 3, 3 ; SPAWN_LEVEL_1
|
||||
; spawn LEVEL_2_MAP_1, 5, 3 ; SPAWN_LEVEL_2
|
||||
|
||||
if DEF(_DEBUG)
|
||||
spawn DEBUGLEVEL_1_MAP_1, 3, 3, ; SPAWN_DEBUGLEVEL_1
|
||||
endc
|
||||
spawn N_A, -1, -1
|
||||
|
||||
assert_table_length NUM_SPAWNS + 1
|
||||
|
@ -10,6 +10,14 @@
|
||||
RGB 09,09,17, 05,07,13 ; nite
|
||||
RGB 12,13,23, 06,08,11 ; eve
|
||||
|
||||
if DEF(_DEBUG)
|
||||
; debug group 1 (DebugLevel1)
|
||||
RGB 14,17,31, 07,11,15 ; morn
|
||||
RGB 14,17,31, 07,11,15 ; day
|
||||
RGB 09,09,17, 05,07,13 ; nite
|
||||
RGB 12,13,23, 06,08,11 ; eve
|
||||
endc
|
||||
|
||||
; group 2 (Mahogany)
|
||||
; RGB 12,19,00, 06,10,00 ; morn
|
||||
; RGB 12,19,00, 06,10,00 ; day
|
||||
|
113
maps/DebugLevel1_Map1.asm
Executable file
113
maps/DebugLevel1_Map1.asm
Executable file
@ -0,0 +1,113 @@
|
||||
object_const_def
|
||||
const DEBUGLEVEL1_MAP1_CONSOLE
|
||||
const DEBUGLEVEL1_MAP1_DOLL_1
|
||||
const DEBUGLEVEL1_MAP1_DOLL_2
|
||||
const DEBUGLEVEL1_MAP1_BIG_DOLL
|
||||
const DEBUGLEVEL1_MAP1_TRAINER
|
||||
|
||||
DebugLevel1_Map1_MapScripts:
|
||||
def_scene_scripts
|
||||
|
||||
def_callbacks
|
||||
|
||||
DebugLevel1_Map1_Doll1Script::
|
||||
opentext
|
||||
callasm .BoardMenu
|
||||
waitbutton
|
||||
pokemart MARTTYPE_STANDARD, MART_AZALEA
|
||||
closetext
|
||||
end
|
||||
.BoardMenu:
|
||||
farcall BoardMenu
|
||||
ret
|
||||
; describedecoration DECODESC_LEFT_DOLL
|
||||
|
||||
DebugLevel1_Map1_Doll2Script:
|
||||
jumpstd PokecenterNurseScript
|
||||
; describedecoration DECODESC_RIGHT_DOLL
|
||||
|
||||
DebugLevel1_Map1_BigDollScript:
|
||||
jumpstd PCScript
|
||||
; describedecoration DECODESC_BIG_DOLL
|
||||
|
||||
DebugLevel1_Map1_GameConsoleScript:
|
||||
randomwildmon
|
||||
startbattle
|
||||
reloadmapafterbattle
|
||||
end
|
||||
; describedecoration DECODESC_CONSOLE
|
||||
|
||||
DebugLevel1_Map1_PosterScript:
|
||||
describedecoration DECODESC_POSTER
|
||||
|
||||
DebugLevel1_Map1_RadioScript:
|
||||
jumpstd Radio1Script
|
||||
|
||||
DebugLevel1_Map1_BookshelfScript:
|
||||
jumpstd PictureBookshelfScript
|
||||
|
||||
DebugLevel1_Map1_PCScript:
|
||||
opentext
|
||||
special PlayersHousePC
|
||||
iftrue .Warp
|
||||
closetext
|
||||
end
|
||||
.Warp:
|
||||
warp NONE, 0, 0
|
||||
end
|
||||
|
||||
DebugLevel1_Map1_TrainerYoungsterMikey:
|
||||
trainer YOUNGSTER, MIKEY, EVENT_DECO_BED_1, .YoungsterMikeySeenText, .YoungsterMikeyBeatenText, 0, .Script
|
||||
|
||||
.Script:
|
||||
endifjustbattled
|
||||
opentext
|
||||
writetext .YoungsterMikeyAfterText
|
||||
waitbutton
|
||||
closetext
|
||||
end
|
||||
|
||||
|
||||
.YoungsterMikeySeenText:
|
||||
text "You're a #MON"
|
||||
line "trainer, right?"
|
||||
|
||||
para "Then you have to"
|
||||
line "battle!"
|
||||
done
|
||||
|
||||
.YoungsterMikeyBeatenText:
|
||||
text "That's strange."
|
||||
line "I won before."
|
||||
done
|
||||
|
||||
.YoungsterMikeyAfterText:
|
||||
text "Becoming a good"
|
||||
line "trainer is really"
|
||||
cont "tough."
|
||||
|
||||
para "I'm going to bat-"
|
||||
line "tle other people"
|
||||
cont "to get better."
|
||||
done
|
||||
|
||||
DebugLevel1_Map1_MapEvents:
|
||||
db 0, 0 ; filler
|
||||
|
||||
def_warp_events
|
||||
warp_event 7, 0, LEVEL_1_MAP_1, 1
|
||||
|
||||
def_coord_events
|
||||
|
||||
def_bg_events
|
||||
bg_event 2, 1, BGEVENT_UP, DebugLevel1_Map1_PCScript
|
||||
bg_event 3, 1, BGEVENT_READ, DebugLevel1_Map1_RadioScript
|
||||
bg_event 5, 1, BGEVENT_READ, DebugLevel1_Map1_BookshelfScript
|
||||
bg_event 6, 0, BGEVENT_IFSET, DebugLevel1_Map1_PosterScript
|
||||
|
||||
def_object_events
|
||||
object_event 4, 2, SPRITE_CONSOLE, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, DebugLevel1_Map1_GameConsoleScript, -1
|
||||
object_event 4, 4, SPRITE_DOLL_1, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, DebugLevel1_Map1_Doll1Script, -1
|
||||
object_event 5, 4, SPRITE_DOLL_2, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, DebugLevel1_Map1_Doll2Script, -1
|
||||
object_event 0, 1, SPRITE_BIG_DOLL, SPRITEMOVEDATA_BIGDOLL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, DebugLevel1_Map1_BigDollScript, -1
|
||||
object_event 6, 6, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 1, DebugLevel1_Map1_TrainerYoungsterMikey, -1
|
1
maps/DebugLevel1_Map1.blk
Executable file
1
maps/DebugLevel1_Map1.blk
Executable file
@ -0,0 +1 @@
|
||||
|
@ -1,16 +1,16 @@
|
||||
object_const_def
|
||||
const PLAYERSHOUSE2F_CONSOLE
|
||||
const PLAYERSHOUSE2F_DOLL_1
|
||||
const PLAYERSHOUSE2F_DOLL_2
|
||||
const PLAYERSHOUSE2F_BIG_DOLL
|
||||
const PLAYERSHOUSE2F_TRAINER
|
||||
const LEVEL1_MAP1_CONSOLE
|
||||
const LEVEL1_MAP1_DOLL_1
|
||||
const LEVEL1_MAP1_DOLL_2
|
||||
const LEVEL1_MAP1_BIG_DOLL
|
||||
const LEVEL1_MAP1_TRAINER
|
||||
|
||||
Level1_Map1_MapScripts:
|
||||
def_scene_scripts
|
||||
|
||||
def_callbacks
|
||||
|
||||
PlayersHouseDoll1Script::
|
||||
Level1_Map1_Doll1Script::
|
||||
opentext
|
||||
callasm .BoardMenu
|
||||
waitbutton
|
||||
@ -22,38 +22,31 @@ PlayersHouseDoll1Script::
|
||||
ret
|
||||
; describedecoration DECODESC_LEFT_DOLL
|
||||
|
||||
PlayersHouseDoll2Script:
|
||||
Level1_Map1_Doll2Script:
|
||||
jumpstd PokecenterNurseScript
|
||||
; describedecoration DECODESC_RIGHT_DOLL
|
||||
|
||||
PlayersHouseBigDollScript:
|
||||
Level1_Map1_BigDollScript:
|
||||
jumpstd PCScript
|
||||
; describedecoration DECODESC_BIG_DOLL
|
||||
|
||||
PlayersHouseGameConsoleScript:
|
||||
Level1_Map1_GameConsoleScript:
|
||||
randomwildmon
|
||||
startbattle
|
||||
reloadmapafterbattle
|
||||
end
|
||||
; describedecoration DECODESC_CONSOLE
|
||||
|
||||
PlayersHousePosterScript:
|
||||
Level1_Map1_PosterScript:
|
||||
describedecoration DECODESC_POSTER
|
||||
|
||||
PlayersHouseRadioScript:
|
||||
Level1_Map1_RadioScript:
|
||||
jumpstd Radio1Script
|
||||
|
||||
.AbbreviatedRadio:
|
||||
opentext
|
||||
writetext PlayersRadioText4
|
||||
pause 45
|
||||
closetext
|
||||
end
|
||||
|
||||
PlayersHouseBookshelfScript:
|
||||
Level1_Map1_BookshelfScript:
|
||||
jumpstd PictureBookshelfScript
|
||||
|
||||
PlayersHousePCScript:
|
||||
Level1_Map1_PCScript:
|
||||
opentext
|
||||
special PlayersHousePC
|
||||
iftrue .Warp
|
||||
@ -63,39 +56,19 @@ PlayersHousePCScript:
|
||||
warp NONE, 0, 0
|
||||
end
|
||||
|
||||
PlayersRadioText1:
|
||||
text "PROF.OAK'S #MON"
|
||||
line "TALK! Please tune"
|
||||
cont "in next time!"
|
||||
done
|
||||
|
||||
PlayersRadioText2:
|
||||
text "#MON CHANNEL!"
|
||||
done
|
||||
|
||||
PlayersRadioText3:
|
||||
text "This is DJ MARY,"
|
||||
line "your co-host!"
|
||||
done
|
||||
|
||||
PlayersRadioText4:
|
||||
text "#MON!"
|
||||
line "#MON CHANNEL…"
|
||||
done
|
||||
|
||||
TrainerYoungsterMikey:
|
||||
trainer YOUNGSTER, MIKEY, EVENT_DECO_BED_1, YoungsterMikeySeenText, YoungsterMikeyBeatenText, 0, .Script
|
||||
Level1_Map1_TrainerYoungsterMikey:
|
||||
trainer YOUNGSTER, MIKEY, EVENT_DECO_BED_1, .YoungsterMikeySeenText, .YoungsterMikeyBeatenText, 0, .Script
|
||||
|
||||
.Script:
|
||||
endifjustbattled
|
||||
opentext
|
||||
writetext YoungsterMikeyAfterText
|
||||
writetext .YoungsterMikeyAfterText
|
||||
waitbutton
|
||||
closetext
|
||||
end
|
||||
|
||||
|
||||
YoungsterMikeySeenText:
|
||||
.YoungsterMikeySeenText:
|
||||
text "You're a #MON"
|
||||
line "trainer, right?"
|
||||
|
||||
@ -103,12 +76,12 @@ YoungsterMikeySeenText:
|
||||
line "battle!"
|
||||
done
|
||||
|
||||
YoungsterMikeyBeatenText:
|
||||
.YoungsterMikeyBeatenText:
|
||||
text "That's strange."
|
||||
line "I won before."
|
||||
done
|
||||
|
||||
YoungsterMikeyAfterText:
|
||||
.YoungsterMikeyAfterText:
|
||||
text "Becoming a good"
|
||||
line "trainer is really"
|
||||
cont "tough."
|
||||
@ -127,14 +100,14 @@ Level1_Map1_MapEvents:
|
||||
def_coord_events
|
||||
|
||||
def_bg_events
|
||||
bg_event 2, 1, BGEVENT_UP, PlayersHousePCScript
|
||||
bg_event 3, 1, BGEVENT_READ, PlayersHouseRadioScript
|
||||
bg_event 5, 1, BGEVENT_READ, PlayersHouseBookshelfScript
|
||||
bg_event 6, 0, BGEVENT_IFSET, PlayersHousePosterScript
|
||||
bg_event 2, 1, BGEVENT_UP, Level1_Map1_PCScript
|
||||
bg_event 3, 1, BGEVENT_READ, Level1_Map1_RadioScript
|
||||
bg_event 5, 1, BGEVENT_READ, Level1_Map1_BookshelfScript
|
||||
bg_event 6, 0, BGEVENT_IFSET, Level1_Map1_PosterScript
|
||||
|
||||
def_object_events
|
||||
object_event 4, 2, SPRITE_CONSOLE, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, PlayersHouseGameConsoleScript, -1
|
||||
object_event 4, 4, SPRITE_DOLL_1, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, PlayersHouseDoll1Script, -1
|
||||
object_event 5, 4, SPRITE_DOLL_2, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, PlayersHouseDoll2Script, -1
|
||||
object_event 0, 1, SPRITE_BIG_DOLL, SPRITEMOVEDATA_BIGDOLL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, PlayersHouseBigDollScript, -1
|
||||
object_event 6, 6, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 1, TrainerYoungsterMikey, -1
|
||||
object_event 4, 2, SPRITE_CONSOLE, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Level1_Map1_GameConsoleScript, -1
|
||||
object_event 4, 4, SPRITE_DOLL_1, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Level1_Map1_Doll1Script, -1
|
||||
object_event 5, 4, SPRITE_DOLL_2, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Level1_Map1_Doll2Script, -1
|
||||
object_event 0, 1, SPRITE_BIG_DOLL, SPRITEMOVEDATA_BIGDOLL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Level1_Map1_BigDollScript, -1
|
||||
object_event 6, 6, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 1, Level1_Map1_TrainerYoungsterMikey, -1
|
||||
|
@ -1 +0,0 @@
|
||||
|
Loading…
Reference in New Issue
Block a user