pokecrystal-board/maps/SproutTower2F.asm
Remy Oukaour c05b7f41dd Renaming: (fix #412)
- MapTriggers / maptrigger → SceneScripts / scene_script
- XYTriggers / xy_trigger → CoordEvents / coord_event
- Signposts / signpost → BGEvents / bg_event
- PersonEvents / person_event → ObjectEvents / object_event
2017-12-24 14:33:17 -05:00

110 lines
2.2 KiB
NASM

const_value set 2
const SPROUTTOWER2F_SAGE1
const SPROUTTOWER2F_SAGE2
const SPROUTTOWER2F_POKE_BALL
SproutTower2F_MapScriptHeader:
.SceneScripts:
db 0
.MapCallbacks:
db 0
TrainerSageNico:
trainer EVENT_BEAT_SAGE_NICO, SAGE, NICO, SageNicoSeenText, SageNicoBeatenText, 0, .Script
.Script:
end_if_just_battled
opentext
writetext SageNicoAfterBattleText
waitbutton
closetext
end
TrainerSageEdmond:
trainer EVENT_BEAT_SAGE_EDMOND, SAGE, EDMOND, SageEdmondSeenText, SageEdmondBeatenText, 0, .Script
.Script:
end_if_just_battled
opentext
writetext SageEdmondAfterBattleText
waitbutton
closetext
end
MapSproutTower2FSignpost0Script:
jumptext UnknownText_0x1848c8
SproutTower2FXAccuracy:
itemball X_ACCURACY
SageNicoSeenText:
text "However hard we"
line "battle, the TOWER"
cont "will stand strong."
done
SageNicoBeatenText:
text "I fought hard but"
line "I'm too weak."
done
SageNicoAfterBattleText:
text "The flexible pil-"
line "lar protects the"
para "TOWER, even from"
line "earthquakes."
done
SageEdmondSeenText:
text "…Sway like leaves"
line "in the wind…"
done
SageEdmondBeatenText:
text "Oh, I'm weak!"
done
SageEdmondAfterBattleText:
text "I tried to copy"
line "BELLSPROUT's"
para "gentle movements"
line "for battle…"
para "But I didn't train"
line "well enough."
done
UnknownText_0x1848c8:
text "A #MON statue…"
para "It looks very"
line "distinguished."
done
SproutTower2F_MapEventHeader:
; filler
db 0, 0
.Warps:
db 4
warp_def $4, $6, 3, SPROUT_TOWER_1F
warp_def $6, $2, 4, SPROUT_TOWER_1F
warp_def $3, $11, 5, SPROUT_TOWER_1F
warp_def $e, $a, 1, SPROUT_TOWER_3F
.CoordEvents:
db 0
.BGEvents:
db 1
bg_event 15, 12, BGEVENT_READ, MapSproutTower2FSignpost0Script
.ObjectEvents:
db 3
object_event SPRITE_SAGE, 3, 12, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 4, TrainerSageNico, -1
object_event SPRITE_SAGE, 14, 9, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 5, TrainerSageEdmond, -1
object_event SPRITE_POKE_BALL, 1, 3, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, SproutTower2FXAccuracy, EVENT_SPROUT_TOWER2F_X_ACCURACY