pokecrystal/macros/scripts/event.asm

1070 lines
17 KiB
NASM
Raw Normal View History

; ScriptCommandTable indexes (see engine/scripting.asm)
enum_start
2017-12-15 05:38:52 +00:00
enum scall_command ; $00
2015-01-20 08:01:23 +00:00
scall: macro
db scall_command
2015-01-20 08:01:23 +00:00
dw \1 ; pointer
endm
2017-12-15 05:38:52 +00:00
enum farscall_command ; $01
2015-01-20 08:01:23 +00:00
farscall: macro
db farscall_command
2015-12-09 16:38:40 +00:00
dba \1
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum ptcall_command ; $02
2015-01-20 08:01:23 +00:00
ptcall: macro
db ptcall_command
2015-01-20 08:01:23 +00:00
dw \1 ; pointer
endm
2017-12-15 05:38:52 +00:00
enum jump_command ; $03
2015-01-20 08:01:23 +00:00
jump: macro
db jump_command
2015-01-20 08:01:23 +00:00
dw \1 ; pointer
endm
2017-12-15 05:38:52 +00:00
enum farjump_command ; $04
2015-01-20 08:01:23 +00:00
farjump: macro
db farjump_command
2015-12-09 16:38:40 +00:00
dba \1
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum ptjump_command ; $05
2015-01-20 08:01:23 +00:00
ptjump: macro
db ptjump_command
2015-01-20 08:01:23 +00:00
dw \1 ; pointer
endm
2017-12-15 05:38:52 +00:00
enum if_equal_command ; $06
2015-01-20 08:01:23 +00:00
if_equal: macro
db if_equal_command
2015-01-20 08:01:23 +00:00
db \1 ; byte
dw \2 ; pointer
endm
2017-12-15 05:38:52 +00:00
enum if_not_equal_command ; $07
2015-01-20 08:01:23 +00:00
if_not_equal: macro
db if_not_equal_command
2015-01-20 08:01:23 +00:00
db \1 ; byte
dw \2 ; pointer
endm
2017-12-15 05:38:52 +00:00
enum iffalse_command ; $08
2015-01-20 08:01:23 +00:00
iffalse: macro
db iffalse_command
2015-01-20 08:01:23 +00:00
dw \1 ; pointer
endm
2017-12-15 05:38:52 +00:00
enum iftrue_command ; $09
2015-01-20 08:01:23 +00:00
iftrue: macro
db iftrue_command
2015-01-20 08:01:23 +00:00
dw \1 ; pointer
endm
2017-12-15 05:38:52 +00:00
enum if_greater_than_command ; $0a
2015-01-20 08:01:23 +00:00
if_greater_than: macro
db if_greater_than_command
2015-01-20 08:01:23 +00:00
db \1 ; byte
dw \2 ; pointer
endm
2017-12-15 05:38:52 +00:00
enum if_less_than_command ; $0b
2015-01-20 08:01:23 +00:00
if_less_than: macro
db if_less_than_command
2015-01-20 08:01:23 +00:00
db \1 ; byte
dw \2 ; pointer
endm
2017-12-15 05:38:52 +00:00
enum jumpstd_command ; $0c
2015-01-20 08:01:23 +00:00
jumpstd: macro
db jumpstd_command
2015-01-20 08:01:23 +00:00
dw \1 ; predefined_script
endm
2017-12-15 05:38:52 +00:00
enum callstd_command ; $0d
2015-01-20 08:01:23 +00:00
callstd: macro
db callstd_command
2015-01-20 08:01:23 +00:00
dw \1 ; predefined_script
endm
2017-12-15 05:38:52 +00:00
enum callasm_command ; $0e
2015-01-20 08:01:23 +00:00
callasm: macro
db callasm_command
2015-12-09 16:38:40 +00:00
dba \1
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum special_command ; $0f
2015-01-20 08:01:23 +00:00
special: macro
db special_command
dw (\1Special - SpecialsPointers) / 3
2015-01-20 08:01:23 +00:00
endm
add_special: MACRO
\1Special::
2015-12-09 16:38:40 +00:00
dba \1
ENDM
2017-12-15 05:38:52 +00:00
enum ptcallasm_command ; $10
2015-01-20 08:01:23 +00:00
ptcallasm: macro
db ptcallasm_command
2015-01-20 08:01:23 +00:00
dw \1 ; asm
endm
2017-12-15 05:38:52 +00:00
enum checkmaptriggers_command ; $11
2015-01-20 08:01:23 +00:00
checkmaptriggers: macro
db checkmaptriggers_command
map \1 ; map
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum domaptrigger_command ; $12
2015-01-20 08:01:23 +00:00
domaptrigger: macro
db domaptrigger_command
map \1 ; map
db \2 ; trigger_id
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum checktriggers_command ; $13
2015-01-20 08:01:23 +00:00
checktriggers: macro
db checktriggers_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum dotrigger_command ; $14
2015-01-20 08:01:23 +00:00
dotrigger: macro
db dotrigger_command
2015-01-20 08:01:23 +00:00
db \1 ; trigger_id
endm
2017-12-15 05:38:52 +00:00
enum writebyte_command ; $15
2015-01-20 08:01:23 +00:00
writebyte: macro
db writebyte_command
2015-01-20 08:01:23 +00:00
db \1 ; value
endm
2017-12-15 05:38:52 +00:00
enum addvar_command ; $16
2015-01-20 08:01:23 +00:00
addvar: macro
db addvar_command
2015-01-20 08:01:23 +00:00
db \1 ; value
endm
2017-12-15 05:38:52 +00:00
enum random_command ; $17
2015-01-20 08:01:23 +00:00
random: macro
db random_command
2015-01-20 08:01:23 +00:00
db \1 ; input
endm
2017-12-15 05:38:52 +00:00
enum checkver_command ; $18
2015-01-20 08:01:23 +00:00
checkver: macro
db checkver_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum copybytetovar_command ; $19
2015-01-20 08:01:23 +00:00
copybytetovar: macro
db copybytetovar_command
2015-01-20 08:01:23 +00:00
dw \1 ; address
endm
2017-12-15 05:38:52 +00:00
enum copyvartobyte_command ; $1a
2015-01-20 08:01:23 +00:00
copyvartobyte: macro
db copyvartobyte_command
2015-01-20 08:01:23 +00:00
dw \1 ; address
endm
2017-12-15 05:38:52 +00:00
enum loadvar_command ; $1b
2015-01-20 08:01:23 +00:00
loadvar: macro
db loadvar_command
2015-01-20 08:01:23 +00:00
dw \1 ; address
db \2 ; value
endm
2017-12-15 05:38:52 +00:00
enum checkcode_command ; $1c
2015-01-20 08:01:23 +00:00
checkcode: macro
db checkcode_command
2015-01-20 08:01:23 +00:00
db \1 ; variable_id
endm
2017-12-15 05:38:52 +00:00
enum writevarcode_command ; $1d
2015-01-20 08:01:23 +00:00
writevarcode: macro
db writevarcode_command
2015-01-20 08:01:23 +00:00
db \1 ; variable_id
endm
2017-12-15 05:38:52 +00:00
enum writecode_command ; $1e
2015-01-20 08:01:23 +00:00
writecode: macro
db writecode_command
2015-01-20 08:01:23 +00:00
db \1 ; variable_id
db \2 ; value
endm
2017-12-15 05:38:52 +00:00
enum giveitem_command ; $1f
2015-01-20 08:01:23 +00:00
giveitem: macro
db giveitem_command
2015-01-20 08:01:23 +00:00
db \1 ; item
2015-11-05 01:20:14 +00:00
if _NARG == 2
2015-01-20 08:01:23 +00:00
db \2 ; quantity
2015-11-05 01:20:14 +00:00
else
db 1
endc
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum takeitem_command ; $20
2015-01-20 08:01:23 +00:00
takeitem: macro
db takeitem_command
2015-01-20 08:01:23 +00:00
db \1 ; item
2015-11-05 01:20:14 +00:00
if _NARG == 2
2015-01-20 08:01:23 +00:00
db \2 ; quantity
2015-11-05 01:20:14 +00:00
else
db 1
endc
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum checkitem_command ; $21
2015-01-20 08:01:23 +00:00
checkitem: macro
db checkitem_command
2015-01-20 08:01:23 +00:00
db \1 ; item
endm
2017-12-15 05:38:52 +00:00
enum givemoney_command ; $22
2015-01-20 08:01:23 +00:00
givemoney: macro
db givemoney_command
2015-01-20 08:01:23 +00:00
db \1 ; account
dt \2 ; money
endm
2017-12-15 05:38:52 +00:00
enum takemoney_command ; $23
2015-01-20 08:01:23 +00:00
takemoney: macro
db takemoney_command
2015-01-20 08:01:23 +00:00
db \1 ; account
dt \2 ; money
endm
2017-12-15 05:38:52 +00:00
enum checkmoney_command ; $24
2015-01-20 08:01:23 +00:00
checkmoney: macro
db checkmoney_command
2015-01-20 08:01:23 +00:00
db \1 ; account
dt \2 ; money
endm
2017-12-15 05:38:52 +00:00
enum givecoins_command ; $25
2015-01-20 08:01:23 +00:00
givecoins: macro
db givecoins_command
2015-01-20 08:01:23 +00:00
dw \1 ; coins
endm
2017-12-15 05:38:52 +00:00
enum takecoins_command ; $26
2015-01-20 08:01:23 +00:00
takecoins: macro
db takecoins_command
2015-01-20 08:01:23 +00:00
dw \1 ; coins
endm
2017-12-15 05:38:52 +00:00
enum checkcoins_command ; $27
2015-01-20 08:01:23 +00:00
checkcoins: macro
db checkcoins_command
2015-01-20 08:01:23 +00:00
dw \1 ; coins
endm
2017-12-15 05:38:52 +00:00
enum addcellnum_command ; $28
2015-01-20 08:01:23 +00:00
addcellnum: macro
db addcellnum_command
2015-01-20 08:01:23 +00:00
db \1 ; person
endm
2017-12-15 05:38:52 +00:00
enum delcellnum_command ; $29
2015-01-20 08:01:23 +00:00
delcellnum: macro
db delcellnum_command
2015-01-20 08:01:23 +00:00
db \1 ; person
endm
2017-12-15 05:38:52 +00:00
enum checkcellnum_command ; $2a
2015-01-20 08:01:23 +00:00
checkcellnum: macro
db checkcellnum_command
2015-01-20 08:01:23 +00:00
db \1 ; person
endm
2017-12-15 05:38:52 +00:00
enum checktime_command ; $2b
2015-01-20 08:01:23 +00:00
checktime: macro
db checktime_command
2015-01-20 08:01:23 +00:00
db \1 ; time
endm
checkmorn EQUS "checktime MORN"
checkday EQUS "checktime DAY"
checknite EQUS "checktime NITE"
2017-12-15 05:38:52 +00:00
enum checkpoke_command ; $2c
2015-01-20 08:01:23 +00:00
checkpoke: macro
db checkpoke_command
2015-01-20 08:01:23 +00:00
db \1 ; pkmn
endm
2017-12-15 05:38:52 +00:00
enum givepoke_command ; $2d
2015-01-20 08:01:23 +00:00
givepoke: macro
db givepoke_command
2015-01-20 08:01:23 +00:00
db \1 ; pokemon
db \2 ; level
2015-10-04 18:14:51 +00:00
if _NARG >= 3
2015-01-20 08:01:23 +00:00
db \3 ; item
2015-10-04 18:14:51 +00:00
if _NARG >= 4
2015-01-20 08:01:23 +00:00
db \4 ; trainer
if \4
dw \5 ; trainer_name_pointer
dw \6 ; pkmn_nickname
endc
2015-10-04 18:14:51 +00:00
else
db 0
endc
else
db 0, 0
endc
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum giveegg_command ; $2e
2015-01-20 08:01:23 +00:00
giveegg: macro
db giveegg_command
2015-01-20 08:01:23 +00:00
db \1 ; pkmn
db \2 ; level
endm
2017-12-15 05:38:52 +00:00
enum givepokeitem_command ; $2f
2015-01-20 08:01:23 +00:00
givepokeitem: macro
db givepokeitem_command
2015-01-20 08:01:23 +00:00
dw \1 ; pointer
endm
2017-12-15 05:38:52 +00:00
enum checkpokeitem_command ; $30
2015-01-20 08:01:23 +00:00
checkpokeitem: macro
db checkpokeitem_command
2015-01-20 08:01:23 +00:00
dw \1 ; pointer
endm
2017-12-15 05:38:52 +00:00
enum checkevent_command ; $31
2015-01-20 08:01:23 +00:00
checkevent: macro
db checkevent_command
2015-01-20 08:01:23 +00:00
dw \1 ; event_flag
endm
2017-12-15 05:38:52 +00:00
enum clearevent_command ; $32
2015-01-20 08:01:23 +00:00
clearevent: macro
db clearevent_command
2015-01-20 08:01:23 +00:00
dw \1 ; event_flag
endm
2017-12-15 05:38:52 +00:00
enum setevent_command ; $33
2015-01-20 08:01:23 +00:00
setevent: macro
db setevent_command
2015-01-20 08:01:23 +00:00
dw \1 ; event_flag
endm
2017-12-15 05:38:52 +00:00
enum checkflag_command ; $34
2015-01-20 08:01:23 +00:00
checkflag: macro
db checkflag_command
2015-01-20 08:01:23 +00:00
dw \1 ; engine_flag
endm
2017-12-15 05:38:52 +00:00
enum clearflag_command ; $35
2015-01-20 08:01:23 +00:00
clearflag: macro
db clearflag_command
2015-01-20 08:01:23 +00:00
dw \1 ; engine_flag
endm
2017-12-15 05:38:52 +00:00
enum setflag_command ; $36
2015-01-20 08:01:23 +00:00
setflag: macro
db setflag_command
2015-01-20 08:01:23 +00:00
dw \1 ; engine_flag
endm
2017-12-15 05:38:52 +00:00
enum wildon_command ; $37
2015-01-20 08:01:23 +00:00
wildon: macro
db wildon_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum wildoff_command ; $38
2015-01-20 08:01:23 +00:00
wildoff: macro
db wildoff_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum xycompare_command ; $39
2015-01-20 08:01:23 +00:00
xycompare: macro
db xycompare_command
2015-01-20 08:01:23 +00:00
dw \1 ; pointer
endm
2017-12-15 05:38:52 +00:00
enum warpmod_command ; $3a
2015-01-20 08:01:23 +00:00
warpmod: macro
db warpmod_command
2015-01-20 08:01:23 +00:00
db \1 ; warp_id
map \2 ; map
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum blackoutmod_command ; $3b
2015-01-20 08:01:23 +00:00
blackoutmod: macro
db blackoutmod_command
map \1 ; map
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum warp_command ; $3c
2015-01-20 08:01:23 +00:00
warp: macro
db warp_command
map \1 ; map
db \2 ; x
db \3 ; y
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum readmoney_command ; $3d
2015-01-20 08:01:23 +00:00
readmoney: macro
db readmoney_command
2015-01-20 08:01:23 +00:00
db \1 ; account
db \2 ; memory
endm
2017-12-15 05:38:52 +00:00
enum readcoins_command ; $3e
2015-01-20 08:01:23 +00:00
readcoins: macro
db readcoins_command
2015-01-20 08:01:23 +00:00
db \1 ; memory
endm
2017-12-15 05:38:52 +00:00
enum RAM2MEM_command ; $3f
2015-01-20 08:01:23 +00:00
RAM2MEM: macro
db RAM2MEM_command
2015-01-20 08:01:23 +00:00
db \1 ; memory
endm
2017-12-15 05:38:52 +00:00
enum pokenamemem_command ; $40
2015-01-20 08:01:23 +00:00
pokenamemem: macro
db pokenamemem_command
2015-01-20 08:01:23 +00:00
db \1 ; pokemon
db \2 ; memory
endm
2017-12-15 05:38:52 +00:00
enum itemtotext_command ; $41
2015-01-20 08:01:23 +00:00
itemtotext: macro
db itemtotext_command
2015-01-20 08:01:23 +00:00
db \1 ; item
db \2 ; memory
endm
2017-12-15 05:38:52 +00:00
enum mapnametotext_command ; $42
2015-01-20 08:01:23 +00:00
mapnametotext: macro
db mapnametotext_command
2015-01-20 08:01:23 +00:00
db \1 ; memory
endm
2017-12-15 05:38:52 +00:00
enum trainertotext_command ; $43
2015-01-20 08:01:23 +00:00
trainertotext: macro
db trainertotext_command
2015-01-20 08:01:23 +00:00
db \1 ; trainer_id
db \2 ; trainer_group
db \3 ; memory
endm
2017-12-15 05:38:52 +00:00
enum stringtotext_command ; $44
2015-01-20 08:01:23 +00:00
stringtotext: macro
db stringtotext_command
2015-01-20 08:01:23 +00:00
dw \1 ; text_pointer
db \2 ; memory
endm
2017-12-15 05:38:52 +00:00
enum itemnotify_command ; $45
2015-01-20 08:01:23 +00:00
itemnotify: macro
db itemnotify_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum pocketisfull_command ; $46
2015-01-20 08:01:23 +00:00
pocketisfull: macro
db pocketisfull_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum opentext_command ; $47
2015-12-09 23:25:44 +00:00
opentext: macro
db opentext_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum refreshscreen_command ; $48
2015-01-20 08:01:23 +00:00
refreshscreen: macro
db refreshscreen_command
2015-01-20 08:01:23 +00:00
db \1 ; dummy
endm
2017-12-15 05:38:52 +00:00
enum closetext_command ; $49
2015-11-25 15:16:29 +00:00
closetext: macro
db closetext_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum loadbytec2cf_command ; $4a
2015-11-16 17:49:42 +00:00
loadbytec2cf: macro
db loadbytec2cf_command
2015-01-20 08:01:23 +00:00
db \1 ; byte
endm
2017-12-15 05:38:52 +00:00
enum farwritetext_command ; $4b
2015-01-20 08:01:23 +00:00
farwritetext: macro
db farwritetext_command
2015-12-09 16:38:40 +00:00
dba \1
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum writetext_command ; $4c
2015-01-20 08:01:23 +00:00
writetext: macro
db writetext_command
2015-01-20 08:01:23 +00:00
dw \1 ; text_pointer
endm
2017-12-15 05:38:52 +00:00
enum repeattext_command ; $4d
2015-01-20 08:01:23 +00:00
repeattext: macro
db repeattext_command
2015-01-20 08:01:23 +00:00
db \1 ; byte
db \2 ; byte
endm
2017-12-15 05:38:52 +00:00
enum yesorno_command ; $4e
2015-01-20 08:01:23 +00:00
yesorno: macro
db yesorno_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum loadmenudata_command ; $4f
2015-01-20 08:01:23 +00:00
loadmenudata: macro
db loadmenudata_command
2015-01-20 08:01:23 +00:00
dw \1 ; data
endm
2017-12-15 05:38:52 +00:00
enum closewindow_command ; $50
closewindow: macro
db closewindow_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum jumptextfaceplayer_command ; $51
2015-01-20 08:01:23 +00:00
jumptextfaceplayer: macro
db jumptextfaceplayer_command
2015-01-20 08:01:23 +00:00
dw \1 ; text_pointer
endm
2015-11-16 17:49:42 +00:00
; IF _CRYSTAL
2017-12-15 05:38:52 +00:00
enum farjumptext_command ; $52
2015-01-20 08:01:23 +00:00
farjumptext: macro
db farjumptext_command
2015-12-09 16:38:40 +00:00
dba \1
2015-01-20 08:01:23 +00:00
endm
2015-11-16 17:49:42 +00:00
; ENDC
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum jumptext_command ; $53
2015-01-20 08:01:23 +00:00
jumptext: macro
db jumptext_command
2015-01-20 08:01:23 +00:00
dw \1 ; text_pointer
endm
2017-12-15 05:38:52 +00:00
enum waitbutton_command ; $54
2015-11-25 15:16:29 +00:00
waitbutton: macro
db waitbutton_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum buttonsound_command ; $55
2015-11-30 03:29:45 +00:00
buttonsound: macro
db buttonsound_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum pokepic_command ; $56
2015-01-20 08:01:23 +00:00
pokepic: macro
db pokepic_command
2015-01-20 08:01:23 +00:00
db \1 ; pokemon
endm
2017-12-15 05:38:52 +00:00
enum closepokepic_command ; $57
2015-11-25 15:16:29 +00:00
closepokepic: macro
db closepokepic_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum _2dmenu_command ; $58
2015-12-15 23:59:49 +00:00
_2dmenu: macro
db _2dmenu_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum verticalmenu_command ; $59
2015-12-15 23:59:49 +00:00
verticalmenu: macro
db verticalmenu_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum loadpikachudata_command ; $5a
2015-01-20 08:01:23 +00:00
loadpikachudata: macro
db loadpikachudata_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum randomwildmon_command ; $5b
randomwildmon: macro
db randomwildmon_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum loadmemtrainer_command ; $5c
loadmemtrainer: macro
db loadmemtrainer_command
2015-01-20 08:01:23 +00:00
endm
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
endm
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
endm
2017-12-15 05:38:52 +00:00
enum startbattle_command ; $5f
2015-01-20 08:01:23 +00:00
startbattle: macro
db startbattle_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum reloadmapafterbattle_command ; $60
reloadmapafterbattle: macro
db reloadmapafterbattle_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum catchtutorial_command ; $61
2015-01-20 08:01:23 +00:00
catchtutorial: macro
db catchtutorial_command
2015-01-20 08:01:23 +00:00
db \1 ; byte
endm
2017-12-15 05:38:52 +00:00
enum trainertext_command ; $62
2015-01-20 08:01:23 +00:00
trainertext: macro
db trainertext_command
2015-01-20 08:01:23 +00:00
db \1 ; which_text
endm
2017-12-15 05:38:52 +00:00
enum trainerflagaction_command ; $63
2015-11-25 15:16:29 +00:00
trainerflagaction: macro
db trainerflagaction_command
2015-01-20 08:01:23 +00:00
db \1 ; action
endm
2017-12-15 05:38:52 +00:00
enum winlosstext_command ; $64
2015-01-20 08:01:23 +00:00
winlosstext: macro
db winlosstext_command
2015-01-20 08:01:23 +00:00
dw \1 ; win_text_pointer
dw \2 ; loss_text_pointer
endm
2017-12-15 05:38:52 +00:00
enum scripttalkafter_command ; $65
2015-01-20 08:01:23 +00:00
scripttalkafter: macro
db scripttalkafter_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum end_if_just_battled_command ; $66
2015-11-25 15:16:29 +00:00
end_if_just_battled: macro
db end_if_just_battled_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum check_just_battled_command ; $67
2015-11-25 15:16:29 +00:00
check_just_battled: macro
db check_just_battled_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum setlasttalked_command ; $68
2015-01-20 08:01:23 +00:00
setlasttalked: macro
db setlasttalked_command
2015-01-20 08:01:23 +00:00
db \1 ; person
endm
2017-12-15 05:38:52 +00:00
enum applymovement_command ; $69
2015-01-20 08:01:23 +00:00
applymovement: macro
db applymovement_command
2015-01-20 08:01:23 +00:00
db \1 ; person
dw \2 ; data
endm
2017-12-15 05:38:52 +00:00
enum applymovement2_command ; $6a
2015-01-20 08:01:23 +00:00
applymovement2: macro
db applymovement2_command
2015-01-20 08:01:23 +00:00
dw \1 ; data
endm
2017-12-15 05:38:52 +00:00
enum faceplayer_command ; $6b
2015-01-20 08:01:23 +00:00
faceplayer: macro
db faceplayer_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum faceperson_command ; $6c
2015-01-20 08:01:23 +00:00
faceperson: macro
db faceperson_command
2015-01-20 08:01:23 +00:00
db \1 ; person1
db \2 ; person2
endm
2017-12-15 05:38:52 +00:00
enum variablesprite_command ; $6d
2015-01-20 08:01:23 +00:00
variablesprite: macro
db variablesprite_command
db \1 - SPRITE_VARS ; byte
2015-01-20 08:01:23 +00:00
db \2 ; sprite
endm
2017-12-15 05:38:52 +00:00
enum disappear_command ; $6e
2015-01-20 08:01:23 +00:00
disappear: macro
db disappear_command
2015-01-20 08:01:23 +00:00
db \1 ; person
endm
2017-12-15 05:38:52 +00:00
enum appear_command ; $6f
2015-01-20 08:01:23 +00:00
appear: macro
db appear_command
2015-01-20 08:01:23 +00:00
db \1 ; person
endm
2017-12-15 05:38:52 +00:00
enum follow_command ; $70
2015-01-20 08:01:23 +00:00
follow: macro
db follow_command
2015-01-20 08:01:23 +00:00
db \1 ; person2
db \2 ; person1
endm
2017-12-15 05:38:52 +00:00
enum stopfollow_command ; $71
2015-01-20 08:01:23 +00:00
stopfollow: macro
db stopfollow_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum moveperson_command ; $72
2015-01-20 08:01:23 +00:00
moveperson: macro
db moveperson_command
2015-01-20 08:01:23 +00:00
db \1 ; person
db \2 ; x
db \3 ; y
endm
2017-12-15 05:38:52 +00:00
enum writepersonxy_command ; $73
2015-01-20 08:01:23 +00:00
writepersonxy: macro
db writepersonxy_command
2015-01-20 08:01:23 +00:00
db \1 ; person
endm
2017-12-15 05:38:52 +00:00
enum loademote_command ; $74
2015-01-20 08:01:23 +00:00
loademote: macro
db loademote_command
2015-01-20 08:01:23 +00:00
db \1 ; bubble
endm
2017-12-15 05:38:52 +00:00
enum showemote_command ; $75
2015-01-20 08:01:23 +00:00
showemote: macro
db showemote_command
2015-01-20 08:01:23 +00:00
db \1 ; bubble
db \2 ; person
db \3 ; time
endm
2017-12-15 05:38:52 +00:00
enum spriteface_command ; $76
2015-01-20 08:01:23 +00:00
spriteface: macro
db spriteface_command
2015-01-20 08:01:23 +00:00
db \1 ; person
db \2 ; facing
endm
2017-12-15 05:38:52 +00:00
enum follownotexact_command ; $77
2015-01-20 08:01:23 +00:00
follownotexact: macro
db follownotexact_command
2015-01-20 08:01:23 +00:00
db \1 ; person2
db \2 ; person1
endm
2017-12-15 05:38:52 +00:00
enum earthquake_command ; $78
2015-01-20 08:01:23 +00:00
earthquake: macro
db earthquake_command
2015-01-20 08:01:23 +00:00
db \1 ; param
endm
2017-12-15 05:38:52 +00:00
enum changemap_command ; $79
2015-01-20 08:01:23 +00:00
changemap: macro
db changemap_command
db \1 ; map_bank
dw \2 ; map_data_pointer
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum changeblock_command ; $7a
2015-01-20 08:01:23 +00:00
changeblock: macro
db changeblock_command
2015-01-20 08:01:23 +00:00
db \1 ; x
db \2 ; y
db \3 ; block
endm
2017-12-15 05:38:52 +00:00
enum reloadmap_command ; $7b
2015-01-20 08:01:23 +00:00
reloadmap: macro
db reloadmap_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum reloadmappart_command ; $7c
2015-01-20 08:01:23 +00:00
reloadmappart: macro
db reloadmappart_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum writecmdqueue_command ; $7d
2015-01-20 08:01:23 +00:00
writecmdqueue: macro
db writecmdqueue_command
2015-01-20 08:01:23 +00:00
dw \1 ; queue_pointer
endm
2017-12-15 05:38:52 +00:00
enum delcmdqueue_command ; $7e
2015-01-20 08:01:23 +00:00
delcmdqueue: macro
db delcmdqueue_command
2015-01-20 08:01:23 +00:00
db \1 ; byte
endm
2017-12-15 05:38:52 +00:00
enum playmusic_command ; $7f
2015-01-20 08:01:23 +00:00
playmusic: macro
db playmusic_command
2015-01-20 08:01:23 +00:00
dw \1 ; music_pointer
endm
2017-12-15 05:38:52 +00:00
enum encountermusic_command ; $80
2015-11-25 15:16:29 +00:00
encountermusic: macro
db encountermusic_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum musicfadeout_command ; $81
2015-01-20 08:01:23 +00:00
musicfadeout: macro
db musicfadeout_command
2015-01-20 08:01:23 +00:00
dw \1 ; music
db \2 ; fadetime
endm
2017-12-15 05:38:52 +00:00
enum playmapmusic_command ; $82
2015-01-20 08:01:23 +00:00
playmapmusic: macro
db playmapmusic_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum dontrestartmapmusic_command ; $83
dontrestartmapmusic: macro
db dontrestartmapmusic_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum cry_command ; $84
2015-01-20 08:01:23 +00:00
cry: macro
db cry_command
2015-01-20 08:01:23 +00:00
dw \1 ; cry_id
endm
2017-12-15 05:38:52 +00:00
enum playsound_command ; $85
2015-01-20 08:01:23 +00:00
playsound: macro
db playsound_command
2015-01-20 08:01:23 +00:00
dw \1 ; sound_pointer
endm
2017-12-15 05:38:52 +00:00
enum waitsfx_command ; $86
2015-11-25 15:16:29 +00:00
waitsfx: macro
db waitsfx_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum warpsound_command ; $87
2015-01-20 08:01:23 +00:00
warpsound: macro
db warpsound_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum specialsound_command ; $88
2015-01-20 08:01:23 +00:00
specialsound: macro
db specialsound_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum passtoengine_command ; $89
2015-01-20 08:01:23 +00:00
passtoengine: macro
db passtoengine_command
2015-01-20 08:01:23 +00:00
db \1 ; data_pointer
endm
2017-12-15 05:38:52 +00:00
enum newloadmap_command ; $8a
2015-01-20 08:01:23 +00:00
newloadmap: macro
db newloadmap_command
2015-01-20 08:01:23 +00:00
db \1 ; which_method
endm
2017-12-15 05:38:52 +00:00
enum pause_command ; $8b
2015-01-20 08:01:23 +00:00
pause: macro
db pause_command
2015-01-20 08:01:23 +00:00
db \1 ; length
endm
2017-12-15 05:38:52 +00:00
enum deactivatefacing_command ; $8c
2015-01-20 08:01:23 +00:00
deactivatefacing: macro
db deactivatefacing_command
2015-01-20 08:01:23 +00:00
db \1 ; time
endm
2017-12-15 05:38:52 +00:00
enum priorityjump_command ; $8d
2015-01-20 08:01:23 +00:00
priorityjump: macro
db priorityjump_command
2015-01-20 08:01:23 +00:00
dw \1 ; pointer
endm
2017-12-15 05:38:52 +00:00
enum warpcheck_command ; $8e
2015-01-20 08:01:23 +00:00
warpcheck: macro
db warpcheck_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum ptpriorityjump_command ; $8f
2015-01-20 08:01:23 +00:00
ptpriorityjump: macro
db ptpriorityjump_command
2015-01-20 08:01:23 +00:00
dw \1 ; pointer
endm
2017-12-15 05:38:52 +00:00
enum return_command ; $90
2015-01-20 08:01:23 +00:00
return: macro
db return_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum end_command ; $91
2015-01-20 08:01:23 +00:00
end: macro
db end_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum reloadandreturn_command ; $92
2015-01-20 08:01:23 +00:00
reloadandreturn: macro
db reloadandreturn_command
2015-01-20 08:01:23 +00:00
db \1 ; which_method
endm
2017-12-15 05:38:52 +00:00
enum end_all_command ; $93
2015-12-09 16:38:40 +00:00
end_all: macro
db end_all_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum pokemart_command ; $94
2015-01-20 08:01:23 +00:00
pokemart: macro
db pokemart_command
2015-01-20 08:01:23 +00:00
db \1 ; dialog_id
dw \2 ; mart_id
endm
2017-12-15 05:38:52 +00:00
enum elevator_command ; $95
2015-01-20 08:01:23 +00:00
elevator: macro
db elevator_command
2015-01-20 08:01:23 +00:00
dw \1 ; floor_list_pointer
endm
2017-12-15 05:38:52 +00:00
enum trade_command ; $96
2015-01-20 08:01:23 +00:00
trade: macro
db trade_command
2015-01-20 08:01:23 +00:00
db \1 ; trade_id
endm
2017-12-15 05:38:52 +00:00
enum askforphonenumber_command ; $97
2015-01-20 08:01:23 +00:00
askforphonenumber: macro
db askforphonenumber_command
2015-01-20 08:01:23 +00:00
db \1 ; number
endm
2017-12-15 05:38:52 +00:00
enum phonecall_command ; $98
2015-01-20 08:01:23 +00:00
phonecall: macro
db phonecall_command
2015-01-20 08:01:23 +00:00
dw \1 ; caller_name
endm
2017-12-15 05:38:52 +00:00
enum hangup_command ; $99
2015-01-20 08:01:23 +00:00
hangup: macro
db hangup_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum describedecoration_command ; $9a
2015-01-20 08:01:23 +00:00
describedecoration: macro
db describedecoration_command
2015-01-20 08:01:23 +00:00
db \1 ; byte
endm
2017-12-15 05:38:52 +00:00
enum fruittree_command ; $9b
2015-01-20 08:01:23 +00:00
fruittree: macro
db fruittree_command
2015-01-20 08:01:23 +00:00
db \1 ; tree_id
endm
2017-12-15 05:38:52 +00:00
enum specialphonecall_command ; $9c
2015-01-20 08:01:23 +00:00
specialphonecall: macro
db specialphonecall_command
2015-01-20 08:01:23 +00:00
dw \1 ; call_id
endm
2017-12-15 05:38:52 +00:00
enum checkphonecall_command ; $9d
2015-01-20 08:01:23 +00:00
checkphonecall: macro
db checkphonecall_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum verbosegiveitem_command ; $9e
2015-01-20 08:01:23 +00:00
verbosegiveitem: macro
db verbosegiveitem_command
2015-01-20 08:01:23 +00:00
db \1 ; item
2015-11-05 01:20:14 +00:00
if _NARG == 2
2015-01-20 08:01:23 +00:00
db \2 ; quantity
2015-11-05 01:20:14 +00:00
else
db 1
endc
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum verbosegiveitem2_command ; $9f
2015-01-20 08:01:23 +00:00
verbosegiveitem2: macro
db verbosegiveitem2_command
2015-01-20 08:01:23 +00:00
db \1 ; item
db \2 ; var
endm
2017-12-15 05:38:52 +00:00
enum swarm_command ; $a0
2015-12-09 16:38:40 +00:00
swarm: macro
db swarm_command
2015-01-20 08:01:23 +00:00
db \1 ; flag
map \2 ; map
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum halloffame_command ; $a1
2015-01-20 08:01:23 +00:00
halloffame: macro
db halloffame_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum credits_command ; $a2
2015-01-20 08:01:23 +00:00
credits: macro
db credits_command
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum warpfacing_command ; $a3
2015-01-20 08:01:23 +00:00
warpfacing: macro
db warpfacing_command
2015-01-20 08:01:23 +00:00
db \1 ; facing
map \2 ; map
db \3 ; x
db \4 ; y
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum battletowertext_command ; $a4
2015-11-04 03:35:36 +00:00
battletowertext: macro
db battletowertext_command
2015-01-20 08:01:23 +00:00
db \1 ; memory
endm
2017-12-15 05:38:52 +00:00
enum landmarktotext_command ; $a5
2015-12-09 16:38:40 +00:00
landmarktotext: macro
db landmarktotext_command
2015-01-20 08:01:23 +00:00
db \1 ; id
db \2 ; memory
endm
2017-12-15 05:38:52 +00:00
enum trainerclassname_command ; $a6
2015-01-20 08:01:23 +00:00
trainerclassname: macro
db trainerclassname_command
2015-01-20 08:01:23 +00:00
db \1 ; id
db \2 ; memory
endm
2017-12-15 05:38:52 +00:00
enum name_command ; $a7
2015-01-20 08:01:23 +00:00
name: macro
db name_command
2015-01-20 08:01:23 +00:00
db \1 ; type
db \2 ; id
2015-09-09 21:05:19 +00:00
db \3 ; memory
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum wait_command ; $a8
2015-01-20 08:01:23 +00:00
wait: macro
db wait_command
2015-01-20 08:01:23 +00:00
db \1 ; duration
endm
2017-12-15 05:38:52 +00:00
enum check_save_command ; $a9
2015-11-16 16:53:26 +00:00
check_save: macro
db check_save_command
2015-01-20 08:01:23 +00:00
endm