2015-11-27 05:22:14 +00:00
|
|
|
const_value set 2
|
|
|
|
const TRAINERHOUSEB1F_RECEPTIONIST
|
|
|
|
const TRAINERHOUSEB1F_CHRIS
|
|
|
|
|
2018-01-17 03:57:19 +00:00
|
|
|
TrainerHouseB1F_MapScripts:
|
2017-12-24 18:46:34 +00:00
|
|
|
.SceneScripts:
|
2013-02-17 06:54:07 +00:00
|
|
|
db 1
|
2017-12-24 18:46:34 +00:00
|
|
|
scene_script .DummyScene
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-07-21 04:02:21 +00:00
|
|
|
.MapCallbacks:
|
2013-02-17 06:54:07 +00:00
|
|
|
db 0
|
|
|
|
|
2017-12-24 18:46:34 +00:00
|
|
|
.DummyScene:
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2015-12-09 16:38:40 +00:00
|
|
|
TrainerHouseReceptionistScript:
|
2015-07-22 06:49:18 +00:00
|
|
|
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
|
2018-01-02 16:13:57 +00:00
|
|
|
special Special_TrainerHouse
|
2015-12-09 16:38:40 +00:00
|
|
|
iffalse .GetCal3Name
|
2018-01-12 06:40:20 +00:00
|
|
|
trainertotext CAL, CAL2, MEM_BUFFER_0
|
2015-12-09 16:38:40 +00:00
|
|
|
jump .GotName
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-12-09 16:38:40 +00:00
|
|
|
.GetCal3Name:
|
2018-01-12 06:40:20 +00:00
|
|
|
trainertotext CAL, CAL3, MEM_BUFFER_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
|
2013-02-17 06:54:07 +00:00
|
|
|
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
|
2013-02-17 06:54:07 +00:00
|
|
|
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
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
2018-01-02 16:13:57 +00:00
|
|
|
special Special_TrainerHouse
|
2015-12-09 16:38:40 +00:00
|
|
|
iffalse .NoSpecialBattle
|
|
|
|
winlosstext TrainerHouseB1FCalBeatenText, 0
|
|
|
|
setlasttalked TRAINERHOUSEB1F_CHRIS
|
2015-12-02 02:54:11 +00:00
|
|
|
loadtrainer CAL, CAL2
|
2013-02-17 06:54:07 +00:00
|
|
|
startbattle
|
2015-12-26 23:11:55 +00:00
|
|
|
reloadmapafterbattle
|
2015-12-09 16:38:40 +00:00
|
|
|
iffalse .End
|
|
|
|
.NoSpecialBattle:
|
|
|
|
winlosstext TrainerHouseB1FCalBeatenText, 0
|
|
|
|
setlasttalked TRAINERHOUSEB1F_CHRIS
|
2015-12-02 02:54:11 +00:00
|
|
|
loadtrainer CAL, CAL3
|
2013-02-17 06:54:07 +00:00
|
|
|
startbattle
|
2015-12-26 23:11:55 +00:00
|
|
|
reloadmapafterbattle
|
2015-12-09 16:38:40 +00:00
|
|
|
.End:
|
|
|
|
applymovement PLAYER, Movement_ExitTrainerHouseBattleRoom
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2015-12-09 16:38:40 +00:00
|
|
|
.Declined:
|
|
|
|
writetext TrainerHouseB1FPleaseComeAgainText
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
2015-12-09 16:38:40 +00:00
|
|
|
applymovement PLAYER, Movement_TrainerHouseTurnBack
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2015-12-09 16:38:40 +00:00
|
|
|
.FoughtTooManyTimes:
|
|
|
|
writetext TrainerHouseB1FSecondChallengeDeniedText
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
2015-12-09 16:38:40 +00:00
|
|
|
applymovement PLAYER, Movement_TrainerHouseTurnBack
|
2013-02-17 06:54:07 +00:00
|
|
|
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
|
2013-02-17 06:54:07 +00:00
|
|
|
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
|
2013-02-17 06:54:07 +00:00
|
|
|
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
|
2013-02-17 06:54:07 +00:00
|
|
|
step_end
|
|
|
|
|
2015-12-09 16:38:40 +00:00
|
|
|
TrainerHouseB1FIntroText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Hi. Welcome to our"
|
|
|
|
line "TRAINING HALL."
|
|
|
|
|
|
|
|
para "You may battle a"
|
|
|
|
line "trainer once per"
|
|
|
|
cont "day."
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-12-09 16:38:40 +00:00
|
|
|
TrainerHouseB1FYourOpponentIsText:
|
2015-02-10 23:37:24 +00:00
|
|
|
text_from_ram StringBuffer3
|
2014-03-06 05:29:44 +00:00
|
|
|
text " is your"
|
|
|
|
line "opponent today."
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-12-09 16:38:40 +00:00
|
|
|
TrainerHouseB1FAskWantToBattleText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Would you like to"
|
|
|
|
line "battle?"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-12-09 16:38:40 +00:00
|
|
|
TrainerHouseB1FGoRightInText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Please go right"
|
|
|
|
line "through."
|
|
|
|
|
|
|
|
para "You may begin"
|
|
|
|
line "right away."
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-12-09 16:38:40 +00:00
|
|
|
TrainerHouseB1FPleaseComeAgainText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Sorry. Only those"
|
|
|
|
line "trainers who will"
|
|
|
|
|
|
|
|
para "be battling are"
|
|
|
|
line "allowed to go in."
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-12-09 16:38:40 +00:00
|
|
|
TrainerHouseB1FSecondChallengeDeniedText:
|
2014-03-06 05:29:44 +00:00
|
|
|
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
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-12-09 16:38:40 +00:00
|
|
|
TrainerHouseB1FCalBeatenText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "I lost…"
|
|
|
|
line "Darn…"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-12-09 16:38:40 +00:00
|
|
|
TrainerHouseB1FCalBeforeText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "I traveled out"
|
|
|
|
line "here just so I"
|
|
|
|
cont "could battle you."
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-17 03:57:19 +00:00
|
|
|
TrainerHouseB1F_MapEvents:
|
2013-02-17 06:54:07 +00:00
|
|
|
; filler
|
|
|
|
db 0, 0
|
|
|
|
|
2015-07-21 04:02:21 +00:00
|
|
|
.Warps:
|
2013-02-17 06:54:07 +00:00
|
|
|
db 1
|
2017-12-28 19:31:25 +00:00
|
|
|
warp_def 9, 4, 3, TRAINER_HOUSE_1F
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-12-24 18:46:34 +00:00
|
|
|
.CoordEvents:
|
2013-02-17 06:54:07 +00:00
|
|
|
db 1
|
2017-12-28 19:31:25 +00:00
|
|
|
coord_event 7, 3, 0, TrainerHouseReceptionistScript
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-12-24 18:46:34 +00:00
|
|
|
.BGEvents:
|
2013-02-17 06:54:07 +00:00
|
|
|
db 0
|
|
|
|
|
2017-12-24 18:46:34 +00:00
|
|
|
.ObjectEvents:
|
2013-02-17 06:54:07 +00:00
|
|
|
db 2
|
2017-12-28 19:31:25 +00: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
|