pokecrystal/maps/Route34IlexForestGate.asm

155 lines
3.8 KiB
NASM
Raw Normal View History

object_const_def ; object_event constants
2015-11-27 05:22:14 +00:00
const ROUTE34ILEXFORESTGATE_TEACHER1
const ROUTE34ILEXFORESTGATE_BUTTERFREE
const ROUTE34ILEXFORESTGATE_LASS
const ROUTE34ILEXFORESTGATE_TEACHER2
Route34IlexForestGate_MapScripts:
db 0 ; scene scripts
db 1 ; callbacks
callback MAPCALLBACK_OBJECTS, .IsForestRestless
.IsForestRestless:
2015-07-10 12:08:03 +00:00
checkevent EVENT_FOREST_IS_RESTLESS
iffalse .Normal
2015-11-27 05:22:14 +00:00
disappear ROUTE34ILEXFORESTGATE_TEACHER1
appear ROUTE34ILEXFORESTGATE_TEACHER2
endcallback
.Normal:
2015-11-27 05:22:14 +00:00
disappear ROUTE34ILEXFORESTGATE_TEACHER2
appear ROUTE34ILEXFORESTGATE_TEACHER1
endcallback
2018-02-02 17:04:55 +00:00
Route34IlexForestGateCelebiEvent:
2015-07-10 12:08:03 +00:00
checkevent EVENT_FOREST_IS_RESTLESS
2018-02-02 17:04:55 +00:00
iffalse .skip
2015-11-27 05:22:14 +00:00
showemote EMOTE_SHOCK, ROUTE34ILEXFORESTGATE_TEACHER2, 20
turnobject ROUTE34ILEXFORESTGATE_TEACHER2, LEFT
turnobject PLAYER, RIGHT
2015-11-27 05:22:14 +00:00
follow PLAYER, ROUTE34ILEXFORESTGATE_TEACHER2
applymovement PLAYER, MovementData_0x62d97
stopfollow
turnobject PLAYER, DOWN
2015-12-09 23:25:44 +00:00
opentext
2018-02-28 22:47:31 +00:00
writetext Route34IlexForestGateTeacher_ForestIsRestless
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2015-11-27 05:22:14 +00:00
applymovement ROUTE34ILEXFORESTGATE_TEACHER2, MovementData_0x62d9a
2018-02-02 17:04:55 +00:00
.skip:
end
2018-02-28 22:47:31 +00:00
Route34IlexForestGateTeacherScript:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2015-07-10 12:08:03 +00:00
checkevent EVENT_FOREST_IS_RESTLESS
2018-02-02 17:04:55 +00:00
iftrue .ForestIsRestless
2013-09-24 07:48:58 +00:00
checkevent EVENT_GOT_TM12_SWEET_SCENT
2018-02-02 17:04:55 +00:00
iftrue .GotSweetScent
2018-02-28 22:47:31 +00:00
writetext Route34IlexForestGateTeacherText
2019-11-03 17:48:54 +00:00
promptbutton
2015-11-05 01:20:14 +00:00
verbosegiveitem TM_SWEET_SCENT
2018-02-02 17:04:55 +00:00
iffalse .NoRoom
2013-09-24 07:48:58 +00:00
setevent EVENT_GOT_TM12_SWEET_SCENT
2018-02-02 17:04:55 +00:00
.GotSweetScent:
2018-02-28 22:47:31 +00:00
writetext Route34IlexForestGateTeacher_GotSweetScent
2015-11-25 15:16:29 +00:00
waitbutton
2018-02-02 17:04:55 +00:00
.NoRoom:
2015-11-25 15:16:29 +00:00
closetext
end
2018-02-02 17:04:55 +00:00
.ForestIsRestless:
2018-02-28 22:47:31 +00:00
writetext Route34IlexForestGateTeacher_ForestIsRestless
2019-11-03 17:48:54 +00:00
promptbutton
2015-11-25 15:16:29 +00:00
closetext
end
2018-02-28 22:47:31 +00:00
Route34IlexForestGateButterfreeScript:
2015-12-09 23:25:44 +00:00
opentext
2018-02-28 22:47:31 +00:00
writetext Route34IlexForestGateButterfreeText
cry BUTTERFREE
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2017-12-18 00:48:04 +00:00
Route34IlexForestGateLassScript:
jumptextfaceplayer Route34IlexForestGateLassText
2015-07-10 08:45:35 +00:00
MovementData_0x62d97:
2016-05-14 17:46:14 +00:00
step UP
step UP
step_end
2015-07-10 08:45:35 +00:00
MovementData_0x62d9a:
2016-05-14 17:46:14 +00:00
step DOWN
step RIGHT
step_end
2018-02-28 22:47:31 +00:00
Route34IlexForestGateTeacherText:
text "Oh, honey. You're"
line "making a #DEX?"
para "It must be hard if"
line "#MON won't"
para "appear. Try using"
line "this TM."
done
2018-02-28 22:47:31 +00:00
Route34IlexForestGateTeacher_GotSweetScent:
text "It's SWEET SCENT."
para "Use it wherever"
line "#MON appear."
para "#MON will be"
line "enticed by it."
done
2018-02-28 22:47:31 +00:00
Route34IlexForestGateTeacher_ForestIsRestless:
text "Something's wrong"
line "in ILEX FOREST…"
para "You should stay"
line "away right now."
done
2018-02-28 22:47:31 +00:00
Route34IlexForestGateButterfreeText:
text "BUTTERFREE: Freeh!"
done
2017-12-18 00:48:04 +00:00
Route34IlexForestGateLassText:
text "Did you see the"
line "shrine honoring"
cont "the protector?"
para "It watches over"
line "the FOREST from"
cont "across time."
para "I think that it"
line "must be a grass-"
cont "type #MON."
done
Route34IlexForestGate_MapEvents:
db 0, 0 ; filler
db 4 ; warp events
2018-02-02 03:22:07 +00:00
warp_event 4, 0, ROUTE_34, 1
warp_event 5, 0, ROUTE_34, 2
warp_event 4, 7, ILEX_FOREST, 1
warp_event 5, 7, ILEX_FOREST, 1
db 1 ; coord events
coord_event 4, 7, SCENE_DEFAULT, Route34IlexForestGateCelebiEvent
db 0 ; bg events
db 4 ; object events
2018-02-28 22:47:31 +00:00
object_event 9, 3, SPRITE_TEACHER, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, Route34IlexForestGateTeacherScript, EVENT_ROUTE_34_ILEX_FOREST_GATE_TEACHER_BEHIND_COUNTER
object_event 9, 4, SPRITE_BUTTERFREE, SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, Route34IlexForestGateButterfreeScript, -1
2018-02-02 03:22:07 +00:00
object_event 3, 4, SPRITE_LASS, SPRITEMOVEDATA_WALK_UP_DOWN, 0, 1, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, Route34IlexForestGateLassScript, EVENT_ROUTE_34_ILEX_FOREST_GATE_LASS
2018-02-28 22:47:31 +00:00
object_event 5, 7, SPRITE_TEACHER, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, Route34IlexForestGateTeacherScript, EVENT_ROUTE_34_ILEX_FOREST_GATE_TEACHER_IN_WALKWAY