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