pokecrystal-board/maps/Route39Barn.asm
Rangi 32ed487a47 Merge branch 'master' of https://github.com/pret/pokecrystal
# Conflicts:
#	audio/engine.asm
#	constants/gfx_constants.asm
#	constants/map_data_constants.asm
#	constants/pokemon_data_constants.asm
#	constants/sprite_constants.asm
#	constants/wram_constants.asm
#	data/maps/data.asm
#	engine/battle/ai/scoring.asm
#	engine/battle/core.asm
#	engine/battle/effect_commands.asm
#	engine/battle/misc.asm
#	engine/battle_anims/getpokeballwobble.asm
#	engine/breeding.asm
#	engine/buy_sell_toss.asm
#	engine/decorations.asm
#	engine/events/battle_tower/battle_tower.asm
#	engine/events/battle_tower/rules.asm
#	engine/events/buena.asm
#	engine/events/bug_contest/contest_2.asm
#	engine/events/daycare.asm
#	engine/events/dratini.asm
#	engine/events/halloffame.asm
#	engine/events/happiness_egg.asm
#	engine/events/kurt.asm
#	engine/events/lucky_number.asm
#	engine/events/magnet_train.asm
#	engine/events/overworld.asm
#	engine/events/pokerus/pokerus.asm
#	engine/events/print_unown.asm
#	engine/events/print_unown_2.asm
#	engine/events/unown_walls.asm
#	engine/item_effects.asm
#	engine/link.asm
#	engine/mon_menu.asm
#	engine/player_object.asm
#	engine/routines/playslowcry.asm
#	engine/scripting.asm
#	engine/search.asm
#	engine/search2.asm
#	engine/specials.asm
#	engine/start_menu.asm
#	engine/timeset.asm
#	home/battle_vars.asm
#	home/map.asm
#	maps/GoldenrodUndergroundSwitchRoomEntrances.asm
#	maps/IlexForest.asm
#	maps/KrissHouse2F.asm
#	maps/Route39Barn.asm
#	mobile/mobile_12_2.asm
#	mobile/mobile_40.asm
#	mobile/mobile_5f.asm
#	wram.asm
2018-02-03 19:42:56 -05:00

204 lines
3.4 KiB
NASM

const_def 2 ; object constants
const ROUTE39BARN_TWIN1
const ROUTE39BARN_TWIN2
const ROUTE39BARN_MOOMOO
Route39Barn_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
TwinScript_0x9cc76:
faceplayer
opentext
checkevent EVENT_HEALED_MOOMOO
iftrue .FeedingMooMoo
writetext Text_MoomooIsSick
waitbutton
closetext
objectface ROUTE39BARN_TWIN1, RIGHT
end
.FeedingMooMoo:
writetext Text_WereFeedingMoomoo
waitbutton
closetext
objectface ROUTE39BARN_TWIN1, RIGHT
end
TwinScript_0x9cc90:
faceplayer
opentext
checkevent EVENT_HEALED_MOOMOO
iftrue .FeedingMooMoo
writetext Text_MoomooIsSick
waitbutton
closetext
objectface ROUTE39BARN_TWIN2, LEFT
end
.FeedingMooMoo:
writetext Text_WereFeedingMoomoo
waitbutton
closetext
objectface ROUTE39BARN_TWIN2, LEFT
end
MooMoo:
opentext
checkevent EVENT_HEALED_MOOMOO
iftrue .HappyCow
writetext Text_WeakMoo
writebyte MILTANK
special PlaySlowCry
buttonsound
writetext Text_ItsCryIsWeak
checkevent EVENT_TALKED_TO_FARMER_ABOUT_MOOMOO
iftrue .GiveBerry
waitbutton
closetext
end
.GiveBerry:
buttonsound
writetext Text_AskGiveBerry
yesorno
iffalse .Refused
checkitem BERRY
iffalse .NoBerriesInBag
takeitem BERRY
copybytetovar wMooMooBerries
addvar 1
copyvartobyte wMooMooBerries
ifequal 3, .ThreeBerries
ifequal 5, .FiveBerries
ifequal 7, .SevenBerries
writetext Text_GaveBerry
waitbutton
closetext
end
.ThreeBerries:
writetext Text_GaveBerry
buttonsound
writetext Text_LittleHealthier
waitbutton
closetext
end
.FiveBerries:
writetext Text_GaveBerry
buttonsound
writetext Text_QuiteHealthy
waitbutton
closetext
end
.SevenBerries:
playmusic MUSIC_HEAL
writetext Text_GaveBerry
pause 60
buttonsound
special RestartMapMusic
writetext Text_TotallyHealthy
waitbutton
closetext
setevent EVENT_HEALED_MOOMOO
end
.NoBerriesInBag:
writetext Text_NoBerries
waitbutton
closetext
end
.Refused:
writetext Text_RefusedToGiveBerry
waitbutton
closetext
end
.HappyCow:
writetext UnknownText_0x9cd92
cry MILTANK
waitbutton
closetext
end
Text_MoomooIsSick:
text "MOOMOO is sick…"
para "She needs lots of"
line "BERRIES."
done
Text_WereFeedingMoomoo:
text "We're feeding"
line "MOOMOO!"
done
Text_WeakMoo:
text "MILTANK: …Moo…"
done
Text_ItsCryIsWeak:
text "Its cry is weak…"
done
UnknownText_0x9cd92:
text "MILTANK: Mooo!"
done
Text_AskGiveBerry:
text "Give a BERRY to"
line "MILTANK?"
done
Text_GaveBerry:
text "<PLAYER> gave a"
line "BERRY to MILTANK."
done
Text_LittleHealthier:
text "MILTANK became a"
line "little healthier!"
done
Text_QuiteHealthy:
text "MILTANK became"
line "quite healthy!"
done
Text_TotallyHealthy:
text "MILTANK became"
line "totally healthy!"
done
Text_NoBerries:
text "<PLAYER> has no"
line "BERRIES…"
done
Text_RefusedToGiveBerry:
text "<PLAYER> wouldn't"
line "give a BERRY."
para "MILTANK looks sad."
done
Route39Barn_MapEvents:
db 0, 0 ; filler
db 2 ; warp events
warp_event 3, 7, ROUTE_39, 1
warp_event 4, 7, ROUTE_39, 1
db 0 ; coord events
db 0 ; bg events
db 3 ; object events
object_event 2, 3, SPRITE_TWIN, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, TwinScript_0x9cc76, -1
object_event 4, 3, SPRITE_TWIN, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, TwinScript_0x9cc90, -1
object_event 3, 3, SPRITE_TAUROS, SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, MooMoo, -1