pokecrystal-board/maps/Route37.asm

268 lines
5.3 KiB
NASM
Raw Normal View History

2015-11-26 21:22:14 -08:00
const_value set 2
const ROUTE37_WEIRD_TREE1
const ROUTE37_WEIRD_TREE2
const ROUTE37_YOUNGSTER
const ROUTE37_FRUIT_TREE1
2016-04-06 21:59:45 -07:00
const ROUTE37_SUNNY
2015-11-26 21:22:14 -08:00
const ROUTE37_FRUIT_TREE2
const ROUTE37_FRUIT_TREE3
2015-07-10 01:20:21 -07:00
Route37_MapScriptHeader:
.MapTriggers:
db 0
.MapCallbacks:
db 1
; callbacks
2016-01-06 04:44:50 -08:00
dbw MAPCALLBACK_OBJECTS, SunnyCallback
2014-10-26 18:37:15 -07:00
SunnyCallback:
checkcode VAR_WEEKDAY
2014-10-26 18:37:15 -07:00
if_equal SUNDAY, .SunnyAppears
2016-04-06 21:59:45 -07:00
disappear ROUTE37_SUNNY
return
.SunnyAppears:
2016-04-06 21:59:45 -07:00
appear ROUTE37_SUNNY
return
2015-07-10 01:20:21 -07:00
TrainerTwinsAnnandanne1:
2015-11-02 11:37:02 -08:00
trainer EVENT_BEAT_TWINS_ANN_AND_ANNE, TWINS, ANNANDANNE1, TwinsAnnandanne1SeenText, TwinsAnnandanne1BeatenText, 0, TwinsAnnandanne1Script
2015-07-10 01:20:21 -07:00
TwinsAnnandanne1Script:
2015-11-25 07:16:29 -08:00
end_if_just_battled
2015-12-09 15:25:44 -08:00
opentext
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x1a8e62
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 01:20:21 -07:00
TrainerTwinsAnnandanne2:
2015-11-02 11:37:02 -08:00
trainer EVENT_BEAT_TWINS_ANN_AND_ANNE, TWINS, ANNANDANNE2, TwinsAnnandanne2SeenText, TwinsAnnandanne2BeatenText, 0, TwinsAnnandanne2Script
2015-07-10 01:20:21 -07:00
TwinsAnnandanne2Script:
2015-11-25 07:16:29 -08:00
end_if_just_battled
2015-12-09 15:25:44 -08:00
opentext
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x1a8eec
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 01:20:21 -07:00
TrainerPsychicGreg:
2015-11-02 11:37:02 -08:00
trainer EVENT_BEAT_PSYCHIC_GREG, PSYCHIC_T, GREG, PsychicGregSeenText, PsychicGregBeatenText, 0, PsychicGregScript
2015-07-10 01:20:21 -07:00
PsychicGregScript:
2015-11-25 07:16:29 -08:00
end_if_just_battled
2015-12-09 15:25:44 -08:00
opentext
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x1a8f80
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2014-10-26 18:37:15 -07:00
SunnyScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_GOT_MAGNET_FROM_SUNNY
2014-10-26 18:37:15 -07:00
iftrue SunnySundayScript
checkcode VAR_WEEKDAY
2014-10-26 18:37:15 -07:00
if_not_equal SUNDAY, SunnyNotSundayScript
2013-09-24 00:48:58 -07:00
checkevent EVENT_MET_SUNNY_OF_SUNDAY
2014-10-26 18:37:15 -07:00
iftrue .MetSunny
2015-01-20 00:01:23 -08:00
writetext MeetSunnyText
2015-11-29 19:29:45 -08:00
buttonsound
2013-09-24 00:48:58 -07:00
setevent EVENT_MET_SUNNY_OF_SUNDAY
.MetSunny:
2015-07-10 05:08:03 -07:00
checkflag ENGINE_PLAYER_IS_FEMALE
2014-10-26 18:37:15 -07:00
iftrue .Kris
2015-01-20 00:01:23 -08:00
writetext SunnyGivesGiftText1
2015-11-29 19:29:45 -08:00
buttonsound
2015-01-20 00:01:23 -08:00
jump .next
.Kris:
2015-01-20 00:01:23 -08:00
writetext SunnyGivesGiftText2
2015-11-29 19:29:45 -08:00
buttonsound
2014-10-26 18:37:15 -07:00
.next
2015-11-04 17:20:14 -08:00
verbosegiveitem MAGNET
2014-10-26 18:37:15 -07:00
iffalse SunnyDoneScript
2013-09-24 00:48:58 -07:00
setevent EVENT_GOT_MAGNET_FROM_SUNNY
2015-01-20 00:01:23 -08:00
writetext SunnyGaveGiftText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2014-10-26 18:37:15 -07:00
SunnySundayScript:
2015-01-20 00:01:23 -08:00
writetext SunnySundayText
2015-11-25 07:16:29 -08:00
waitbutton
2014-10-26 18:37:15 -07:00
SunnyDoneScript:
2015-11-25 07:16:29 -08:00
closetext
end
2014-10-26 18:37:15 -07:00
SunnyNotSundayScript:
2015-01-20 00:01:23 -08:00
writetext SunnyNotSundayText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2016-04-06 21:59:45 -07:00
Route37Sign:
jumptext Route37SignText
2015-07-10 01:20:21 -07:00
FruitTreeScript_0x1a8e09:
2015-11-18 07:42:42 -08:00
fruittree FRUITTREE_ROUTE_37_1
2015-07-10 01:20:21 -07:00
FruitTreeScript_0x1a8e0b:
2015-11-18 07:42:42 -08:00
fruittree FRUITTREE_ROUTE_37_2
2015-07-10 01:20:21 -07:00
FruitTreeScript_0x1a8e0d:
2015-11-18 07:42:42 -08:00
fruittree FRUITTREE_ROUTE_37_3
Route37HiddenEther:
dwb EVENT_ROUTE_37_HIDDEN_ETHER, ETHER
2015-07-10 01:20:21 -07:00
TwinsAnnandanne1SeenText:
text "ANN: ANNE and I"
line "are in this to-"
cont "gether!"
done
2015-07-10 01:20:21 -07:00
TwinsAnnandanne1BeatenText:
text "ANN & ANNE: Nnn… A"
line "little too strong."
done
2015-07-10 01:20:21 -07:00
UnknownText_0x1a8e62:
text "ANN: I can tell"
line "what my sister and"
para "my #MON are"
line "thinking."
done
2015-07-10 01:20:21 -07:00
TwinsAnnandanne2SeenText:
text "ANNE: ANN and I"
line "are in this to-"
cont "gether!"
done
2015-07-10 01:20:21 -07:00
TwinsAnnandanne2BeatenText:
text "ANN & ANNE: Nnn… A"
line "little too strong."
done
2015-07-10 01:20:21 -07:00
UnknownText_0x1a8eec:
text "ANNE: We share the"
line "same feelings as"
cont "our #MON."
done
2015-07-10 01:20:21 -07:00
PsychicGregSeenText:
text "#MON can't do a"
line "thing if they are"
cont "asleep."
para "I'll show you how"
line "scary that is!"
done
2015-07-10 01:20:21 -07:00
PsychicGregBeatenText:
text "I lost. That's"
line "pretty sad…"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x1a8f80:
text "Putting #MON to"
line "sleep or paralyz-"
cont "ing them are good"
cont "battle techniques."
done
2014-10-26 18:37:15 -07:00
MeetSunnyText:
text "SUNNY: Hi!"
para "I'm SUNNY of Sun-"
line "day, meaning it's"
cont "Sunday today!"
done
2014-10-26 18:37:15 -07:00
SunnyGivesGiftText1:
text "I was told to give"
line "you this if I saw"
cont "you!"
done
2014-10-26 18:37:15 -07:00
SunnyGivesGiftText2:
text "I was told to give"
line "you this if I saw"
cont "you!"
done
2014-10-26 18:37:15 -07:00
SunnyGaveGiftText:
text "SUNNY: That thing…"
para "Um…"
para "… What was it now…"
para "…"
para "Oh! I remember"
line "now!"
para "A #MON that"
line "knows electric"
para "moves should hold"
line "it."
para "My sis MONICA said"
line "it powers up"
cont "electric moves!"
done
2014-10-26 18:37:15 -07:00
SunnySundayText:
text "SUNNY: My sisters"
line "and brothers are"
cont "MONICA, TUSCANY,"
cont "WESLEY, ARTHUR,"
cont "FRIEDA and SANTOS."
para "They're all older"
line "than me!"
done
2014-10-26 18:37:15 -07:00
SunnyNotSundayText:
text "SUNNY: Isn't today"
line "Sunday?"
cont "Um… I forgot!"
done
2016-04-06 21:59:45 -07:00
Route37SignText:
text "ROUTE 37"
done
2015-07-10 01:20:21 -07:00
Route37_MapEventHeader:
; filler
db 0, 0
.Warps:
db 0
.XYTriggers:
db 0
.Signposts:
db 2
2016-04-06 21:59:45 -07:00
signpost 3, 5, SIGNPOST_READ, Route37Sign
signpost 2, 4, SIGNPOST_ITEM, Route37HiddenEther
.PersonEvents:
db 7
person_event SPRITE_WEIRD_TREE, 12, 6, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, PERSONTYPE_TRAINER, 1, TrainerTwinsAnnandanne1, -1
person_event SPRITE_WEIRD_TREE, 12, 7, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, PERSONTYPE_TRAINER, 1, TrainerTwinsAnnandanne2, -1
person_event SPRITE_YOUNGSTER, 6, 6, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, (1 << 3) | PAL_OW_BLUE, PERSONTYPE_TRAINER, 1, TrainerPsychicGreg, -1
person_event SPRITE_FRUIT_TREE, 5, 13, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, FruitTreeScript_0x1a8e09, -1
person_event SPRITE_BUG_CATCHER, 8, 16, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, 0, PERSONTYPE_SCRIPT, 0, SunnyScript, EVENT_ROUTE_37_SUNNY_OF_SUNDAY
person_event SPRITE_FRUIT_TREE, 5, 16, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, FruitTreeScript_0x1a8e0b, -1
person_event SPRITE_FRUIT_TREE, 7, 15, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, FruitTreeScript_0x1a8e0d, -1