summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/event_scripts.s86
-rw-r--r--data/script_cmd_table.inc219
2 files changed, 291 insertions, 14 deletions
diff --git a/data/event_scripts.s b/data/event_scripts.s
index 5aef19caa..bc5e09b79 100644
--- a/data/event_scripts.s
+++ b/data/event_scripts.s
@@ -1,18 +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
+ .include "data/script_cmd_table.inc"
+
+ .align 2
+gSpecialVars:: @ 815FD0C
+ .4byte gUnknown_20370B8
+ .4byte gUnknown_20370BA
+ .4byte gUnknown_20370BC
+ .4byte gUnknown_20370BE
+ .4byte gUnknown_20370C0
+ .4byte gSpecialVar_0x8005
+ .4byte gUnknown_20370C4
+ .4byte gUnknown_20370C6
+ .4byte gUnknown_20370C8
+ .4byte gUnknown_20370CA
+ .4byte gUnknown_20370CC
+ .4byte gUnknown_20370CE
+ .4byte gUnknown_20370D4
+ .4byte gUnknown_20370D0
+ .4byte gUnknown_203AD30
+ .4byte gUnknown_20370D2
+ .4byte gSpecialVar_MonBoxId
+ .4byte gSpecialVar_MonBoxPos
+ .4byte gUnknown_20370DA
+ .4byte gUnknown_20370DC
+ .4byte gUnknown_20370DE
.include "data/specials.inc"
-gUnknown_8160450:: @ 8160450
- .incbin "baserom.gba", 0x160450, 0x28
+ .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
@@ -21,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
@@ -39,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
@@ -51,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
@@ -225,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"
diff --git a/data/script_cmd_table.inc b/data/script_cmd_table.inc
new file mode 100644
index 000000000..29850d685
--- /dev/null
+++ b/data/script_cmd_table.inc
@@ -0,0 +1,219 @@
+ .align 2
+
+gScriptCmdTable:: @ 815F9B4
+ .4byte sub_8069ED0
+ .4byte sub_8069ED4
+ .4byte ScrCmd_end
+ .4byte ScrCmd_return
+ .4byte ScrCmd_call
+ .4byte ScrCmd_goto
+ .4byte ScrCmd_goto_if
+ .4byte ScrCmd_call_if
+ .4byte ScrCmd_gotostd
+ .4byte ScrCmd_callstd
+ .4byte ScrCmd_gotostd_if
+ .4byte ScrCmd_callstd_if
+ .4byte ScrCmd_gotoram
+ .4byte ScrCmd_killscript
+ .4byte ScrCmd_setmysteryeventstatus
+ .4byte ScrCmd_loadword
+ .4byte ScrCmd_loadbyte
+ .4byte ScrCmd_writebytetoaddr
+ .4byte ScrCmd_loadbytefromaddr
+ .4byte ScrCmd_setptrbyte
+ .4byte ScrCmd_copylocal
+ .4byte ScrCmd_copybyte
+ .4byte ScrCmd_setvar
+ .4byte ScrCmd_addvar
+ .4byte ScrCmd_subvar
+ .4byte ScrCmd_copyvar
+ .4byte ScrCmd_setorcopyvar
+ .4byte ScrCmd_compare_local_to_local
+ .4byte ScrCmd_compare_local_to_value
+ .4byte ScrCmd_compare_local_to_addr
+ .4byte ScrCmd_compare_addr_to_local
+ .4byte ScrCmd_compare_addr_to_value
+ .4byte ScrCmd_compare_addr_to_addr
+ .4byte ScrCmd_compare_var_to_value
+ .4byte ScrCmd_compare_var_to_var
+ .4byte ScrCmd_callnative
+ .4byte ScrCmd_gotonative
+ .4byte sub_8069EFC
+ .4byte sub_8069F3C
+ .4byte sub_8069FA4
+ .4byte ScrCmd_delay
+ .4byte ScrCmd_setflag
+ .4byte ScrCmd_clearflag
+ .4byte ScrCmd_checkflag
+ .4byte sub_806A9D4
+ .4byte sub_806A9D8
+ .4byte sub_806A9DC
+ .4byte ScrCmd_playse
+ .4byte sub_806B094
+ .4byte ScrCmd_playfanfare
+ .4byte sub_806B0CC
+ .4byte sub_806B0E0
+ .4byte sub_806B120
+ .4byte sub_806B134
+ .4byte sub_806B154
+ .4byte sub_806B17C
+ .4byte sub_806B1C8
+ .4byte ScrCmd_warp
+ .4byte ScrCmd_warpsilent
+ .4byte ScrCmd_warpdoor
+ .4byte ScrCmd_warphole
+ .4byte sub_806AC70
+ .4byte ScrCmd_setwarp
+ .4byte ScrCmd_setdynamicwarp
+ .4byte sub_806AE90
+ .4byte sub_806AF10
+ .4byte ScrCmd_getplayerxy
+ .4byte ScrCmd_getpartysize
+ .4byte sub_806A610
+ .4byte ScrCmd_takeitem
+ .4byte sub_806A6A0
+ .4byte sub_806A6E4
+ .4byte ScrCmd_checkitemtype
+ .4byte ScrCmd_givepcitem
+ .4byte ScrCmd_checkpcitem
+ .4byte sub_806A7DC
+ .4byte sub_806A7F0
+ .4byte sub_806A818
+ .4byte sub_806A804
+ .4byte ScrCmd_applymovement
+ .4byte ScrCmd_applymovement_at
+ .4byte ScrCmd_waitmovement
+ .4byte ScrCmd_waitmovement_at
+ .4byte ScrCmd_removeobject
+ .4byte ScrCmd_removeobject_at
+ .4byte ScrCmd_addobject
+ .4byte ScrCmd_addobject_at
+ .4byte ScrCmd_setobjectxy
+ .4byte ScrCmd_showobject_at
+ .4byte ScrCmd_hideobject_at
+ .4byte ScrCmd_faceplayer
+ .4byte ScrCmd_turnobject
+ .4byte ScrCmd_trainerbattle
+ .4byte sub_806C2D8
+ .4byte ScrCmd_ontrainerbattleend
+ .4byte ScrCmd_ontrainerbattleendgoto
+ .4byte ScrCmd_checktrainerflag
+ .4byte ScrCmd_settrainerflag
+ .4byte ScrCmd_cleartrainerflag
+ .4byte ScrCmd_setobjectxyperm
+ .4byte ScrCmd_moveobjectoffscreen
+ .4byte ScrCmd_setobjectmovementtype
+ .4byte sub_806B878
+ .4byte sub_806B80C
+ .4byte sub_806B88C
+ .4byte ScrCmd_lockall
+ .4byte ScrCmd_lock
+ .4byte ScrCmd_releaseall
+ .4byte ScrCmd_release
+ .4byte sub_806BA3C
+ .4byte ScrCmd_yesnobox
+ .4byte ScrCmd_multichoice
+ .4byte ScrCmd_multichoicedefault
+ .4byte ScrCmd_multichoicegrid
+ .4byte sub_806BB38
+ .4byte sub_806BB8C
+ .4byte sub_806BB98
+ .4byte sub_806BB9C
+ .4byte sub_806BBD8
+ .4byte sub_806BBF8
+ .4byte sub_806BC04
+ .4byte ScrCmd_givemon
+ .4byte ScrCmd_giveegg
+ .4byte ScrCmd_setmonmove
+ .4byte ScrCmd_checkpartymove
+ .4byte ScrCmd_bufferspeciesname
+ .4byte ScrCmd_bufferleadmonspeciesname
+ .4byte ScrCmd_bufferpartymonnick
+ .4byte ScrCmd_bufferitemname
+ .4byte sub_806BE34
+ .4byte ScrCmd_buffermovename
+ .4byte ScrCmd_buffernumberstring
+ .4byte ScrCmd_bufferstdstring
+ .4byte ScrCmd_bufferstring
+ .4byte sub_806C3AC
+ .4byte sub_806C3C0
+ .4byte sub_806C3D4
+ .4byte ScrCmd_playslotmachine
+ .4byte sub_806C410
+ .4byte sub_806C418
+ .4byte sub_806C424
+ .4byte sub_806C428
+ .4byte sub_806C42C
+ .4byte ScrCmd_random
+ .4byte ScrCmd_givemoney
+ .4byte ScrCmd_takemoney
+ .4byte ScrCmd_checkmoney
+ .4byte sub_806C1CC
+ .4byte sub_806C21C
+ .4byte sub_806C228
+ .4byte sub_806C414
+ .4byte ScrCmd_fadescreen
+ .4byte ScrCmd_fadescreenspeed
+ .4byte ScrCmd_setflashradius
+ .4byte ScrCmd_animateflash
+ .4byte sub_806B85C
+ .4byte ScrCmd_dofieldeffect
+ .4byte ScrCmd_setfieldeffectarg
+ .4byte ScrCmd_waitfieldeffect
+ .4byte ScrCmd_setrespawn
+ .4byte ScrCmd_checkplayergender
+ .4byte ScrCmd_playmoncry
+ .4byte ScrCmd_setmetatile
+ .4byte ScrCmd_resetweather
+ .4byte ScrCmd_setweather
+ .4byte ScrCmd_doweather
+ .4byte ScrCmd_setstepcallback
+ .4byte ScrCmd_setmaplayoutindex
+ .4byte ScrCmd_setobjectpriority
+ .4byte ScrCmd_resetobjectpriority
+ .4byte ScrCmd_createvobject
+ .4byte ScrCmd_turnvobject
+ .4byte ScrCmd_opendoor
+ .4byte ScrCmd_closedoor
+ .4byte sub_806C688
+ .4byte ScrCmd_setdooropen
+ .4byte ScrCmd_setdoorclosed
+ .4byte sub_806C724
+ .4byte sub_806C728
+ .4byte ScrCmd_checkcoins
+ .4byte ScrCmd_givecoins
+ .4byte ScrCmd_takecoins
+ .4byte ScrCmd_setwildbattle
+ .4byte sub_806C39C
+ .4byte ScrCmd_setvaddress
+ .4byte ScrCmd_vgoto
+ .4byte ScrCmd_vcall
+ .4byte ScrCmd_vgoto_if
+ .4byte ScrCmd_vcall_if
+ .4byte ScrCmd_vmessage
+ .4byte ScrCmd_vloadword
+ .4byte ScrCmd_vbufferstring
+ .4byte sub_806C258
+ .4byte ScrCmd_hidecoinsbox
+ .4byte ScrCmd_updatecoinsbox
+ .4byte ScrCmd_incrementgamestat
+ .4byte ScrCmd_setescapewarp
+ .4byte sub_806C540
+ .4byte ScrCmd_bufferboxname
+ .4byte sub_806B7EC
+ .4byte sub_806B828
+ .4byte sub_806B850
+ .4byte sub_806C7BC
+ .4byte sub_806C7C8
+ .4byte sub_806A888
+ .4byte ScrCmd_setmonobedient
+ .4byte ScrCmd_checkmonobedience
+ .4byte sub_806A28C
+ .4byte sub_806A8C0
+ .4byte sub_806ACF8
+ .4byte sub_806C844
+ .4byte sub_806BC40
+ .4byte sub_806BD90
+
+gScriptCmdTableEnd:: @ 815FD08
+ .4byte sub_8069ED0