mirror of https://github.com/pret/pokecrystal.git
57 lines
1014 B
NASM
57 lines
1014 B
NASM
const_def 2 ; object constants
|
|
const TINTOWERROOF_HO_OH
|
|
|
|
TinTowerRoof_MapScripts:
|
|
db 0 ; scene scripts
|
|
|
|
db 1 ; callbacks
|
|
callback MAPCALLBACK_OBJECTS, .HoOh
|
|
|
|
.HoOh:
|
|
checkevent EVENT_FOUGHT_HO_OH
|
|
iftrue .NoAppear
|
|
checkitem RAINBOW_WING
|
|
iftrue .Appear
|
|
sjump .NoAppear
|
|
|
|
.Appear:
|
|
appear TINTOWERROOF_HO_OH
|
|
return
|
|
|
|
.NoAppear:
|
|
disappear TINTOWERROOF_HO_OH
|
|
return
|
|
|
|
TinTowerHoOh:
|
|
faceplayer
|
|
opentext
|
|
writetext HoOhText
|
|
cry HO_OH
|
|
pause 15
|
|
closetext
|
|
setevent EVENT_FOUGHT_HO_OH
|
|
loadvar VAR_BATTLETYPE, BATTLETYPE_FORCEITEM
|
|
loadwildmon HO_OH, 60
|
|
startbattle
|
|
disappear TINTOWERROOF_HO_OH
|
|
reloadmapafterbattle
|
|
setevent EVENT_SET_WHEN_FOUGHT_HO_OH
|
|
end
|
|
|
|
HoOhText:
|
|
text "Shaoooh!"
|
|
done
|
|
|
|
TinTowerRoof_MapEvents:
|
|
db 0, 0 ; filler
|
|
|
|
db 1 ; warp events
|
|
warp_event 9, 13, TIN_TOWER_9F, 4
|
|
|
|
db 0 ; coord events
|
|
|
|
db 0 ; bg events
|
|
|
|
db 1 ; object events
|
|
object_event 9, 5, SPRITE_HO_OH, SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, TinTowerHoOh, EVENT_TIN_TOWER_ROOF_HO_OH
|