mirror of https://github.com/pret/pokecrystal.git
6.0 KiB
6.0 KiB
Scripting Commands
$00
: scall
script
$01
: farscall
script
$02
: ptcall
script
$03
: jump
script
$04
: farjump
script
$05
: ptjump
script
$06
: if_equal
byte, script
$07
: if_not_equal
byte, script
$08
: iffalse
script
$09
: iftrue
script
$0A
: if_greater_than
byte, script
$0B
: if_less_than
byte, script
$0C
: jumpstd
std_script
$0D
: callstd
std_script
$0E
: callasm
asm
$0F
: special
special_pointer
$10
: ptcallasm
asm
$11
: checkmaptriggers
map
$12
: domaptrigger
map, trigger_id
$13
: checktriggers
$14
: dotrigger
trigger_id
$15
: writebyte
value
$16
: addvar
value
$17
: random
value
$18
: checkver
$19
: copybytetovar
address
$1A
: copyvartobyte
address
$1B
: loadvar
address, value
$1C
: checkcode
variable
$1D
: writevarcode
variable
$1E
: writecode
variable, value
$1F
: giveitem
item_id[, quantity=1]
$20
: takeitem
item_id[, quantity=1]
$21
: checkitem
item_id
$22
: givemoney
account, value
$23
: takemoney
account, value
$24
: checkmoney
account, value
$25
: givecoins
value
$26
: takecoins
value
$27
: checkcoins
value
$28
: addcellnum
contact_id
$29
: delcellnum
contact_id
$2A
: checkcellnum
contact_id
$2B
: checktime
time
checkmorn
:checktime MORN
checkday
:checktime DAY
checknite
:checktime NITE