pokecrystal-board/engine/events/bug_contest/contest.asm

42 lines
880 B
NASM
Raw Normal View History

2018-06-24 07:09:41 -07:00
GiveParkBalls:
xor a
ld [wContestMon], a
ld a, BUG_CONTEST_BALLS
ld [wParkBallsRemaining], a
2017-12-24 09:47:30 -08:00
farcall StartBugContestTimer
ret
BugCatchingContestBattleScript::
loadvar VAR_BATTLETYPE, BATTLETYPE_CONTEST
randomwildmon
startbattle
reloadmapafterbattle
readmem wParkBallsRemaining
iffalse BugCatchingContestOutOfBallsScript
end
BugCatchingContestOverScript::
playsound SFX_ELEVATOR_END
opentext
writetext BugCatchingContestTimeUpText
waitbutton
sjump BugCatchingContestReturnToGateScript
BugCatchingContestOutOfBallsScript:
playsound SFX_ELEVATOR_END
opentext
writetext BugCatchingContestIsOverText
waitbutton
BugCatchingContestReturnToGateScript:
closetext
jumpstd BugContestResultsWarpScript
BugCatchingContestTimeUpText:
text_far _BugCatchingContestTimeUpText
text_end
BugCatchingContestIsOverText:
text_far _BugCatchingContestIsOverText
text_end