2020-07-24 13:49:26 +00:00
|
|
|
object_const_def
|
2015-11-27 05:22:14 +00:00
|
|
|
const ROUTE46_POKEFAN_M
|
|
|
|
const ROUTE46_YOUNGSTER
|
|
|
|
const ROUTE46_LASS
|
|
|
|
const ROUTE46_FRUIT_TREE1
|
|
|
|
const ROUTE46_FRUIT_TREE2
|
|
|
|
const ROUTE46_POKE_BALL
|
|
|
|
|
2018-01-17 03:57:19 +00:00
|
|
|
Route46_MapScripts:
|
2020-07-24 13:49:26 +00:00
|
|
|
def_scene_scripts
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2020-07-24 13:49:26 +00:00
|
|
|
def_callbacks
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
TrainerCamperTed:
|
2018-01-23 18:08:48 +00:00
|
|
|
trainer CAMPER, TED, EVENT_BEAT_CAMPER_TED, CamperTedSeenText, CamperTedBeatenText, 0, .Script
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-12-18 01:45:04 +00:00
|
|
|
.Script:
|
2018-02-03 02:09:17 +00:00
|
|
|
endifjustbattled
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2017-12-10 20:36:58 +00:00
|
|
|
writetext CamperTedAfterBattleText
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
TrainerPicnickerErin1:
|
2018-01-23 18:08:48 +00:00
|
|
|
trainer PICNICKER, ERIN1, EVENT_BEAT_PICNICKER_ERIN, PicnickerErin1SeenText, PicnickerErin1BeatenText, 0, .Script
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-12-18 01:45:04 +00:00
|
|
|
.Script:
|
2019-03-10 19:31:59 +00:00
|
|
|
loadvar VAR_CALLERID, PHONE_PICNICKER_ERIN
|
2018-02-03 02:09:17 +00:00
|
|
|
endifjustbattled
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2020-06-16 18:11:49 +00:00
|
|
|
checkflag ENGINE_ERIN_READY_FOR_REMATCH
|
2018-01-23 05:02:56 +00:00
|
|
|
iftrue .WantsBattle
|
2015-07-19 03:45:39 +00:00
|
|
|
checkcellnum PHONE_PICNICKER_ERIN
|
2018-01-23 05:02:56 +00:00
|
|
|
iftrue Route46NumberAcceptedF
|
2015-07-10 10:31:08 +00:00
|
|
|
checkevent EVENT_ERIN_ASKED_FOR_PHONE_NUMBER
|
2018-01-16 02:39:07 +00:00
|
|
|
iftrue .AskedAlready
|
|
|
|
writetext PicnickerErinAfterBattleText
|
2019-11-03 17:48:54 +00:00
|
|
|
promptbutton
|
2015-07-10 10:31:08 +00:00
|
|
|
setevent EVENT_ERIN_ASKED_FOR_PHONE_NUMBER
|
2018-01-23 05:02:56 +00:00
|
|
|
scall Route46AskNumber1F
|
2019-03-10 20:39:31 +00:00
|
|
|
sjump .AskForNumber
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-16 02:39:07 +00:00
|
|
|
.AskedAlready:
|
2018-01-23 05:02:56 +00:00
|
|
|
scall Route46AskNumber2F
|
2018-01-16 02:39:07 +00:00
|
|
|
.AskForNumber:
|
2015-07-19 03:45:39 +00:00
|
|
|
askforphonenumber PHONE_PICNICKER_ERIN
|
2018-02-03 02:09:17 +00:00
|
|
|
ifequal PHONE_CONTACTS_FULL, Route46PhoneFullF
|
|
|
|
ifequal PHONE_CONTACT_REFUSED, Route46NumberDeclinedF
|
2019-03-10 19:31:59 +00:00
|
|
|
gettrainername STRING_BUFFER_3, PICNICKER, ERIN1
|
2018-01-23 05:02:56 +00:00
|
|
|
scall Route46RegisteredNumberF
|
2019-03-10 20:39:31 +00:00
|
|
|
sjump Route46NumberAcceptedF
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-23 05:02:56 +00:00
|
|
|
.WantsBattle:
|
|
|
|
scall Route46RematchF
|
2015-11-02 19:37:02 +00:00
|
|
|
winlosstext PicnickerErin1BeatenText, 0
|
2019-03-10 19:31:59 +00:00
|
|
|
readmem wErinFightCount
|
2018-02-03 02:09:17 +00:00
|
|
|
ifequal 2, .Fight2
|
|
|
|
ifequal 1, .Fight1
|
|
|
|
ifequal 0, .LoadFight0
|
2016-04-10 18:42:14 +00:00
|
|
|
.Fight2:
|
2013-09-24 07:48:58 +00:00
|
|
|
checkevent EVENT_RESTORED_POWER_TO_KANTO
|
2015-07-10 09:37:34 +00:00
|
|
|
iftrue .LoadFight2
|
2016-04-10 18:42:14 +00:00
|
|
|
.Fight1:
|
2015-06-25 03:20:04 +00:00
|
|
|
checkevent EVENT_BEAT_ELITE_FOUR
|
2015-07-10 09:37:34 +00:00
|
|
|
iftrue .LoadFight1
|
2016-04-10 18:42:14 +00:00
|
|
|
.LoadFight0:
|
2015-12-02 02:54:11 +00:00
|
|
|
loadtrainer PICNICKER, ERIN1
|
2013-02-17 06:54:07 +00:00
|
|
|
startbattle
|
2015-12-26 23:11:55 +00:00
|
|
|
reloadmapafterbattle
|
2019-03-10 19:31:59 +00:00
|
|
|
loadmem wErinFightCount, 1
|
2020-06-16 18:11:49 +00:00
|
|
|
clearflag ENGINE_ERIN_READY_FOR_REMATCH
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2016-04-10 18:42:14 +00:00
|
|
|
.LoadFight1:
|
2015-12-02 02:54:11 +00:00
|
|
|
loadtrainer PICNICKER, ERIN2
|
2013-02-17 06:54:07 +00:00
|
|
|
startbattle
|
2015-12-26 23:11:55 +00:00
|
|
|
reloadmapafterbattle
|
2019-03-10 19:31:59 +00:00
|
|
|
loadmem wErinFightCount, 2
|
2020-06-16 18:11:49 +00:00
|
|
|
clearflag ENGINE_ERIN_READY_FOR_REMATCH
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2016-04-10 18:42:14 +00:00
|
|
|
.LoadFight2:
|
2015-12-02 02:54:11 +00:00
|
|
|
loadtrainer PICNICKER, ERIN3
|
2013-02-17 06:54:07 +00:00
|
|
|
startbattle
|
2015-12-26 23:11:55 +00:00
|
|
|
reloadmapafterbattle
|
2020-06-16 18:11:49 +00:00
|
|
|
clearflag ENGINE_ERIN_READY_FOR_REMATCH
|
2013-09-24 07:48:58 +00:00
|
|
|
checkevent EVENT_ERIN_CALCIUM
|
2018-01-16 02:39:07 +00:00
|
|
|
iftrue .HasCalcium
|
2015-07-10 09:37:34 +00:00
|
|
|
checkevent EVENT_GOT_CALCIUM_FROM_ERIN
|
2018-01-16 02:39:07 +00:00
|
|
|
iftrue .GotCalciumAlready
|
2018-01-23 05:02:56 +00:00
|
|
|
scall Route46RematchGiftF
|
2015-11-05 01:20:14 +00:00
|
|
|
verbosegiveitem CALCIUM
|
2018-01-16 02:39:07 +00:00
|
|
|
iffalse ErinNoRoomForCalcium
|
2015-07-10 09:37:34 +00:00
|
|
|
setevent EVENT_GOT_CALCIUM_FROM_ERIN
|
2019-03-10 20:39:31 +00:00
|
|
|
sjump Route46NumberAcceptedF
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-16 02:39:07 +00:00
|
|
|
.GotCalciumAlready:
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2018-01-16 02:39:07 +00:00
|
|
|
.HasCalcium:
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2018-01-16 02:39:07 +00:00
|
|
|
writetext PicnickerErin2BeatenText
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2015-11-05 01:20:14 +00:00
|
|
|
verbosegiveitem CALCIUM
|
2018-01-16 02:39:07 +00:00
|
|
|
iffalse ErinNoRoomForCalcium
|
2013-09-24 07:48:58 +00:00
|
|
|
clearevent EVENT_ERIN_CALCIUM
|
2015-07-10 09:37:34 +00:00
|
|
|
setevent EVENT_GOT_CALCIUM_FROM_ERIN
|
2019-03-10 20:39:31 +00:00
|
|
|
sjump Route46NumberAcceptedF
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-23 05:02:56 +00:00
|
|
|
Route46AskNumber1F:
|
2020-06-10 20:44:16 +00:00
|
|
|
jumpstd AskNumber1FScript
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2018-01-23 05:02:56 +00:00
|
|
|
Route46AskNumber2F:
|
2020-06-10 20:44:16 +00:00
|
|
|
jumpstd AskNumber2FScript
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2018-01-23 05:02:56 +00:00
|
|
|
Route46RegisteredNumberF:
|
2020-06-10 20:44:16 +00:00
|
|
|
jumpstd RegisteredNumberFScript
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2018-01-23 05:02:56 +00:00
|
|
|
Route46NumberAcceptedF:
|
2020-06-10 20:44:16 +00:00
|
|
|
jumpstd NumberAcceptedFScript
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2018-01-23 05:02:56 +00:00
|
|
|
Route46NumberDeclinedF:
|
2020-06-10 20:44:16 +00:00
|
|
|
jumpstd NumberDeclinedFScript
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2018-01-23 05:02:56 +00:00
|
|
|
Route46PhoneFullF:
|
2020-06-10 20:44:16 +00:00
|
|
|
jumpstd PhoneFullFScript
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2018-01-23 05:02:56 +00:00
|
|
|
Route46RematchF:
|
2020-06-10 20:44:16 +00:00
|
|
|
jumpstd RematchFScript
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2018-01-16 02:39:07 +00:00
|
|
|
ErinNoRoomForCalcium:
|
2013-09-24 07:48:58 +00:00
|
|
|
setevent EVENT_ERIN_CALCIUM
|
2020-06-10 20:44:16 +00:00
|
|
|
jumpstd PackFullFScript
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2018-01-23 05:02:56 +00:00
|
|
|
Route46RematchGiftF:
|
2020-06-10 20:44:16 +00:00
|
|
|
jumpstd RematchGiftFScript
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
TrainerHikerBailey:
|
2018-01-23 18:08:48 +00:00
|
|
|
trainer HIKER, BAILEY, EVENT_BEAT_HIKER_BAILEY, HikerBaileySeenText, HikerBaileyBeatenText, 0, .Script
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-12-18 01:45:04 +00:00
|
|
|
.Script:
|
2018-02-03 02:09:17 +00:00
|
|
|
endifjustbattled
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2017-12-10 20:36:58 +00:00
|
|
|
writetext HikerBaileyAfterBattleText
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2016-04-07 04:59:45 +00:00
|
|
|
Route46Sign:
|
|
|
|
jumptext Route46SignText
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-12-15 15:55:56 +00:00
|
|
|
Route46XSpeed:
|
|
|
|
itemball X_SPEED
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-02-28 21:50:43 +00:00
|
|
|
Route46FruitTree1:
|
2015-11-18 15:42:42 +00:00
|
|
|
fruittree FRUITTREE_ROUTE_46_1
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-02-28 21:50:43 +00:00
|
|
|
Route46FruitTree2:
|
2015-11-18 15:42:42 +00:00
|
|
|
fruittree FRUITTREE_ROUTE_46_2
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
HikerBaileySeenText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Awright! I'll show"
|
|
|
|
line "you the power of"
|
|
|
|
cont "mountain #MON!"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
HikerBaileyBeatenText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Mercy! You showed"
|
|
|
|
line "me your power!"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-12-10 20:36:58 +00:00
|
|
|
HikerBaileyAfterBattleText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "It's over. I don't"
|
|
|
|
line "mind. We HIKERS"
|
|
|
|
cont "are like that."
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
CamperTedSeenText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "I'm raising #-"
|
|
|
|
line "MON too!"
|
|
|
|
|
|
|
|
para "Will you battle"
|
|
|
|
line "with me?"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
CamperTedBeatenText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Wha…?"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-12-10 20:36:58 +00:00
|
|
|
CamperTedAfterBattleText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "I did my best but"
|
|
|
|
line "came up short."
|
|
|
|
|
|
|
|
para "No excuses--I"
|
|
|
|
line "admit I lost."
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
PicnickerErin1SeenText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "I raise #MON"
|
|
|
|
line "too!"
|
|
|
|
|
|
|
|
para "Will you battle"
|
|
|
|
line "with me?"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
PicnickerErin1BeatenText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Oh, rats!"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-16 02:39:07 +00:00
|
|
|
PicnickerErinAfterBattleText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "I've been to many"
|
|
|
|
line "GYMS, but the GYM"
|
|
|
|
|
|
|
|
para "in GOLDENROD is my"
|
|
|
|
line "favorite."
|
|
|
|
|
|
|
|
para "It's filled with"
|
|
|
|
line "pretty flowers!"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-16 02:39:07 +00:00
|
|
|
PicnickerErin2BeatenText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Aww… I keep losing"
|
|
|
|
line "all the time!"
|
|
|
|
|
|
|
|
para "I'll just have to"
|
|
|
|
line "try harder!"
|
|
|
|
|
|
|
|
para "Anyway, thanks for"
|
|
|
|
line "battling me again"
|
|
|
|
|
|
|
|
para "and again. Here's"
|
|
|
|
line "that present from"
|
|
|
|
cont "the other time."
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2016-04-07 04:59:45 +00:00
|
|
|
Route46SignText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "ROUTE 46"
|
|
|
|
line "MOUNTAIN RD. AHEAD"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-17 03:57:19 +00:00
|
|
|
Route46_MapEvents:
|
2018-01-30 19:15:47 +00:00
|
|
|
db 0, 0 ; filler
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2020-07-24 13:49:26 +00:00
|
|
|
def_warp_events
|
2018-02-02 03:22:07 +00:00
|
|
|
warp_event 7, 33, ROUTE_29_ROUTE_46_GATE, 1
|
|
|
|
warp_event 8, 33, ROUTE_29_ROUTE_46_GATE, 2
|
|
|
|
warp_event 14, 5, DARK_CAVE_VIOLET_ENTRANCE, 3
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2020-07-24 13:49:26 +00:00
|
|
|
def_coord_events
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2020-07-24 13:49:26 +00:00
|
|
|
def_bg_events
|
2018-02-02 03:22:07 +00:00
|
|
|
bg_event 9, 27, BGEVENT_READ, Route46Sign
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2020-07-24 13:49:26 +00:00
|
|
|
def_object_events
|
2017-12-28 19:31:25 +00:00
|
|
|
object_event 12, 19, SPRITE_POKEFAN_M, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_TRAINER, 2, TrainerHikerBailey, -1
|
2018-02-02 03:22:07 +00:00
|
|
|
object_event 4, 14, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_TRAINER, 2, TrainerCamperTed, -1
|
|
|
|
object_event 2, 13, SPRITE_LASS, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_TRAINER, 2, TrainerPicnickerErin1, -1
|
2018-02-28 21:50:43 +00:00
|
|
|
object_event 7, 5, SPRITE_FRUIT_TREE, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route46FruitTree1, -1
|
|
|
|
object_event 8, 6, SPRITE_FRUIT_TREE, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route46FruitTree2, -1
|
2018-02-02 03:22:07 +00:00
|
|
|
object_event 1, 15, SPRITE_POKE_BALL, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, Route46XSpeed, EVENT_ROUTE_46_X_SPEED
|