pokefirered icon indicating copy to clipboard operation
pokefirered copied to clipboard

Sync script commands

Open GriffinRichards opened this issue 2 years ago • 0 comments

  • Use the single-line comparison script syntax (e.g. goto_if_eq VAR, value, Script)
  • Drop a number of optional arguments from script commands, including the 'no warp id' indicator from warp commands.
  • Allow specifying the name of the string var for script commands that write to string vars.
  • Add constants for the textcolor command
  • Sync scrcmd.c with pokeemerald
  • Sync macro comments and argument names with pokeemerald, and add new comments
  • Add missing supplemental macros from pokeemerald
  • Sync script command function and macro names with pokeemerald. The following are all the renamed macros:
Old Name New Name
gotoram returnram
killscript endram
writebytetoaddr setptr
loadbytefromaddr loadbytefromptr
compare_local_to_addr compare_local_to_ptr
compare_addr_to_local compare_ptr_to_local
compare_addr_to_value compare_ptr_to_value
compare_addr_to_addr compare_ptr_to_ptr
dodailyevents dotimebasedevents
adddecor adddecoration
removedecor removedecoration
hasdecor checkdecor
checkdecor checkdecorspace
showobject showobjectat
hideobject hideobjectat
battlebegin dotrainerbattle
ontrainerbattleend gotopostbattlescript
ontrainerbattleendgoto gotobeatenscript
moveobjectoffscreen copyobjectxytoperm
drawmonpic showmonpic
erasemonpic hidemonpic
getspeciesname bufferspeciesname
getfirstpartymonname bufferleadmonspeciesname
getpartymonname bufferpartymonnick
getitemname bufferitemname
getdecorname bufferdecorationname
getmovename buffermovename
getnumberstring buffernumberstring
getstdstring bufferstdstring
getstring bufferstring
pokemartbp pokemartdecoration2
plantberrytree setberrytree
choosecontestpkmn choosecontestmon
getpricereduction getpokenewsactive
setflashradius setflashlevel
setfieldeffectarg setfieldeffectargument
setobjectpriority setobjectsubpriority
resetobjectpriority resetobjectsubpriority
vloadptr vbuffermessage
comparehiddenvar comparestat
execram trywondercardscript
warpteleport2 warpspinenter

GriffinRichards avatar Aug 10 '22 01:08 GriffinRichards