pokecrystal/maps/TrainerHouseB1F.asm

193 lines
3.5 KiB
NASM
Raw Normal View History

2015-11-27 05:22:14 +00:00
const_value set 2
const TRAINERHOUSEB1F_RECEPTIONIST
const TRAINERHOUSEB1F_CHRIS
2015-07-10 08:45:35 +00:00
TrainerHouseB1F_MapScriptHeader:
.MapTriggers:
db 1
; triggers
2015-12-09 16:38:40 +00:00
dw Trigger0, 0
.MapCallbacks:
db 0
2015-12-09 16:38:40 +00:00
Trigger0:
end
2015-12-09 16:38:40 +00:00
TrainerHouseReceptionistScript:
spriteface PLAYER, UP
2015-12-09 23:25:44 +00:00
opentext
2015-07-10 12:08:03 +00:00
checkflag ENGINE_FOUGHT_IN_TRAINER_HALL_TODAY
2015-12-09 16:38:40 +00:00
iftrue .FoughtTooManyTimes
writetext TrainerHouseB1FIntroText
2015-11-30 03:29:45 +00:00
buttonsound
special SpecialTrainerHouse
2015-12-09 16:38:40 +00:00
iffalse .GetCal3Name
trainertotext CAL, CAL2, $0
2015-12-09 16:38:40 +00:00
jump .GotName
2015-12-09 16:38:40 +00:00
.GetCal3Name:
trainertotext CAL, CAL3, $0
2015-12-09 16:38:40 +00:00
.GotName:
writetext TrainerHouseB1FYourOpponentIsText
2015-11-30 03:29:45 +00:00
buttonsound
2015-12-09 16:38:40 +00:00
writetext TrainerHouseB1FAskWantToBattleText
yesorno
2015-12-09 16:38:40 +00:00
iffalse .Declined
2015-07-10 12:08:03 +00:00
setflag ENGINE_FOUGHT_IN_TRAINER_HALL_TODAY
2015-12-09 16:38:40 +00:00
writetext TrainerHouseB1FGoRightInText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2015-12-09 16:38:40 +00:00
applymovement PLAYER, Movement_EnterTrainerHouseBattleRoom
2015-12-09 23:25:44 +00:00
opentext
2015-12-09 16:38:40 +00:00
writetext TrainerHouseB1FCalBeforeText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
special SpecialTrainerHouse
2015-12-09 16:38:40 +00:00
iffalse .NoSpecialBattle
winlosstext TrainerHouseB1FCalBeatenText, 0
setlasttalked TRAINERHOUSEB1F_CHRIS
loadtrainer CAL, CAL2
startbattle
reloadmapafterbattle
2015-12-09 16:38:40 +00:00
iffalse .End
.NoSpecialBattle:
winlosstext TrainerHouseB1FCalBeatenText, 0
setlasttalked TRAINERHOUSEB1F_CHRIS
loadtrainer CAL, CAL3
startbattle
reloadmapafterbattle
2015-12-09 16:38:40 +00:00
.End:
applymovement PLAYER, Movement_ExitTrainerHouseBattleRoom
end
2015-12-09 16:38:40 +00:00
.Declined:
writetext TrainerHouseB1FPleaseComeAgainText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2015-12-09 16:38:40 +00:00
applymovement PLAYER, Movement_TrainerHouseTurnBack
end
2015-12-09 16:38:40 +00:00
.FoughtTooManyTimes:
writetext TrainerHouseB1FSecondChallengeDeniedText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2015-12-09 16:38:40 +00:00
applymovement PLAYER, Movement_TrainerHouseTurnBack
end
2015-12-09 16:38:40 +00:00
Movement_EnterTrainerHouseBattleRoom:
2016-05-14 17:46:14 +00: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 16:38:40 +00:00
Movement_ExitTrainerHouseBattleRoom:
2016-05-14 17:46:14 +00: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 16:38:40 +00:00
Movement_TrainerHouseTurnBack:
2016-05-14 17:46:14 +00:00
step RIGHT
turn_head LEFT
step_end
2015-12-09 16:38:40 +00: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 16:38:40 +00:00
TrainerHouseB1FYourOpponentIsText:
2015-02-10 23:37:24 +00:00
text_from_ram StringBuffer3
text " is your"
line "opponent today."
done
2015-12-09 16:38:40 +00:00
TrainerHouseB1FAskWantToBattleText:
text "Would you like to"
line "battle?"
done
2015-12-09 16:38:40 +00:00
TrainerHouseB1FGoRightInText:
text "Please go right"
line "through."
para "You may begin"
line "right away."
done
2015-12-09 16:38:40 +00:00
TrainerHouseB1FPleaseComeAgainText:
text "Sorry. Only those"
line "trainers who will"
para "be battling are"
line "allowed to go in."
done
2015-12-09 16:38:40 +00: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 16:38:40 +00:00
TrainerHouseB1FCalBeatenText:
text "I lost…"
line "Darn…"
done
2015-12-09 16:38:40 +00:00
TrainerHouseB1FCalBeforeText:
text "I traveled out"
line "here just so I"
cont "could battle you."
done
2015-07-10 08:45:35 +00:00
TrainerHouseB1F_MapEventHeader:
; filler
db 0, 0
.Warps:
db 1
warp_def $4, $9, 3, TRAINER_HOUSE_1F
.XYTriggers:
db 1
2015-12-09 16:38:40 +00:00
xy_trigger 0, $3, $7, $0, TrainerHouseReceptionistScript, $0, $0
.Signposts:
db 0
.PersonEvents:
db 2
person_event SPRITE_RECEPTIONIST, 1, 7, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, PERSONTYPE_SCRIPT, 0, ObjectEvent, -1
person_event SPRITE_CHRIS, 11, 6, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, PERSONTYPE_SCRIPT, 0, ObjectEvent, -1