pokecrystal-board/maps/BlackthornGym2F.asm

160 lines
3.9 KiB
NASM
Raw Normal View History

2015-11-26 21:22:14 -08:00
const_value set 2
const BLACKTHORNGYM2F_COOLTRAINER_M
const BLACKTHORNGYM2F_COOLTRAINER_F
const BLACKTHORNGYM2F_BOULDER1
const BLACKTHORNGYM2F_BOULDER2
const BLACKTHORNGYM2F_BOULDER3
const BLACKTHORNGYM2F_BOULDER4
const BLACKTHORNGYM2F_BOULDER5
const BLACKTHORNGYM2F_BOULDER6
2015-06-25 22:30:16 -07:00
BlackthornGym2F_MapScriptHeader:
.MapTriggers:
db 0
.MapCallbacks:
db 1
; callbacks
2015-06-25 22:30:16 -07:00
dbw 3, .Boulders
2015-06-25 22:30:16 -07:00
.Boulders
writecmdqueue .BoulderCmdQueue
return
2015-06-25 22:30:16 -07:00
.BoulderCmdQueue
dbw 2, .BoulderTable ; check if any stones are sitting on a warp
2013-04-30 20:05:52 -07:00
db 0, 0 ; filler
2015-06-25 22:30:16 -07:00
.BoulderTable
2015-12-15 07:55:56 -08:00
stonetable 5, BLACKTHORNGYM2F_BOULDER1, .Disappear4
stonetable 3, BLACKTHORNGYM2F_BOULDER2, .Disappear5
stonetable 4, BLACKTHORNGYM2F_BOULDER3, .Disappear6
db -1 ; end
2013-04-30 20:05:52 -07:00
2015-06-25 22:30:16 -07:00
.Disappear4
2015-11-26 21:22:14 -08:00
disappear BLACKTHORNGYM2F_BOULDER1
2015-06-25 22:30:16 -07:00
jump .Fall
2013-04-30 20:05:52 -07:00
2015-06-25 22:30:16 -07:00
.Disappear5
2015-11-26 21:22:14 -08:00
disappear BLACKTHORNGYM2F_BOULDER2
2015-06-25 22:30:16 -07:00
jump .Fall
2013-04-30 20:05:52 -07:00
2015-06-25 22:30:16 -07:00
.Disappear6
2015-11-26 21:22:14 -08:00
disappear BLACKTHORNGYM2F_BOULDER3
2015-06-25 22:30:16 -07:00
jump .Fall
2013-04-30 20:05:52 -07:00
2015-06-25 22:30:16 -07:00
.Fall
2013-04-30 20:05:52 -07:00
pause 30
2015-06-25 22:30:16 -07:00
scall .FX
2015-12-09 15:25:44 -08:00
opentext
2015-06-25 22:30:16 -07:00
writetext BlackthornGym2FBoulderFellText
2015-11-25 07:16:29 -08:00
waitbutton
2013-04-30 20:05:52 -07:00
closetext
end
2015-06-25 22:30:16 -07:00
.FX
playsound SFX_STRENGTH
2013-04-30 20:05:52 -07:00
earthquake 80
end
2015-06-25 21:01:08 -07:00
BlackthornGymBoulder:
2015-06-23 14:02:58 -07:00
jumpstd strengthboulder
2015-06-25 22:30:16 -07:00
TrainerCooltrainermCody:
2015-11-02 11:37:02 -08:00
trainer EVENT_BEAT_COOLTRAINERM_CODY, COOLTRAINERM, CODY, CooltrainermCodySeenText, CooltrainermCodyBeatenText, 0, CooltrainermCodyScript
2015-06-25 22:30:16 -07:00
CooltrainermCodyScript:
2015-11-25 07:16:29 -08:00
end_if_just_battled
2015-12-09 15:25:44 -08:00
opentext
2015-12-15 07:55:56 -08:00
writetext CooltrainermCodyAfterText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-06-25 22:30:16 -07:00
TrainerCooltrainerfFran:
2015-11-02 11:37:02 -08:00
trainer EVENT_BEAT_COOLTRAINERF_FRAN, COOLTRAINERF, FRAN, CooltrainerfFranSeenText, CooltrainerfFranBeatenText, 0, CooltrainerfFranScript
2015-06-25 22:30:16 -07:00
CooltrainerfFranScript:
2015-11-25 07:16:29 -08:00
end_if_just_battled
2015-12-09 15:25:44 -08:00
opentext
2015-12-15 07:55:56 -08:00
writetext CooltrainerfFranAfterText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-06-25 22:30:16 -07:00
CooltrainermCodySeenText:
text "It's not as if we"
line "all use dragon-"
cont "type #MON."
done
2015-06-25 22:30:16 -07:00
CooltrainermCodyBeatenText:
text "Rats! If only I"
line "had a dragon!"
done
2015-12-15 07:55:56 -08:00
CooltrainermCodyAfterText:
text "Members of our"
line "dragon-user clan"
para "can use dragon"
line "#MON only after"
para "our MASTER allows"
line "it."
done
2015-06-25 22:30:16 -07:00
CooltrainerfFranSeenText:
text "I can't allow a"
line "nameless trainer"
cont "past me!"
para "CLAIR would be"
line "livid if I did!"
done
2015-06-25 22:30:16 -07:00
CooltrainerfFranBeatenText:
text "Awww… I lost…"
done
2015-12-15 07:55:56 -08:00
CooltrainerfFranAfterText:
text "Uh-oh… CLAIR is"
line "going to be mad…"
done
2015-06-25 22:30:16 -07:00
BlackthornGym2FBoulderFellText:
text "The boulder fell"
line "through!"
done
2015-06-25 22:30:16 -07:00
BlackthornGym2F_MapEventHeader:
; filler
db 0, 0
.Warps:
db 5
warp_def $7, $1, 3, BLACKTHORN_GYM_1F
warp_def $9, $7, 4, BLACKTHORN_GYM_1F
warp_def $5, $2, 5, BLACKTHORN_GYM_1F
warp_def $7, $8, 6, BLACKTHORN_GYM_1F
warp_def $3, $8, 7, BLACKTHORN_GYM_1F
.XYTriggers:
db 0
.Signposts:
db 0
.PersonEvents:
db 8
person_event SPRITE_COOLTRAINER_M, 1, 4, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, PERSONTYPE_TRAINER, 1, TrainerCooltrainermCody, -1
person_event SPRITE_COOLTRAINER_F, 11, 4, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, PERSONTYPE_TRAINER, 1, TrainerCooltrainerfFran, -1
person_event SPRITE_BOULDER, 2, 8, SPRITEMOVEDATA_STRENGTH_BOULDER, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, BlackthornGymBoulder, EVENT_BOULDER_IN_BLACKTHORN_GYM_1
person_event SPRITE_BOULDER, 3, 2, SPRITEMOVEDATA_STRENGTH_BOULDER, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, BlackthornGymBoulder, EVENT_BOULDER_IN_BLACKTHORN_GYM_2
person_event SPRITE_BOULDER, 16, 6, SPRITEMOVEDATA_STRENGTH_BOULDER, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, BlackthornGymBoulder, EVENT_BOULDER_IN_BLACKTHORN_GYM_3
person_event SPRITE_BOULDER, 3, 3, SPRITEMOVEDATA_STRENGTH_BOULDER, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, BlackthornGymBoulder, -1
person_event SPRITE_BOULDER, 1, 6, SPRITEMOVEDATA_STRENGTH_BOULDER, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, BlackthornGymBoulder, -1
person_event SPRITE_BOULDER, 14, 8, SPRITEMOVEDATA_STRENGTH_BOULDER, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, BlackthornGymBoulder, -1