2018-06-24 14:09:41 +00:00
|
|
|
GiveParkBalls:
|
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
|
|
|
|
|
2018-06-25 00:10:37 +00:00
|
|
|
BugCatchingContestBattleScript::
|
2017-12-16 01:10:54 +00:00
|
|
|
writecode VAR_BATTLETYPE, BATTLETYPE_CONTEST
|
|
|
|
randomwildmon
|
|
|
|
startbattle
|
|
|
|
reloadmapafterbattle
|
|
|
|
copybytetovar wParkBallsRemaining
|
|
|
|
iffalse BugCatchingContestOutOfBallsScript
|
|
|
|
end
|
|
|
|
|
2018-06-25 00:10:37 +00:00
|
|
|
BugCatchingContestOverScript::
|
2017-12-16 01:10:54 +00:00
|
|
|
playsound SFX_ELEVATOR_END
|
|
|
|
opentext
|
|
|
|
writetext BugCatchingContestText_BeeepTimesUp
|
|
|
|
waitbutton
|
|
|
|
jump BugCatchingContestReturnToGateScript
|
|
|
|
|
2018-06-25 00:10:37 +00:00
|
|
|
BugCatchingContestOutOfBallsScript:
|
2017-12-16 01:10:54 +00:00
|
|
|
playsound SFX_ELEVATOR_END
|
|
|
|
opentext
|
|
|
|
writetext BugCatchingContestText_ContestIsOver
|
|
|
|
waitbutton
|
|
|
|
|
2018-06-25 00:10:37 +00:00
|
|
|
BugCatchingContestReturnToGateScript:
|
2017-12-16 01:10:54 +00:00
|
|
|
closetext
|
|
|
|
jumpstd bugcontestresultswarp
|
|
|
|
|
2018-06-25 00:10:37 +00:00
|
|
|
BugCatchingContestText_BeeepTimesUp:
|
2017-12-16 01:10:54 +00:00
|
|
|
; ANNOUNCER: BEEEP! Time's up!
|
|
|
|
text_jump UnknownText_0x1bd2ca
|
|
|
|
db "@"
|
|
|
|
|
2018-06-25 00:10:37 +00:00
|
|
|
BugCatchingContestText_ContestIsOver:
|
2017-12-16 01:10:54 +00:00
|
|
|
; ANNOUNCER: The Contest is over!
|
|
|
|
text_jump UnknownText_0x1bd2e7
|
|
|
|
db "@"
|