pokecrystal-board/engine/events/std_scripts.asm

875 lines
17 KiB
NASM
Raw Normal View History

MACRO add_stdscript
\1StdScript::
dba \1
ENDM
StdScripts::
add_stdscript PokecenterNurseScript
add_stdscript DifficultBookshelfScript
add_stdscript PictureBookshelfScript
add_stdscript MagazineBookshelfScript
add_stdscript TeamRocketOathScript
add_stdscript IncenseBurnerScript
add_stdscript MerchandiseShelfScript
add_stdscript TownMapScript
add_stdscript WindowScript
add_stdscript TVScript
add_stdscript HomepageScript ; unused
add_stdscript Radio1Script
add_stdscript Radio2Script
add_stdscript TrashCanScript
add_stdscript StrengthBoulderScript
add_stdscript SmashRockScript
add_stdscript PokecenterSignScript
add_stdscript MartSignScript
add_stdscript GoldenrodRocketsScript
add_stdscript RadioTowerRocketsScript
add_stdscript ElevatorButtonScript
add_stdscript DayToTextScript
add_stdscript BugContestResultsWarpScript
add_stdscript BugContestResultsScript
add_stdscript InitializeEventsScript
add_stdscript AskNumber1MScript
add_stdscript AskNumber2MScript
add_stdscript RegisteredNumberMScript
add_stdscript NumberAcceptedMScript
add_stdscript NumberDeclinedMScript
add_stdscript PhoneFullMScript
add_stdscript RematchMScript
add_stdscript GiftMScript
add_stdscript PackFullMScript
add_stdscript RematchGiftMScript
add_stdscript AskNumber1FScript
add_stdscript AskNumber2FScript
add_stdscript RegisteredNumberFScript
add_stdscript NumberAcceptedFScript
add_stdscript NumberDeclinedFScript
add_stdscript PhoneFullFScript
add_stdscript RematchFScript
add_stdscript GiftFScript
add_stdscript PackFullFScript
add_stdscript RematchGiftFScript
add_stdscript GymStatue1Script
add_stdscript GymStatue2Script
add_stdscript ReceiveItemScript
add_stdscript ReceiveTogepiEggScript
add_stdscript PCScript
add_stdscript GameCornerChipVendorScript
add_stdscript HappinessCheckScript
2013-09-07 12:30:07 -07:00
PokecenterNurseScript:
2015-12-09 15:25:44 -08:00
opentext
checktime MORN
2013-09-07 12:30:07 -07:00
iftrue .morn
checktime DAY
2013-09-07 12:30:07 -07:00
iftrue .day
2023-07-31 03:27:53 -07:00
checktime EVE
iftrue .eve
checktime NITE
2013-09-07 12:30:07 -07:00
iftrue .nite
sjump .ok
2013-09-07 12:30:07 -07:00
.morn
farwritetext NurseMornText
2019-11-03 09:48:54 -08:00
promptbutton
sjump .ok
2013-09-07 12:30:07 -07:00
.day
farwritetext NurseDayText
2019-11-03 09:48:54 -08:00
promptbutton
sjump .ok
2013-09-07 12:30:07 -07:00
2023-07-31 03:27:53 -07:00
.eve
farwritetext NurseEveText
promptbutton
sjump .ok
2013-09-07 12:30:07 -07:00
.nite
farwritetext NurseNiteText
2019-11-03 09:48:54 -08:00
promptbutton
sjump .ok
2015-06-26 23:17:10 -07:00
.ok
farwritetext NurseAskHealText
2013-09-07 12:30:07 -07:00
yesorno
2015-06-26 23:17:10 -07:00
iffalse .done
farwritetext NurseTakePokemonText
2013-09-07 12:30:07 -07:00
pause 20
turnobject LAST_TALKED, LEFT
2013-09-07 12:30:07 -07:00
pause 10
special HealParty
playmusic MUSIC_NONE
setval HEALMACHINE_POKECENTER
special HealMachineAnim
2013-09-07 12:30:07 -07:00
pause 30
special RestartMapMusic
turnobject LAST_TALKED, DOWN
2013-09-07 12:30:07 -07:00
pause 10
2015-06-26 23:17:10 -07:00
checkphonecall ; elm already called about pokerus
iftrue .no
2018-01-22 12:40:43 -08:00
checkflag ENGINE_CAUGHT_POKERUS
2015-06-26 23:17:10 -07:00
iftrue .no
special CheckPokerus
2013-09-07 12:30:07 -07:00
iftrue .pokerus
2015-06-26 23:17:10 -07:00
.no
farwritetext NurseReturnPokemonText
2013-09-07 12:30:07 -07:00
pause 20
2015-06-26 23:17:10 -07:00
.done
farwritetext NurseGoodbyeText
2015-06-26 23:17:10 -07:00
turnobject LAST_TALKED, UP
2013-09-07 12:30:07 -07:00
pause 10
turnobject LAST_TALKED, DOWN
2013-09-07 12:30:07 -07:00
pause 10
2015-06-26 23:17:10 -07:00
2015-11-25 07:16:29 -08:00
waitbutton
2013-09-07 12:30:07 -07:00
closetext
end
.pokerus
farwritetext NursePokerusText
2015-11-25 07:16:29 -08:00
waitbutton
2013-09-07 12:30:07 -07:00
closetext
2018-01-22 12:40:43 -08:00
setflag ENGINE_CAUGHT_POKERUS
2013-09-07 12:30:07 -07:00
end
DifficultBookshelfScript:
farjumptext DifficultBookshelfText
2013-09-07 12:30:07 -07:00
PictureBookshelfScript:
farjumptext PictureBookshelfText
2013-09-07 12:30:07 -07:00
MagazineBookshelfScript:
farjumptext MagazineBookshelfText
2013-09-07 12:30:07 -07:00
TeamRocketOathScript:
farjumptext TeamRocketOathText
2013-09-07 12:30:07 -07:00
IncenseBurnerScript:
farjumptext IncenseBurnerText
2013-09-07 12:30:07 -07:00
MerchandiseShelfScript:
farjumptext MerchandiseShelfText
2013-09-07 12:30:07 -07:00
TownMapScript:
2015-12-09 15:25:44 -08:00
opentext
farwritetext LookTownMapText
2015-11-25 07:16:29 -08:00
waitbutton
special OverworldTownMap
2015-11-25 07:16:29 -08:00
closetext
2013-09-07 12:30:07 -07:00
end
WindowScript:
farjumptext WindowText
2013-09-07 12:30:07 -07:00
TVScript:
2015-12-09 15:25:44 -08:00
opentext
farwritetext TVText
2015-11-25 07:16:29 -08:00
waitbutton
2013-09-07 12:30:07 -07:00
closetext
end
HomepageScript:
farjumptext HomepageText
2013-09-07 12:30:07 -07:00
2015-06-23 14:02:58 -07:00
Radio1Script:
2015-12-09 15:25:44 -08:00
opentext
setval MAPRADIO_POKEMON_CHANNEL
special MapRadio
2015-11-25 07:16:29 -08:00
closetext
2013-09-07 12:30:07 -07:00
end
2015-06-23 14:02:58 -07:00
Radio2Script:
; Lucky Channel
2015-12-09 15:25:44 -08:00
opentext
setval MAPRADIO_LUCKY_CHANNEL
special MapRadio
2015-11-25 07:16:29 -08:00
closetext
2013-09-07 12:30:07 -07:00
end
TrashCanScript:
2015-06-23 14:02:58 -07:00
farjumptext TrashCanText
2013-09-07 12:30:07 -07:00
2015-06-24 18:26:24 -07:00
PCScript:
2015-12-09 15:25:44 -08:00
opentext
special PokemonCenterPC
2015-11-25 07:16:29 -08:00
closetext
2013-09-07 12:30:07 -07:00
end
2015-06-23 14:02:58 -07:00
ElevatorButtonScript:
playsound SFX_READ_TEXT_2
2013-09-07 12:30:07 -07:00
pause 15
playsound SFX_ELEVATOR_END
2013-09-07 12:30:07 -07:00
end
2015-06-24 18:26:24 -07:00
StrengthBoulderScript:
farsjump AskStrengthScript
2013-09-07 12:30:07 -07:00
2015-06-24 18:26:24 -07:00
SmashRockScript:
farsjump AskRockSmashScript
2013-09-07 12:30:07 -07:00
PokecenterSignScript:
farjumptext PokecenterSignText
2013-09-07 12:30:07 -07:00
MartSignScript:
2015-06-23 14:02:58 -07:00
farjumptext MartSignText
2013-09-07 12:30:07 -07:00
2015-06-24 18:26:24 -07:00
DayToTextScript:
readvar VAR_WEEKDAY
2018-02-02 18:09:17 -08:00
ifequal MONDAY, .Monday
ifequal TUESDAY, .Tuesday
ifequal WEDNESDAY, .Wednesday
ifequal THURSDAY, .Thursday
ifequal FRIDAY, .Friday
ifequal SATURDAY, .Saturday
getstring STRING_BUFFER_3, .SundayText
2013-09-07 12:30:07 -07:00
end
.Monday:
getstring STRING_BUFFER_3, .MondayText
2013-09-07 12:30:07 -07:00
end
.Tuesday:
getstring STRING_BUFFER_3, .TuesdayText
2013-09-07 12:30:07 -07:00
end
.Wednesday:
getstring STRING_BUFFER_3, .WednesdayText
2013-09-07 12:30:07 -07:00
end
.Thursday:
getstring STRING_BUFFER_3, .ThursdayText
2013-09-07 12:30:07 -07:00
end
.Friday:
getstring STRING_BUFFER_3, .FridayText
2013-09-07 12:30:07 -07:00
end
.Saturday:
getstring STRING_BUFFER_3, .SaturdayText
2013-09-07 12:30:07 -07:00
end
.SundayText:
2013-09-07 12:30:07 -07:00
db "SUNDAY@"
.MondayText:
2013-09-07 12:30:07 -07:00
db "MONDAY@"
.TuesdayText:
2013-09-07 12:30:07 -07:00
db "TUESDAY@"
.WednesdayText:
2013-09-07 12:30:07 -07:00
db "WEDNESDAY@"
.ThursdayText:
2013-09-07 12:30:07 -07:00
db "THURSDAY@"
.FridayText:
2013-09-07 12:30:07 -07:00
db "FRIDAY@"
.SaturdayText:
2013-09-07 12:30:07 -07:00
db "SATURDAY@"
2015-06-24 18:26:24 -07:00
GoldenrodRocketsScript:
2013-09-07 12:30:07 -07:00
end
2015-06-24 18:26:24 -07:00
RadioTowerRocketsScript:
2013-09-07 12:30:07 -07:00
end
2015-06-24 18:26:24 -07:00
BugContestResultsWarpScript:
2015-11-11 20:38:57 -08:00
special ClearBGPalettes
scall BugContestResults_CopyContestantsToResults
applymovement PLAYER, Movement_ContestResults_WalkAfterWarp
2013-09-07 12:30:07 -07:00
2015-06-24 18:26:24 -07:00
BugContestResultsScript:
clearflag ENGINE_BUG_CONTEST_TIMER
clearevent EVENT_CONTEST_OFFICER_HAS_SUN_STONE
clearevent EVENT_CONTEST_OFFICER_HAS_EVERSTONE
clearevent EVENT_CONTEST_OFFICER_HAS_GOLD_BERRY
clearevent EVENT_CONTEST_OFFICER_HAS_BERRY
2015-12-09 15:25:44 -08:00
opentext
farwritetext ContestResults_ReadyToJudgeText
2015-11-25 07:16:29 -08:00
waitbutton
special BugContestJudging
getnum STRING_BUFFER_3
2018-02-02 18:09:17 -08:00
ifequal 1, BugContestResults_FirstPlace
ifequal 2, BugContestResults_SecondPlace
ifequal 3, BugContestResults_ThirdPlace
farwritetext ContestResults_ConsolationPrizeText
2019-11-03 09:48:54 -08:00
promptbutton
2015-11-25 07:16:29 -08:00
waitsfx
2015-11-04 17:20:14 -08:00
verbosegiveitem BERRY
iffalse BugContestResults_NoRoomForBerry
BugContestResults_DidNotWin:
farwritetext ContestResults_DidNotWinText
2019-11-03 09:48:54 -08:00
promptbutton
sjump BugContestResults_FinishUp
2013-09-07 12:30:07 -07:00
BugContestResults_ReturnAfterWinnersPrize:
farwritetext ContestResults_JoinUsNextTimeText
2019-11-03 09:48:54 -08:00
promptbutton
BugContestResults_FinishUp:
checkevent EVENT_LEFT_MONS_WITH_CONTEST_OFFICER
iffalse BugContestResults_DidNotLeaveMons
farwritetext ContestResults_ReturnPartyText
2015-11-25 07:16:29 -08:00
waitbutton
special ContestReturnMons
BugContestResults_DidNotLeaveMons:
special CheckPartyFullAfterContest
2018-02-02 18:09:17 -08:00
ifequal BUGCONTEST_CAUGHT_MON, BugContestResults_CleanUp
ifequal BUGCONTEST_NO_CATCH, BugContestResults_CleanUp
2018-01-11 22:40:20 -08:00
; BUGCONTEST_BOXED_MON
farwritetext ContestResults_PartyFullText
2015-11-25 07:16:29 -08:00
waitbutton
BugContestResults_CleanUp:
2015-11-25 07:16:29 -08:00
closetext
setevent EVENT_BUG_CATCHING_CONTESTANT_1A
setevent EVENT_BUG_CATCHING_CONTESTANT_2A
setevent EVENT_BUG_CATCHING_CONTESTANT_3A
setevent EVENT_BUG_CATCHING_CONTESTANT_4A
setevent EVENT_BUG_CATCHING_CONTESTANT_5A
setevent EVENT_BUG_CATCHING_CONTESTANT_6A
setevent EVENT_BUG_CATCHING_CONTESTANT_7A
setevent EVENT_BUG_CATCHING_CONTESTANT_8A
setevent EVENT_BUG_CATCHING_CONTESTANT_9A
setevent EVENT_BUG_CATCHING_CONTESTANT_10A
setevent EVENT_BUG_CATCHING_CONTESTANT_1B
setevent EVENT_BUG_CATCHING_CONTESTANT_2B
setevent EVENT_BUG_CATCHING_CONTESTANT_3B
setevent EVENT_BUG_CATCHING_CONTESTANT_4B
setevent EVENT_BUG_CATCHING_CONTESTANT_5B
setevent EVENT_BUG_CATCHING_CONTESTANT_6B
setevent EVENT_BUG_CATCHING_CONTESTANT_7B
setevent EVENT_BUG_CATCHING_CONTESTANT_8B
setevent EVENT_BUG_CATCHING_CONTESTANT_9B
setevent EVENT_BUG_CATCHING_CONTESTANT_10B
setflag ENGINE_DAILY_BUG_CONTEST
special PlayMapMusic
2013-09-07 12:30:07 -07:00
end
BugContestResults_FirstPlace:
setevent EVENT_TEMPORARY_UNTIL_MAP_RELOAD_1
getitemname STRING_BUFFER_4, SUN_STONE
farwritetext ContestResults_PlayerWonAPrizeText
2015-11-25 07:16:29 -08:00
waitbutton
2015-11-04 17:20:14 -08:00
verbosegiveitem SUN_STONE
iffalse BugContestResults_NoRoomForSunStone
sjump BugContestResults_ReturnAfterWinnersPrize
2013-09-07 12:30:07 -07:00
BugContestResults_SecondPlace:
getitemname STRING_BUFFER_4, EVERSTONE
farwritetext ContestResults_PlayerWonAPrizeText
2015-11-25 07:16:29 -08:00
waitbutton
2015-11-04 17:20:14 -08:00
verbosegiveitem EVERSTONE
iffalse BugContestResults_NoRoomForEverstone
sjump BugContestResults_ReturnAfterWinnersPrize
2013-09-07 12:30:07 -07:00
BugContestResults_ThirdPlace:
getitemname STRING_BUFFER_4, GOLD_BERRY
farwritetext ContestResults_PlayerWonAPrizeText
2015-11-25 07:16:29 -08:00
waitbutton
2015-11-04 17:20:14 -08:00
verbosegiveitem GOLD_BERRY
iffalse BugContestResults_NoRoomForGoldBerry
sjump BugContestResults_ReturnAfterWinnersPrize
2013-09-07 12:30:07 -07:00
BugContestResults_NoRoomForSunStone:
farwritetext BugContestPrizeNoRoomText
2019-11-03 09:48:54 -08:00
promptbutton
setevent EVENT_CONTEST_OFFICER_HAS_SUN_STONE
sjump BugContestResults_ReturnAfterWinnersPrize
2013-09-07 12:30:07 -07:00
BugContestResults_NoRoomForEverstone:
farwritetext BugContestPrizeNoRoomText
2019-11-03 09:48:54 -08:00
promptbutton
setevent EVENT_CONTEST_OFFICER_HAS_EVERSTONE
sjump BugContestResults_ReturnAfterWinnersPrize
2013-09-07 12:30:07 -07:00
BugContestResults_NoRoomForGoldBerry:
farwritetext BugContestPrizeNoRoomText
2019-11-03 09:48:54 -08:00
promptbutton
setevent EVENT_CONTEST_OFFICER_HAS_GOLD_BERRY
sjump BugContestResults_ReturnAfterWinnersPrize
2013-09-07 12:30:07 -07:00
BugContestResults_NoRoomForBerry:
farwritetext BugContestPrizeNoRoomText
2019-11-03 09:48:54 -08:00
promptbutton
setevent EVENT_CONTEST_OFFICER_HAS_BERRY
sjump BugContestResults_DidNotWin
2013-09-07 12:30:07 -07:00
BugContestResults_CopyContestantsToResults:
checkevent EVENT_BUG_CATCHING_CONTESTANT_1A
2013-09-07 12:30:07 -07:00
iftrue .skip1
clearevent EVENT_BUG_CATCHING_CONTESTANT_1B
2013-09-07 12:30:07 -07:00
.skip1
checkevent EVENT_BUG_CATCHING_CONTESTANT_2A
2013-09-07 12:30:07 -07:00
iftrue .skip2
clearevent EVENT_BUG_CATCHING_CONTESTANT_2B
2013-09-07 12:30:07 -07:00
.skip2
checkevent EVENT_BUG_CATCHING_CONTESTANT_3A
2013-09-07 12:30:07 -07:00
iftrue .skip3
clearevent EVENT_BUG_CATCHING_CONTESTANT_3B
2013-09-07 12:30:07 -07:00
.skip3
checkevent EVENT_BUG_CATCHING_CONTESTANT_4A
2013-09-07 12:30:07 -07:00
iftrue .skip4
clearevent EVENT_BUG_CATCHING_CONTESTANT_4B
2013-09-07 12:30:07 -07:00
.skip4
checkevent EVENT_BUG_CATCHING_CONTESTANT_5A
2013-09-07 12:30:07 -07:00
iftrue .skip5
clearevent EVENT_BUG_CATCHING_CONTESTANT_5B
2013-09-07 12:30:07 -07:00
.skip5
checkevent EVENT_BUG_CATCHING_CONTESTANT_6A
2013-09-07 12:30:07 -07:00
iftrue .skip6
clearevent EVENT_BUG_CATCHING_CONTESTANT_6B
2013-09-07 12:30:07 -07:00
.skip6
checkevent EVENT_BUG_CATCHING_CONTESTANT_7A
2013-09-07 12:30:07 -07:00
iftrue .skip7
clearevent EVENT_BUG_CATCHING_CONTESTANT_7B
2013-09-07 12:30:07 -07:00
.skip7
checkevent EVENT_BUG_CATCHING_CONTESTANT_8A
2013-09-07 12:30:07 -07:00
iftrue .skip8
clearevent EVENT_BUG_CATCHING_CONTESTANT_8B
2013-09-07 12:30:07 -07:00
.skip8
checkevent EVENT_BUG_CATCHING_CONTESTANT_9A
2013-09-07 12:30:07 -07:00
iftrue .skip9
clearevent EVENT_BUG_CATCHING_CONTESTANT_9B
2013-09-07 12:30:07 -07:00
.skip9
checkevent EVENT_BUG_CATCHING_CONTESTANT_10A
2013-09-07 12:30:07 -07:00
iftrue .skip10
clearevent EVENT_BUG_CATCHING_CONTESTANT_10B
2013-09-07 12:30:07 -07:00
.skip10
end
2015-06-24 18:26:24 -07:00
InitializeEventsScript:
setevent EVENT_INITIALIZED_EVENTS
endcallback
2013-09-07 12:30:07 -07:00
2015-06-24 18:26:24 -07:00
AskNumber1MScript:
special RandomPhoneMon
readvar VAR_CALLERID
; ifequal PHONE_SCHOOLBOY_JACK, .Jack
; ifequal PHONE_SAILOR_HUEY, .Huey
2013-09-07 12:30:07 -07:00
end
; .Jack:
; farwritetext JackAskNumber1Text
; end
; .Huey:
; farwritetext HueyAskNumber1Text
; end
2015-06-24 18:26:24 -07:00
AskNumber2MScript:
special RandomPhoneMon
readvar VAR_CALLERID
; ifequal PHONE_SCHOOLBOY_JACK, .Jack
; ifequal PHONE_SAILOR_HUEY, .Huey
2013-09-07 12:30:07 -07:00
end
; .Jack:
; farwritetext JackAskNumber2Text
; end
; .Huey:
; farwritetext HueyAskNumber2Text
; end
2015-06-24 18:26:24 -07:00
RegisteredNumberMScript:
farwritetext RegisteredNumber1Text
playsound SFX_REGISTER_PHONE_NUMBER
2015-11-25 07:16:29 -08:00
waitsfx
2019-11-03 09:48:54 -08:00
promptbutton
2013-09-07 12:30:07 -07:00
end
2015-06-24 18:26:24 -07:00
NumberAcceptedMScript:
readvar VAR_CALLERID
; ifequal PHONE_SCHOOLBOY_JACK, .Jack
; ifequal PHONE_SAILOR_HUEY, .Huey
2013-09-07 12:30:07 -07:00
end
; .Jack:
; farwritetext JackNumberAcceptedText
; waitbutton
; closetext
; end
; .Huey:
; farwritetext HueyNumberAcceptedText
; waitbutton
; closetext
; end
2015-06-24 18:26:24 -07:00
NumberDeclinedMScript:
readvar VAR_CALLERID
; ifequal PHONE_SCHOOLBOY_JACK, .Jack
; ifequal PHONE_SAILOR_HUEY, .Huey
2013-09-07 12:30:07 -07:00
end
; .Jack:
; farwritetext JackNumberDeclinedText
; waitbutton
; closetext
; end
; .Huey:
; farwritetext HueyNumberDeclinedText
; waitbutton
; closetext
; end
2015-06-24 18:26:24 -07:00
PhoneFullMScript:
readvar VAR_CALLERID
; ifequal PHONE_SCHOOLBOY_JACK, .Jack
; ifequal PHONE_SAILOR_HUEY, .Huey
2013-09-07 12:30:07 -07:00
end
; .Jack:
; farwritetext JackPhoneFullText
; waitbutton
; closetext
; end
; .Huey:
; farwritetext HueyPhoneFullText
; waitbutton
; closetext
; end
2015-06-24 18:26:24 -07:00
RematchMScript:
readvar VAR_CALLERID
; ifequal PHONE_SCHOOLBOY_JACK, .Jack
; ifequal PHONE_SAILOR_HUEY, .Huey
2013-09-07 12:30:07 -07:00
end
; .Jack:
; farwritetext JackRematchText
; waitbutton
; closetext
; end
; .Huey:
; farwritetext HueyRematchText
; waitbutton
; closetext
; end
2015-06-24 18:26:24 -07:00
GiftMScript:
readvar VAR_CALLERID
; ifequal PHONE_BIRDKEEPER_JOSE, .Jose
; ifequal PHONE_BUG_CATCHER_WADE, .Wade
2013-09-07 12:30:07 -07:00
end
; .Jose:
; farwritetext JoseGiftText
; promptbutton
; end
; .Wade:
; farwritetext WadeGiftText
; promptbutton
; end
2015-06-24 18:26:24 -07:00
PackFullMScript:
readvar VAR_CALLERID
; ifequal PHONE_SAILOR_HUEY, .Huey
; ifequal PHONE_BIRDKEEPER_JOSE, .Jose
2013-09-07 12:30:07 -07:00
end
; .Huey:
; farwritetext HueyPackFullText
; waitbutton
; closetext
; end
; .Jose:
; farwritetext JosePackFullText
; waitbutton
; closetext
; end
2015-06-24 18:26:24 -07:00
RematchGiftMScript:
2015-12-09 15:25:44 -08:00
opentext
readvar VAR_CALLERID
; ifequal PHONE_SAILOR_HUEY, .Huey
; ifequal PHONE_YOUNGSTER_JOEY, .Joey
2013-09-07 12:30:07 -07:00
end
; .Huey:
; farwritetext HueyRematchGiftText
; promptbutton
; end
; .Joey:
; farwritetext JoeyRematchGiftText
; promptbutton
; end
2015-06-24 18:26:24 -07:00
AskNumber1FScript:
readvar VAR_CALLERID
; ifequal PHONE_POKEFAN_BEVERLY, .Beverly
; ifequal PHONE_COOLTRAINERF_BETH, .Beth
2013-09-07 12:30:07 -07:00
end
; .Beverly:
; farwritetext BeverlyAskNumber1Text
; end
; .Beth:
; farwritetext BethAskNumber1Text
; end
2015-06-24 18:26:24 -07:00
AskNumber2FScript:
readvar VAR_CALLERID
; ifequal PHONE_POKEFAN_BEVERLY, .Beverly
; ifequal PHONE_COOLTRAINERF_BETH, .Beth
2013-09-07 12:30:07 -07:00
end
; .Beverly:
; farwritetext BeverlyAskNumber2Text
; end
; .Beth:
; farwritetext BethAskNumber2Text
; end
2015-06-24 18:26:24 -07:00
RegisteredNumberFScript:
farwritetext RegisteredNumber2Text
playsound SFX_REGISTER_PHONE_NUMBER
2015-11-25 07:16:29 -08:00
waitsfx
2019-11-03 09:48:54 -08:00
promptbutton
2013-09-07 12:30:07 -07:00
end
NumberAcceptedFScript:
readvar VAR_CALLERID
; ifequal PHONE_POKEFAN_BEVERLY, .Beverly
; ifequal PHONE_COOLTRAINERF_BETH, .Beth
2013-09-07 12:30:07 -07:00
end
; .Beverly:
; farwritetext BeverlyNumberAcceptedText
; waitbutton
; closetext
; end
; .Beth:
; farwritetext BethNumberAcceptedText
; waitbutton
; closetext
; end
2015-06-24 18:26:24 -07:00
NumberDeclinedFScript:
readvar VAR_CALLERID
; ifequal PHONE_POKEFAN_BEVERLY, .Beverly
; ifequal PHONE_COOLTRAINERF_BETH, .Beth
2013-09-07 12:30:07 -07:00
end
; .Beverly:
; farwritetext BeverlyNumberDeclinedText
; waitbutton
; closetext
; end
; .Beth:
; farwritetext BethNumberDeclinedText
; waitbutton
; closetext
; end
2015-06-24 18:26:24 -07:00
PhoneFullFScript:
readvar VAR_CALLERID
; ifequal PHONE_POKEFAN_BEVERLY, .Beverly
; ifequal PHONE_COOLTRAINERF_BETH, .Beth
2013-09-07 12:30:07 -07:00
end
; .Beverly:
; farwritetext BeverlyPhoneFullText
; waitbutton
; closetext
; end
; .Beth:
; farwritetext BethPhoneFullText
; waitbutton
; closetext
; end
2015-06-24 18:26:24 -07:00
RematchFScript:
readvar VAR_CALLERID
; ifequal PHONE_COOLTRAINERF_BETH, .Beth
; ifequal PHONE_COOLTRAINERF_REENA, .Reena
2013-09-07 12:30:07 -07:00
end
; .Beth:
; farwritetext BethRematchText
; waitbutton
; closetext
; end
; .Reena:
; farwritetext ReenaRematchText
; waitbutton
; closetext
; end
2015-06-24 18:26:24 -07:00
GiftFScript:
readvar VAR_CALLERID
; ifequal PHONE_POKEFAN_BEVERLY, .Beverly
; ifequal PHONE_PICNICKER_GINA, .Gina
2013-09-07 12:30:07 -07:00
end
; .Beverly:
; farwritetext BeverlyGiftText
; promptbutton
; end
; .Gina:
; farwritetext GinaGiftText
; promptbutton
; end
2015-06-24 18:26:24 -07:00
PackFullFScript:
readvar VAR_CALLERID
; ifequal PHONE_POKEFAN_BEVERLY, .Beverly
; ifequal PHONE_PICNICKER_GINA, .Gina
2013-09-07 12:30:07 -07:00
end
; .Beverly:
; farwritetext BeverlyPackFullText
; waitbutton
; closetext
; end
; .Gina:
; farwritetext GinaPackFullText
; waitbutton
; closetext
; end
2015-06-24 18:26:24 -07:00
RematchGiftFScript:
readvar VAR_CALLERID
; ifequal PHONE_PICNICKER_ERIN, .Erin
2013-09-07 12:30:07 -07:00
end
; .Erin:
; opentext
; farwritetext ErinRematchGiftText
; promptbutton
; end
2015-06-24 18:26:24 -07:00
GymStatue1Script:
getcurlandmarkname STRING_BUFFER_3
2015-12-09 15:25:44 -08:00
opentext
farwritetext GymStatue_CityGymText
2015-11-25 07:16:29 -08:00
waitbutton
2013-09-07 12:30:07 -07:00
closetext
end
2015-06-24 18:26:24 -07:00
GymStatue2Script:
getcurlandmarkname STRING_BUFFER_3
2015-12-09 15:25:44 -08:00
opentext
farwritetext GymStatue_CityGymText
2019-11-03 09:48:54 -08:00
promptbutton
farwritetext GymStatue_WinningTrainersText
2015-11-25 07:16:29 -08:00
waitbutton
2013-09-07 12:30:07 -07:00
closetext
end
ReceiveItemScript:
2015-11-25 07:16:29 -08:00
waitsfx
farwritetext ReceivedItemText
playsound SFX_ITEM
2015-11-25 07:16:29 -08:00
waitsfx
2013-09-07 12:30:07 -07:00
end
ReceiveTogepiEggScript:
2015-11-25 07:16:29 -08:00
waitsfx
farwritetext ReceivedItemText
playsound SFX_GET_EGG
2015-11-25 07:16:29 -08:00
waitsfx
2013-09-07 12:30:07 -07:00
end
GameCornerChipVendorScript:
2013-09-07 12:30:07 -07:00
faceplayer
2015-12-09 15:25:44 -08:00
opentext
farwritetext ChipVendor_WelcomeText
2019-11-03 09:48:54 -08:00
promptbutton
checkitem CHIP_CASE
iftrue ChipVendor_IntroScript
farwritetext ChipVendor_NoChipCaseText
2015-11-25 07:16:29 -08:00
waitbutton
2013-09-07 12:30:07 -07:00
closetext
end
ChipVendor_IntroScript:
farwritetext ChipVendor_IntroText
.loop
special DisplayMoneyAndChipBalance
loadmenu .MenuHeader
2015-12-15 15:59:49 -08:00
verticalmenu
closewindow
2018-02-02 18:09:17 -08:00
ifequal 1, .Buy50
ifequal 2, .Buy500
sjump .Cancel
2013-09-07 12:30:07 -07:00
.Buy50:
checkchips MAX_CHIPS - 50
ifequal HAVE_MORE, .ChipCaseFull
2018-01-11 22:40:20 -08:00
checkmoney YOUR_MONEY, 1000
2018-02-02 18:09:17 -08:00
ifequal HAVE_LESS, .NotEnoughMoney
givechips 50
2018-01-11 22:40:20 -08:00
takemoney YOUR_MONEY, 1000
2015-11-25 07:16:29 -08:00
waitsfx
playsound SFX_TRANSACTION
farwritetext ChipVendor_Buy50ChipsText
2015-11-25 07:16:29 -08:00
waitbutton
sjump .loop
2013-09-07 12:30:07 -07:00
.Buy500:
checkchips MAX_CHIPS - 500
ifequal HAVE_MORE, .ChipCaseFull
2018-01-11 22:40:20 -08:00
checkmoney YOUR_MONEY, 10000
2018-02-02 18:09:17 -08:00
ifequal HAVE_LESS, .NotEnoughMoney
givechips 500
2018-01-11 22:40:20 -08:00
takemoney YOUR_MONEY, 10000
2015-11-25 07:16:29 -08:00
waitsfx
playsound SFX_TRANSACTION
farwritetext ChipVendor_Buy500ChipsText
2015-11-25 07:16:29 -08:00
waitbutton
sjump .loop
2013-09-07 12:30:07 -07:00
.NotEnoughMoney:
farwritetext ChipVendor_NotEnoughMoneyText
2015-11-25 07:16:29 -08:00
waitbutton
2013-09-07 12:30:07 -07:00
closetext
end
.ChipCaseFull:
farwritetext ChipVendor_ChipCaseFullText
2015-11-25 07:16:29 -08:00
waitbutton
2013-09-07 12:30:07 -07:00
closetext
end
.Cancel:
farwritetext ChipVendor_CancelText
2015-11-25 07:16:29 -08:00
waitbutton
2013-09-07 12:30:07 -07:00
closetext
end
.MenuHeader:
db MENU_BACKUP_TILES ; flags
menu_coords 0, 4, 15, TEXTBOX_Y - 1
dw .MenuData
2013-09-07 12:30:07 -07:00
db 1 ; default option
.MenuData:
db STATICMENU_CURSOR ; flags
2013-09-07 12:30:07 -07:00
db 3 ; items
db " 50 : ¥1000@"
db "500 : ¥10000@"
db "CANCEL@"
2015-06-24 18:26:24 -07:00
HappinessCheckScript:
2013-09-07 12:30:07 -07:00
faceplayer
2015-12-09 15:25:44 -08:00
opentext
special GetFirstPokemonHappiness
2018-02-02 18:09:17 -08:00
ifless 50, .Unhappy
ifless 150, .KindaHappy
2015-06-24 18:26:24 -07:00
farwritetext HappinessText3
2015-11-25 07:16:29 -08:00
waitbutton
2013-09-07 12:30:07 -07:00
closetext
end
.KindaHappy:
2015-06-24 18:26:24 -07:00
farwritetext HappinessText2
2015-11-25 07:16:29 -08:00
waitbutton
2013-09-07 12:30:07 -07:00
closetext
end
.Unhappy:
2015-06-24 18:26:24 -07:00
farwritetext HappinessText1
2015-11-25 07:16:29 -08:00
waitbutton
2013-09-07 12:30:07 -07:00
closetext
end
2018-06-24 07:09:41 -07:00
Movement_ContestResults_WalkAfterWarp:
2016-05-14 10:46:14 -07:00
step RIGHT
step DOWN
turn_head UP
2013-09-07 12:30:07 -07:00
step_end