mirror of
https://github.com/thornAvery/jep-hack.git
synced 2026-02-07 16:45:24 +13:00
First Commit
Upload literally everything from the pokecrystal16 expand-move-ID branch
This commit is contained in:
commit
2f8a41f833
4618 changed files with 480386 additions and 0 deletions
113
engine/phone/scripts/wade.asm
Normal file
113
engine/phone/scripts/wade.asm
Normal file
|
|
@ -0,0 +1,113 @@
|
|||
WadePhoneCalleeScript:
|
||||
gettrainername STRING_BUFFER_3, BUG_CATCHER, WADE1
|
||||
checkflag ENGINE_WADE_READY_FOR_REMATCH
|
||||
iftrue .WantsBattle
|
||||
farscall PhoneScript_AnswerPhone_Male
|
||||
checkflag ENGINE_WADE_TUESDAY_NIGHT
|
||||
iftrue .NotTuesday
|
||||
checkflag ENGINE_WADE_HAS_ITEM
|
||||
iftrue .HasItem
|
||||
readvar VAR_WEEKDAY
|
||||
ifnotequal TUESDAY, .NotTuesday
|
||||
checktime NITE
|
||||
iftrue WadeTuesdayNight
|
||||
|
||||
.NotTuesday:
|
||||
farscall PhoneScript_Random2
|
||||
ifequal 0, .NoContest
|
||||
checkflag ENGINE_DAILY_BUG_CONTEST
|
||||
iftrue .NoContest
|
||||
readvar VAR_WEEKDAY
|
||||
ifequal TUESDAY, .ContestToday
|
||||
ifequal THURSDAY, .ContestToday
|
||||
ifequal SATURDAY, .ContestToday
|
||||
|
||||
.NoContest:
|
||||
farsjump WadeNoBerriesScript
|
||||
|
||||
.ContestToday:
|
||||
farsjump PhoneScript_BugCatchingContest
|
||||
|
||||
.WantsBattle:
|
||||
getlandmarkname STRING_BUFFER_5, LANDMARK_ROUTE_31
|
||||
farsjump WadeQuickBattleScript
|
||||
|
||||
.HasItem:
|
||||
getlandmarkname STRING_BUFFER_5, LANDMARK_ROUTE_31
|
||||
farsjump WadeComeQuickScript
|
||||
|
||||
WadePhoneCallerScript:
|
||||
gettrainername STRING_BUFFER_3, BUG_CATCHER, WADE1
|
||||
farscall PhoneScript_GreetPhone_Male
|
||||
farscall PhoneScript_Random2
|
||||
ifequal 0, .NoContest
|
||||
checkflag ENGINE_DAILY_BUG_CONTEST
|
||||
iftrue .NoContest
|
||||
readvar VAR_WEEKDAY
|
||||
ifequal TUESDAY, .ContestToday
|
||||
ifequal THURSDAY, .ContestToday
|
||||
ifequal SATURDAY, .ContestToday
|
||||
|
||||
.NoContest:
|
||||
checkflag ENGINE_WADE_READY_FOR_REMATCH
|
||||
iftrue .next
|
||||
checkflag ENGINE_WADE_TUESDAY_NIGHT
|
||||
iftrue .next
|
||||
checkflag ENGINE_WADE_HAS_ITEM
|
||||
iftrue .next
|
||||
farscall PhoneScript_Random2
|
||||
ifequal 0, WadeHasItem2
|
||||
checkflag ENGINE_FLYPOINT_GOLDENROD
|
||||
iffalse .next
|
||||
farscall PhoneScript_Random2
|
||||
ifequal 0, WadeWantsBattle2
|
||||
|
||||
.next:
|
||||
farscall PhoneScript_Random3
|
||||
ifequal 0, WadeFoundRare
|
||||
farsjump Phone_GenericCall_Male
|
||||
|
||||
.ContestToday:
|
||||
farsjump PhoneScript_BugCatchingContest
|
||||
|
||||
WadeTuesdayNight:
|
||||
setflag ENGINE_WADE_TUESDAY_NIGHT
|
||||
|
||||
WadeWantsBattle2:
|
||||
getlandmarkname STRING_BUFFER_5, LANDMARK_ROUTE_31
|
||||
setflag ENGINE_WADE_READY_FOR_REMATCH
|
||||
farsjump PhoneScript_WantsToBattle_Male
|
||||
|
||||
WadeFoundRare:
|
||||
farsjump Phone_CheckIfUnseenRare_Male
|
||||
|
||||
WadeHasItem2:
|
||||
setflag ENGINE_WADE_HAS_ITEM
|
||||
getlandmarkname STRING_BUFFER_5, LANDMARK_ROUTE_31
|
||||
clearevent EVENT_WADE_HAS_BERRY
|
||||
clearevent EVENT_WADE_HAS_PSNCUREBERRY
|
||||
clearevent EVENT_WADE_HAS_PRZCUREBERRY
|
||||
clearevent EVENT_WADE_HAS_BITTER_BERRY
|
||||
random 4
|
||||
ifequal 0, .Berry
|
||||
ifequal 1, .PsnCureBerry
|
||||
ifequal 2, .PrzCureBerry
|
||||
ifequal 3, .Bitterberry
|
||||
|
||||
.Berry:
|
||||
setevent EVENT_WADE_HAS_BERRY
|
||||
sjump .FoundBerry
|
||||
|
||||
.PsnCureBerry:
|
||||
setevent EVENT_WADE_HAS_PSNCUREBERRY
|
||||
sjump .FoundBerry
|
||||
|
||||
.PrzCureBerry:
|
||||
setevent EVENT_WADE_HAS_PRZCUREBERRY
|
||||
sjump .FoundBerry
|
||||
|
||||
.Bitterberry:
|
||||
setevent EVENT_WADE_HAS_BITTER_BERRY
|
||||
|
||||
.FoundBerry:
|
||||
farsjump PhoneScript_FoundItem_Male
|
||||
Loading…
Add table
Add a link
Reference in a new issue