summaryrefslogtreecommitdiff
path: root/data/event_scripts.s
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2018-12-17 09:24:56 -0500
committerGitHub <noreply@github.com>2018-12-17 09:24:56 -0500
commit07d63fc7faa20317bc49fd16674468fb1510271f (patch)
tree3a5c0972149b2b5c7598b67ea70bcdedf616eb0c /data/event_scripts.s
parent63c205e7d0094756ea851e0aed0852671329905c (diff)
parent0aceac2d340328b1d2af539820e872f04bda6214 (diff)
Merge pull request #31 from PikalaxALT/mevent
Decompile mevent.s; disassemble script pointers; decompile berry fix payload
Diffstat (limited to 'data/event_scripts.s')
-rw-r--r--data/event_scripts.s93
1 files changed, 75 insertions, 18 deletions
diff --git a/data/event_scripts.s b/data/event_scripts.s
index c27df1946..9baa201e5 100644
--- a/data/event_scripts.s
+++ b/data/event_scripts.s
@@ -1,19 +1,46 @@
.section script_data, "aw", %progbits
-gScriptCmdTable:: @ 815F9B4
- .incbin "baserom.gba", 0x15F9B4, 0x354
-
-gScriptCmdTableEnd:: @ 815FD08
- .incbin "baserom.gba", 0x15FD08, 0x4
-
-gUnknown_815FD0C:: @ 815FD0C
- .incbin "baserom.gba", 0x15FD0C, 0x54
-
-gUnknown_815FD60:: @ 815FD60
- .incbin "baserom.gba", 0x15FD60, 0x6F0
-
-gUnknown_8160450:: @ 8160450
- .incbin "baserom.gba", 0x160450, 0x28
+ .include "data/script_cmd_table.inc"
+
+ .align 2
+gSpecialVars:: @ 815FD0C
+ .4byte gSpecialVar_0x8000
+ .4byte gSpecialVar_0x8001
+ .4byte gSpecialVar_0x8002
+ .4byte gSpecialVar_0x8003
+ .4byte gSpecialVar_0x8004
+ .4byte gSpecialVar_0x8005
+ .4byte gSpecialVar_0x8006
+ .4byte gSpecialVar_0x8007
+ .4byte gSpecialVar_0x8008
+ .4byte gSpecialVar_0x8009
+ .4byte gSpecialVar_0x800A
+ .4byte gSpecialVar_0x800B
+ .4byte gSpecialVar_Facing
+ .4byte gSpecialVar_Result
+ .4byte gSpecialVar_ItemId
+ .4byte gSpecialVar_LastTalked
+ .4byte gSpecialVar_MonBoxId
+ .4byte gSpecialVar_MonBoxPos
+ .4byte gUnknown_20370DA
+ .4byte gUnknown_20370DC
+ .4byte gUnknown_20370DE
+
+ .include "data/specials.inc"
+
+ .align 2
+gStdScripts:: @ 8160450
+ .4byte gStdScript_81A667B
+ .4byte gStdScript_81A67B3
+ .4byte gStdScript_81A4E3F
+ .4byte gStdScript_81A4E4A
+ .4byte gStdScript_81A4E54
+ .4byte gStdScript_81A4E5C
+ .4byte gStdScript_81A501F
+ .4byte gStdScript_81A676C
+ .4byte gStdScript_81A8E58
+ .4byte gStdScript_81A4E66
+gStdScripts_End::
gUnknown_8160478:: @ 8160478
.incbin "baserom.gba", 0x160478, 0x886C
@@ -22,7 +49,22 @@ gUnknown_8168CE4:: @ 8168CE4
.incbin "baserom.gba", 0x168CE4, 0x33
gUnknown_8168D17:: @ 8168D17
- .incbin "baserom.gba", 0x168D17, 0x3C19D
+ .incbin "baserom.gba", 0x168D17, 0x3C128
+
+gStdScript_81A4E3F::
+ .incbin "baserom.gba", 0x1A4E3F, 0xB
+
+gStdScript_81A4E4A::
+ .incbin "baserom.gba", 0x1A4E4A, 0xA
+
+gStdScript_81A4E54::
+ .incbin "baserom.gba", 0x1A4E54, 0x8
+
+gStdScript_81A4E5C::
+ .incbin "baserom.gba", 0x1A4E5C, 0xA
+
+gStdScript_81A4E66::
+ .incbin "baserom.gba", 0x1A4E66, 0x4E
gUnknown_81A4EB4:: @ 81A4EB4
.incbin "baserom.gba", 0x1A4EB4, 0xD
@@ -40,7 +82,10 @@ gUnknown_81A4F3E:: @ 81A4F3E
.incbin "baserom.gba", 0x1A4F3E, 0x35
gUnknown_81A4F73:: @ 81A4F73
- .incbin "baserom.gba", 0x1A4F73, 0x117
+ .incbin "baserom.gba", 0x1A4F73, 0xAC
+
+gStdScript_81A501F::
+ .incbin "baserom.gba", 0x1A501F, 0x6B
gUnknown_81A508A:: @ 81A508A
.incbin "baserom.gba", 0x1A508A, 0x3EC
@@ -52,7 +97,16 @@ gUnknown_81A6481:: @ 81A6481
.incbin "baserom.gba", 0x1A6481, 0xCA
gUnknown_81A654B:: @ 81A654B
- .incbin "baserom.gba", 0x1A654B, 0x2F8
+ .incbin "baserom.gba", 0x1A654B, 0x130
+
+gStdScript_81A667B::
+ .incbin "baserom.gba", 0x1A667B, 0xF1
+
+gStdScript_81A676C::
+ .incbin "baserom.gba", 0x1A676C, 0x47
+
+gStdScript_81A67B3::
+ .incbin "baserom.gba", 0x1A67B3, 0x90
gUnknown_81A6843:: @ 81A6843
.incbin "baserom.gba", 0x1A6843, 0x112
@@ -226,7 +280,10 @@ gUnknown_81A8DD8:: @ 81A8DD8
.incbin "baserom.gba", 0x1A8DD8, 0x25
gUnknown_81A8DFD:: @ 81A8DFD
- .incbin "baserom.gba", 0x1A8DFD, 0x4309
+ .incbin "baserom.gba", 0x1A8DFD, 0x5B
+
+gStdScript_81A8E58::
+ .incbin "baserom.gba", 0x1A8E58, 0x42AE
.include "data/text/fame_checker.inc"