Remove Special_ prefix from special routines (close #478)

This commit is contained in:
Rangi 2018-01-24 11:17:05 -05:00
parent 132fe46925
commit d719d318e8
163 changed files with 758 additions and 758 deletions

View File

@ -86,7 +86,7 @@
charmap "▲", $61 ; gfx/font/up_arrow.png
charmap "☎", $62 ; gfx/font/phone_icon.2bpp
; needed for Special_MagikarpHouseSign (see engine/events/magikarp.asm)
; needed for MagikarpHouseSign (see engine/events/magikarp.asm)
charmap "", $6e ; gfx/font/feet_inches.png
charmap "″", $6f ; gfx/font/feet_inches.png

View File

@ -217,7 +217,7 @@ NUM_FRUIT_TREES EQU const_value +- 1
const SWARM_YANMA ; 1
; Special_ActivateFishingSwarm writebyte arguments
; ActivateFishingSwarm writebyte arguments
const_def
const FISHSWARM_NONE ; 0
const FISHSWARM_QWILFISH ; 1
@ -229,7 +229,7 @@ NUM_FRUIT_TREES EQU const_value +- 1
const GBCHECK_SGB ; 1
const GBCHECK_CGB ; 2
; Special_CheckMagikarpLength return values
; CheckMagikarpLength return values
const_def
const MAGIKARPLENGTH_NOT_MAGIKARP ; 0
const MAGIKARPLENGTH_REFUSED ; 1
@ -257,7 +257,7 @@ NUM_FRUIT_TREES EQU const_value +- 1
const HEALMACHINE_ELMS_LAB ; 1
const HEALMACHINE_HALL_OF_FAME ; 2
; Special_UnownPuzzle writebyte arguments
; UnownPuzzle writebyte arguments
; LoadUnownPuzzlePiecesGFX.LZPointers indexes (see engine/unown_puzzle.asm)
const_def
const UNOWNPUZZLE_KABUTO ; 0
@ -266,7 +266,7 @@ NUM_FRUIT_TREES EQU const_value +- 1
const UNOWNPUZZLE_HO_OH ; 3
NUM_UNOWN_PUZZLES EQU const_value
; Special_DisplayUnownWords writebyte arguments
; DisplayUnownWords writebyte arguments
; UnownWalls and MenuHeaders_UnownWalls indexes (see data/unown_walls.asm)
const_def
const UNOWNWORDS_ESCAPE ; 0
@ -274,7 +274,7 @@ NUM_UNOWN_PUZZLES EQU const_value
const UNOWNWORDS_WATER ; 2
const UNOWNWORDS_HO_OH ; 3
; Special_MoveTutor writebyte arguments
; MoveTutor writebyte arguments
const_value set 1
const MOVETUTOR_FLAMETHROWER ; 1
const MOVETUTOR_THUNDERBOLT ; 2

View File

@ -7,179 +7,179 @@ add_special: MACRO
ENDM
SpecialsPointers:: ; c029
add_special Special_WarpToSpawnPoint
add_special WarpToSpawnPoint
; Communications
add_special Special_SetBitsForLinkTradeRequest
add_special Special_WaitForLinkedFriend
add_special Special_CheckLinkTimeout
add_special Special_TryQuickSave
add_special Special_CheckBothSelectedSameRoom
add_special Special_FailedLinkToPast
add_special Special_CloseLink
add_special Special_WaitForOtherPlayerToExit
add_special Special_SetBitsForBattleRequest
add_special Special_SetBitsForTimeCapsuleRequest
add_special Special_CheckTimeCapsuleCompatibility
add_special Special_EnterTimeCapsule
add_special Special_TradeCenter
add_special Special_Colosseum
add_special Special_TimeCapsule
add_special Special_CableClubCheckWhichChris
add_special Special_CheckMysteryGift
add_special Special_GetMysteryGiftItem
add_special Special_UnlockMysteryGift
add_special SetBitsForLinkTradeRequest
add_special WaitForLinkedFriend
add_special CheckLinkTimeout
add_special TryQuickSave
add_special CheckBothSelectedSameRoom
add_special FailedLinkToPast
add_special CloseLink
add_special WaitForOtherPlayerToExit
add_special SetBitsForBattleRequest
add_special SetBitsForTimeCapsuleRequest
add_special CheckTimeCapsuleCompatibility
add_special EnterTimeCapsule
add_special TradeCenter
add_special Colosseum
add_special TimeCapsule
add_special CableClubCheckWhichChris
add_special CheckMysteryGift
add_special GetMysteryGiftItem
add_special UnlockMysteryGift
; Map Events
add_special Special_BugContestJudging
add_special Special_CheckPartyFullAfterContest
add_special Special_ContestDropOffMons
add_special Special_ContestReturnMons
add_special Special_GiveParkBalls
add_special Special_CheckMagikarpLength
add_special Special_MagikarpHouseSign
add_special BugContestJudging
add_special CheckPartyFullAfterContest
add_special ContestDropOffMons
add_special ContestReturnMons
add_special GiveParkBalls
add_special CheckMagikarpLength
add_special MagikarpHouseSign
add_special HealParty ; this is both a special and a predef
add_special Special_PokemonCenterPC
add_special Special_PlayersHousePC
add_special Special_DayCareMan
add_special Special_DayCareLady
add_special Special_DayCareManOutside
add_special Special_MoveDeletion
add_special Special_BankOfMom
add_special Special_MagnetTrain
add_special Special_NameRival
add_special Special_SetDayOfWeek
add_special Special_OverworldTownMap
add_special Special_UnownPrinter
add_special Special_MapRadio
add_special Special_UnownPuzzle
add_special Special_SlotMachine
add_special Special_CardFlip
add_special Special_DummyNonfunctionalGameCornerGame
add_special Special_ClearBGPalettesBufferScreen
add_special Special_FadeOutPalettes
add_special Special_BattleTowerFade
add_special Special_FadeBlackQuickly
add_special Special_FadeInPalettes
add_special Special_FadeInQuickly
add_special PokemonCenterPC
add_special PlayersHousePC
add_special DayCareMan
add_special DayCareLady
add_special DayCareManOutside
add_special MoveDeletion
add_special BankOfMom
add_special MagnetTrain
add_special NameRival
add_special SetDayOfWeek
add_special OverworldTownMap
add_special UnownPrinter
add_special MapRadio
add_special UnownPuzzle
add_special SlotMachine
add_special CardFlip
add_special DummyNonfunctionalGameCornerGame
add_special ClearBGPalettesBufferScreen
add_special FadeOutPalettes
add_special BattleTowerFade
add_special FadeBlackQuickly
add_special FadeInPalettes
add_special FadeInQuickly
add_special ReloadSpritesNoPalettes ; bank 0
add_special ClearBGPalettes ; bank 0
add_special UpdateTimePals ; bank 0
add_special ClearTileMap ; bank 0
add_special UpdateSprites ; bank 0
add_special ReplaceKrisSprite ; bank 0
add_special Special_GameCornerPrizeMonCheckDex
add_special GameCornerPrizeMonCheckDex
add_special UnusedSpecial_SeenMon
add_special WaitSFX ; bank 0
add_special PlayMapMusic ; bank 0
add_special RestartMapMusic ; bank 0
add_special Special_HealMachineAnim
add_special Special_SurfStartStep
add_special Special_FindPartyMonGreaterThanThatLevel
add_special Special_FindPartyMonAtLeastThatHappy
add_special Special_FindPartyMonThatSpecies
add_special Special_FindPartyMonThatSpeciesYourTrainerID
add_special HealMachineAnim
add_special SurfStartStep
add_special FindPartyMonGreaterThanThatLevel
add_special FindPartyMonAtLeastThatHappy
add_special FindPartyMonThatSpecies
add_special FindPartyMonThatSpeciesYourTrainerID
add_special UnusedSpecial_CheckUnusedTwoDayTimer
add_special Special_DayCareMon1
add_special Special_DayCareMon2
add_special Special_SelectRandomBugContestContestants
add_special Special_ActivateFishingSwarm
add_special Special_ToggleMaptileDecorations
add_special Special_ToggleDecorationsVisibility
add_special Special_GiveShuckle
add_special Special_ReturnShuckle
add_special Special_BillsGrandfather
add_special Special_CheckPokerus
add_special Special_DisplayCoinCaseBalance
add_special Special_DisplayMoneyAndCoinBalance
add_special Special_PlaceMoneyTopRight
add_special Special_CheckForLuckyNumberWinners
add_special Special_CheckLuckyNumberShowFlag
add_special Special_ResetLuckyNumberShowFlag
add_special Special_PrintTodaysLuckyNumber
add_special Special_SelectApricornForKurt
add_special Special_NameRater
add_special Special_DisplayLinkRecord
add_special Special_GetFirstPokemonHappiness
add_special Special_CheckFirstMonIsEgg
add_special Special_RandomUnseenWildMon
add_special Special_RandomPhoneWildMon
add_special Special_RandomPhoneMon
add_special Special_LoadUsedSpritesGFX
add_special Special_PlaySlowCry
add_special Special_SnorlaxAwake
add_special Special_YoungerHaircutBrother
add_special Special_OlderHaircutBrother
add_special Special_DaisysGrooming
add_special Special_PlayCurMonCry
add_special Special_ProfOaksPCBoot
add_special Special_GameboyCheck
add_special Special_TrainerHouse
add_special Special_PhotoStudio
add_special Special_InitRoamMons
add_special Special_FadeOutMusic
add_special Special_Diploma
add_special Special_PrintDiploma
add_special DayCareMon1
add_special DayCareMon2
add_special SelectRandomBugContestContestants
add_special ActivateFishingSwarm
add_special ToggleMaptileDecorations
add_special ToggleDecorationsVisibility
add_special GiveShuckle
add_special ReturnShuckle
add_special BillsGrandfather
add_special CheckPokerus
add_special DisplayCoinCaseBalance
add_special DisplayMoneyAndCoinBalance
add_special PlaceMoneyTopRight
add_special CheckForLuckyNumberWinners
add_special CheckLuckyNumberShowFlag
add_special ResetLuckyNumberShowFlag
add_special PrintTodaysLuckyNumber
add_special SelectApricornForKurt
add_special NameRater
add_special DisplayLinkRecord
add_special GetFirstPokemonHappiness
add_special CheckFirstMonIsEgg
add_special RandomUnseenWildMon
add_special RandomPhoneWildMon
add_special RandomPhoneMon
add_special LoadUsedSpritesGFX
add_special PlaySlowCry
add_special SnorlaxAwake
add_special YoungerHaircutBrother
add_special OlderHaircutBrother
add_special DaisysGrooming
add_special PlayCurMonCry
add_special ProfOaksPCBoot
add_special GameboyCheck
add_special TrainerHouse
add_special PhotoStudio
add_special InitRoamMons
add_special FadeOutMusic
add_special Diploma
add_special PrintDiploma
; Crystal
add_special Special_Function11ac3e
add_special Special_Function11b444
add_special Special_Function11b5e8
add_special Special_Function11b7e5
add_special Special_Function11b879
add_special Special_Function11b920
add_special Special_Function11b93b
add_special Special_BattleTowerRoomMenu
add_special Special_Function1700ba
add_special Special_Function170114
add_special Special_BattleTowerBattle
add_special Function11ac3e
add_special Function11b444
add_special Function11b5e8
add_special Function11b7e5
add_special Function11b879
add_special Function11b920
add_special Function11b93b
add_special BattleTowerRoomMenu
add_special Function1700ba
add_special Function170114
add_special BattleTowerBattle
add_special UnusedSpecial_Function1704e1
add_special DummySpecial_17021d
add_special Special_LoadOpponentTrainerAndPokemonWithOTSprite
add_special Special_Function11ba38
add_special Special_CheckForBattleTowerRules
add_special Special_GiveOddEgg
add_special LoadOpponentTrainerAndPokemonWithOTSprite
add_special Function11ba38
add_special CheckForBattleTowerRules
add_special GiveOddEgg
add_special Reset ; bank 0
add_special Special_Function1011f1
add_special Special_Function101220
add_special Special_Function101225
add_special Special_Function101231
add_special Special_MoveTutor
add_special Special_OmanyteChamber
add_special Special_Function11c1ab
add_special Special_BattleTowerAction
add_special Special_DisplayUnownWords
add_special Special_Menu_ChallengeExplanationCancel
add_special Special_Function17d2b6
add_special Special_Function17d2ce
add_special Special_BattleTowerMobileError
add_special Special_AskMobileOrCable
add_special Special_HoOhChamber
add_special Special_Function102142
add_special Special_CelebiShrineEvent
add_special Special_CheckCaughtCelebi
add_special Special_PokeSeer
add_special Special_BuenasPassword
add_special Special_BuenaPrize
add_special Special_Dratini
add_special Special_SampleKenjiBreakCountdown
add_special Special_BeastsCheck
add_special Special_MonCheck
add_special Special_SetPlayerPalette
add_special Function1011f1
add_special Function101220
add_special Function101225
add_special Function101231
add_special MoveTutor
add_special OmanyteChamber
add_special Function11c1ab
add_special BattleTowerAction
add_special DisplayUnownWords
add_special Menu_ChallengeExplanationCancel
add_special Function17d2b6
add_special Function17d2ce
add_special BattleTowerMobileError
add_special AskMobileOrCable
add_special HoOhChamber
add_special Function102142
add_special CelebiShrineEvent
add_special CheckCaughtCelebi
add_special PokeSeer
add_special BuenasPassword
add_special BuenaPrize
add_special Dratini
add_special SampleKenjiBreakCountdown
add_special BeastsCheck
add_special MonCheck
add_special SetPlayerPalette
add_special DummySpecial_170bd2
add_special Special_Mobile_SelectThreeMons
add_special Special_Function1037eb
add_special Special_Function10383c
add_special Special_StubbedTrainerRankings_Healings
add_special Special_RefreshSprites
add_special Special_Function1037c2
add_special Special_Mobile_DummyReturnFalse
add_special Special_Function103780
add_special Special_Function10387b
add_special Special_AskRememberPassword
add_special Special_LoadMapPalettes
add_special Mobile_SelectThreeMons
add_special Function1037eb
add_special Function10383c
add_special StubbedTrainerRankings_Healings
add_special RefreshSprites
add_special Function1037c2
add_special Mobile_DummyReturnFalse
add_special Function103780
add_special Function10387b
add_special AskRememberPassword
add_special LoadMapPalettes
add_special UnusedSpecial_FindItemInPCOrBag
add_special Special_InitialSetDSTFlag
add_special Special_InitialClearDSTFlag
add_special InitialSetDSTFlag
add_special InitialClearDSTFlag
add_special DummySpecial_c224
; c224

View File

@ -51,7 +51,7 @@ These are known bugs and glitches in the original Pokémon Crystal game: code th
- [`LoadSpriteGFX` does not limit the capacity of `UsedSprites`](#loadspritegfx-does-not-limit-the-capacity-of-usedsprites)
- [`ChooseWildEncounter` doesn't really validate the wild Pokémon species](#choosewildencounter-doesnt-really-validate-the-wild-pokémon-species)
- [`TryObjectEvent` arbitrary code execution](#tryobjectevent-arbitrary-code-execution)
- [`Special_CheckBugContestContestantFlag` can read beyond its data table](#special_checkbugcontestcontestantflag-can-read-beyond-its-data-table)
- [`CheckBugContestContestantFlag` can read beyond its data table](#checkbugcontestcontestantflag-can-read-beyond-its-data-table)
- [`ClearWRAM` only clears WRAM bank 1](#clearwram-only-clears-wram-bank-1)
@ -1417,12 +1417,12 @@ In [engine/events.asm](/engine/events.asm):
**Fix:** Uncomment `pop bc`.
## `Special_CheckBugContestContestantFlag` can read beyond its data table
## `CheckBugContestContestantFlag` can read beyond its data table
In [engine/events/bug_contest/contest_2.asm](/engine/events/bug_contest/contest_2.asm):
```asm
Special_CheckBugContestContestantFlag: ; 139ed
CheckBugContestContestantFlag: ; 139ed
; Checks the flag of the Bug Catching Contestant whose index is loaded in a.
; Bug: If a >= 10 when this is called, it will read beyond the table.

View File

@ -887,7 +887,7 @@ Hatch_ShellFragmentLoop: ; 17418 (5:7418)
jr nz, .loop
ret
Special_DayCareMon1: ; 17421
DayCareMon1: ; 17421
ld hl, DayCareMon1Text
call PrintText
ld a, [wBreedMon1Species]
@ -900,7 +900,7 @@ Special_DayCareMon1: ; 17421
call DayCareMonCompatibilityText
jp PrintText
Special_DayCareMon2: ; 17440
DayCareMon2: ; 17440
ld hl, DayCareMon2Text
call PrintText
ld a, [wBreedMon2Species]

View File

@ -1,4 +1,4 @@
Special_CheckPartyFullAfterContest: ; 4d9e5
CheckPartyFullAfterContest: ; 4d9e5
ld a, [wContestMon]
and a
jp z, .DidntCatchAnything

View File

@ -1102,7 +1102,7 @@ DecorationDesc_TownMapPoster: ; 0x26f91
opentext
writetext .TownMapText
waitbutton
special Special_OverworldTownMap
special OverworldTownMap
closetext
end
; 0x26f9b
@ -1194,7 +1194,7 @@ DecorationDesc_GiantOrnament: ; 26fdd
db "@"
; 0x26feb
Special_ToggleMaptileDecorations: ; 26feb
ToggleMaptileDecorations: ; 26feb
lb de, 0, 4
ld a, [Bed]
call SetDecorationTile
@ -1248,7 +1248,7 @@ SetDecorationTile: ; 27037
ret
; 27043
Special_ToggleDecorationsVisibility: ; 27043
ToggleDecorationsVisibility: ; 27043
ld de, EVENT_PLAYERS_HOUSE_2F_CONSOLE
ld hl, VariableSprites + SPRITE_CONSOLE - SPRITE_VARS
ld a, [Console]

View File

@ -1,11 +1,11 @@
Special_BattleTowerRoomMenu: ; 1700b0
BattleTowerRoomMenu: ; 1700b0
; special
call InitBattleTowerChallengeRAM
farcall _BattleTowerRoomMenu
ret
; 1700ba
Special_Function1700ba: ; 1700ba
Function1700ba: ; 1700ba
call InitBattleTowerChallengeRAM
farcall Function11811a
ret
@ -53,7 +53,7 @@ Function1700c4: ; 1700c4
ret
; 170114
Special_Function170114: ; 170114
Function170114: ; 170114
call InitBattleTowerChallengeRAM
call .Function170121
farcall Function11805f
@ -182,7 +182,7 @@ Function170139: ; 170139
ret
; 170215
Special_BattleTowerBattle: ; 170215
BattleTowerBattle: ; 170215
xor a
ld [wBattleTowerBattleEnded], a
call _BattleTowerBattle
@ -243,7 +243,7 @@ RunBattleTowerTrainer: ; 17024d
xor a
ld [wLinkMode], a
farcall Special_StubbedTrainerRankings_Healings
farcall StubbedTrainerRankings_Healings
farcall HealParty
call ReadBTTrainerParty
call Clears5_a89a
@ -900,7 +900,7 @@ UnusedSpecial_Function1704e1: ; 1704e1
db "れきだいりーダーいちらん@"
; 170687
Special_BattleTowerAction: ; 170687
BattleTowerAction: ; 170687
ld a, [ScriptVar]
ld e, a
ld d, 0
@ -1603,7 +1603,7 @@ BattleTowerAction_UbersCheck: ; 170b16 (5c:4b16) BattleTowerAction $19
ld [ScriptVar], a
ret
Special_LoadOpponentTrainerAndPokemonWithOTSprite: ; 0x170b44
LoadOpponentTrainerAndPokemonWithOTSprite: ; 0x170b44
farcall Function_LoadOpponentTrainerAndPokemons
ld a, [rSVBK]
push af
@ -1654,7 +1654,7 @@ DummySpecial_170bd2: ; 170bd2
ret
; 170bd3
Special_CheckForBattleTowerRules: ; 170bd3
CheckForBattleTowerRules: ; 170bd3
farcall _CheckForBattleTowerRules
jr c, .asm_170bde
xor a ; FALSE

View File

@ -1,4 +1,4 @@
Special_BuenasPassword: ; 8af6b
BuenasPassword: ; 8af6b
xor a
ld [wWhichIndexSet], a
ld hl, .MenuHeader
@ -67,7 +67,7 @@ endr
ret
; 8afd4
Special_BuenaPrize: ; 8afd4
BuenaPrize: ; 8afd4
xor a
ld [wMenuScrollPosition], a
ld a, $1

View File

@ -1,4 +1,4 @@
Special_AskRememberPassword: ; 4ae12
AskRememberPassword: ; 4ae12
call .DoMenu
ld a, $0
jr c, .okay

View File

@ -1,4 +1,4 @@
Special_GiveParkBalls: ; 135db
GiveParkBalls: ; 135db
xor a
ld [wContestMon], a
ld a, 20

View File

@ -1,4 +1,4 @@
Special_SelectRandomBugContestContestants: ; 139a8
SelectRandomBugContestContestants: ; 139a8
; Select five random people to participate in the current contest.
; First we have to make sure that any old data is cleared away.
@ -56,7 +56,7 @@ Special_SelectRandomBugContestContestants: ; 139a8
ret
; 139ed
Special_CheckBugContestContestantFlag: ; 139ed
CheckBugContestContestantFlag: ; 139ed
; Checks the flag of the Bug Catching Contestant whose index is loaded in a.
; Bug: If a >= NUM_BUG_CONTESTANTS when this is called, it will read beyond the table.
@ -76,7 +76,7 @@ Special_CheckBugContestContestantFlag: ; 139ed
INCLUDE "data/bug_contest_flags.asm"
Special_ContestDropOffMons: ; 13a12
ContestDropOffMons: ; 13a12
ld hl, PartyMon1HP
ld a, [hli]
or [hl]
@ -101,7 +101,7 @@ Special_ContestDropOffMons: ; 13a12
ret
; 13a31
Special_ContestReturnMons: ; 13a31
ContestReturnMons: ; 13a31
; Restore the species of the second mon.
ld hl, PartySpecies + 1
ld a, [wBugContestSecondPartySpecies]

View File

@ -244,7 +244,7 @@ ComputeAIContestantScores: ; 138b0
ld e, 0
.loop
push de
call Special_CheckBugContestContestantFlag
call CheckBugContestContestantFlag
pop de
jr nz, .done
ld a, e

View File

@ -1,6 +1,6 @@
SPECIALCELEBIEVENT_CELEBI EQU $84
Special_CelebiShrineEvent: ; 4989a
CelebiShrineEvent: ; 4989a
call DelayFrame
ld a, [VramState]
push af
@ -362,7 +362,7 @@ CelebiEvent_SetBattleType: ; 49bf3
; 49bf9
Special_CheckCaughtCelebi: ; 49bf9
CheckCaughtCelebi: ; 49bf9
ld a, [wBattleResult]
bit 6, a
jr z, .false

View File

@ -21,7 +21,7 @@
const DAYCARETEXT_OH_FINE
const DAYCARETEXT_COME_AGAIN
Special_DayCareMan: ; 166d6
DayCareMan: ; 166d6
ld hl, wDayCareMan
bit DAYCAREMAN_HAS_MON_F, [hl]
jr nz, .AskWithdrawMon
@ -60,7 +60,7 @@ Special_DayCareMan: ; 166d6
ret
; 1672a
Special_DayCareLady: ; 1672a
DayCareLady: ; 1672a
ld hl, wDayCareLady
bit DAYCARELADY_HAS_MON_F, [hl]
jr nz, .AskWithdrawMon
@ -427,7 +427,7 @@ PrintDayCareText: ; 1689b
db "@"
; 0x16936
Special_DayCareManOutside: ; 16936
DayCareManOutside: ; 16936
ld hl, wDayCareMan
bit DAYCAREMAN_HAS_EGG_F, [hl]
jr nz, .AskGiveEgg

View File

@ -1,4 +1,4 @@
Special_Dratini: ; 0x8b170
Dratini: ; 0x8b170
; if ScriptVar is 0 or 1, change the moveset of the last Dratini in the party.
; 0: give it a special moveset with Extremespeed.
; 1: give it the normal moveset of a level 15 Dratini.

View File

@ -7,7 +7,7 @@ PlayWhirlpoolSound: ; 8c7d4
; 8c7e1
BlindingFlash: ; 8c7e1
farcall Special_FadeOutPalettes
farcall FadeOutPalettes
ld hl, wStatusFlags
set STATUSFLAGS_FLASH_F, [hl]
farcall ReplaceTimeOfDayPals
@ -15,7 +15,7 @@ BlindingFlash: ; 8c7e1
ld b, SCGB_MAPPALS
call GetSGBLayout
farcall LoadOW_BGPal7
farcall Special_FadeInPalettes
farcall FadeInPalettes
ret
; 8c80a

View File

@ -42,7 +42,7 @@ RedCredits:: ; 86455
ld [MusicFadeID + 1], a
ld a, 10
ld [MusicFade], a
farcall Special_FadeOutPalettes
farcall FadeOutPalettes
xor a
ld [VramState], a
ld [hMapAnims], a
@ -65,7 +65,7 @@ HallOfFame_FadeOutMusic: ; 8648e
ld [MusicFadeID + 1], a
ld a, 10
ld [MusicFade], a
farcall Special_FadeOutPalettes
farcall FadeOutPalettes
xor a
ld [VramState], a
ld [hMapAnims], a

View File

@ -1,4 +1,4 @@
Special_GetFirstPokemonHappiness: ; 718d
GetFirstPokemonHappiness: ; 718d
ld hl, PartyMon1Happiness
ld bc, PARTYMON_STRUCT_LENGTH
ld de, PartySpecies
@ -17,7 +17,7 @@ Special_GetFirstPokemonHappiness: ; 718d
call GetPokemonName
jp CopyPokemonName_Buffer1_Buffer3
Special_CheckFirstMonIsEgg: ; 71ac
CheckFirstMonIsEgg: ; 71ac
ld a, [PartySpecies]
ld [wd265], a
cp EGG

View File

@ -1,4 +1,4 @@
; Special_HealMachineAnim.Jumptable indexes
; HealMachineAnim.Jumptable indexes
const_def
const HEALMACHINESTATE_LOADGFX
const HEALMACHINESTATE_PCLOADBALLS
@ -7,7 +7,7 @@
const HEALMACHINESTATE_HOFPLAYSFX
const HEALMACHINESTATE_FINISH
Special_HealMachineAnim: ; 12324
HealMachineAnim: ; 12324
; If you have no Pokemon, don't change the buffer. This can lead to some glitchy effects if you have no Pokemon.
ld a, [PartyCount]
and a

View File

@ -22,7 +22,7 @@ Kurt_PrintTextHowMany: ; 8800c
db "@"
; 0x88018
Special_SelectApricornForKurt: ; 88018
SelectApricornForKurt: ; 88018
call LoadStandardMenuHeader
ld c, $1
xor a

View File

@ -1,4 +1,4 @@
Special_CheckForLuckyNumberWinners: ; 4d87a
CheckForLuckyNumberWinners: ; 4d87a
xor a
ld [ScriptVar], a
ld [wFoundMatchingIDInParty], a
@ -216,7 +216,7 @@ Special_CheckForLuckyNumberWinners: ; 4d87a
text_jump UnknownText_0x1c12ae
db "@"
Special_PrintTodaysLuckyNumber: ; 4d9d3
PrintTodaysLuckyNumber: ; 4d9d3
ld hl, StringBuffer3
ld de, wLuckyIDNumber
lb bc, PRINTNUM_LEADINGZEROS | 2, 5

View File

@ -1,4 +1,4 @@
Special_CheckMagikarpLength: ; fbb32
CheckMagikarpLength: ; fbb32
; Returns 3 if you select a Magikarp that beats the previous record.
; Returns 2 if you select a Magikarp, but the current record is longer.
; Returns 1 if you press B in the Pokemon selection menu.
@ -331,7 +331,7 @@ CalcMagikarpLength: ; fbbfc
Special_MagikarpHouseSign: ; fbcd2
MagikarpHouseSign: ; fbcd2
ld a, [wBestMagikarpLengthFeet]
ld [wMagikarpLength], a
ld a, [wBestMagikarpLengthInches]

View File

@ -1,4 +1,4 @@
Special_MagnetTrain: ; 8cc04
MagnetTrain: ; 8cc04
ld a, [ScriptVar]
and a
jr nz, .ToGoldenrod

View File

@ -2,7 +2,7 @@ Script_AbortBugContest: ; 0x122c1
checkflag ENGINE_BUG_CONTEST_TIMER
iffalse .finish
setflag ENGINE_DAILY_BUG_CONTEST
special Special_ContestReturnMons
special ContestReturnMons
.finish
end

View File

@ -1,4 +1,4 @@
Special_BankOfMom: ; 16218
BankOfMom: ; 16218
ld a, [hInMenu]
push af
ld a, $1

View File

@ -1,4 +1,4 @@
Special_MoveDeletion:
MoveDeletion:
ld hl, .IntroText
call PrintText
call YesNoBox

View File

@ -1,4 +1,4 @@
Special_MoveTutor: ; 4925b
MoveTutor: ; 4925b
call FadeToMenu
call ClearBGPalettes
call ClearScreen

View File

@ -422,7 +422,7 @@ UsedSurfScript: ; c986
special ReplaceKrisSprite
special PlayMapMusic
; step into the water
special Special_SurfStartStep ; (slow_step_x, step_end)
special SurfStartStep ; (slow_step_x, step_end)
applymovement PLAYER, MovementBuffer ; PLAYER, MovementBuffer
end
@ -623,7 +623,7 @@ FlyFunction: ; ca3b
special UpdateTimePals
callasm FlyFromAnim
farscall Script_AbortBugContest
special Special_WarpToSpawnPoint
special WarpToSpawnPoint
callasm DelayLoadingNewSprites
writecode VAR_MOVEMENT, PLAYER_NORMAL
newloadmap MAPSETUP_FLY
@ -871,7 +871,7 @@ dig_incave
playsound SFX_WARP_TO
applymovement PLAYER, .DigOut
farscall Script_AbortBugContest
special Special_WarpToSpawnPoint
special WarpToSpawnPoint
writecode VAR_MOVEMENT, PLAYER_NORMAL
newloadmap MAPSETUP_DOOR
playsound SFX_WARP_FROM
@ -958,7 +958,7 @@ TeleportFunction: ; cc61
playsound SFX_WARP_TO
applymovement PLAYER, .TeleportFrom
farscall Script_AbortBugContest
special Special_WarpToSpawnPoint
special WarpToSpawnPoint
writecode VAR_MOVEMENT, PLAYER_NORMAL
newloadmap MAPSETUP_TELEPORT
playsound SFX_WARP_FROM

View File

@ -15,7 +15,7 @@
const SEERACTION_CANT_TELL_2
const SEERACTION_LEVEL_ONLY
Special_PokeSeer: ; 4f0bc
PokeSeer: ; 4f0bc
ld a, SEER_INTRO
call PrintSeerText
call JoyWaitAorB

View File

@ -1,4 +1,4 @@
Special_PokemonCenterPC: ; 1559a
PokemonCenterPC: ; 1559a
call PC_CheckPartyForPokemon
ret c
call PC_PlayBootSound

View File

@ -1,4 +1,4 @@
Special_PhotoStudio: ; 16dc7
PhotoStudio: ; 16dc7
ld hl, .Text_AskWhichMon
call PrintText
farcall SelectMonFromParty

View File

@ -3,7 +3,7 @@ ProfOaksPC: ; 0x265d3
call MenuTextBox
call YesNoBox
jr c, .shutdown
call Special_ProfOaksPCBoot ; player chose "yes"?
call ProfOaksPCBoot ; player chose "yes"?
.shutdown
ld hl, OakPCText4
call PrintText
@ -11,7 +11,7 @@ ProfOaksPC: ; 0x265d3
call ExitMenu
ret
Special_ProfOaksPCBoot ; 0x265ee
ProfOaksPCBoot ; 0x265ee
ld hl, OakPCText2
call PrintText
call Rate

View File

@ -52,12 +52,12 @@ SacredAshScript: ; 0x50821
special HealParty
reloadmappart
playsound SFX_WARP_TO
special Special_FadeOutPalettes
special Special_FadeInPalettes
special Special_FadeOutPalettes
special Special_FadeInPalettes
special Special_FadeOutPalettes
special Special_FadeInPalettes
special FadeOutPalettes
special FadeInPalettes
special FadeOutPalettes
special FadeInPalettes
special FadeOutPalettes
special FadeInPalettes
waitsfx
writetext UnknownText_0x50845
playsound SFX_CAUGHT_MON

View File

@ -1,6 +1,6 @@
MANIA_OT_ID EQU 00518
Special_GiveShuckle: ; 7305
GiveShuckle: ; 7305
; Adding to the party.
xor a
@ -71,7 +71,7 @@ SpecialShuckleOT:
SpecialShuckleNick:
db "SHUCKIE@"
Special_ReturnShuckle: ; 737e
ReturnShuckle: ; 737e
farcall SelectMonFromParty
jr c, .refused
@ -141,7 +141,7 @@ Special_ReturnShuckle: ; 737e
ld [ScriptVar], a
ret
Special_BillsGrandfather: ; 73f7
BillsGrandfather: ; 73f7
farcall SelectMonFromParty
jr c, .cancel
ld a, [CurPartySpecies]
@ -155,15 +155,15 @@ Special_BillsGrandfather: ; 73f7
ld [ScriptVar], a
ret
Special_YoungerHaircutBrother: ; 7413
YoungerHaircutBrother: ; 7413
ld hl, Data_YoungerHaircutBrother
jr HaircutOrGrooming
Special_OlderHaircutBrother: ; 7418
OlderHaircutBrother: ; 7418
ld hl, Data_OlderHaircutBrother
jr HaircutOrGrooming
Special_DaisysGrooming: ; 741d
DaisysGrooming: ; 741d
ld hl, Data_DaisysGrooming
; fallthrough

View File

@ -108,13 +108,13 @@ PokecenterNurseScript:
farwritetext NurseTakePokemonText
pause 20
special Special_StubbedTrainerRankings_Healings
special StubbedTrainerRankings_Healings
spriteface LAST_TALKED, LEFT
pause 10
special HealParty
playmusic MUSIC_NONE
writebyte HEALMACHINE_POKECENTER
special Special_HealMachineAnim
special HealMachineAnim
pause 30
special RestartMapMusic
spriteface LAST_TALKED, DOWN
@ -124,7 +124,7 @@ PokecenterNurseScript:
iftrue .no
checkflag ENGINE_CAUGHT_POKERUS
iftrue .no
special Special_CheckPokerus
special CheckPokerus
iftrue .pokerus
.no
@ -184,7 +184,7 @@ TownMapScript:
opentext
farwritetext TownMapText
waitbutton
special Special_OverworldTownMap
special OverworldTownMap
closetext
end
@ -204,7 +204,7 @@ HomepageScript:
Radio1Script:
opentext
writebyte MAPRADIO_POKEMON_CHANNEL
special Special_MapRadio
special MapRadio
closetext
end
@ -212,7 +212,7 @@ Radio2Script:
; Lucky Channel
opentext
writebyte MAPRADIO_LUCKY_CHANNEL
special Special_MapRadio
special MapRadio
closetext
end
@ -221,7 +221,7 @@ TrashCanScript: ; 0xbc1a5
PCScript:
opentext
special Special_PokemonCenterPC
special PokemonCenterPC
closetext
end
@ -320,7 +320,7 @@ BugContestResultsScript:
opentext
farwritetext ContestResults_ReadyToJudgeText
waitbutton
special Special_BugContestJudging
special BugContestJudging
vartomem MEM_BUFFER_0
if_equal 1, BugContestResults_FirstPlace
if_equal 2, BugContestResults_SecondPlace
@ -346,9 +346,9 @@ BugContestResults_FinishUp
iffalse BugContestResults_DidNotLeaveMons
farwritetext ContestResults_ReturnPartyText
waitbutton
special Special_ContestReturnMons
special ContestReturnMons
BugContestResults_DidNotLeaveMons
special Special_CheckPartyFullAfterContest
special CheckPartyFullAfterContest
if_equal BUGCONTEST_CAUGHT_MON, BugContestResults_CleanUp
if_equal BUGCONTEST_NO_CATCH, BugContestResults_CleanUp
; BUGCONTEST_BOXED_MON
@ -622,7 +622,7 @@ InitializeEventsScript:
return
AskNumber1MScript:
special Special_RandomPhoneMon
special RandomPhoneMon
checkcode VAR_CALLERID
if_equal PHONE_SCHOOLBOY_JACK, .Jack
if_equal PHONE_SAILOR_HUEY, .Huey
@ -707,7 +707,7 @@ AskNumber1MScript:
end
AskNumber2MScript:
special Special_RandomPhoneMon
special RandomPhoneMon
checkcode VAR_CALLERID
if_equal PHONE_SCHOOLBOY_JACK, .Jack
if_equal PHONE_SAILOR_HUEY, .Huey
@ -1810,7 +1810,7 @@ CoinVendor_IntroScript: ; 0xbcde0
farwritetext CoinVendor_IntroText
.loop ; 0xbcde4
special Special_DisplayMoneyAndCoinBalance
special DisplayMoneyAndCoinBalance
loadmenuheader .MenuHeader
verticalmenu
closewindow
@ -1887,7 +1887,7 @@ CoinVendor_IntroScript: ; 0xbcde0
HappinessCheckScript:
faceplayer
opentext
special Special_GetFirstPokemonHappiness
special GetFirstPokemonHappiness
if_less_than 50, .Unhappy
if_less_than 150, .KindaHappy
farwritetext HappinessText3

View File

@ -1,4 +1,4 @@
Special_HoOhChamber: ; 0x8addb
HoOhChamber: ; 0x8addb
ld hl, PartySpecies
ld a, [hl]
cp HO_OH ; is Ho-oh the first Pokémon in the party?
@ -11,7 +11,7 @@ Special_HoOhChamber: ; 0x8addb
ret
; 0x8adef
Special_OmanyteChamber: ; 8adef
OmanyteChamber: ; 8adef
call GetMapDataPointer ; pointless?
ld de, EVENT_WALL_OPENED_IN_OMANYTE_CHAMBER
ld b, CHECK_FLAG
@ -103,7 +103,7 @@ SpecialKabutoChamber: ; 8ae4e
ret
; 8ae68
Special_DisplayUnownWords: ; 8ae68
DisplayUnownWords: ; 8ae68
ld a, [ScriptVar]
ld hl, MenuHeaders_UnownWalls
and a

View File

@ -10,7 +10,7 @@ Script_OverworldWhiteout:: ; 0x124c8
Script_Whiteout: ; 0x124ce
writetext .WhitedOutText
waitbutton
special Special_FadeOutPalettes
special FadeOutPalettes
pause 40
special HealParty
checkflag ENGINE_BUG_CONTEST_TIMER
@ -18,7 +18,7 @@ Script_Whiteout: ; 0x124ce
callasm HalveMoney
callasm GetWhiteoutSpawn
farscall Script_AbortBugContest
special Special_WarpToSpawnPoint
special WarpToSpawnPoint
newloadmap MAPSETUP_WARP
end_all

View File

@ -1,7 +1,7 @@
; More overworld event handling.
Special_WarpToSpawnPoint:: ; 97c28
WarpToSpawnPoint:: ; 97c28
ld hl, wStatusFlags2
res STATUSFLAGS2_SAFARI_GAME_F, [hl]
res STATUSFLAGS2_BUG_CONTEST_TIMER_F, [hl]

View File

@ -2031,7 +2031,7 @@ Unreferenced_Function28f09: ; 28f09
INCLUDE "engine/trade_animation.asm"
Special_CheckTimeCapsuleCompatibility: ; 29bfb
CheckTimeCapsuleCompatibility: ; 29bfb
; Checks to see if your Party is compatible with the generation 1 games. Returns the following in ScriptVar:
; 0: Party is okay
; 1: At least one Pokemon was introduced in GS
@ -2126,7 +2126,7 @@ Function29c67: ; 29c67
ret
; 29c7b
Special_EnterTimeCapsule: ; 29c7b
EnterTimeCapsule: ; 29c7b
ld c, 10
call DelayFrames
ld a, $4
@ -2140,7 +2140,7 @@ Special_EnterTimeCapsule: ; 29c7b
ret
; 29c92
Special_WaitForOtherPlayerToExit: ; 29c92
WaitForOtherPlayerToExit: ; 29c92
ld c, 3
call DelayFrames
ld a, CONNECTION_NOT_ESTABLISHED
@ -2188,21 +2188,21 @@ Special_WaitForOtherPlayerToExit: ; 29c92
ret
; 29ce8
Special_SetBitsForLinkTradeRequest: ; 29ce8
SetBitsForLinkTradeRequest: ; 29ce8
ld a, LINK_TRADECENTER - 1
ld [wPlayerLinkAction], a
ld [wd265], a
ret
; 29cf1
Special_SetBitsForBattleRequest: ; 29cf1
SetBitsForBattleRequest: ; 29cf1
ld a, LINK_COLOSSEUM - 1
ld [wPlayerLinkAction], a
ld [wd265], a
ret
; 29cfa
Special_SetBitsForTimeCapsuleRequest: ; 29cfa
SetBitsForTimeCapsuleRequest: ; 29cfa
ld a, $2
ld [rSB], a
xor a
@ -2217,7 +2217,7 @@ Special_SetBitsForTimeCapsuleRequest: ; 29cfa
ret
; 29d11
Special_WaitForLinkedFriend: ; 29d11
WaitForLinkedFriend: ; 29d11
ld a, [wPlayerLinkAction]
and a
jr z, .no_link_action
@ -2289,7 +2289,7 @@ Special_WaitForLinkedFriend: ; 29d11
ret
; 29d92
Special_CheckLinkTimeout: ; 29d92
CheckLinkTimeout: ; 29d92
ld a, $1
ld [wPlayerLinkAction], a
ld hl, wLinkTimeoutFrames
@ -2427,7 +2427,7 @@ Link_CheckCommunicationError: ; 29e0c
ret
; 29e66
Special_TryQuickSave: ; 29e66
TryQuickSave: ; 29e66
ld a, [wd265]
push af
farcall Link_SaveGame
@ -2443,7 +2443,7 @@ Special_TryQuickSave: ; 29e66
ret
; 29e82
Special_CheckBothSelectedSameRoom: ; 29e82
CheckBothSelectedSameRoom: ; 29e82
ld a, [wd265]
call Link_EnsureSync
push af
@ -2470,7 +2470,7 @@ Special_CheckBothSelectedSameRoom: ; 29e82
ret
; 29eaf
Special_TimeCapsule: ; 29eaf
TimeCapsule: ; 29eaf
ld a, LINK_TIMECAPSULE
ld [wLinkMode], a
call DisableSpriteUpdates
@ -2481,7 +2481,7 @@ Special_TimeCapsule: ; 29eaf
ret
; 29ec4
Special_TradeCenter: ; 29ec4
TradeCenter: ; 29ec4
ld a, LINK_TRADECENTER
ld [wLinkMode], a
call DisableSpriteUpdates
@ -2492,7 +2492,7 @@ Special_TradeCenter: ; 29ec4
ret
; 29ed9
Special_Colosseum: ; 29ed9
Colosseum: ; 29ed9
ld a, LINK_COLOSSEUM
ld [wLinkMode], a
call DisableSpriteUpdates
@ -2503,7 +2503,7 @@ Special_Colosseum: ; 29ed9
ret
; 29eee
Special_CloseLink: ; 29eee
CloseLink: ; 29eee
xor a
ld [wLinkMode], a
ld c, 3
@ -2511,7 +2511,7 @@ Special_CloseLink: ; 29eee
jp Link_ResetSerialRegistersAfterLinkClosure
; 29efa
Special_FailedLinkToPast: ; 29efa
FailedLinkToPast: ; 29efa
ld c, 40
call DelayFrames
ld a, $e
@ -2560,7 +2560,7 @@ Link_EnsureSync: ; 29f17
ret
; 29f47
Special_CableClubCheckWhichChris: ; 29f47
CableClubCheckWhichChris: ; 29f47
ld a, [hSerialConnectionStatus]
cp USING_EXTERNAL_CLOCK
ld a, TRUE

View File

@ -79,7 +79,7 @@ MapSetupCommands: ; 15440
dba LoadGraphics ; 0e
dba LoadTileset ; 0f
dba LoadMapTimeOfDay ; 10
dba Special_LoadMapPalettes ; 11
dba LoadMapPalettes ; 11
dba LoadWildMonData ; 12
dba RefreshMapSprites ; 13
dba HandleNewMap ; 14
@ -91,8 +91,8 @@ MapSetupCommands: ; 15440
dba LoadMapAttributes ; 1a
dba LoadMapAttributes_SkipPeople ; 1b
dba ClearBGPalettes ; 1c
dba Special_FadeOutPalettes ; 1d
dba Special_FadeInPalettes ; 1e
dba FadeOutPalettes ; 1d
dba FadeInPalettes ; 1e
dba GetCoordOfUpperLeftCorner ; 1f
dba RestoreFacingAfterWarp ; 20
dba SpawnInFacingDown ; 21

View File

@ -443,7 +443,7 @@ GetMartDialogGroup: ; 15ca3
BuyMenuLoop: ; 15cef
farcall Special_PlaceMoneyTopRight
farcall PlaceMoneyTopRight
call UpdateSprites
ld hl, MenuHeader_Buy
call CopyMenuHeader

View File

@ -27,7 +27,7 @@ PlaceMenuItemQuantity: ; 0x24ac3
.done
ret
Special_PlaceMoneyTopRight: ; 24ae8
PlaceMoneyTopRight: ; 24ae8
ld hl, MenuHeader_0x24b15
call CopyMenuHeader
jr PlaceMoneyTextBox
@ -64,7 +64,7 @@ MenuHeader_0x24b1d: ; 0x24b1d
dw NULL
db 1 ; default option
Special_DisplayCoinCaseBalance: ; 24b25
DisplayCoinCaseBalance: ; 24b25
; Place a text box of size 1x7 at 11, 0.
hlcoord 11, 0
ld b, 1
@ -82,7 +82,7 @@ Special_DisplayCoinCaseBalance: ; 24b25
call PrintNum
ret
Special_DisplayMoneyAndCoinBalance: ; 24b4e
DisplayMoneyAndCoinBalance: ; 24b4e
hlcoord 5, 0
ld b, 3
ld c, 13

View File

@ -1157,7 +1157,7 @@ MysteryGift_CopyReceivedDecosToPC: ; 105091 (41:5091)
jr c, .loop
jp CloseSRAM
Special_UnlockMysteryGift: ; 1050b9
UnlockMysteryGift: ; 1050b9
call GetMysteryGiftBank
ld hl, sMysteryGiftUnlocked
ld a, [hl]

View File

@ -23,7 +23,7 @@ Function14146: ; mobile
push af
res 7, [hl]
set 6, [hl]
call Special_LoadUsedSpritesGFX
call LoadUsedSpritesGFX
pop af
ld [wSpriteFlags], a
ret
@ -35,15 +35,15 @@ Function14157: ; mobile
push af
set 7, [hl]
res 6, [hl]
call Special_LoadUsedSpritesGFX
call LoadUsedSpritesGFX
pop af
ld [wSpriteFlags], a
ret
; 14168
Special_RefreshSprites:: ; 14168
RefreshSprites:: ; 14168
call .Refresh
call Special_LoadUsedSpritesGFX
call LoadUsedSpritesGFX
ret
; 1416f
@ -164,7 +164,7 @@ AddOutdoorSprites: ; 141ee
; 14209
Special_LoadUsedSpritesGFX: ; 14209
LoadUsedSpritesGFX: ; 14209
ld a, MAPCALLBACK_SPRITES
call RunMapCallback
call GetUsedSprites

View File

@ -1240,7 +1240,7 @@ PhoneScript_Generic_Female:
end
PhoneScript_MonFlavorText:
special Special_RandomPhoneMon
special RandomPhoneMon
farscall PhoneScript_Random2
if_equal $0, .TooEnergetic
farwritetext UnknownText_0x1b518b

View File

@ -1,5 +1,5 @@
Phone_GenericCall_Male:
special Special_RandomPhoneMon
special RandomPhoneMon
farscall PhoneScript_Random2
if_equal 0, .Bragging
farscall PhoneScript_Generic_Male
@ -9,7 +9,7 @@ Phone_GenericCall_Male:
farjump Phone_BraggingCall_Male
Phone_GenericCall_Female:
special Special_RandomPhoneMon
special RandomPhoneMon
farscall PhoneScript_Random2
if_equal 0, .Bragging
farscall PhoneScript_Generic_Female
@ -27,7 +27,7 @@ Phone_BraggingCall_Female:
farjump Phone_FoundAMon_Female
Phone_FoundAMon_Male:
special Special_RandomPhoneWildMon
special RandomPhoneWildMon
farscall PhoneScript_Random2
if_equal 0, .GotAway
farscall Phone_WhoDefeatedMon_Male
@ -37,7 +37,7 @@ Phone_FoundAMon_Male:
farjump Phone_GotAwayCall_Male
Phone_FoundAMon_Female:
special Special_RandomPhoneWildMon
special RandomPhoneWildMon
farscall PhoneScript_Random2
if_equal 0, .GotAway
farscall Phone_WhoDefeatedMon_Female
@ -851,7 +851,7 @@ Phone_CheckIfUnseenRare_Female:
farjump PhoneScript_HangupText_Female
PhoneScriptRareWildMon:
special Special_RandomUnseenWildMon
special RandomUnseenWildMon
end
PhoneScript_BugCatchingContest:

View File

@ -392,7 +392,7 @@ HueyPhoneScript1:
iftrue HueyWednesdayNight
.NotWednesday:
special Special_RandomPhoneMon
special RandomPhoneMon
farjump UnknownScript_0xa0908
.WantsBattle:
@ -629,7 +629,7 @@ JoeyPhoneScript1:
iftrue JoeyMondayAfternoon
.NotMonday:
special Special_RandomPhoneMon
special RandomPhoneMon
farjump UnknownScript_0xa0930
.WantsBattle:
@ -830,7 +830,7 @@ Ralph_SetUpSwarm:
pokenamemem QWILFISH, MEM_BUFFER_1
landmarktotext ROUTE_32, MEM_BUFFER_2
writebyte FISHSWARM_QWILFISH
special Special_ActivateFishingSwarm
special ActivateFishingSwarm
farjump UnknownScript_0xa05d6
.Generic:
@ -851,7 +851,7 @@ LizPhoneScript1:
iftrue LizThursdayAfternoon
.NotThursday:
special Special_RandomPhoneMon
special RandomPhoneMon
farjump UnknownScript_0xa0948
.WantsBattle:

View File

@ -577,7 +577,7 @@ TrainerWalkToPlayer: ; 831e
call ComputePathToWalkToPlayer
ret
Special_SurfStartStep: ; 8379
SurfStartStep: ; 8379
call InitMovementBuffer
call .GetMovementData
call AppendToMovementBuffer

View File

@ -972,9 +972,9 @@ BenFernText3B:
LuckyNumberShow1:
call StartRadioStation
callfar Special_CheckLuckyNumberShowFlag
callfar CheckLuckyNumberShowFlag
jr nc, .dontreset
callfar Special_ResetLuckyNumberShowFlag
callfar ResetLuckyNumberShowFlag
.dontreset
ld hl, LC_Text1
ld a, LUCKY_NUMBER_SHOW_2

View File

@ -1,4 +1,4 @@
Special_PlaySlowCry: ; fb841
PlaySlowCry: ; fb841
ld a, [ScriptVar]
call LoadCry
jr c, .done

View File

@ -1,4 +1,4 @@
Special_BeastsCheck: ; 0x4a6e8
BeastsCheck: ; 0x4a6e8
; Check if the player owns all three legendary beasts.
; They must exist in either party or PC, and have the player's OT and ID.
; Return the result in ScriptVar.
@ -29,7 +29,7 @@ Special_BeastsCheck: ; 0x4a6e8
ret
Special_MonCheck: ; 0x4a711
MonCheck: ; 0x4a711
; Check if the player owns any monsters of the species in ScriptVar.
; Return the result in ScriptVar.

View File

@ -20,14 +20,14 @@ DummySpecial_c224: ; c224
ret
; c225
Special_SetPlayerPalette: ; c225
SetPlayerPalette: ; c225
ld a, [ScriptVar]
ld d, a
farcall _SetPlayerPalette
ret
; c230
Special_GameCornerPrizeMonCheckDex: ; c230
GameCornerPrizeMonCheckDex: ; c230
ld a, [ScriptVar]
dec a
call CheckCaughtMon
@ -50,28 +50,28 @@ UnusedSpecial_SeenMon: ; c252
ret
; c25a
Special_FindPartyMonGreaterThanThatLevel: ; c25a
FindPartyMonGreaterThanThatLevel: ; c25a
ld a, [ScriptVar]
ld b, a
farcall _FindPartyMonGreaterThanThatLevel
jr z, FoundNone
jr FoundOne
Special_FindPartyMonAtLeastThatHappy: ; c268
FindPartyMonAtLeastThatHappy: ; c268
ld a, [ScriptVar]
ld b, a
farcall _FindPartyMonAtLeastThatHappy
jr z, FoundNone
jr FoundOne
Special_FindPartyMonThatSpecies: ; c276
FindPartyMonThatSpecies: ; c276
ld a, [ScriptVar]
ld b, a
farcall _FindPartyMonThatSpecies
jr z, FoundNone
jr FoundOne
Special_FindPartyMonThatSpeciesYourTrainerID: ; c284
FindPartyMonThatSpeciesYourTrainerID: ; c284
ld a, [ScriptVar]
ld b, a
farcall _FindPartyMonThatSpeciesYourTrainerID
@ -89,7 +89,7 @@ FoundNone: ; c298
ret
; c29d
Special_NameRival: ; 0xc29d
NameRival: ; 0xc29d
ld b, $2 ; rival
ld de, RivalName
farcall _NamingScreen
@ -103,33 +103,33 @@ Special_NameRival: ; 0xc29d
DefaultRivalName: ; 0xc2b2
db "SILVER@"
Special_NameRater: ; c2b9
NameRater: ; c2b9
farcall _NameRater
ret
; c2c0
Special_OverworldTownMap: ; c2c0
OverworldTownMap: ; c2c0
call FadeToMenu
farcall _TownMap
call ExitAllMenus
ret
; c2cd
Special_UnownPrinter: ; c2cd
UnownPrinter: ; c2cd
call FadeToMenu
farcall _UnownPrinter
call ExitAllMenus
ret
; c2da
Special_DisplayLinkRecord: ; c2da
DisplayLinkRecord: ; c2da
call FadeToMenu
farcall _DisplayLinkRecord
call ExitAllMenus
ret
; c2e7
Special_PlayersHousePC: ; c2e7
PlayersHousePC: ; c2e7
xor a
ld [ScriptVar], a
farcall _PlayersHousePC
@ -138,7 +138,7 @@ Special_PlayersHousePC: ; c2e7
ret
; c2f6
Special_CheckMysteryGift: ; c2f6
CheckMysteryGift: ; c2f6
ld a, BANK(sMysteryGiftItem)
call GetSRAMBank
ld a, [sMysteryGiftItem]
@ -152,7 +152,7 @@ Special_CheckMysteryGift: ; c2f6
ret
; c309
Special_GetMysteryGiftItem: ; c309
GetMysteryGiftItem: ; c309
ld a, BANK(sMysteryGiftItem)
call GetSRAMBank
ld a, [sMysteryGiftItem]
@ -187,21 +187,21 @@ Special_GetMysteryGiftItem: ; c309
db "@"
; 0xc34a
Special_BugContestJudging: ; c34a
BugContestJudging: ; c34a
farcall _BugContestJudging
ld a, b
ld [ScriptVar], a
ret
; c355
Special_MapRadio: ; c355
MapRadio: ; c355
ld a, [ScriptVar]
ld e, a
farcall PlayRadio
ret
; c360
Special_UnownPuzzle: ; c360
UnownPuzzle: ; c360
call FadeToMenu
farcall _UnownPuzzle
ld a, [wSolvedUnownPuzzle]
@ -210,34 +210,34 @@ Special_UnownPuzzle: ; c360
ret
; c373
Special_SlotMachine: ; c373
call Special_CheckCoins
SlotMachine: ; c373
call CheckCoinsAndCoinCase
ret c
ld a, BANK(_SlotMachine)
ld hl, _SlotMachine
call Special_StartGameCornerGame
call StartGameCornerGame
ret
; c380
Special_CardFlip: ; c380
call Special_CheckCoins
CardFlip: ; c380
call CheckCoinsAndCoinCase
ret c
ld a, BANK(_CardFlip)
ld hl, _CardFlip
call Special_StartGameCornerGame
call StartGameCornerGame
ret
; c38d
Special_DummyNonfunctionalGameCornerGame: ; c38d
call Special_CheckCoins
DummyNonfunctionalGameCornerGame: ; c38d
call CheckCoinsAndCoinCase
ret c
ld a, BANK(_DummyGame)
ld hl, _DummyGame
call Special_StartGameCornerGame
call StartGameCornerGame
ret
; c39a
Special_StartGameCornerGame: ; c39a
StartGameCornerGame: ; c39a
call FarQueueScript
call FadeToMenu
ld hl, wQueuedScriptBank
@ -252,7 +252,7 @@ Special_StartGameCornerGame: ; c39a
ret
; c3ae
Special_CheckCoins: ; c3ae
CheckCoinsAndCoinCase: ; c3ae
ld hl, Coins
ld a, [hli]
or [hl]
@ -290,7 +290,7 @@ Special_CheckCoins: ; c3ae
db "@"
; 0xc3db
Special_ClearBGPalettesBufferScreen: ; c3db
ClearBGPalettesBufferScreen: ; c3db
call ClearBGPalettes
call BufferScreen
ret
@ -314,7 +314,7 @@ UnusedSpecial_CheckUnusedTwoDayTimer: ; c3ef
ret
; c3fc
Special_ActivateFishingSwarm: ; c3fc
ActivateFishingSwarm: ; c3fc
ld a, [ScriptVar]
ld [wFishingSwarmFlag], a
ret
@ -341,13 +341,13 @@ StoreSwarmMapIndices:: ; c403
; c419
Special_CheckPokerus: ; c419
CheckPokerus: ; c419
; Check if a monster in your party has Pokerus
farcall _CheckPokerus
jp ScriptReturnCarry
; c422
Special_ResetLuckyNumberShowFlag: ; c422
ResetLuckyNumberShowFlag: ; c422
farcall RestartLuckyNumberCountdown
ld hl, wLuckyNumberShowFlag
res LUCKYNUMBERSHOW_GAME_OVER_F, [hl]
@ -355,12 +355,12 @@ Special_ResetLuckyNumberShowFlag: ; c422
ret
; c434
Special_CheckLuckyNumberShowFlag: ; c434
CheckLuckyNumberShowFlag: ; c434
farcall _CheckLuckyNumberShowFlag
jp ScriptReturnCarry
; c43d
Special_SnorlaxAwake: ; 0xc43d
SnorlaxAwake: ; 0xc43d
; Check if the Poké Flute channel is playing, and if the player is standing
; next to Snorlax.
@ -411,13 +411,13 @@ Special_SnorlaxAwake: ; 0xc43d
db -1
Special_PlayCurMonCry: ; c472
PlayCurMonCry: ; c472
ld a, [CurPartySpecies]
jp PlayMonCry
; c478
Special_GameboyCheck: ; c478
GameboyCheck: ; c478
ld a, [hCGB]
and a
jr nz, .cgb
@ -439,7 +439,7 @@ Special_GameboyCheck: ; c478
ret
Special_FadeOutMusic: ; c48f
FadeOutMusic: ; c48f
ld a, LOW(MUSIC_NONE)
ld [MusicFadeID], a
ld a, HIGH(MUSIC_NONE)
@ -449,21 +449,21 @@ Special_FadeOutMusic: ; c48f
ret
; c49f
Special_Diploma: ; c49f
Diploma: ; c49f
call FadeToMenu
farcall _Diploma
call ExitAllMenus
ret
; c4ac
Special_PrintDiploma: ; c4ac
PrintDiploma: ; c4ac
call FadeToMenu
farcall _PrintDiploma
call ExitAllMenus
ret
; c4b9
Special_TrainerHouse: ; 0xc4b9
TrainerHouse: ; 0xc4b9
ld a, BANK(sMysteryGiftTrainerHouseFlag)
call GetSRAMBank
ld a, [sMysteryGiftTrainerHouseFlag]

View File

@ -125,12 +125,12 @@ endr
dec [hl]
jr nz, .DontRestartKenjiBreakCountdown
.RestartKenjiBreakCountdown:
call Special_SampleKenjiBreakCountdown
call SampleKenjiBreakCountdown
.DontRestartKenjiBreakCountdown:
jr RestartDailyResetTimer
; 11485
Special_SampleKenjiBreakCountdown: ; 11485
SampleKenjiBreakCountdown: ; 11485
; Generate a random number between 3 and 6
call Random
and %11

View File

@ -119,7 +119,7 @@ _UpdateTimePals:: ; 8c070
ret
; 8c079
Special_FadeInPalettes:: ; 8c079
FadeInPalettes:: ; 8c079
ld c, $12
call GetTimePalFade
ld b, $4
@ -127,7 +127,7 @@ Special_FadeInPalettes:: ; 8c079
ret
; 8c084
Special_FadeOutPalettes:: ; 8c084
FadeOutPalettes:: ; 8c084
call FillWhiteBGColor
ld c, $9
call GetTimePalFade
@ -136,7 +136,7 @@ Special_FadeOutPalettes:: ; 8c084
ret
; 8c092
Special_BattleTowerFade: ; 8c092
BattleTowerFade: ; 8c092
call FillWhiteBGColor
ld c, $9
call GetTimePalFade
@ -153,7 +153,7 @@ Special_BattleTowerFade: ; 8c092
ret
; 8c0ab
Special_FadeInQuickly: ; 8c0ab
FadeInQuickly: ; 8c0ab
ld c, $0
call GetTimePalFade
ld b, $4
@ -161,7 +161,7 @@ Special_FadeInQuickly: ; 8c0ab
ret
; 8c0b6
Special_FadeBlackQuickly: ; 8c0b6
FadeBlackQuickly: ; 8c0b6
ld c, $9
call GetTimePalFade
ld b, $4

View File

@ -407,7 +407,7 @@ TimeSetDownArrowGFX: ; 9090b
INCBIN "gfx/new_game/down_arrow.1bpp"
; 90913
Special_SetDayOfWeek: ; 90913
SetDayOfWeek: ; 90913
ld a, [hInMenu]
push af
ld a, $1
@ -573,7 +573,7 @@ Special_SetDayOfWeek: ; 90913
db "@"
; 0x90a54
Special_InitialSetDSTFlag: ; 90a54
InitialSetDSTFlag: ; 90a54
ld a, [wDST]
set 7, a
ld [wDST], a
@ -604,7 +604,7 @@ Special_InitialSetDSTFlag: ; 90a54
db "@"
; 0x90a88
Special_InitialClearDSTFlag: ; 90a88
InitialClearDSTFlag: ; 90a88
ld a, [wDST]
res 7, a
ld [wDST], a

View File

@ -305,12 +305,12 @@ LoadGraphics: ; 1047cf
ld [hMapAnims], a
xor a
ld [hTileAnimFrame], a
farcall Special_RefreshSprites
farcall RefreshSprites
call LoadFontsExtra
farcall LoadOverworldFont
ret
Special_LoadMapPalettes: ; 1047eb
LoadMapPalettes: ; 1047eb
ld b, SCGB_MAPPALS
jp GetSGBLayout
; 1047f0

View File

@ -508,7 +508,7 @@ LookUpWildmonsForMapDE: ; 2a288
; 2a2a0
Special_InitRoamMons: ; 2a2a0
InitRoamMons: ; 2a2a0
; initialize wRoamMon structs
; species
@ -804,7 +804,7 @@ ValidateTempWildMonSpecies: ; 2a4a0
; Finds a rare wild Pokemon in the route of the trainer calling, then checks if it's been Seen already.
; The trainer will then tell you about the Pokemon if you haven't seen it.
Special_RandomUnseenWildMon: ; 2a4ab
RandomUnseenWildMon: ; 2a4ab
farcall GetCallerLocation
ld d, b
ld e, c
@ -877,7 +877,7 @@ Special_RandomUnseenWildMon: ; 2a4ab
db "@"
; 0x2a51f
Special_RandomPhoneWildMon: ; 2a51f
RandomPhoneWildMon: ; 2a51f
farcall GetCallerLocation
ld d, b
ld e, c
@ -917,7 +917,7 @@ Special_RandomPhoneWildMon: ; 2a51f
jp CopyBytes
; 2a567
Special_RandomPhoneMon: ; 2a567
RandomPhoneMon: ; 2a567
; Get a random monster owned by the trainer who's calling.
farcall GetCallerLocation
ld hl, TrainerGroups

View File

@ -1984,7 +1984,7 @@ FadeToMenu:: ; 2b29
xor a
ld [hBGMapMode], a
call LoadStandardMenuHeader
farcall Special_FadeOutPalettes
farcall FadeOutPalettes
call ClearSprites
call DisableSpriteUpdates
ret
@ -2010,7 +2010,7 @@ FinishExitMenu:: ; 2b5c
call GetSGBLayout
farcall LoadOW_BGPal7
call WaitBGMap2
farcall Special_FadeInPalettes
farcall FadeInPalettes
call EnableSpriteUpdates
ret
; 2b74
@ -2043,7 +2043,7 @@ ReturnToMapWithSpeechTextbox:: ; 0x2b74
ReloadTilesetAndPalettes:: ; 2bae
call DisableLCD
call ClearSprites
farcall Special_RefreshSprites
farcall RefreshSprites
call LoadStandardFont
call LoadFontsExtra
ld a, [hROMBank]

View File

@ -40,7 +40,7 @@ AzaleaTownRivalBattleScene1:
moveobject AZALEATOWN_SILVER, 11, 11
spriteface PLAYER, RIGHT
showemote EMOTE_SHOCK, PLAYER, 15
special Special_FadeOutMusic
special FadeOutMusic
pause 15
appear AZALEATOWN_SILVER
applymovement AZALEATOWN_SILVER, AzaleaTownRivalBattleApproachMovement1
@ -50,7 +50,7 @@ AzaleaTownRivalBattleScene1:
AzaleaTownRivalBattleScene2:
spriteface PLAYER, RIGHT
showemote EMOTE_SHOCK, PLAYER, 15
special Special_FadeOutMusic
special FadeOutMusic
pause 15
appear AZALEATOWN_SILVER
applymovement AZALEATOWN_SILVER, AzaleaTownRivalBattleApproachMovement2

View File

@ -16,10 +16,10 @@ BattleTower1F_MapScripts:
.Scene0:
writebyte BATTLETOWERACTION_CHECKSAVEFILEISYOURS
special Special_BattleTowerAction
special BattleTowerAction
iffalse .SkipEverything
writebyte BATTLETOWERACTION_GET_CHALLENGE_STATE ; copybytetovar sBattleTowerChallengeState
special Special_BattleTowerAction
special BattleTowerAction
if_equal $0, .SkipEverything
if_equal $2, .priorityjump1
if_equal $3, .SkipEverything
@ -34,9 +34,9 @@ BattleTower1F_MapScripts:
.priorityjump1
priorityjump BattleTower_LeftWithoutSaving
writebyte BATTLETOWERACTION_CHALLENGECANCELED
special Special_BattleTowerAction
special BattleTowerAction
writebyte BATTLETOWERACTION_06
special Special_BattleTowerAction
special BattleTowerAction
.SkipEverything:
setscene 1
.Scene1:
@ -55,54 +55,54 @@ UnknownScript_0x9e3e0:
ReceptionistScript_0x9e3e2:
writebyte BATTLETOWERACTION_GET_CHALLENGE_STATE ; copybytetovar sBattleTowerChallengeState
special Special_BattleTowerAction
special BattleTowerAction
if_equal $3, Script_BeatenAllTrainers2 ; maps/BattleTowerBattleRoom.asm
opentext
writetext Text_BattleTowerWelcomesYou
buttonsound
writebyte BATTLETOWERACTION_CHECK_EXPLANATION_READ ; if new save file: bit 1, [sBattleTowerSaveFileFlags]
special Special_BattleTowerAction
special BattleTowerAction
if_not_equal $0, Script_Menu_ChallengeExplanationCancel
jump Script_BattleTowerIntroductionYesNo
Script_Menu_ChallengeExplanationCancel: ; 0x9e3fc
writetext Text_WantToGoIntoABattleRoom
writebyte TRUE
special Special_Menu_ChallengeExplanationCancel
special Menu_ChallengeExplanationCancel
if_equal 1, Script_ChooseChallenge
if_equal 2, Script_BattleTowerExplanation
jump Script_BattleTowerHopeToServeYouAgain
Script_ChooseChallenge: ; 0x9e40f
writebyte BATTLETOWERACTION_RESETDATA ; ResetBattleTowerTrainerSRAM
special Special_BattleTowerAction
special Special_CheckForBattleTowerRules
special BattleTowerAction
special CheckForBattleTowerRules
if_not_equal FALSE, Script_WaitButton
writetext Text_SaveBeforeEnteringBattleRoom
yesorno
iffalse Script_Menu_ChallengeExplanationCancel
setscene 0
special Special_TryQuickSave
special TryQuickSave
iffalse Script_Menu_ChallengeExplanationCancel
setscene 1
writebyte BATTLETOWERACTION_SET_EXPLANATION_READ ; set 1, [sBattleTowerSaveFileFlags]
special Special_BattleTowerAction
special Special_BattleTowerRoomMenu
special BattleTowerAction
special BattleTowerRoomMenu
if_equal $a, Script_Menu_ChallengeExplanationCancel
if_not_equal $0, Script_MobileError
writebyte BATTLETOWERACTION_11
special Special_BattleTowerAction
special BattleTowerAction
writetext Text_RightThisWayToYourBattleRoom
waitbutton
closetext
writebyte BATTLETOWERACTION_CHOOSEREWARD
special Special_BattleTowerAction
special BattleTowerAction
jump Script_WalkToBattleTowerElevator
Script_ResumeBattleTowerChallenge:
closetext
writebyte BATTLETOWERACTION_LOADLEVELGROUP ; load choice of level group
special Special_BattleTowerAction
special BattleTowerAction
Script_WalkToBattleTowerElevator:
musicfadeout MUSIC_NONE, 8
setmapscene BATTLE_TOWER_BATTLE_ROOM, 0
@ -111,7 +111,7 @@ Script_WalkToBattleTowerElevator:
follow BATTLETOWER1F_RECEPTIONIST, PLAYER
applymovement BATTLETOWER1F_RECEPTIONIST, MovementData_BattleTower1FWalkToElevator
writebyte BATTLETOWERACTION_0A
special Special_BattleTowerAction
special BattleTowerAction
warpsound
disappear BATTLETOWER1F_RECEPTIONIST
stopfollow
@ -121,15 +121,15 @@ Script_WalkToBattleTowerElevator:
Script_GivePlayerHisPrize: ; 0x9e47a
writebyte BATTLETOWERACTION_1C
special Special_BattleTowerAction
special BattleTowerAction
writebyte BATTLETOWERACTION_GIVEREWARD
special Special_BattleTowerAction
special BattleTowerAction
if_equal POTION, Script_YourPackIsStuffedFull
itemtotext USE_SCRIPT_VAR, MEM_BUFFER_1
giveitem ITEM_FROM_MEM, 5
writetext Text_PlayerGotFive
writebyte BATTLETOWERACTION_1D
special Special_BattleTowerAction
special BattleTowerAction
closetext
end
@ -147,7 +147,7 @@ Script_BattleTowerExplanation: ; 0x9e4a5
writetext Text_BattleTowerIntroduction_2
Script_BattleTowerSkipExplanation:
writebyte BATTLETOWERACTION_SET_EXPLANATION_READ
special Special_BattleTowerAction
special BattleTowerAction
jump Script_Menu_ChallengeExplanationCancel
Script_BattleTowerHopeToServeYouAgain:
@ -157,7 +157,7 @@ Script_BattleTowerHopeToServeYouAgain:
end
UnreferencedScript_0x9e4b6:
special Special_BattleTowerMobileError
special BattleTowerMobileError
closetext
end
@ -170,11 +170,11 @@ UnreferencedScript_0x9e4be:
writetext Text_SaveBeforeEnteringBattleRoom
yesorno
iffalse Script_Menu_ChallengeExplanationCancel
special Special_TryQuickSave
special TryQuickSave
iffalse Script_Menu_ChallengeExplanationCancel
writebyte BATTLETOWERACTION_SET_EXPLANATION_READ
special Special_BattleTowerAction
special Special_Function1700ba
special BattleTowerAction
special Function1700ba
if_equal $a, Script_Menu_ChallengeExplanationCancel
if_not_equal $0, Script_MobileError
writetext Text_ReceivedAListOfLeadersOnTheHonorRoll
@ -187,15 +187,15 @@ UnreferencedScript_0x9e4be:
UnreferencedScript_0x9e4ea:
writebyte BATTLETOWERACTION_LEVEL_CHECK
special Special_BattleTowerAction
special BattleTowerAction
if_not_equal $0, Script_APkmnLevelExceeds
writebyte BATTLETOWERACTION_UBERS_CHECK
special Special_BattleTowerAction
special BattleTowerAction
if_not_equal $0, Script_MayNotEnterABattleRoomUnderL70
special Special_CheckForBattleTowerRules
special CheckForBattleTowerRules
if_not_equal FALSE, Script_WaitButton
writebyte BATTLETOWERACTION_05
special Special_BattleTowerAction
special BattleTowerAction
if_equal $0, .zero
writetext Text_CantBeRegistered_PreviousRecordDeleted
jump continue
@ -209,13 +209,13 @@ continue:
yesorno
iffalse Script_Menu_ChallengeExplanationCancel
setscene 0
special Special_TryQuickSave
special TryQuickSave
iffalse Script_Menu_ChallengeExplanationCancel
setscene 1
writebyte BATTLETOWERACTION_06
special Special_BattleTowerAction
special BattleTowerAction
writebyte BATTLETOWERACTION_12
special Special_BattleTowerAction
special BattleTowerAction
writetext Text_RightThisWayToYourBattleRoom
waitbutton
jump Script_ResumeBattleTowerChallenge
@ -236,7 +236,7 @@ Script_MayNotEnterABattleRoomUnderL70: ; 0x9e549
jump Script_Menu_ChallengeExplanationCancel
Script_MobileError:
special Special_BattleTowerMobileError
special BattleTowerMobileError
closetext
end

View File

@ -23,7 +23,7 @@ Script_BattleRoom: ; 0x9f421
; beat all 7 opponents in a row
Script_BattleRoomLoop: ; 0x9f425
writebyte BATTLETOWERBATTLEROOM_YOUNGSTER
special Special_LoadOpponentTrainerAndPokemonWithOTSprite
special LoadOpponentTrainerAndPokemonWithOTSprite
appear BATTLETOWERBATTLEROOM_YOUNGSTER
warpsound
waitsfx
@ -32,8 +32,8 @@ Script_BattleRoomLoop: ; 0x9f425
battletowertext BATTLETOWERTEXT_INTRO
buttonsound
closetext
special Special_BattleTowerBattle ; calls predef startbattle
special Special_FadeOutPalettes
special BattleTowerBattle ; calls predef startbattle
special FadeOutPalettes
reloadmap
if_not_equal $0, Script_FailedBattleTowerChallenge
copybytetovar wNrOfBeatenBattleTowerTrainers ; wcf64
@ -48,10 +48,10 @@ Script_BattleRoomLoop: ; 0x9f425
waitbutton
closetext
playmusic MUSIC_HEAL
special Special_FadeOutPalettes
special Special_LoadMapPalettes
special FadeOutPalettes
special LoadMapPalettes
pause 60
special Special_FadeInPalettes
special FadeInPalettes
special RestartMapMusic
opentext
writetext Text_NextUpOpponentNo
@ -68,35 +68,35 @@ Script_DontBattleNextOpponent: ; 0x9f483
yesorno
iffalse Script_DontSaveAndEndTheSession
writebyte BATTLETOWERACTION_SAVELEVELGROUP ; save level group
special Special_BattleTowerAction
special BattleTowerAction
writebyte BATTLETOWERACTION_SAVEOPTIONS ; choose reward
special Special_BattleTowerAction
special BattleTowerAction
writebyte BATTLETOWERACTION_SAVE_AND_QUIT ; quicksave
special Special_BattleTowerAction
special BattleTowerAction
playsound SFX_SAVE
waitsfx
special Special_FadeOutPalettes
special FadeOutPalettes
special Reset
Script_DontSaveAndEndTheSession: ; 0x9f4a3
writetext Text_CancelYourBattleRoomChallenge
yesorno
iffalse Script_ContinueAndBattleNextOpponent
writebyte BATTLETOWERACTION_CHALLENGECANCELED
special Special_BattleTowerAction
special BattleTowerAction
writebyte BATTLETOWERACTION_06
special Special_BattleTowerAction
special BattleTowerAction
closetext
special Special_FadeOutPalettes
special FadeOutPalettes
warpfacing UP, BATTLE_TOWER_1F, 7, 7
opentext
jump Script_BattleTowerHopeToServeYouAgain
Script_FailedBattleTowerChallenge:
pause 60
special Special_BattleTowerFade
special BattleTowerFade
warpfacing UP, BATTLE_TOWER_1F, 7, 7
writebyte BATTLETOWERACTION_CHALLENGECANCELED
special Special_BattleTowerAction
special BattleTowerAction
opentext
writetext Text_ThanksForVisiting
waitbutton
@ -105,7 +105,7 @@ Script_FailedBattleTowerChallenge:
Script_BeatenAllTrainers: ; 0x9f4d9
pause 60
special Special_BattleTowerFade
special BattleTowerFade
warpfacing UP, BATTLE_TOWER_1F, 7, 7
Script_BeatenAllTrainers2:
opentext
@ -114,7 +114,7 @@ Script_BeatenAllTrainers2:
UnreferencedScript_0x9f4eb:
writebyte BATTLETOWERACTION_CHALLENGECANCELED
special Special_BattleTowerAction
special BattleTowerAction
opentext
writetext Text_TooMuchTimeElapsedNoRegister
waitbutton
@ -123,9 +123,9 @@ UnreferencedScript_0x9f4eb:
UnreferencedScript_0x9f4f7:
writebyte BATTLETOWERACTION_CHALLENGECANCELED
special Special_BattleTowerAction
special BattleTowerAction
writebyte BATTLETOWERACTION_06
special Special_BattleTowerAction
special BattleTowerAction
opentext
writetext Text_ThanksForVisiting
writetext Text_WeHopeToServeYouAgain

View File

@ -22,7 +22,7 @@ BattleTowerElevator_MapScripts:
applymovement BATTLETOWERELEVATOR_RECEPTIONIST, MovementData_BattleTowerElevatorReceptionistWalksIn
applymovement PLAYER, MovementData_BattleTowerElevatorPlayerWalksIn
writebyte BATTLETOWERACTION_0A
special Special_BattleTowerAction
special BattleTowerAction
playsound SFX_ELEVATOR
earthquake 60
waitsfx

View File

@ -37,7 +37,7 @@ BillsGrandpa:
yesorno
iffalse .SaidNo
scall .ExcitedToSee
special Special_BillsGrandfather
special BillsGrandfather
iffalse .SaidNo
if_not_equal LICKITUNG, .WrongPokemon
scall .CorrectPokemon
@ -51,7 +51,7 @@ BillsGrandpa:
yesorno
iffalse .SaidNo
scall .ExcitedToSee
special Special_BillsGrandfather
special BillsGrandfather
iffalse .SaidNo
if_not_equal ODDISH, .WrongPokemon
scall .CorrectPokemon
@ -65,7 +65,7 @@ BillsGrandpa:
yesorno
iffalse .SaidNo
scall .ExcitedToSee
special Special_BillsGrandfather
special BillsGrandfather
iffalse .SaidNo
if_not_equal STARYU, .WrongPokemon
scall .CorrectPokemon
@ -81,7 +81,7 @@ BillsGrandpa:
yesorno
iffalse .SaidNo
scall .ExcitedToSee
special Special_BillsGrandfather
special BillsGrandfather
iffalse .SaidNo
if_not_equal GROWLITHE, .WrongPokemon
scall .CorrectPokemon
@ -95,7 +95,7 @@ BillsGrandpa:
yesorno
iffalse .SaidNo
scall .ExcitedToSee
special Special_BillsGrandfather
special BillsGrandfather
iffalse .SaidNo
if_not_equal VULPIX, .WrongPokemon
scall .CorrectPokemon
@ -109,7 +109,7 @@ BillsGrandpa:
yesorno
iffalse .SaidNo
scall .ExcitedToSee
special Special_BillsGrandfather
special BillsGrandfather
iffalse .SaidNo
if_not_equal PICHU, .WrongPokemon
scall .CorrectPokemon

View File

@ -26,21 +26,21 @@ DaisyScript:
iffalse .Refused
writetext DaisyWhichMonText
waitbutton
special Special_DaisysGrooming
special DaisysGrooming
if_equal $0, .Refused
if_equal $1, .CantGroomEgg
setflag ENGINE_DAISYS_GROOMING
writetext DaisyAlrightText
waitbutton
closetext
special Special_FadeOutPalettes
special FadeOutPalettes
playmusic MUSIC_HEAL
pause 60
special Special_FadeInPalettes
special FadeInPalettes
special RestartMapMusic
opentext
writetext GroomedMonLooksContentText
special Special_PlayCurMonCry
special PlayCurMonCry
buttonsound
writetext DaisyAllDoneText
waitbutton

View File

@ -51,7 +51,7 @@ BurnedTower1F_MapScripts:
BurnedTowerRivalBattleScript:
showemote EMOTE_SHOCK, BURNEDTOWER1F_SILVER, 15
special Special_FadeOutMusic
special FadeOutMusic
pause 15
spriteface BURNEDTOWER1F_SILVER, RIGHT
pause 15
@ -100,7 +100,7 @@ BurnedTowerRivalBattleScript:
closetext
setscene 2
setevent EVENT_RIVAL_BURNED_TOWER
special Special_FadeOutMusic
special FadeOutMusic
pause 15
earthquake 50
showemote EMOTE_SHOCK, PLAYER, 15

View File

@ -83,7 +83,7 @@ ReleaseTheBeasts:
special RestartMapMusic
setscene 1
setevent EVENT_RELEASED_THE_BEASTS
special Special_InitRoamMons
special InitRoamMons
setmapscene ECRUTEAK_GYM, 1
setmapscene CIANWOOD_CITY, 1
clearevent EVENT_SAW_SUICUNE_AT_CIANWOOD_CITY

View File

@ -24,7 +24,7 @@ CeladonDeptStore6FVendingMachine:
opentext
writetext CeladonVendingText
.Start:
special Special_PlaceMoneyTopRight
special PlaceMoneyTopRight
loadmenuheader .MenuHeader
verticalmenu
closewindow

View File

@ -115,20 +115,20 @@ CeladonGameCornerLuckySlotMachineScript:
if_equal 0, CeladonGameCornerSlotMachineScript
refreshscreen
writebyte FALSE
special Special_SlotMachine
special SlotMachine
closetext
end
CeladonGameCornerSlotMachineScript:
refreshscreen
writebyte TRUE
special Special_SlotMachine
special SlotMachine
closetext
end
CeladonGameCornerCardFlipScript:
refreshscreen
special Special_CardFlip
special CardFlip
closetext
end
@ -139,7 +139,7 @@ MapCeladonGameCornerSignpost9Script:
opentext
writetext UnknownText_0x72567
waitbutton
special Special_CardFlip
special CardFlip
closetext
end

View File

@ -24,7 +24,7 @@ CeladonGameCornerPrizeRoomTMVendor:
iffalse CeladonPrizeRoom_NoCoinCase
writetext CeladonPrizeRoom_AskWhichPrizeText
CeladonPrizeRoom_tmcounterloop:
special Special_DisplayCoinCaseBalance
special DisplayCoinCaseBalance
loadmenuheader CeladonPrizeRoom_TMMenuHeader
verticalmenu
closewindow
@ -125,7 +125,7 @@ CeladonGameCornerPrizeRoomPokemonVendor:
iffalse CeladonPrizeRoom_NoCoinCase
.loop
writetext CeladonPrizeRoom_AskWhichPrizeText
special Special_DisplayCoinCaseBalance
special DisplayCoinCaseBalance
loadmenuheader .MenuHeader
verticalmenu
closewindow
@ -147,7 +147,7 @@ CeladonGameCornerPrizeRoomPokemonVendor:
writetext CeladonPrizeRoom_HereYouGoText
waitbutton
writebyte PIKACHU
special Special_GameCornerPrizeMonCheckDex
special GameCornerPrizeMonCheckDex
givepoke PIKACHU, 25
takecoins 2222
jump .loop
@ -165,7 +165,7 @@ CeladonGameCornerPrizeRoomPokemonVendor:
writetext CeladonPrizeRoom_HereYouGoText
waitbutton
writebyte PORYGON
special Special_GameCornerPrizeMonCheckDex
special GameCornerPrizeMonCheckDex
givepoke PORYGON, 15
takecoins 5555
jump .loop
@ -183,7 +183,7 @@ CeladonGameCornerPrizeRoomPokemonVendor:
writetext CeladonPrizeRoom_HereYouGoText
waitbutton
writebyte LARVITAR
special Special_GameCornerPrizeMonCheckDex
special GameCornerPrizeMonCheckDex
givepoke LARVITAR, 40
takecoins 8888
jump .loop

View File

@ -28,7 +28,7 @@ UnknownScript_0x7167e:
waitsfx
writetext UnknownText_0x71760
buttonsound
special Special_Diploma
special Diploma
writetext UnknownText_0x71763
waitbutton
closetext
@ -49,7 +49,7 @@ UnknownScript_0x716a4:
writetext UnknownText_0x717d8
yesorno
iffalse UnknownScript_0x716b0
special Special_PrintDiploma
special PrintDiploma
closetext
end

View File

@ -30,9 +30,9 @@ CeladonEusine:
writetext CeladonEusineText1
buttonsound
writebyte SUICUNE
special Special_MonCheck
special MonCheck
iffalse .NoSuicune
special Special_BeastsCheck
special BeastsCheck
iftrue .HoOh
writetext NoBeastsText
waitbutton

View File

@ -14,7 +14,7 @@ NurseScript_0x18820f:
jumpstd pokecenternurse
SuperNerdScript_0x188212:
special Special_Mobile_DummyReturnFalse
special Mobile_DummyReturnFalse
iftrue .mobile
jumptextfaceplayer UnknownText_0x188221

View File

@ -105,7 +105,7 @@ CherrygroveSilverSceneSouth:
CherrygroveSilverSceneNorth:
spriteface PLAYER, RIGHT
showemote EMOTE_SHOCK, PLAYER, 15
special Special_FadeOutMusic
special FadeOutMusic
pause 15
appear CHERRYGROVECITY_SILVER
applymovement CHERRYGROVECITY_SILVER, CherrygroveCity_RivalWalksToYou

View File

@ -76,7 +76,7 @@ CianwoodCitySuicuneAndEusine:
applymovement CIANWOODCITY_EUSINE, MovementData_0x1a00ec
disappear CIANWOODCITY_EUSINE
pause 20
special Special_FadeOutMusic
special FadeOutMusic
playmapmusic
pause 10
.Done:

View File

@ -16,7 +16,7 @@ FishingGuruScript_0x9e0e0:
iffalse UnknownScript_0x9e0f3
writetext UnknownText_0x9e142
waitbutton
special Special_PhotoStudio
special PhotoStudio
waitbutton
closetext
end

View File

@ -25,7 +25,7 @@ Colosseum_MapScripts:
end
.SetWhichChris:
special Special_CableClubCheckWhichChris
special CableClubCheckWhichChris
iffalse .Chris2
disappear COLOSSEUM_CHRIS2
appear COLOSSEUM_CHRIS1
@ -46,7 +46,7 @@ Colosseum_MapScripts:
end
MapColosseumSignpost1Script:
special Special_Colosseum
special Colosseum
newloadmap MAPSETUP_LINKRETURN
end

View File

@ -46,7 +46,7 @@ Copycat:
faceplayer
variablesprite SPRITE_COPYCAT, SPRITE_KRIS
.Default_Merge_1:
special Special_LoadUsedSpritesGFX
special LoadUsedSpritesGFX
checkevent EVENT_RETURNED_MACHINE_PART
iftrue .TalkAboutLostItem
opentext
@ -70,7 +70,7 @@ Copycat:
.Default_Merge_3a:
faceplayer
variablesprite SPRITE_COPYCAT, SPRITE_LASS
special Special_LoadUsedSpritesGFX
special LoadUsedSpritesGFX
opentext
writetext CopycatText_QuickMimicking
waitbutton
@ -99,7 +99,7 @@ Copycat:
.Default_Merge_3b:
faceplayer
variablesprite SPRITE_COPYCAT, SPRITE_LASS
special Special_LoadUsedSpritesGFX
special LoadUsedSpritesGFX
opentext
writetext CopycatText_Worried
waitbutton
@ -142,7 +142,7 @@ Copycat:
faceplayer
variablesprite SPRITE_COPYCAT, SPRITE_KRIS
.GotPass_Merge_1:
special Special_LoadUsedSpritesGFX
special LoadUsedSpritesGFX
opentext
checkflag ENGINE_PLAYER_IS_FEMALE
iftrue .GotPass_Female_2
@ -164,7 +164,7 @@ Copycat:
.GotPass_Merge_3:
faceplayer
variablesprite SPRITE_COPYCAT, SPRITE_LASS
special Special_LoadUsedSpritesGFX
special LoadUsedSpritesGFX
opentext
writetext CopycatText_ItsAScream
waitbutton

View File

@ -32,7 +32,7 @@ DayCareManScript_Inside:
closetext
checkcode VAR_PARTYCOUNT
if_equal PARTY_LENGTH, .PartyFull
special Special_GiveOddEgg
special GiveOddEgg
opentext
writetext DayCareText_GotOddEgg
playsound SFX_KEY_ITEM
@ -51,7 +51,7 @@ DayCareManScript_Inside:
end
.AlreadyHaveOddEgg:
special Special_DayCareMan
special DayCareMan
waitbutton
closetext
end
@ -61,7 +61,7 @@ DayCareLadyScript:
opentext
checkflag ENGINE_DAY_CARE_MAN_HAS_EGG
iftrue .HusbandWasLookingForYou
special Special_DayCareLady
special DayCareLady
waitbutton
closetext
end

View File

@ -134,7 +134,7 @@ DragonShrine_MapScripts:
writetext DragonShrineClairYouPassedText
waitbutton
closetext
special Special_FadeOutMusic
special FadeOutMusic
applymovement DRAGONSHRINE_CLAIR, DragonShrineClairBigStepLeftMovement
opentext
writetext DragonShrineClairThatCantBeText
@ -217,7 +217,7 @@ DragonShrineElder1Script:
waitsfx
givepoke DRATINI, 15
checkevent EVENT_ANSWERED_DRAGON_MASTER_QUIZ_WRONG
special Special_Dratini
special Dratini
setevent EVENT_GOT_DRATINI
setevent EVENT_TEMPORARY_UNTIL_MAP_RELOAD_7
writetext DragonShrineSymbolicDragonText

View File

@ -76,7 +76,7 @@ DragonsDenB1F_ClairScene:
closetext
.FinishClair:
applymovement DRAGONSDENB1F_CLAIR, MovementDragonsDen_ClairWalksAway
special Special_FadeOutMusic
special FadeOutMusic
pause 30
special RestartMapMusic
disappear DRAGONSDENB1F_CLAIR

View File

@ -91,7 +91,7 @@ EcruteakGymClosed:
follow PLAYER, ECRUTEAKGYM_GRAMPS
applymovement PLAYER, MovementData_0x99e5f
stopfollow
special Special_FadeOutPalettes
special FadeOutPalettes
playsound SFX_ENTER_DOOR
waitsfx
warp ECRUTEAK_CITY, 6, 27

View File

@ -61,7 +61,7 @@ EcruteakPokecenter1FNurseScript:
jumpstd pokecenternurse
EcruteakPokecenter1FPokefanMScript:
special Special_Mobile_DummyReturnFalse
special Mobile_DummyReturnFalse
iftrue .mobile
jumptextfaceplayer EcruteakPokecenter1FPokefanMText

View File

@ -108,10 +108,10 @@ ElmCheckEverstone:
checkevent EVENT_TOLD_ELM_ABOUT_TOGEPI_OVER_THE_PHONE
iffalse ElmCheckTogepiEgg
writebyte TOGEPI
special Special_FindPartyMonThatSpeciesYourTrainerID
special FindPartyMonThatSpeciesYourTrainerID
iftrue ShowElmTogepiScript
writebyte TOGETIC
special Special_FindPartyMonThatSpeciesYourTrainerID
special FindPartyMonThatSpeciesYourTrainerID
iftrue ShowElmTogepiScript
writetext UnknownText_0x79a40
waitbutton
@ -120,10 +120,10 @@ ElmCheckEverstone:
ElmEggHatchedScript:
writebyte TOGEPI
special Special_FindPartyMonThatSpeciesYourTrainerID
special FindPartyMonThatSpeciesYourTrainerID
iftrue ShowElmTogepiScript
writebyte TOGETIC
special Special_FindPartyMonThatSpeciesYourTrainerID
special FindPartyMonThatSpeciesYourTrainerID
iftrue ShowElmTogepiScript
jump ElmCheckGotEggAgain
@ -308,11 +308,11 @@ ElmsLabHealingMachine:
end
ElmsLabHealingMachine_HealParty:
special Special_StubbedTrainerRankings_Healings
special StubbedTrainerRankings_Healings
special HealParty
playmusic MUSIC_NONE
writebyte HEALMACHINE_ELMS_LAB
special Special_HealMachineAnim
special HealMachineAnim
pause 30
special RestartMapMusic
closetext
@ -556,7 +556,7 @@ CopScript:
opentext
writetext ElmsLabOfficerText1
buttonsound
special Special_NameRival
special NameRival
writetext ElmsLabOfficerText2
waitbutton
closetext

View File

@ -68,7 +68,7 @@ SailorScript_0x75160:
closetext
scall .LetThePlayerOut
playsound SFX_EXIT_BUILDING
special Special_FadeOutPalettes
special FadeOutPalettes
waitsfx
setevent EVENT_VERMILION_PORT_SAILOR_AT_GANGWAY
setmapscene VERMILION_PORT, 1
@ -81,7 +81,7 @@ SailorScript_0x75160:
closetext
scall .LetThePlayerOut
playsound SFX_EXIT_BUILDING
special Special_FadeOutPalettes
special FadeOutPalettes
waitsfx
setevent EVENT_OLIVINE_PORT_SAILOR_AT_GANGWAY
setmapscene OLIVINE_PORT, 1

View File

@ -48,7 +48,7 @@ SSAquaGranddaughterBefore:
writetext SSAquaGranddaughterHasToFindGrandpaText
waitbutton
closetext
special Special_FadeBlackQuickly
special FadeBlackQuickly
special ReloadSpritesNoPalettes
disappear FASTSHIPCABINS_SE_SSE_CAPTAINSCABIN_TWIN2
applymovement PLAYER, MovementData_0x76004
@ -56,7 +56,7 @@ SSAquaGranddaughterBefore:
appear FASTSHIPCABINS_SE_SSE_CAPTAINSCABIN_TWIN1
spriteface PLAYER, UP
spriteface FASTSHIPCABINS_SE_SSE_CAPTAINSCABIN_TWIN1, UP
special Special_FadeInQuickly
special FadeInQuickly
spriteface FASTSHIPCABINS_SE_SSE_CAPTAINSCABIN_GENTLEMAN, DOWN
showemote EMOTE_SHOCK, FASTSHIPCABINS_SE_SSE_CAPTAINSCABIN_GENTLEMAN, 15
applymovement FASTSHIPCABINS_SE_SSE_CAPTAINSCABIN_TWIN1, MovementData_0x7600c

View File

@ -49,7 +49,7 @@ TrainerGuitaristClyde:
.Script:
end_if_just_battled
special Special_Mobile_DummyReturnFalse
special Mobile_DummyReturnFalse
iftrue .mobile
opentext
writetext UnknownText_0x75d65
@ -69,14 +69,14 @@ FastShipBed:
writetext FastShipBedText1
waitbutton
closetext
special Special_FadeBlackQuickly
special FadeBlackQuickly
special ReloadSpritesNoPalettes
special Special_StubbedTrainerRankings_Healings
special StubbedTrainerRankings_Healings
special HealParty
playmusic MUSIC_HEAL
pause 60
special RestartMapMusic
special Special_FadeInQuickly
special FadeInQuickly
opentext
writetext FastShipBedText2
waitbutton

View File

@ -35,7 +35,7 @@ FuchsiaGymJanineScript:
variablesprite SPRITE_FUCHSIA_GYM_2, SPRITE_LASS
variablesprite SPRITE_FUCHSIA_GYM_3, SPRITE_LASS
variablesprite SPRITE_FUCHSIA_GYM_4, SPRITE_YOUNGSTER
special Special_LoadUsedSpritesGFX
special LoadUsedSpritesGFX
opentext
writetext Text_ReceivedSoulBadge
playsound SFX_GET_BADGE
@ -65,7 +65,7 @@ LassAliceScript:
applymovement FUCHSIAGYM_FUCHSIA_GYM_1, Movement_NinjaSpin
faceplayer
variablesprite SPRITE_FUCHSIA_GYM_1, SPRITE_LASS
special Special_LoadUsedSpritesGFX
special LoadUsedSpritesGFX
.AliceUnmasked:
faceplayer
opentext
@ -99,7 +99,7 @@ LassLindaScript:
applymovement FUCHSIAGYM_FUCHSIA_GYM_2, Movement_NinjaSpin
faceplayer
variablesprite SPRITE_FUCHSIA_GYM_2, SPRITE_LASS
special Special_LoadUsedSpritesGFX
special LoadUsedSpritesGFX
.LindaUnmasked:
faceplayer
opentext
@ -133,7 +133,7 @@ PicnickerCindyScript:
applymovement FUCHSIAGYM_FUCHSIA_GYM_3, Movement_NinjaSpin
faceplayer
variablesprite SPRITE_FUCHSIA_GYM_3, SPRITE_LASS
special Special_LoadUsedSpritesGFX
special LoadUsedSpritesGFX
.CindyUnmasked:
faceplayer
opentext
@ -167,7 +167,7 @@ CamperBarryScript:
applymovement FUCHSIAGYM_FUCHSIA_GYM_4, Movement_NinjaSpin
faceplayer
variablesprite SPRITE_FUCHSIA_GYM_4, SPRITE_YOUNGSTER
special Special_LoadUsedSpritesGFX
special LoadUsedSpritesGFX
.BarryUnmasked:
faceplayer
opentext

View File

@ -33,7 +33,7 @@ JanineImpersonatorScript_0x196462:
applymovement FUCHSIAPOKECENTER1F_JANINE_IMPERSONATOR, MovementData_0x196486
faceplayer
variablesprite SPRITE_JANINE_IMPERSONATOR, SPRITE_JANINE
special Special_LoadUsedSpritesGFX
special LoadUsedSpritesGFX
opentext
writetext UnknownText_0x19654e
waitbutton
@ -41,7 +41,7 @@ JanineImpersonatorScript_0x196462:
applymovement FUCHSIAPOKECENTER1F_JANINE_IMPERSONATOR, MovementData_0x196486
faceplayer
variablesprite SPRITE_JANINE_IMPERSONATOR, SPRITE_LASS
special Special_LoadUsedSpritesGFX
special LoadUsedSpritesGFX
end
MovementData_0x196486:

View File

@ -58,7 +58,7 @@ MoveTutorScript:
writetext UnknownText_0x199042
yesorno
iffalse .Refused
special Special_DisplayCoinCaseBalance
special DisplayCoinCaseBalance
writetext UnknownText_0x199090
yesorno
iffalse .Refused2
@ -76,21 +76,21 @@ MoveTutorScript:
.Flamethrower:
writebyte MOVETUTOR_FLAMETHROWER
writetext UnknownText_0x1991cf
special Special_MoveTutor
special MoveTutor
if_equal FALSE, .TeachMove
jump .Incompatible
.Thunderbolt:
writebyte MOVETUTOR_THUNDERBOLT
writetext UnknownText_0x1991cf
special Special_MoveTutor
special MoveTutor
if_equal FALSE, .TeachMove
jump .Incompatible
.IceBeam:
writebyte MOVETUTOR_ICE_BEAM
writetext UnknownText_0x1991cf
special Special_MoveTutor
special MoveTutor
if_equal FALSE, .TeachMove
jump .Incompatible
@ -126,7 +126,7 @@ MoveTutorScript:
takecoins 4000
waitsfx
playsound SFX_TRANSACTION
special Special_DisplayCoinCaseBalance
special DisplayCoinCaseBalance
writetext UnknownText_0x19918b
waitbutton
closetext

View File

@ -65,7 +65,7 @@ ReceptionistScript_0x560ce:
if_not_equal SUNDAY, .EventIsOver
checkflag ENGINE_GOLDENROD_DEPT_STORE_TM27_RETURN
iftrue .EventIsOver
special Special_GetFirstPokemonHappiness
special GetFirstPokemonHappiness
writetext UnknownText_0x56143
buttonsound
if_greater_than 150 - 1, .VeryHappy
@ -106,12 +106,12 @@ ReceptionistScript_0x560ce:
Carrie:
faceplayer
opentext
special Special_GameboyCheck
special GameboyCheck
if_not_equal GBCHECK_CGB, .NotGBC ; This is a dummy check from Gold/Silver
writetext UnknownText_0x56241
waitbutton
closetext
special Special_UnlockMysteryGift
special UnlockMysteryGift
end
.NotGBC:

View File

@ -13,7 +13,7 @@ GoldenrodVendingMachine:
opentext
writetext GoldenrodVendingText
.Start:
special Special_PlaceMoneyTopRight
special PlaceMoneyTopRight
loadmenuheader .MenuHeader
verticalmenu
closewindow

View File

@ -60,7 +60,7 @@ GoldenrodGmeCornerTMVendorScript:
iffalse GoldenrodGameCornerPrizeVendor_NoCoinCaseScript
writetext GoldenrodGameCornerPrizeVendorWhichPrizeText
GoldenrodGmeCornerTMVendor_LoopScript: ; 056c36
special Special_DisplayCoinCaseBalance
special DisplayCoinCaseBalance
loadmenuheader GoldenrodGameCornerTMVendorMenuHeader
verticalmenu
closewindow
@ -161,7 +161,7 @@ GoldenrodGameCornerPrizeMonVendorScript:
iffalse GoldenrodGameCornerPrizeVendor_NoCoinCaseScript
.loop
writetext GoldenrodGameCornerPrizeVendorWhichPrizeText
special Special_DisplayCoinCaseBalance
special DisplayCoinCaseBalance
loadmenuheader .MenuHeader
verticalmenu
closewindow
@ -183,7 +183,7 @@ GoldenrodGameCornerPrizeMonVendorScript:
writetext GoldenrodGameCornerPrizeVendorHereYouGoText
waitbutton
writebyte ABRA
special Special_GameCornerPrizeMonCheckDex
special GameCornerPrizeMonCheckDex
givepoke ABRA, 5
takecoins 100
jump .loop
@ -201,7 +201,7 @@ GoldenrodGameCornerPrizeMonVendorScript:
writetext GoldenrodGameCornerPrizeVendorHereYouGoText
waitbutton
writebyte CUBONE
special Special_GameCornerPrizeMonCheckDex
special GameCornerPrizeMonCheckDex
givepoke CUBONE, 15
takecoins 800
jump .loop
@ -219,7 +219,7 @@ GoldenrodGameCornerPrizeMonVendorScript:
writetext GoldenrodGameCornerPrizeVendorHereYouGoText
waitbutton
writebyte WOBBUFFET
special Special_GameCornerPrizeMonCheckDex
special GameCornerPrizeMonCheckDex
givepoke WOBBUFFET, 15
takecoins 1500
jump .loop
@ -297,20 +297,20 @@ GoldenrodGameCornerSlotsMachineScript:
if_equal 0, GoldenrodGameCornerLuckySlotsMachineScript
refreshscreen
writebyte FALSE
special Special_SlotMachine
special SlotMachine
closetext
end
GoldenrodGameCornerLuckySlotsMachineScript:
refreshscreen
writebyte TRUE
special Special_SlotMachine
special SlotMachine
closetext
end
GoldenrodGameCornerCardFlipMachineScript:
refreshscreen
special Special_CardFlip
special CardFlip
closetext
end

View File

@ -13,7 +13,7 @@ GoldenrodHappinessRater_MapScripts:
TeacherScript_0x54953:
faceplayer
opentext
special Special_GetFirstPokemonHappiness
special GetFirstPokemonHappiness
writetext UnknownText_0x549a3
buttonsound
if_greater_than 250 - 1, UnknownScript_0x54973

View File

@ -35,7 +35,7 @@ OfficerScript_0x550ec:
applymovement GOLDENRODMAGNETTRAINSTATION_OFFICER, MovementData_0x55146
applymovement PLAYER, MovementData_0x5514f
writebyte FALSE
special Special_MagnetTrain
special MagnetTrain
warpcheck
newloadmap MAPSETUP_TRAIN
applymovement PLAYER, .MovementBoardTheTrain

View File

@ -11,7 +11,7 @@ GoldenrodNameRater_MapScripts:
GoldenrodNameRater:
faceplayer
opentext
special Special_NameRater
special NameRater
waitbutton
closetext
end

View File

@ -17,7 +17,7 @@ NurseScript_0x60f91:
GoldenrodPokecenter1F_GSBallSceneLeft:
writebyte BATTLETOWERACTION_CHECKMOBILEEVENT
special Special_BattleTowerAction
special BattleTowerAction
if_equal MOBILE_EVENT_OBJECT_GS_BALL, .gsball
end
@ -49,7 +49,7 @@ GoldenrodPokecenter1F_GSBallSceneLeft:
GoldenrodPokecenter1F_GSBallSceneRight:
writebyte BATTLETOWERACTION_CHECKMOBILEEVENT
special Special_BattleTowerAction
special BattleTowerAction
if_equal MOBILE_EVENT_OBJECT_GS_BALL, .gsball
end

View File

@ -192,7 +192,7 @@ OlderHaircutBrotherScript:
.DoHaircut:
checkflag ENGINE_GOLDENROD_UNDERGROUND_GOT_HAIRCUT
iftrue .AlreadyGotHaircut
special Special_PlaceMoneyTopRight
special PlaceMoneyTopRight
writetext UnknownText_0x7c5f9
yesorno
iffalse .Refused
@ -200,7 +200,7 @@ OlderHaircutBrotherScript:
if_equal HAVE_LESS, .NotEnoughMoney
writetext UnknownText_0x7c69a
buttonsound
special Special_YoungerHaircutBrother
special YoungerHaircutBrother
if_equal $0, .Refused
if_equal $1, .Refused
setflag ENGINE_GOLDENROD_UNDERGROUND_GOT_HAIRCUT
@ -228,14 +228,14 @@ OlderHaircutBrotherScript:
.then
takemoney YOUR_MONEY, 500
special Special_PlaceMoneyTopRight
special PlaceMoneyTopRight
writetext UnknownText_0x7c6b8
waitbutton
closetext
special Special_FadeOutPalettes
special FadeOutPalettes
playmusic MUSIC_HEAL
pause 60
special Special_FadeInPalettes
special FadeInPalettes
special RestartMapMusic
opentext
writetext UnknownText_0x7c6d8
@ -275,7 +275,7 @@ YoungerHaircutBrotherScript:
.DoHaircut:
checkflag ENGINE_GOLDENROD_UNDERGROUND_GOT_HAIRCUT
iftrue .AlreadyGotHaircut
special Special_PlaceMoneyTopRight
special PlaceMoneyTopRight
writetext UnknownText_0x7c75c
yesorno
iffalse .Refused
@ -283,7 +283,7 @@ YoungerHaircutBrotherScript:
if_equal HAVE_LESS, .NotEnoughMoney
writetext UnknownText_0x7c7f1
buttonsound
special Special_OlderHaircutBrother
special OlderHaircutBrother
if_equal $0, .Refused
if_equal $1, .Refused
setflag ENGINE_GOLDENROD_UNDERGROUND_GOT_HAIRCUT
@ -311,14 +311,14 @@ YoungerHaircutBrotherScript:
.then
takemoney YOUR_MONEY, 300
special Special_PlaceMoneyTopRight
special PlaceMoneyTopRight
writetext UnknownText_0x7c80e
waitbutton
closetext
special Special_FadeOutPalettes
special FadeOutPalettes
playmusic MUSIC_HEAL
pause 60
special Special_FadeInPalettes
special FadeInPalettes
special RestartMapMusic
opentext
writetext UnknownText_0x7c82a
@ -349,21 +349,21 @@ YoungerHaircutBrotherScript:
UnknownScript_0x7c2bb:
writetext HaircutBrosText_SlightlyHappier
special Special_PlayCurMonCry
special PlayCurMonCry
waitbutton
closetext
end
UnknownScript_0x7c2c4:
writetext HaircutBrosText_Happier
special Special_PlayCurMonCry
special PlayCurMonCry
waitbutton
closetext
end
UnknownScript_0x7c2cd:
writetext HaircutBrosText_MuchHappier
special Special_PlayCurMonCry
special PlayCurMonCry
waitbutton
closetext
end

View File

@ -121,7 +121,7 @@ TeacherScript_0x7ca7d:
UndergroundSilverScene1:
spriteface PLAYER, RIGHT
showemote EMOTE_SHOCK, PLAYER, 15
special Special_FadeOutMusic
special FadeOutMusic
pause 15
playsound SFX_EXIT_BUILDING
appear GOLDENRODUNDERGROUNDSWITCHROOMENTRANCES_SILVER
@ -140,7 +140,7 @@ UndergroundSilverScene1:
UndergroundSilverScene2:
spriteface PLAYER, RIGHT
showemote EMOTE_SHOCK, PLAYER, 15
special Special_FadeOutMusic
special FadeOutMusic
pause 15
playsound SFX_EXIT_BUILDING
appear GOLDENRODUNDERGROUNDSWITCHROOMENTRANCES_SILVER

View File

@ -31,7 +31,7 @@ HallOfFame_MapScripts:
setscene 1
pause 15
writebyte HEALMACHINE_HALL_OF_FAME
special Special_HealMachineAnim
special HealMachineAnim
setevent EVENT_BEAT_ELITE_FOUR
setevent EVENT_TELEPORT_GUY
setevent EVENT_RIVAL_SPROUT_TOWER

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