pokecrystal-board/maps/Route35NationalParkGate.asm

463 lines
9.3 KiB
NASM
Raw Normal View History

2015-11-26 21:22:14 -08:00
const_value set 2
const ROUTE35NATIONALPARKGATE_OFFICER1
const ROUTE35NATIONALPARKGATE_YOUNGSTER
const ROUTE35NATIONALPARKGATE_OFFICER2
Route35NationalParkGate_MapScripts:
.SceneScripts:
db 3
scene_script .DummyScene0
scene_script .DummyScene1
scene_script .LeaveContestEarly
.MapCallbacks:
db 2
callback MAPCALLBACK_NEWMAP, .CheckIfContestRunning
callback MAPCALLBACK_OBJECTS, .CheckIfContestAvailable
.DummyScene0:
end
.DummyScene1:
end
.LeaveContestEarly:
priorityjump .LeavingContestEarly
end
.CheckIfContestRunning:
2015-07-10 05:08:03 -07:00
checkflag ENGINE_BUG_CONTEST_TIMER
iftrue .BugContestIsRunning
setscene 0
return
.BugContestIsRunning:
setscene 2
return
.CheckIfContestAvailable:
checkcode VAR_WEEKDAY
if_equal TUESDAY, .SetContestOfficer
if_equal THURSDAY, .SetContestOfficer
if_equal SATURDAY, .SetContestOfficer
2015-07-10 05:08:03 -07:00
checkflag ENGINE_BUG_CONTEST_TIMER
iftrue .BugContestIsRunning
2015-11-26 21:22:14 -08:00
disappear ROUTE35NATIONALPARKGATE_OFFICER1
appear ROUTE35NATIONALPARKGATE_YOUNGSTER
appear ROUTE35NATIONALPARKGATE_OFFICER2
return
.SetContestOfficer:
2015-11-26 21:22:14 -08:00
appear ROUTE35NATIONALPARKGATE_OFFICER1
disappear ROUTE35NATIONALPARKGATE_YOUNGSTER
disappear ROUTE35NATIONALPARKGATE_OFFICER2
return
.LeavingContestEarly:
applymovement PLAYER, MovementData_0x6a2e2
2015-11-26 21:22:14 -08:00
spriteface ROUTE35NATIONALPARKGATE_OFFICER1, RIGHT
2015-12-09 15:25:44 -08:00
opentext
checkcode VAR_CONTESTMINUTES
2018-01-11 22:40:20 -08:00
addvar 1
vartomem MEM_BUFFER_0
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x6a79a
yesorno
iffalse .GoBackToContest
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x6a7db
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-06-24 18:26:24 -07:00
jumpstd bugcontestresultswarp
.GoBackToContest:
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x6a823
2015-11-25 07:16:29 -08:00
waitbutton
closetext
scall Route35NationalParkGate_EnterContest
playsound SFX_ENTER_DOOR
2018-01-02 08:13:57 -08:00
special Special_FadeOutPalettes
2015-11-25 07:16:29 -08:00
waitsfx
warpfacing UP, NATIONAL_PARK_BUG_CONTEST, 10, 47
end
2015-07-10 01:45:35 -07:00
OfficerScript_0x6a204:
checkcode VAR_WEEKDAY
if_equal SUNDAY, Route35NationalParkGate_NoContestToday
if_equal MONDAY, Route35NationalParkGate_NoContestToday
if_equal WEDNESDAY, Route35NationalParkGate_NoContestToday
if_equal FRIDAY, Route35NationalParkGate_NoContestToday
faceplayer
2015-12-09 15:25:44 -08:00
opentext
checkflag ENGINE_DAILY_BUG_CONTEST
iftrue Route35NationalParkGate_ContestIsOver
scall Route35NationalParkGate_GetDayOfWeek
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x6a2eb
yesorno
iffalse Route35NationalParkGate_DeclinedToParticipate
checkcode VAR_PARTYCOUNT
2018-01-11 22:40:20 -08:00
if_greater_than 1, Route35NationalParkGate_LeaveTheRestBehind
2018-01-02 08:13:57 -08:00
special Special_ContestDropOffMons
clearevent EVENT_LEFT_MONS_WITH_CONTEST_OFFICER
Route35NationalParkGate_OkayToProceed:
2015-07-10 05:08:03 -07:00
setflag ENGINE_BUG_CONTEST_TIMER
special PlayMapMusic
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x6a39d
2015-11-29 19:29:45 -08:00
buttonsound
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x6a3c7
playsound SFX_ITEM
2015-11-25 07:16:29 -08:00
waitsfx
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x6a3e2
2015-11-25 07:16:29 -08:00
waitbutton
closetext
special Special_GiveParkBalls
scall Route35NationalParkGate_EnterContest
playsound SFX_ENTER_DOOR
2018-01-02 08:13:57 -08:00
special Special_FadeOutPalettes
2015-11-25 07:16:29 -08:00
waitsfx
special Special_SelectRandomBugContestContestants
warpfacing UP, NATIONAL_PARK_BUG_CONTEST, 10, 47
end
Route35NationalParkGate_EnterContest:
checkcode VAR_FACING
if_equal LEFT, Route35NationalParkGate_FacingLeft
applymovement PLAYER, MovementData_0x6a2e5
end
Route35NationalParkGate_FacingLeft:
applymovement PLAYER, MovementData_0x6a2e9
end
Route35NationalParkGate_LeaveTheRestBehind:
checkcode VAR_PARTYCOUNT
2018-01-11 22:40:20 -08:00
if_less_than PARTY_LENGTH, Route35NationalParkGate_LessThanFullParty
checkcode VAR_BOXSPACE
if_equal 0, Route35NationalParkGate_NoRoomInBox
2014-04-30 02:40:22 -07:00
Route35NationalParkGate_LessThanFullParty: ; 6a27d
2018-01-02 08:13:57 -08:00
special Special_CheckFirstMonIsEgg
2018-01-11 22:40:20 -08:00
if_equal TRUE, Route35NationalParkGate_FirstMonIsEgg
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x6a4c6
yesorno
iffalse Route35NationalParkGate_DeclinedToLeaveMonsBehind
2018-01-02 08:13:57 -08:00
special Special_ContestDropOffMons
iftrue Route35NationalParkGate_FirstMonIsFainted
setevent EVENT_LEFT_MONS_WITH_CONTEST_OFFICER
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x6a537
2015-11-29 19:29:45 -08:00
buttonsound
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x6a56b
playsound SFX_GOT_SAFARI_BALLS
2015-11-25 07:16:29 -08:00
waitsfx
2015-11-29 19:29:45 -08:00
buttonsound
jump Route35NationalParkGate_OkayToProceed
Route35NationalParkGate_DeclinedToParticipate:
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x6a5dc
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
Route35NationalParkGate_DeclinedToLeaveMonsBehind:
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x6a597
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
Route35NationalParkGate_FirstMonIsFainted:
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x6a608
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
Route35NationalParkGate_NoRoomInBox:
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x6a67c
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
Route35NationalParkGate_FirstMonIsEgg:
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x6a71f
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
Route35NationalParkGate_ContestIsOver:
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x6a84f
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
Route35NationalParkGate_NoContestToday:
jumptextfaceplayer UnknownText_0x6a894
2015-07-10 01:45:35 -07:00
OfficerScript_0x6a2ca:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
checkflag ENGINE_DAILY_BUG_CONTEST
iftrue Route35NationalParkGate_ContestIsOver
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x6a894
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2017-12-17 16:48:04 -08:00
Route35NationalParkGateYoungsterScript:
jumptextfaceplayer Route35NationalParkGateYoungsterText
MapRoute36NationalParkGateSignpost0Script:
jumptext UnknownText_0x6a90e
Route35NationalParkGate_GetDayOfWeek:
2015-06-24 18:26:24 -07:00
jumpstd daytotext
end
2015-07-10 01:45:35 -07:00
MovementData_0x6a2e2:
2016-05-14 10:46:14 -07:00
step DOWN
turn_head LEFT
step_end
2015-07-10 01:45:35 -07:00
MovementData_0x6a2e5:
2016-05-14 10:46:14 -07:00
step RIGHT
step UP
step UP
step_end
2015-07-10 01:45:35 -07:00
MovementData_0x6a2e9:
2016-05-14 10:46:14 -07:00
step UP
step_end
2015-07-10 01:45:35 -07:00
UnknownText_0x6a2eb:
text "Today's @"
2015-02-10 15:37:24 -08:00
text_from_ram StringBuffer3
text "."
line "That means the"
para "Bug-Catching Con-"
line "test is on today."
para "The rules are sim-"
line "ple."
para "Using one of your"
line "#MON, catch a"
para "bug #MON to be"
line "judged."
para "Would you like to"
line "give it a try?"
done
2015-07-10 01:45:35 -07:00
UnknownText_0x6a39d:
text "Here are the PARK"
line "BALLS for the"
cont "Contest."
done
2015-07-10 01:45:35 -07:00
UnknownText_0x6a3c7:
text "<PLAYER> received"
line "20 PARK BALLS."
done
2015-07-10 01:45:35 -07:00
UnknownText_0x6a3e2:
text "The person who"
line "gets the strong-"
cont "est bug #MON"
cont "is the winner."
para "You have 20"
line "minutes."
para "If you run out of"
line "PARK BALLS, you're"
cont "done."
para "You can keep the"
line "last #MON you"
cont "catch as your own."
para "Go out and catch"
line "the strongest bug"
para "#MON you can"
line "find!"
done
2015-07-10 01:45:35 -07:00
UnknownText_0x6a4c6:
text "Uh-oh…"
para "You have more than"
line "one #MON."
para "You'll have to use"
line "@"
2015-02-10 15:37:24 -08:00
text_from_ram StringBuffer3
text ", the"
para "first #MON in"
line "your party."
para "Is that OK with"
line "you?"
done
2015-07-10 01:45:35 -07:00
UnknownText_0x6a537:
text "Fine, we'll hold"
line "your other #MON"
cont "while you compete."
done
2015-07-10 01:45:35 -07:00
UnknownText_0x6a56b:
text "<PLAYER>'s #MON"
line "were left with the"
cont "CONTEST HELPER."
done
2015-07-10 01:45:35 -07:00
UnknownText_0x6a597:
text "Please choose the"
line "#MON to be used"
para "in the Contest,"
line "then come see me."
done
2015-07-10 01:45:35 -07:00
UnknownText_0x6a5dc:
text "OK. We hope you'll"
line "take part in the"
cont "future."
done
2015-07-10 01:45:35 -07:00
UnknownText_0x6a608:
text "Uh-oh…"
line "The first #MON"
para "in your party"
line "can't battle."
para "Please switch it"
line "with the #MON"
para "you want to use,"
line "then come see me."
done
2015-07-10 01:45:35 -07:00
UnknownText_0x6a67c:
text "Uh-oh…"
line "Both your party"
para "and your PC BOX"
line "are full."
para "You have no room"
line "to put the bug"
cont "#MON you catch."
para "Please make room"
line "in your party or"
para "your PC BOX, then"
line "come see me."
done
2015-07-10 01:45:35 -07:00
UnknownText_0x6a71f:
text "Uh-oh…"
line "You have an EGG as"
para "the first #MON"
line "in your party."
para "Please switch it"
line "with the #MON"
para "you want to use,"
line "then come see me."
done
2015-07-10 01:45:35 -07:00
UnknownText_0x6a79a:
text "You still have @"
2015-02-10 15:37:24 -08:00
text_from_ram StringBuffer3
text_start
line "minute(s) left."
para "Do you want to"
line "finish now?"
done
2015-07-10 01:45:35 -07:00
UnknownText_0x6a7db:
text "OK. Please wait at"
line "the North Gate for"
para "the announcement"
line "of the winners."
done
2015-07-10 01:45:35 -07:00
UnknownText_0x6a823:
text "OK. Please get"
line "back outside and"
cont "finish up."
done
2015-07-10 01:45:35 -07:00
UnknownText_0x6a84f:
text "Today's Contest is"
line "over. We hope you"
para "will participate"
line "in the future."
done
2015-07-10 01:45:35 -07:00
UnknownText_0x6a894:
text "We hold Contests"
line "regularly in the"
para "PARK. You should"
line "give it a shot."
done
2017-12-17 16:48:04 -08:00
Route35NationalParkGateYoungsterText:
text "When is the next"
line "Bug-Catching Con-"
cont "test going to be?"
done
2015-07-10 01:45:35 -07:00
UnknownText_0x6a90e:
text "The Bug-Catching"
line "Contest is held on"
para "Tuesday, Thursday"
line "and Saturday."
para "Not only do you"
line "earn a prize just"
para "for participating,"
line "you also get to"
para "keep the bug"
line "#MON you may"
para "have at the end of"
line "the contest."
done
Route35NationalParkGate_MapEvents:
; filler
db 0, 0
.Warps:
db 4
warp_def 3, 0, 3, NATIONAL_PARK
warp_def 4, 0, 4, NATIONAL_PARK
warp_def 3, 7, 3, ROUTE_35
warp_def 4, 7, 3, ROUTE_35
.CoordEvents:
db 0
.BGEvents:
db 1
bg_event 5, 0, BGEVENT_READ, MapRoute36NationalParkGateSignpost0Script
.ObjectEvents:
db 3
object_event 2, 1, SPRITE_OFFICER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, OfficerScript_0x6a204, EVENT_ROUTE_35_NATIONAL_PARK_GATE_OFFICER_CONTEST_DAY
object_event 6, 5, SPRITE_YOUNGSTER, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, Route35NationalParkGateYoungsterScript, EVENT_ROUTE_35_NATIONAL_PARK_GATE_YOUNGSTER
object_event 0, 3, SPRITE_OFFICER, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, OfficerScript_0x6a2ca, EVENT_ROUTE_35_NATIONAL_PARK_GATE_OFFICER_NOT_CONTEST_DAY