pokecrystal-board/maps/TrainerHouseB1F.asm

184 lines
3.6 KiB
NASM
Raw Normal View History

object_const_def
2015-11-26 21:22:14 -08:00
const TRAINERHOUSEB1F_RECEPTIONIST
const TRAINERHOUSEB1F_CHRIS
TrainerHouseB1F_MapScripts:
def_scene_scripts
scene_script TrainerHouseB1FNoopScene, SCENE_TRAINERHOUSEB1F_ASK_BATTLE
def_callbacks
TrainerHouseB1FNoopScene:
end
2015-12-09 08:38:40 -08:00
TrainerHouseReceptionistScript:
turnobject PLAYER, UP
2015-12-09 15:25:44 -08:00
opentext
2015-07-10 05:08:03 -07:00
checkflag ENGINE_FOUGHT_IN_TRAINER_HALL_TODAY
2015-12-09 08:38:40 -08:00
iftrue .FoughtTooManyTimes
writetext TrainerHouseB1FIntroText
2019-11-03 09:48:54 -08:00
promptbutton
special TrainerHouse
2015-12-09 08:38:40 -08:00
iffalse .GetCal3Name
gettrainername STRING_BUFFER_3, CAL, CAL2
sjump .GotName
2015-12-09 08:38:40 -08:00
.GetCal3Name:
gettrainername STRING_BUFFER_3, CAL, CAL3
2015-12-09 08:38:40 -08:00
.GotName:
writetext TrainerHouseB1FYourOpponentIsText
2019-11-03 09:48:54 -08:00
promptbutton
2015-12-09 08:38:40 -08:00
writetext TrainerHouseB1FAskWantToBattleText
yesorno
2015-12-09 08:38:40 -08:00
iffalse .Declined
2015-07-10 05:08:03 -07:00
setflag ENGINE_FOUGHT_IN_TRAINER_HALL_TODAY
2015-12-09 08:38:40 -08:00
writetext TrainerHouseB1FGoRightInText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-12-09 08:38:40 -08:00
applymovement PLAYER, Movement_EnterTrainerHouseBattleRoom
2015-12-09 15:25:44 -08:00
opentext
2015-12-09 08:38:40 -08:00
writetext TrainerHouseB1FCalBeforeText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
special TrainerHouse
2015-12-09 08:38:40 -08:00
iffalse .NoSpecialBattle
winlosstext TrainerHouseB1FCalBeatenText, 0
setlasttalked TRAINERHOUSEB1F_CHRIS
loadtrainer CAL, CAL2
startbattle
reloadmapafterbattle
2015-12-09 08:38:40 -08:00
iffalse .End
.NoSpecialBattle:
winlosstext TrainerHouseB1FCalBeatenText, 0
setlasttalked TRAINERHOUSEB1F_CHRIS
loadtrainer CAL, CAL3
startbattle
reloadmapafterbattle
2015-12-09 08:38:40 -08:00
.End:
applymovement PLAYER, Movement_ExitTrainerHouseBattleRoom
end
2015-12-09 08:38:40 -08:00
.Declined:
writetext TrainerHouseB1FPleaseComeAgainText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-12-09 08:38:40 -08:00
applymovement PLAYER, Movement_TrainerHouseTurnBack
end
2015-12-09 08:38:40 -08:00
.FoughtTooManyTimes:
writetext TrainerHouseB1FSecondChallengeDeniedText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-12-09 08:38:40 -08:00
applymovement PLAYER, Movement_TrainerHouseTurnBack
end
2015-12-09 08:38:40 -08:00
Movement_EnterTrainerHouseBattleRoom:
2016-05-14 10:46:14 -07:00
step LEFT
step LEFT
step LEFT
step DOWN
step DOWN
step DOWN
step DOWN
step DOWN
step DOWN
step DOWN
step DOWN
step LEFT
turn_head RIGHT
step_end
2015-12-09 08:38:40 -08:00
Movement_ExitTrainerHouseBattleRoom:
2016-05-14 10:46:14 -07:00
step UP
step UP
step UP
step RIGHT
step UP
step UP
step UP
step UP
step UP
step RIGHT
step RIGHT
step RIGHT
step RIGHT
step_end
2015-12-09 08:38:40 -08:00
Movement_TrainerHouseTurnBack:
2016-05-14 10:46:14 -07:00
step RIGHT
turn_head LEFT
step_end
2015-12-09 08:38:40 -08:00
TrainerHouseB1FIntroText:
text "Hi. Welcome to our"
line "TRAINING HALL."
para "You may battle a"
line "trainer once per"
cont "day."
done
2015-12-09 08:38:40 -08:00
TrainerHouseB1FYourOpponentIsText:
text_ram wStringBuffer3
text " is your"
line "opponent today."
done
2015-12-09 08:38:40 -08:00
TrainerHouseB1FAskWantToBattleText:
text "Would you like to"
line "battle?"
done
2015-12-09 08:38:40 -08:00
TrainerHouseB1FGoRightInText:
text "Please go right"
line "through."
para "You may begin"
line "right away."
done
2015-12-09 08:38:40 -08:00
TrainerHouseB1FPleaseComeAgainText:
text "Sorry. Only those"
line "trainers who will"
para "be battling are"
line "allowed to go in."
done
2015-12-09 08:38:40 -08:00
TrainerHouseB1FSecondChallengeDeniedText:
text "I'm sorry."
line "This would be your"
para "second time today."
line "You're permitted"
para "to enter just once"
line "a day."
done
2015-12-09 08:38:40 -08:00
TrainerHouseB1FCalBeatenText:
text "I lost…"
line "Darn…"
done
2015-12-09 08:38:40 -08:00
TrainerHouseB1FCalBeforeText:
text "I traveled out"
line "here just so I"
cont "could battle you."
done
TrainerHouseB1F_MapEvents:
db 0, 0 ; filler
def_warp_events
2018-02-01 19:22:07 -08:00
warp_event 9, 4, TRAINER_HOUSE_1F, 3
def_coord_events
coord_event 7, 3, SCENE_TRAINERHOUSEB1F_ASK_BATTLE, TrainerHouseReceptionistScript
def_bg_events
def_object_events
2018-02-01 19:22:07 -08:00
object_event 7, 1, SPRITE_RECEPTIONIST, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, ObjectEvent, -1
object_event 6, 11, SPRITE_CHRIS, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, ObjectEvent, -1