2018-06-24 16:09:41 +02:00
|
|
|
GiveParkBalls:
|
2017-12-15 20:10:54 -05:00
|
|
|
xor a
|
|
|
|
ld [wContestMon], a
|
2021-03-21 18:14:31 -04:00
|
|
|
ld a, BUG_CONTEST_BALLS
|
2017-12-15 20:10:54 -05:00
|
|
|
ld [wParkBallsRemaining], a
|
2017-12-24 12:47:30 -05:00
|
|
|
farcall StartBugContestTimer
|
2017-12-15 20:10:54 -05:00
|
|
|
ret
|
|
|
|
|
2018-06-25 02:10:37 +02:00
|
|
|
BugCatchingContestBattleScript::
|
2019-03-10 15:31:59 -04:00
|
|
|
loadvar VAR_BATTLETYPE, BATTLETYPE_CONTEST
|
2017-12-15 20:10:54 -05:00
|
|
|
randomwildmon
|
|
|
|
startbattle
|
|
|
|
reloadmapafterbattle
|
2019-03-10 15:31:59 -04:00
|
|
|
readmem wParkBallsRemaining
|
2017-12-15 20:10:54 -05:00
|
|
|
iffalse BugCatchingContestOutOfBallsScript
|
|
|
|
end
|
|
|
|
|
2018-06-25 02:10:37 +02:00
|
|
|
BugCatchingContestOverScript::
|
2017-12-15 20:10:54 -05:00
|
|
|
playsound SFX_ELEVATOR_END
|
|
|
|
opentext
|
2019-10-20 22:24:17 +00:00
|
|
|
writetext BugCatchingContestTimeUpText
|
2017-12-15 20:10:54 -05:00
|
|
|
waitbutton
|
2019-03-10 16:39:31 -04:00
|
|
|
sjump BugCatchingContestReturnToGateScript
|
2017-12-15 20:10:54 -05:00
|
|
|
|
2018-06-25 02:10:37 +02:00
|
|
|
BugCatchingContestOutOfBallsScript:
|
2017-12-15 20:10:54 -05:00
|
|
|
playsound SFX_ELEVATOR_END
|
|
|
|
opentext
|
2019-10-20 22:24:17 +00:00
|
|
|
writetext BugCatchingContestIsOverText
|
2017-12-15 20:10:54 -05:00
|
|
|
waitbutton
|
|
|
|
|
2018-06-25 02:10:37 +02:00
|
|
|
BugCatchingContestReturnToGateScript:
|
2017-12-15 20:10:54 -05:00
|
|
|
closetext
|
2020-06-10 16:44:16 -04:00
|
|
|
jumpstd BugContestResultsWarpScript
|
2017-12-15 20:10:54 -05:00
|
|
|
|
2019-10-20 22:24:17 +00:00
|
|
|
BugCatchingContestTimeUpText:
|
|
|
|
text_far _BugCatchingContestTimeUpText
|
2018-11-17 13:33:03 -05:00
|
|
|
text_end
|
2017-12-15 20:10:54 -05:00
|
|
|
|
2019-10-20 22:24:17 +00:00
|
|
|
BugCatchingContestIsOverText:
|
|
|
|
text_far _BugCatchingContestIsOverText
|
2018-11-17 13:33:03 -05:00
|
|
|
text_end
|