remove script macros that aren't in Ruby/Sapphire

This commit is contained in:
YamaArashi 2016-01-28 15:51:16 -08:00
parent d433f64c37
commit 8bab63ab60

View File

@ -1242,172 +1242,3 @@
.macro waitpokecry
.byte 0xc5
.endm
; Writes the name of the specified (box) PC box to the specified buffer.
.macro bufferboxname out, box
.byte 0xc6
.byte \out
.2byte \box
.endm
; Sets the color of the text in standard message boxes. 0x00 produces blue (male) text, 0x01 produces red (female) text, 0xFF resets the color to the default for the current OW's gender, and all other values produce black text.
.macro textcolor color
.byte 0xc7
.byte \color
.endm
; The exact purpose of this command is unknown, but it is related to the blue help-text box that appears on the bottom of the screen when the Main Menu is opened.
.macro loadhelp pointer
.byte 0xc8
.4byte \pointer
.endm
; The exact purpose of this command is unknown, but it is related to the blue help-text box that appears on the bottom of the screen when the Main Menu is opened.
.macro unloadhelp
.byte 0xc9
.endm
; After using this command, all standard message boxes will use the signpost frame.
.macro signmsg
.byte 0xca
.endm
; Ends the effects of signmsg, returning message box frames to normal.
.macro normalmsg
.byte 0xcb
.endm
; Compares the value of a hidden variable to a dword.
.macro comparehiddenvar a, value
.byte 0xcc
.byte \a
.4byte \value
.endm
; Makes the Pokmon in the specified slot of the player's party obedient. It will not randomly disobey orders in battle.
.macro setobedience slot
.byte 0xcd
.2byte \slot
.endm
; Checks if the Pokmon in the specified slot of the player's party is obedient. If the Pokmon is disobedient, 0x0001 is written to script variable 0x800D (LASTRESULT). If the Pokmon is obedient (or if the specified slot is empty or invalid), 0x0000 is written.
.macro checkobedience slot
.byte 0xce
.2byte \slot
.endm
; Depending on factors I haven't managed to understand yet, this command may cause script execution to jump to the offset specified by the pointer at 0x020370A4.
.macro execram
.byte 0xcf
.endm
; Sets worldmapflag to 1. This allows the player to Fly to the corresponding map, if that map has a flightspot.
.macro setworldflag worldmapflag
.byte 0xd0
.2byte \worldmapflag
.endm
; Clone of warpteleport? It is apparently only used in FR/LG, and only with specials.[source]
.macro warpteleport2
.byte 0xd1
.endm
; Changes the location where the player caught the Pokmon in the specified slot of their party. A list of valid catch locations can be found on PokeCommunity.
.macro setcatchlocale slot, location
.byte 0xd2
.2byte \slot
.byte \location
.endm
; Sets variable 0x8004 to a value based on the width of the braille string at text.
.macro braille2 text
.byte 0xd3
.4byte \text
.endm
; Writes the name of the specified (item) item to the specified buffer. If the specified item is a Berry (0x85 - 0xAE) or Poke Ball (0x4) and if the quantity is 2 or more, the buffered string will be pluralized ("IES" or "S" appended). If the specified item is the Enigma Berry, I have no idea what this command does (but testing showed no pluralization). If the specified index is larger than the number of items in the game (0x176), the name of item 0 ("????????") is buffered instead.
.macro storeitems out, item, quantity
.byte 0xd4
.byte \out
.2byte \item
.2byte \quantity
.endm
; In FireRed, this command is a nop.
.macro event_d5
.byte 0xd5
.endm
.macro event_d6
.byte 0xd6
.endm
.macro warp7 byte1, byte2, byte3, word1, word2
.byte 0xd7
.byte \byte1
.byte \byte2
.byte \byte3
.2byte \word1
.2byte \word2
.endm
.macro event_d8
.byte 0xd8
.endm
.macro event_d9
.byte 0xd9
.endm
.macro hidebox2
.byte 0xda
.endm
.macro message3 pointer
.byte 0xdb
.4byte \pointer
.endm
.macro fadescreen3 byte
.byte 0xdc
.byte \byte
.endm
.macro buffertrainerclass byte, word
.byte 0xdd
.byte \byte
.2byte \word
.endm
.macro buffertrainername byte, word
.byte 0xde
.byte \byte
.2byte \word
.endm
.macro pokenavcall pointer
.byte 0xdf
.4byte \pointer
.endm
.macro warp8 byte1, byte2, byte3, word1, word2
.byte 0xe0
.byte \byte1
.byte \byte2
.byte \byte3
.2byte \word1
.2byte \word2
.endm
.macro buffercontesttype byte, word
.byte 0xe1
.byte \byte
.2byte \word
.endm
.macro storeitems2 byte, word1, word2
.byte 0xe2
.byte \byte
.2byte \word1
.2byte \word2
.endm