pokecrystal/macros/scripts/events.asm

1065 lines
17 KiB
NASM
Raw Normal View History

; ScriptCommandTable indexes (see engine/overworld/scripting.asm)
enum_start
2017-12-15 05:38:52 +00:00
enum scall_command ; $00
scall: MACRO
db scall_command
2015-01-20 08:01:23 +00:00
dw \1 ; pointer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum farscall_command ; $01
farscall: MACRO
db farscall_command
2015-12-09 16:38:40 +00:00
dba \1
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum memcall_command ; $02
memcall: MACRO
db memcall_command
2015-01-20 08:01:23 +00:00
dw \1 ; pointer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum sjump_command ; $03
sjump: MACRO
db sjump_command
2015-01-20 08:01:23 +00:00
dw \1 ; pointer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum farsjump_command ; $04
farsjump: MACRO
db farsjump_command
2015-12-09 16:38:40 +00:00
dba \1
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum memjump_command ; $05
memjump: MACRO
db memjump_command
2015-01-20 08:01:23 +00:00
dw \1 ; pointer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2018-02-03 02:09:17 +00:00
enum ifequal_command ; $06
ifequal: MACRO
db ifequal_command
2015-01-20 08:01:23 +00:00
db \1 ; byte
dw \2 ; pointer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2018-02-03 02:09:17 +00:00
enum ifnotequal_command ; $07
ifnotequal: MACRO
db ifnotequal_command
2015-01-20 08:01:23 +00:00
db \1 ; byte
dw \2 ; pointer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum iffalse_command ; $08
iffalse: MACRO
db iffalse_command
2015-01-20 08:01:23 +00:00
dw \1 ; pointer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum iftrue_command ; $09
iftrue: MACRO
db iftrue_command
2015-01-20 08:01:23 +00:00
dw \1 ; pointer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2018-02-03 02:09:17 +00:00
enum ifgreater_command ; $0a
ifgreater: MACRO
db ifgreater_command
2015-01-20 08:01:23 +00:00
db \1 ; byte
dw \2 ; pointer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2018-02-03 02:09:17 +00:00
enum ifless_command ; $0b
ifless: MACRO
db ifless_command
2015-01-20 08:01:23 +00:00
db \1 ; byte
dw \2 ; pointer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum jumpstd_command ; $0c
jumpstd: MACRO
db jumpstd_command
dw (\1StdScript - StdScripts) / 3
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum callstd_command ; $0d
callstd: MACRO
db callstd_command
dw (\1StdScript - StdScripts) / 3
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum callasm_command ; $0e
callasm: MACRO
db callasm_command
2015-12-09 16:38:40 +00:00
dba \1
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum special_command ; $0f
special: MACRO
db special_command
dw (\1Special - SpecialsPointers) / 3
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum memcallasm_command ; $10
memcallasm: MACRO
db memcallasm_command
2015-01-20 08:01:23 +00:00
dw \1 ; asm
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum checkmapscene_command ; $11
checkmapscene: MACRO
db checkmapscene_command
map_id \1 ; map
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum setmapscene_command ; $12
setmapscene: MACRO
db setmapscene_command
map_id \1 ; map
db \2 ; scene_id
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum checkscene_command ; $13
checkscene: MACRO
db checkscene_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum setscene_command ; $14
setscene: MACRO
db setscene_command
db \1 ; scene_id
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum setval_command ; $15
setval: MACRO
db setval_command
2015-01-20 08:01:23 +00:00
db \1 ; value
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum addval_command ; $16
addval: MACRO
db addval_command
2015-01-20 08:01:23 +00:00
db \1 ; value
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum random_command ; $17
random: MACRO
db random_command
2015-01-20 08:01:23 +00:00
db \1 ; input
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum checkver_command ; $18
checkver: MACRO
db checkver_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum readmem_command ; $19
readmem: MACRO
db readmem_command
2015-01-20 08:01:23 +00:00
dw \1 ; address
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum writemem_command ; $1a
writemem: MACRO
db writemem_command
2015-01-20 08:01:23 +00:00
dw \1 ; address
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum loadmem_command ; $1b
loadmem: MACRO
db loadmem_command
2015-01-20 08:01:23 +00:00
dw \1 ; address
db \2 ; value
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum readvar_command ; $1c
readvar: MACRO
db readvar_command
2015-01-20 08:01:23 +00:00
db \1 ; variable_id
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum writevar_command ; $1d
writevar: MACRO
db writevar_command
2015-01-20 08:01:23 +00:00
db \1 ; variable_id
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum loadvar_command ; $1e
loadvar: MACRO
if STRIN("\1", "VAR_") != 1
; LEGACY: Support for the old name of "loadmem"
loadmem \1, \2
else
db loadvar_command
2015-01-20 08:01:23 +00:00
db \1 ; variable_id
db \2 ; value
endc
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum giveitem_command ; $1f
giveitem: MACRO
if _NARG == 1
giveitem \1, 1
else
db giveitem_command
2015-01-20 08:01:23 +00:00
db \1 ; item
db \2 ; quantity
2015-11-05 01:20:14 +00:00
endc
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum takeitem_command ; $20
takeitem: MACRO
if _NARG == 1
takeitem \1, 1
else
db takeitem_command
2015-01-20 08:01:23 +00:00
db \1 ; item
db \2 ; quantity
2015-11-05 01:20:14 +00:00
endc
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum checkitem_command ; $21
checkitem: MACRO
db checkitem_command
2015-01-20 08:01:23 +00:00
db \1 ; item
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum givemoney_command ; $22
givemoney: MACRO
db givemoney_command
2015-01-20 08:01:23 +00:00
db \1 ; account
dt \2 ; money
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum takemoney_command ; $23
takemoney: MACRO
db takemoney_command
2015-01-20 08:01:23 +00:00
db \1 ; account
dt \2 ; money
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum checkmoney_command ; $24
checkmoney: MACRO
db checkmoney_command
2015-01-20 08:01:23 +00:00
db \1 ; account
dt \2 ; money
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum givecoins_command ; $25
givecoins: MACRO
db givecoins_command
2015-01-20 08:01:23 +00:00
dw \1 ; coins
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum takecoins_command ; $26
takecoins: MACRO
db takecoins_command
2015-01-20 08:01:23 +00:00
dw \1 ; coins
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum checkcoins_command ; $27
checkcoins: MACRO
db checkcoins_command
2015-01-20 08:01:23 +00:00
dw \1 ; coins
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum addcellnum_command ; $28
addcellnum: MACRO
db addcellnum_command
2015-01-20 08:01:23 +00:00
db \1 ; person
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum delcellnum_command ; $29
delcellnum: MACRO
db delcellnum_command
2015-01-20 08:01:23 +00:00
db \1 ; person
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum checkcellnum_command ; $2a
checkcellnum: MACRO
db checkcellnum_command
2015-01-20 08:01:23 +00:00
db \1 ; person
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum checktime_command ; $2b
checktime: MACRO
db checktime_command
2015-01-20 08:01:23 +00:00
db \1 ; time
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum checkpoke_command ; $2c
checkpoke: MACRO
db checkpoke_command
2015-01-20 08:01:23 +00:00
db \1 ; pkmn
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum givepoke_command ; $2d
givepoke: MACRO
if _NARG == 2
givepoke \1, \2, NO_ITEM, FALSE
elif _NARG == 3
givepoke \1, \2, \3, FALSE
else
db givepoke_command
2015-01-20 08:01:23 +00:00
db \1 ; pokemon
db \2 ; level
db \3 ; item
db \4 ; trainer
2018-02-03 02:09:17 +00:00
if \4
2015-01-20 08:01:23 +00:00
dw \5 ; trainer_name_pointer
dw \6 ; pkmn_nickname
2018-02-03 02:09:17 +00:00
endc
endc
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum giveegg_command ; $2e
giveegg: MACRO
db giveegg_command
2015-01-20 08:01:23 +00:00
db \1 ; pkmn
db \2 ; level
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum givepokemail_command ; $2f
givepokemail: MACRO
db givepokemail_command
2015-01-20 08:01:23 +00:00
dw \1 ; pointer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum checkpokemail_command ; $30
checkpokemail: MACRO
db checkpokemail_command
2015-01-20 08:01:23 +00:00
dw \1 ; pointer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum checkevent_command ; $31
checkevent: MACRO
db checkevent_command
2015-01-20 08:01:23 +00:00
dw \1 ; event_flag
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum clearevent_command ; $32
clearevent: MACRO
db clearevent_command
2015-01-20 08:01:23 +00:00
dw \1 ; event_flag
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum setevent_command ; $33
setevent: MACRO
db setevent_command
2015-01-20 08:01:23 +00:00
dw \1 ; event_flag
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum checkflag_command ; $34
checkflag: MACRO
db checkflag_command
2015-01-20 08:01:23 +00:00
dw \1 ; engine_flag
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum clearflag_command ; $35
clearflag: MACRO
db clearflag_command
2015-01-20 08:01:23 +00:00
dw \1 ; engine_flag
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum setflag_command ; $36
setflag: MACRO
db setflag_command
2015-01-20 08:01:23 +00:00
dw \1 ; engine_flag
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum wildon_command ; $37
wildon: MACRO
db wildon_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum wildoff_command ; $38
wildoff: MACRO
db wildoff_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum xycompare_command ; $39
xycompare: MACRO
db xycompare_command
2015-01-20 08:01:23 +00:00
dw \1 ; pointer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum warpmod_command ; $3a
warpmod: MACRO
db warpmod_command
2015-01-20 08:01:23 +00:00
db \1 ; warp_id
map_id \2 ; map
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum blackoutmod_command ; $3b
blackoutmod: MACRO
db blackoutmod_command
map_id \1 ; map
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum warp_command ; $3c
warp: MACRO
db warp_command
map_id \1 ; map
db \2 ; x
db \3 ; y
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum getmoney_command ; $3d
getmoney: MACRO
db getmoney_command
db \2 ; account
db \1 ; string_buffer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum getcoins_command ; $3e
getcoins: MACRO
db getcoins_command
db \1 ; string_buffer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum getnum_command ; $3f
getnum: MACRO
db getnum_command
db \1 ; string_buffer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum getmonname_command ; $40
getmonname: MACRO
db getmonname_command
db \2 ; pokemon
db \1 ; string_buffer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum getitemname_command ; $41
getitemname: MACRO
db getitemname_command
db \2 ; item
db \1 ; string_buffer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum getcurlandmarkname_command ; $42
getcurlandmarkname: MACRO
db getcurlandmarkname_command
db \1 ; string_buffer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum gettrainername_command ; $43
gettrainername: MACRO
db gettrainername_command
2015-01-20 08:01:23 +00:00
db \2 ; trainer_group
db \3 ; trainer_id
db \1 ; string_buffer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum getstring_command ; $44
getstring: MACRO
db getstring_command
dw \2 ; text_pointer
db \1 ; string_buffer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum itemnotify_command ; $45
itemnotify: MACRO
db itemnotify_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum pocketisfull_command ; $46
pocketisfull: MACRO
db pocketisfull_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum opentext_command ; $47
opentext: MACRO
2015-12-09 23:25:44 +00:00
db opentext_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum refreshscreen_command ; $48
refreshscreen: MACRO
if _NARG == 0
refreshscreen 0
else
db refreshscreen_command
2015-01-20 08:01:23 +00:00
db \1 ; dummy
2018-01-12 06:40:20 +00:00
endc
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum closetext_command ; $49
closetext: MACRO
2015-11-25 15:16:29 +00:00
db closetext_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2019-04-19 15:35:27 +00:00
enum writeunusedbytebuffer_command ; $4a
writeunusedbytebuffer: MACRO
db writeunusedbytebuffer_command
2015-01-20 08:01:23 +00:00
db \1 ; byte
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum farwritetext_command ; $4b
farwritetext: MACRO
db farwritetext_command
2015-12-09 16:38:40 +00:00
dba \1
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum writetext_command ; $4c
writetext: MACRO
db writetext_command
2015-01-20 08:01:23 +00:00
dw \1 ; text_pointer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum repeattext_command ; $4d
repeattext: MACRO
db repeattext_command
2015-01-20 08:01:23 +00:00
db \1 ; byte
db \2 ; byte
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum yesorno_command ; $4e
yesorno: MACRO
db yesorno_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum loadmenu_command ; $4f
loadmenu: MACRO
db loadmenu_command
dw \1 ; menu_header
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum closewindow_command ; $50
closewindow: MACRO
db closewindow_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum jumptextfaceplayer_command ; $51
jumptextfaceplayer: MACRO
db jumptextfaceplayer_command
2015-01-20 08:01:23 +00:00
dw \1 ; text_pointer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum farjumptext_command ; $52
farjumptext: MACRO
db farjumptext_command
2015-12-09 16:38:40 +00:00
dba \1
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum jumptext_command ; $53
jumptext: MACRO
db jumptext_command
2015-01-20 08:01:23 +00:00
dw \1 ; text_pointer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum waitbutton_command ; $54
waitbutton: MACRO
2015-11-25 15:16:29 +00:00
db waitbutton_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2019-11-03 17:48:54 +00:00
enum promptbutton_command ; $55
promptbutton: MACRO
db promptbutton_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum pokepic_command ; $56
pokepic: MACRO
db pokepic_command
2015-01-20 08:01:23 +00:00
db \1 ; pokemon
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum closepokepic_command ; $57
closepokepic: MACRO
2015-11-25 15:16:29 +00:00
db closepokepic_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum _2dmenu_command ; $58
_2dmenu: MACRO
2015-12-15 23:59:49 +00:00
db _2dmenu_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum verticalmenu_command ; $59
verticalmenu: MACRO
2015-12-15 23:59:49 +00:00
db verticalmenu_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum loadpikachudata_command ; $5a
loadpikachudata: MACRO
db loadpikachudata_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum randomwildmon_command ; $5b
randomwildmon: MACRO
db randomwildmon_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum loadtemptrainer_command ; $5c
loadtemptrainer: MACRO
db loadtemptrainer_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum loadwildmon_command ; $5d
loadwildmon: MACRO
db loadwildmon_command
2015-01-20 08:01:23 +00:00
db \1 ; pokemon
db \2 ; level
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum loadtrainer_command ; $5e
loadtrainer: MACRO
db loadtrainer_command
2015-01-20 08:01:23 +00:00
db \1 ; trainer_group
db \2 ; trainer_id
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum startbattle_command ; $5f
startbattle: MACRO
db startbattle_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum reloadmapafterbattle_command ; $60
reloadmapafterbattle: MACRO
db reloadmapafterbattle_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum catchtutorial_command ; $61
catchtutorial: MACRO
db catchtutorial_command
2015-01-20 08:01:23 +00:00
db \1 ; byte
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum trainertext_command ; $62
trainertext: MACRO
db trainertext_command
db \1 ; text_id
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum trainerflagaction_command ; $63
trainerflagaction: MACRO
2015-11-25 15:16:29 +00:00
db trainerflagaction_command
2015-01-20 08:01:23 +00:00
db \1 ; action
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum winlosstext_command ; $64
winlosstext: MACRO
db winlosstext_command
2015-01-20 08:01:23 +00:00
dw \1 ; win_text_pointer
dw \2 ; loss_text_pointer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum scripttalkafter_command ; $65
scripttalkafter: MACRO
db scripttalkafter_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2018-02-03 02:09:17 +00:00
enum endifjustbattled_command ; $66
endifjustbattled: MACRO
db endifjustbattled_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2018-02-03 02:09:17 +00:00
enum checkjustbattled_command ; $67
checkjustbattled: MACRO
db checkjustbattled_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum setlasttalked_command ; $68
setlasttalked: MACRO
db setlasttalked_command
db \1 ; object id
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum applymovement_command ; $69
applymovement: MACRO
db applymovement_command
db \1 ; object id
2015-01-20 08:01:23 +00:00
dw \2 ; data
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum applymovementlasttalked_command ; $6a
applymovementlasttalked: MACRO
db applymovementlasttalked_command
2015-01-20 08:01:23 +00:00
dw \1 ; data
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum faceplayer_command ; $6b
faceplayer: MACRO
db faceplayer_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum faceobject_command ; $6c
faceobject: MACRO
db faceobject_command
db \1 ; object1
db \2 ; object2
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum variablesprite_command ; $6d
variablesprite: MACRO
db variablesprite_command
db \1 - SPRITE_VARS ; byte
2015-01-20 08:01:23 +00:00
db \2 ; sprite
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum disappear_command ; $6e
disappear: MACRO
db disappear_command
db \1 ; object id
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum appear_command ; $6f
appear: MACRO
db appear_command
db \1 ; object id
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum follow_command ; $70
follow: MACRO
db follow_command
db \1 ; object2
db \2 ; object1
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum stopfollow_command ; $71
stopfollow: MACRO
db stopfollow_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum moveobject_command ; $72
moveobject: MACRO
db moveobject_command
db \1 ; object id
2015-01-20 08:01:23 +00:00
db \2 ; x
db \3 ; y
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum writeobjectxy_command ; $73
writeobjectxy: MACRO
db writeobjectxy_command
db \1 ; object id
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum loademote_command ; $74
loademote: MACRO
db loademote_command
2015-01-20 08:01:23 +00:00
db \1 ; bubble
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum showemote_command ; $75
showemote: MACRO
db showemote_command
2015-01-20 08:01:23 +00:00
db \1 ; bubble
db \2 ; object id
2015-01-20 08:01:23 +00:00
db \3 ; time
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum turnobject_command ; $76
turnobject: MACRO
db turnobject_command
db \1 ; object id
2015-01-20 08:01:23 +00:00
db \2 ; facing
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum follownotexact_command ; $77
follownotexact: MACRO
db follownotexact_command
db \1 ; object2
db \2 ; object1
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum earthquake_command ; $78
earthquake: MACRO
db earthquake_command
2015-01-20 08:01:23 +00:00
db \1 ; param
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum changemapblocks_command ; $79
changemapblocks: MACRO
db changemapblocks_command
dba \1 ; map_data_pointer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum changeblock_command ; $7a
changeblock: MACRO
db changeblock_command
2015-01-20 08:01:23 +00:00
db \1 ; x
db \2 ; y
db \3 ; block
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum reloadmap_command ; $7b
reloadmap: MACRO
db reloadmap_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum reloadmappart_command ; $7c
reloadmappart: MACRO
db reloadmappart_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum writecmdqueue_command ; $7d
writecmdqueue: MACRO
db writecmdqueue_command
2015-01-20 08:01:23 +00:00
dw \1 ; queue_pointer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum delcmdqueue_command ; $7e
delcmdqueue: MACRO
db delcmdqueue_command
2015-01-20 08:01:23 +00:00
db \1 ; byte
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum playmusic_command ; $7f
playmusic: MACRO
db playmusic_command
2015-01-20 08:01:23 +00:00
dw \1 ; music_pointer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum encountermusic_command ; $80
encountermusic: MACRO
2015-11-25 15:16:29 +00:00
db encountermusic_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum musicfadeout_command ; $81
musicfadeout: MACRO
db musicfadeout_command
2015-01-20 08:01:23 +00:00
dw \1 ; music
db \2 ; fadetime
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum playmapmusic_command ; $82
playmapmusic: MACRO
db playmapmusic_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum dontrestartmapmusic_command ; $83
dontrestartmapmusic: MACRO
db dontrestartmapmusic_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum cry_command ; $84
cry: MACRO
db cry_command
2015-01-20 08:01:23 +00:00
dw \1 ; cry_id
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum playsound_command ; $85
playsound: MACRO
db playsound_command
2015-01-20 08:01:23 +00:00
dw \1 ; sound_pointer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum waitsfx_command ; $86
waitsfx: MACRO
2015-11-25 15:16:29 +00:00
db waitsfx_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum warpsound_command ; $87
warpsound: MACRO
db warpsound_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum specialsound_command ; $88
specialsound: MACRO
db specialsound_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2019-02-16 21:06:11 +00:00
enum autoinput_command ; $89
autoinput: MACRO
db autoinput_command
2019-02-16 21:09:31 +00:00
dba \1
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum newloadmap_command ; $8a
newloadmap: MACRO
db newloadmap_command
2015-01-20 08:01:23 +00:00
db \1 ; which_method
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum pause_command ; $8b
pause: MACRO
db pause_command
2015-01-20 08:01:23 +00:00
db \1 ; length
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum deactivatefacing_command ; $8c
deactivatefacing: MACRO
db deactivatefacing_command
2015-01-20 08:01:23 +00:00
db \1 ; time
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum prioritysjump_command ; $8d
prioritysjump: MACRO
db prioritysjump_command
2015-01-20 08:01:23 +00:00
dw \1 ; pointer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum warpcheck_command ; $8e
warpcheck: MACRO
db warpcheck_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum stopandsjump_command ; $8f
stopandsjump: MACRO
db stopandsjump_command
2015-01-20 08:01:23 +00:00
dw \1 ; pointer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum return_command ; $90
return: MACRO
db return_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum end_command ; $91
end: MACRO
db end_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum reloadandreturn_command ; $92
reloadandreturn: MACRO
db reloadandreturn_command
2015-01-20 08:01:23 +00:00
db \1 ; which_method
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2018-02-03 02:09:17 +00:00
enum endall_command ; $93
endall: MACRO
db endall_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum pokemart_command ; $94
pokemart: MACRO
db pokemart_command
2015-01-20 08:01:23 +00:00
db \1 ; dialog_id
dw \2 ; mart_id
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum elevator_command ; $95
elevator: MACRO
db elevator_command
2015-01-20 08:01:23 +00:00
dw \1 ; floor_list_pointer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum trade_command ; $96
trade: MACRO
db trade_command
2015-01-20 08:01:23 +00:00
db \1 ; trade_id
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum askforphonenumber_command ; $97
askforphonenumber: MACRO
db askforphonenumber_command
2015-01-20 08:01:23 +00:00
db \1 ; number
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum phonecall_command ; $98
phonecall: MACRO
db phonecall_command
2015-01-20 08:01:23 +00:00
dw \1 ; caller_name
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum hangup_command ; $99
hangup: MACRO
db hangup_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum describedecoration_command ; $9a
describedecoration: MACRO
db describedecoration_command
2015-01-20 08:01:23 +00:00
db \1 ; byte
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum fruittree_command ; $9b
fruittree: MACRO
db fruittree_command
2015-01-20 08:01:23 +00:00
db \1 ; tree_id
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum specialphonecall_command ; $9c
specialphonecall: MACRO
db specialphonecall_command
2015-01-20 08:01:23 +00:00
dw \1 ; call_id
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum checkphonecall_command ; $9d
checkphonecall: MACRO
db checkphonecall_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum verbosegiveitem_command ; $9e
verbosegiveitem: MACRO
if _NARG == 1
verbosegiveitem \1, 1
else
db verbosegiveitem_command
2015-01-20 08:01:23 +00:00
db \1 ; item
db \2 ; quantity
2015-11-05 01:20:14 +00:00
endc
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum verbosegiveitemvar_command ; $9f
verbosegiveitemvar: MACRO
db verbosegiveitemvar_command
2015-01-20 08:01:23 +00:00
db \1 ; item
db \2 ; var
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum swarm_command ; $a0
swarm: MACRO
2015-12-09 16:38:40 +00:00
db swarm_command
2015-01-20 08:01:23 +00:00
db \1 ; flag
map_id \2 ; map
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum halloffame_command ; $a1
halloffame: MACRO
db halloffame_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum credits_command ; $a2
credits: MACRO
db credits_command
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum warpfacing_command ; $a3
warpfacing: MACRO
db warpfacing_command
2015-01-20 08:01:23 +00:00
db \1 ; facing
map_id \2 ; map
db \3 ; x
db \4 ; y
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum battletowertext_command ; $a4
battletowertext: MACRO
2015-11-04 03:35:36 +00:00
db battletowertext_command
db \1 ; bttext_id
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum getlandmarkname_command ; $a5
getlandmarkname: MACRO
db getlandmarkname_command
db \2 ; landmark_id
db \1 ; string_buffer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum gettrainerclassname_command ; $a6
gettrainerclassname: MACRO
db gettrainerclassname_command
db \2 ; trainer_group
db \1 ; string_buffer
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
enum getname_command ; $a7
getname: MACRO
db getname_command
db \2 ; type
db \3 ; id
db \1 ; memory
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum wait_command ; $a8
wait: MACRO
db wait_command
2015-01-20 08:01:23 +00:00
db \1 ; duration
2017-12-28 21:31:16 +00:00
ENDM
2015-01-20 08:01:23 +00:00
2018-02-03 02:09:17 +00:00
enum checksave_command ; $a9
checksave: MACRO
db checksave_command
2017-12-28 21:31:16 +00:00
ENDM