pokecrystal/maps/TrainerHouseB1F.asm

189 lines
3.2 KiB
NASM
Raw Normal View History

2015-07-10 08:45:35 +00:00
TrainerHouseB1F_MapScriptHeader:
.MapTriggers:
db 1
; triggers
dw UnknownScript_0x9b38a, $0000
.MapCallbacks:
db 0
2015-07-10 08:45:35 +00:00
UnknownScript_0x9b38a:
end
2015-07-10 08:45:35 +00:00
UnknownScript_0x9b38b:
spriteface PLAYER, UP
loadfont
2015-07-10 12:08:03 +00:00
checkflag ENGINE_FOUGHT_IN_TRAINER_HALL_TODAY
iftrue UnknownScript_0x9b3f7
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x9b420
keeptextopen
special SpecialTrainerHouse
iffalse UnknownScript_0x9b3a6
trainertotext CAL, CAL2, $0
2015-01-20 08:01:23 +00:00
jump UnknownScript_0x9b3aa
2015-07-10 08:45:35 +00:00
UnknownScript_0x9b3a6:
trainertotext CAL, CAL3, $0
2015-07-10 08:45:35 +00:00
UnknownScript_0x9b3aa:
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x9b46a
keeptextopen
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x9b487
yesorno
iffalse UnknownScript_0x9b3ed
2015-07-10 12:08:03 +00:00
setflag ENGINE_FOUGHT_IN_TRAINER_HALL_TODAY
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x9b4a2
closetext
loadmovesprites
applymovement PLAYER, MovementData_0x9b401
loadfont
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x9b587
closetext
loadmovesprites
special SpecialTrainerHouse
iffalse UnknownScript_0x9b3dc
winlosstext UnknownText_0x9b578, $0000
setlasttalked $3
loadtrainer CAL, CAL2
startbattle
returnafterbattle
iffalse UnknownScript_0x9b3e8
2015-07-10 08:45:35 +00:00
UnknownScript_0x9b3dc:
winlosstext UnknownText_0x9b578, $0000
setlasttalked $3
loadtrainer CAL, CAL3
startbattle
returnafterbattle
2015-07-10 08:45:35 +00:00
UnknownScript_0x9b3e8:
applymovement PLAYER, MovementData_0x9b40f
end
2015-07-10 08:45:35 +00:00
UnknownScript_0x9b3ed:
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x9b4d6
closetext
loadmovesprites
applymovement PLAYER, MovementData_0x9b41d
end
2015-07-10 08:45:35 +00:00
UnknownScript_0x9b3f7:
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x9b51d
closetext
loadmovesprites
applymovement PLAYER, MovementData_0x9b41d
end
2015-07-10 08:45:35 +00:00
MovementData_0x9b401:
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-07-10 08:45:35 +00:00
MovementData_0x9b40f:
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-07-10 08:45:35 +00:00
MovementData_0x9b41d:
step_right
turn_head_left
step_end
2015-07-10 08:45:35 +00:00
UnknownText_0x9b420:
text "Hi. Welcome to our"
line "TRAINING HALL."
para "You may battle a"
line "trainer once per"
cont "day."
done
2015-07-10 08:45:35 +00:00
UnknownText_0x9b46a:
2015-02-10 23:37:24 +00:00
text_from_ram StringBuffer3
text " is your"
line "opponent today."
done
2015-07-10 08:45:35 +00:00
UnknownText_0x9b487:
text "Would you like to"
line "battle?"
done
2015-07-10 08:45:35 +00:00
UnknownText_0x9b4a2:
text "Please go right"
line "through."
para "You may begin"
line "right away."
done
2015-07-10 08:45:35 +00:00
UnknownText_0x9b4d6:
text "Sorry. Only those"
line "trainers who will"
para "be battling are"
line "allowed to go in."
done
2015-07-10 08:45:35 +00:00
UnknownText_0x9b51d:
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-07-10 08:45:35 +00:00
UnknownText_0x9b578:
text "I lost…"
line "Darn…"
done
2015-07-10 08:45:35 +00:00
UnknownText_0x9b587:
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
xy_trigger 0, $3, $7, $0, UnknownScript_0x9b38b, $0, $0
.Signposts:
db 0
.PersonEvents:
db 2
person_event SPRITE_RECEPTIONIST, 1 + 4, 7 + 4, $6, 0, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, 0, 0, ObjectEvent, -1
person_event SPRITE_CHRIS, 11 + 4, 6 + 4, $8, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, 0, 0, ObjectEvent, -1