pokecrystal-board/macros/event.asm

1070 lines
16 KiB
NASM
Raw Normal View History

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