2018-01-24 16:17:05 +00:00
|
|
|
GiveParkBalls: ; 135db
|
2017-12-16 01:10:54 +00:00
|
|
|
xor a
|
|
|
|
ld [wContestMon], a
|
|
|
|
ld a, 20
|
|
|
|
ld [wParkBallsRemaining], a
|
2017-12-24 17:47:30 +00:00
|
|
|
farcall StartBugContestTimer
|
2017-12-16 01:10:54 +00:00
|
|
|
ret
|
|
|
|
|
|
|
|
BugCatchingContestBattleScript:: ; 0x135eb
|
|
|
|
writecode VAR_BATTLETYPE, BATTLETYPE_CONTEST
|
|
|
|
randomwildmon
|
|
|
|
startbattle
|
|
|
|
reloadmapafterbattle
|
|
|
|
copybytetovar wParkBallsRemaining
|
|
|
|
iffalse BugCatchingContestOutOfBallsScript
|
|
|
|
end
|
|
|
|
|
|
|
|
BugCatchingContestOverScript:: ; 0x135f8
|
|
|
|
playsound SFX_ELEVATOR_END
|
|
|
|
opentext
|
|
|
|
writetext BugCatchingContestText_BeeepTimesUp
|
|
|
|
waitbutton
|
|
|
|
jump BugCatchingContestReturnToGateScript
|
|
|
|
|
|
|
|
BugCatchingContestOutOfBallsScript: ; 0x13603
|
|
|
|
playsound SFX_ELEVATOR_END
|
|
|
|
opentext
|
|
|
|
writetext BugCatchingContestText_ContestIsOver
|
|
|
|
waitbutton
|
|
|
|
|
|
|
|
BugCatchingContestReturnToGateScript: ; 0x1360b
|
|
|
|
closetext
|
|
|
|
jumpstd bugcontestresultswarp
|
|
|
|
|
|
|
|
BugCatchingContestText_BeeepTimesUp: ; 0x1360f
|
|
|
|
; ANNOUNCER: BEEEP! Time's up!
|
|
|
|
text_jump UnknownText_0x1bd2ca
|
|
|
|
db "@"
|
|
|
|
|
|
|
|
BugCatchingContestText_ContestIsOver: ; 0x13614
|
|
|
|
; ANNOUNCER: The Contest is over!
|
|
|
|
text_jump UnknownText_0x1bd2e7
|
|
|
|
db "@"
|