summaryrefslogtreecommitdiff
path: root/data/maps/Route123_BerryMastersHouse
diff options
context:
space:
mode:
authorGarak <thomastaps194@comcast.net>2018-07-04 11:11:45 -0400
committerGitHub <noreply@github.com>2018-07-04 11:11:45 -0400
commite06b63efc9ea39875b17f00e5ff20c2e0fcb0415 (patch)
treee8d37347ae000823943ef57973dc34dd98633b40 /data/maps/Route123_BerryMastersHouse
parent9acd55ae4f9e455a92765aaee5929240097f9f8f (diff)
parentefebc51972b23ddffa2700b1dd6895d4728646a3 (diff)
Merge pull request #1 from pret/master
synching with source repo
Diffstat (limited to 'data/maps/Route123_BerryMastersHouse')
-rw-r--r--data/maps/Route123_BerryMastersHouse/events.inc11
-rw-r--r--data/maps/Route123_BerryMastersHouse/header.inc2
-rw-r--r--data/maps/Route123_BerryMastersHouse/scripts.inc153
3 files changed, 165 insertions, 1 deletions
diff --git a/data/maps/Route123_BerryMastersHouse/events.inc b/data/maps/Route123_BerryMastersHouse/events.inc
new file mode 100644
index 000000000..3f4725870
--- /dev/null
+++ b/data/maps/Route123_BerryMastersHouse/events.inc
@@ -0,0 +1,11 @@
+Route123_BerryMastersHouse_EventObjects: @ 853EACC
+ object_event 1, EVENT_OBJ_GFX_OLD_MAN_1, 0, 4, 4, 3, 8, 0, 0, 0, 0, Route123_BerryMastersHouse_EventScript_26F845, 0
+ object_event 2, EVENT_OBJ_GFX_OLD_WOMAN_2, 0, 7, 4, 3, 8, 0, 0, 0, 0, Route123_BerryMastersHouse_EventScript_26F8C0, 0
+
+Route123_BerryMastersHouse_MapWarps: @ 853EAFC
+ warp_def 3, 7, 0, 0, MAP_ROUTE123
+ warp_def 4, 7, 0, 0, MAP_ROUTE123
+
+Route123_BerryMastersHouse_MapEvents:: @ 853EB0C
+ map_events Route123_BerryMastersHouse_EventObjects, Route123_BerryMastersHouse_MapWarps, 0x0, 0x0
+
diff --git a/data/maps/Route123_BerryMastersHouse/header.inc b/data/maps/Route123_BerryMastersHouse/header.inc
index f086368ad..f1466f9e7 100644
--- a/data/maps/Route123_BerryMastersHouse/header.inc
+++ b/data/maps/Route123_BerryMastersHouse/header.inc
@@ -1,5 +1,5 @@
Route123_BerryMastersHouse: @ 8485CD4
- .4byte Route123_BerryMastersHouse_MapAttributes
+ .4byte House2_Layout
.4byte Route123_BerryMastersHouse_MapEvents
.4byte Route123_BerryMastersHouse_MapScripts
.4byte 0x0
diff --git a/data/maps/Route123_BerryMastersHouse/scripts.inc b/data/maps/Route123_BerryMastersHouse/scripts.inc
new file mode 100644
index 000000000..9e865ad6a
--- /dev/null
+++ b/data/maps/Route123_BerryMastersHouse/scripts.inc
@@ -0,0 +1,153 @@
+Route123_BerryMastersHouse_MapScripts:: @ 826F83B
+ map_script 3, Route123_BerryMastersHouse_MapScript1_26F841
+ .byte 0
+
+Route123_BerryMastersHouse_MapScript1_26F841: @ 826F841
+ setflag FLAG_LANDMARK_BERRY_MASTERS_HOUSE
+ end
+
+Route123_BerryMastersHouse_EventScript_26F845:: @ 826F845
+ lock
+ faceplayer
+ dodailyevents
+ checkflag FLAG_0x92D
+ goto_eq Route123_BerryMastersHouse_EventScript_26F8B6
+ msgbox Route123_BerryMastersHouse_Text_2A7386, 4
+ random 10
+ addvar VAR_RESULT, 20
+ addvar VAR_RESULT, 133
+ giveitem_std VAR_RESULT
+ compare VAR_RESULT, 0
+ goto_eq Route123_BerryMastersHouse_EventScript_272054
+ setflag FLAG_0x92D
+ msgbox Route123_BerryMastersHouse_Text_2A7428, 4
+ random 10
+ addvar VAR_RESULT, 20
+ addvar VAR_RESULT, 133
+ giveitem_std VAR_RESULT
+ compare VAR_RESULT, 0
+ goto_eq Route123_BerryMastersHouse_EventScript_272054
+ msgbox Route123_BerryMastersHouse_Text_2A7445, 4
+ release
+ end
+
+Route123_BerryMastersHouse_EventScript_26F8B6:: @ 826F8B6
+ msgbox Route123_BerryMastersHouse_Text_2A749E, 4
+ release
+ end
+
+Route123_BerryMastersHouse_EventScript_26F8C0:: @ 826F8C0
+ lock
+ faceplayer
+ dodailyevents
+ checkflag FLAG_0x931
+ goto_eq Route123_BerryMastersHouse_EventScript_26FA6F
+ msgbox Route123_BerryMastersHouse_Text_2A74E6, 4
+ setvar VAR_0x8004, 13
+ call Route123_BerryMastersHouse_EventScript_271E7C
+ lock
+ faceplayer
+ compare VAR_RESULT, 1
+ goto_eq Route123_BerryMastersHouse_EventScript_26F909
+ compare VAR_RESULT, 0
+ goto_eq Route123_BerryMastersHouse_EventScript_26F8F7
+ end
+
+Route123_BerryMastersHouse_EventScript_26F8F7:: @ 826F8F7
+ msgbox Route123_BerryMastersHouse_Text_2A7682, 4
+ msgbox Route123_BerryMastersHouse_Text_2A761B, 4
+ release
+ end
+
+Route123_BerryMastersHouse_EventScript_26F909:: @ 826F909
+ compare VAR_0x8004, 0
+ goto_eq Route123_BerryMastersHouse_EventScript_26F94C
+ compare VAR_0x8004, 1
+ goto_eq Route123_BerryMastersHouse_EventScript_26F97A
+ compare VAR_0x8004, 2
+ goto_eq Route123_BerryMastersHouse_EventScript_26F9AB
+ compare VAR_0x8004, 3
+ goto_eq Route123_BerryMastersHouse_EventScript_26F9DC
+ compare VAR_0x8004, 4
+ goto_eq Route123_BerryMastersHouse_EventScript_26FA0D
+ compare VAR_0x8004, 5
+ goto_eq Route123_BerryMastersHouse_EventScript_26FA3E
+ end
+
+Route123_BerryMastersHouse_EventScript_26F94C:: @ 826F94C
+ msgbox Route123_BerryMastersHouse_Text_2A75D0, 4
+ random 10
+ addvar VAR_RESULT, 133
+ giveitem_std VAR_RESULT
+ compare VAR_RESULT, 0
+ goto_eq Route123_BerryMastersHouse_EventScript_272054
+ goto Route123_BerryMastersHouse_EventScript_26FA79
+ release
+ end
+
+Route123_BerryMastersHouse_EventScript_26F97A:: @ 826F97A
+ checkflag FLAG_0x0F8
+ goto_eq Route123_BerryMastersHouse_EventScript_26F94C
+ msgbox Route123_BerryMastersHouse_Text_2A7583, 4
+ giveitem_std ITEM_SPELON_BERRY
+ compare VAR_RESULT, 0
+ goto_eq Route123_BerryMastersHouse_EventScript_272054
+ setflag FLAG_0x0F8
+ goto Route123_BerryMastersHouse_EventScript_26FA79
+ end
+
+Route123_BerryMastersHouse_EventScript_26F9AB:: @ 826F9AB
+ checkflag FLAG_0x0F9
+ goto_eq Route123_BerryMastersHouse_EventScript_26F94C
+ msgbox Route123_BerryMastersHouse_Text_2A7583, 4
+ giveitem_std ITEM_PAMTRE_BERRY
+ compare VAR_RESULT, 0
+ goto_eq Route123_BerryMastersHouse_EventScript_272054
+ setflag FLAG_0x0F9
+ goto Route123_BerryMastersHouse_EventScript_26FA79
+ end
+
+Route123_BerryMastersHouse_EventScript_26F9DC:: @ 826F9DC
+ checkflag FLAG_0x0FA
+ goto_eq Route123_BerryMastersHouse_EventScript_26F94C
+ msgbox Route123_BerryMastersHouse_Text_2A7583, 4
+ giveitem_std ITEM_WATMEL_BERRY
+ compare VAR_RESULT, 0
+ goto_eq Route123_BerryMastersHouse_EventScript_272054
+ setflag FLAG_0x0FA
+ goto Route123_BerryMastersHouse_EventScript_26FA79
+ end
+
+Route123_BerryMastersHouse_EventScript_26FA0D:: @ 826FA0D
+ checkflag FLAG_0x0FB
+ goto_eq Route123_BerryMastersHouse_EventScript_26F94C
+ msgbox Route123_BerryMastersHouse_Text_2A7583, 4
+ giveitem_std ITEM_DURIN_BERRY
+ compare VAR_RESULT, 0
+ goto_eq Route123_BerryMastersHouse_EventScript_272054
+ setflag FLAG_0x0FB
+ goto Route123_BerryMastersHouse_EventScript_26FA79
+ end
+
+Route123_BerryMastersHouse_EventScript_26FA3E:: @ 826FA3E
+ checkflag FLAG_0x0FC
+ goto_eq Route123_BerryMastersHouse_EventScript_26F94C
+ msgbox Route123_BerryMastersHouse_Text_2A7583, 4
+ giveitem_std ITEM_BELUE_BERRY
+ compare VAR_RESULT, 0
+ goto_eq Route123_BerryMastersHouse_EventScript_272054
+ setflag FLAG_0x0FC
+ goto Route123_BerryMastersHouse_EventScript_26FA79
+ end
+
+Route123_BerryMastersHouse_EventScript_26FA6F:: @ 826FA6F
+ msgbox Route123_BerryMastersHouse_Text_2A761B, 4
+ release
+ end
+
+Route123_BerryMastersHouse_EventScript_26FA79:: @ 826FA79
+ setflag FLAG_0x931
+ msgbox Route123_BerryMastersHouse_Text_2A761B, 4
+ release
+ end
+