List of script commands (HGSS): Difference between revisions

From PokeHacking Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5,203: Line 5,203:
| Stores Floor's name in String Buffer
| Stores Floor's name in String Buffer
|}
|}
[[Category:HGSS]]
[[Category:Scripting]]

Revision as of 10:59, 14 August 2022

There are 853 script commands in Pokémon HeartGold and SoulSilver international versions.

# New nomencl. SDSME nomencl. Parameters Function
0000 Nop Nop - Nothing
0001 Dummy Nop1 - Nothing
0002 End End - End script execution
0003 WaitTime Return2 u16 Time; Var ??? Stop script execution for Time frames
0004 RegValueSet u8 Script Register; u8 Value Assigns Value to Script Register value
0005 RegDataSet u8 Script Register; u32 Value Assigns Value to Script Register value
0006 RegAdrsSet u8 Script Register; u32 Address Assigns data in Address offset to Script Register value
0007 AdrsValueSet u32 Address; u8 Value Assigns Value to the Address offset
0008 AdrsRegSet u32 Address; u8 Script Register Assigns Script Register value to the Address offset
0009 RegRegSet u8 Script Register 1; u8 Script Register 2 Assigns Script Register 2 value to Script Register 1 value
000A AdrsAdrsSet u32 Address 1; u32 Address 2 Assigns data in Address 2 to the Address 1 offset
000B CompareRegs u8 Script Register; u8 Script Register Compares two Script Register
000C CompareRegValue u8 Script Register; u8 Value Compares Script Register value with Value
000D CompareRegAdrs u8 Script Register; u32 Address Compares Script Register value with data in Address
000E CompareAdrsReg u32 Address; u8 Script Register Compares data in Address with Script Register value
000F CompareAdrsValue u32 Address; u8 Value Compares data in Address with Value
0010 CompareAdrsAdrs u32 Address 1; u32 Address 2 Compares data in Address 1 with data in Address 2
0011 CompareVarValue If Var Variable; u16 Value Compares Variable value with Value
0012 CompareVars If2 Var Variable 1; Var Variable 2 Compares Variable 1 value with Variable 2 value
0013 u16 ??? ???
0014 CommonScript CallStandard u16 Global Script ID Calls Global Script ID script
0015 LocalScript - Returns to the invoking script/function after a Common Script
0016 Jump Jump u32 Relative Jump Jumps to a function, Relative Jump bytes forward or backward
0017 JumpIfObjID u8 Event ID; u32 Relative Jump Jumps to a function, Relative Jump bytes forward or backward, if invoking event has Event ID as ID
0018 JumpIfBgID u8 ???; u32 Relative Jump ???
0019 JumpIfPlayerDir u8 Player Direction; u32 Relative Jump Jumps to a function, Relative Jump bytes forward or backward, if player is looking in Player Direction
001A Call Call u32 Relative Jump Calls a function, Relative Jump bytes forward or backward
001B Return Return - Returns to the invoking script/function after a Call
001C JumpIf CompareLastResultJump u8 Condition; u32 Relative Jump If Condition in the condition table, jumps to a function Relative Jump bytes forward or backward
001D CallIf CompareLastResultCall u8 Condition; u32 Relative Jump If Condition in the condition table, calls a function Relative Jump bytes forward or backward
001E SetFlag SetFlag u16 Flag Sets Flag to 1
001F ClearFlag ClearFlag u16 Flag Sets Flag to 0
0020 CheckFlag CheckFlag u16 Flag Checks if Flag is set
0021 SetFlagFromVar Var Flag Sets the flag whose ID is stored in Flag
0022 ClearFlagFromVar Var Flag Clears the flag whose ID is stored in Flag
0023 FlagStatusToVar Var Flag; Var Variable Checks if Flag is set and store the result in Variable
0024 SetTrainerFlag Flex Trainer ID Sets the flag of Trainer ID, so marks it as beaten trainer
0025 ClearTrainerFlag Flex Trainer ID Clears the flag of Trainer ID, so marks it as unbeaten trainer
0026 CheckTrainerFlag Flex Trainer ID Checks if Trainer ID has been beaten
0027 IncrementVar Copy Var Variable; Flex Operand Stores the operation Variable + Operand in Variable
0028 DecrementVar Var Variable; Flex Operand Stores the operation Variable - Operand in Variable
0029 SetVar SetVar Var Variable; u16 Value Stores Value in Variable
002A SetVarFromVariable CopyVar Var Variable 1; Var Variable 2 Assigns value of Variable 2 to Variable 1
002B SetVarFromFlexible Var Variable; Flex Flexible Value Stores Flexible Value (or its value if variable) in Variable
002C MessageAll u8 Text Slot Display line Text Slot from the text file, all at once
002D Message Message u8 Text Slot Display line Text Slot from the text file
002E MessageFlex Message2 Flex Text Slot Display line Text Slot from the text file
002F MessageNoSkip Flex Text Slot ???
0030 u8 Text Slot ???
0031 WaitAB - Waits for button A or button B to be pressed
0032 WaitButton WaitButton - Waits for a button to be pressed
0033 WaitABPad - Waits for button A, button B or pad buttons to be pressed
0034 OpenMessage - ???
0035 CloseMessage CloseMessageOnKeyPress - Closes message box
0036 FreezeMessage FreezeMessageBox - ???
0037 SetIconBoard CallMessageBox u8 Text Slot; u8 Type; u16 Icon; u16 ??? Prepares an icon board message box displaying Text Slot message, of Type type, and with Icon image if chosen type supports it
0038 SetTextBoard ColorMessageBox u8 Type; u16 Icon Prepares a text board message box of Type type, and with Icon image if chosen type supports it
0039 ShowBoard TypeMessageBox u8 Process Triggers different Process processes for the board
003A WaitBoard NoMapMessageBox - Waits the board last process to end
003B BoardMessage u8 Text Slot; u16 Variable Displays Text Slot message in the current text box, stores the current text box status in Variable
003C CloseBoard Var Variable Returns 1 to Variable if the player has pressed a button so the board must close, 0 otherwise
003D Menu -
003E u8 ???; u8 ???; u8 ???; u8 ???; u8 ???; u8 ???
003F YesNoBox Var Variable Opens a Yes-No dialog and stores user response in Variable
0040 MultiStandardText Multi u8 X; u8 Y; u8 Cursor; u8 Cancel; Var Selection Prepares a multiple selection menu at X and Y screen position, with Cursor default selected option and possibility of cancelling depending on Cancel, with text bank #321, returns selected slot ID in Selection
0041 MultiLocalText Multi2 u8 X; u8 Y; u8 Cursor; u8 Cancel; Var Selection Prepares a multiple selection menu at X and Y screen position, with Cursor default selected option and possibility of cancelling depending on Cancel, with local texts, returns selected slot ID in Selection
0042 AddMultiOption TextScriptMulti u8 Text Slot; u8 Multi Slot Adds an option with Multi Slot ID showing Text Slot text
0043 ShowMulti CloseMulti - Shows the prepared multi in screen
0044 ListStandardText Multi3 u8 X; u8 Y; u8 Cursor; u8 Cancel; Var Selection Prepares a multiple selection list at X and Y screen position, with Cursor default selected option and possibility of cancelling depending on Cancel, with text bank #321, returns selected slot ID in Selection
0045 ListLocalText u8 X; u8 Y; u8 Cursor; u8 Cancel; Var Selection Prepares a multiple selection list at X and Y screen position, with Cursor default selected option and possibility of cancelling depending on Cancel, with local texts, returns selected slot ID in Selection
0046 AddListOption Flex Option MSG; Flex Highlight MSG; Flex List Slot Adds a new option to the list, with List Slot ID and showing text line Option MSG. It also displays text line Highlight MSG when that option is highlighted.
0047 ShowList - Shows the prepared list in screen
0048 MultiColumn MultiRow u8 Columns Splits the multi window in Columns different columns
0049 PlayFanfare PlayFanfare Flex Sound Plays Sound
004A StopFanfare PlayFanfare2 Flex Sound Stops Sound
004B WaitFanfare WaitFanfare Flex Sound Waits Sound to finish
004C PlayCry PlayCry Flex Pokémon; Flex Unused Plays a Pokémon cry
004D WaitCry WaitCry - Waits the current cry to finish
004E PlaySound PlaySound u16 Sound Pauses current music, then Plays Sound
004F WaitSound FadeDefaultMusic - Waits for Sound to finish, then resumes music
0050 PlayMusic PlayMusic u16 Music Plays Music
0051 StopMusic StopMusic u16 Unused Stops current music
0052 PlayDefaultMusic RestartMusic - Plays map default music
0053 SetMusic u16 Music ???
0054 FadeOutMusic SwitchMusic u16 Volume; u16 Time Fades out the current music to Volume in Time frames
0055 FadeInMusic u16 Time Fades in the current music to normal volume in Time frames
0056 SetMusicPauseStatus u8 SSEQ Player ID; u8 Status If Status = 1, the track that's currently played by chosen Player ID will pause. If Status = 0, Player ID will resume the previously paused music.
0057 PlayFieldBGM u16 Music ID While in the field overworld, plays Music using SSEQ Player #7 (PLAYER_BGM)
0058 u8 ??? ???
0059 CheckChatotCry Var Variable Checks if Chatot has custom sound, stores answer in Variable
005A StartChatotCry SwitchMusic2 Var Variable Starts Chatot microphone record, stores answer in Variable
005B StopChatotCry - Stops recording Chatot custom sound
005C SaveChatotCry - ???
005D - ???
005E Movement ApplyMovement Flex Event ID; u32 Relative Jump Applies movement at Relative Jump to Event ID
005F WaitMovement WaitMovement - Waits for all movements to finish
0060 LockAll LockAll - Locks every event in the map
0061 ReleaseAll ReleaseAll - Releases every event in the map
0062 Lock Lock u16 Event ID Locks Event ID
0063 Release Release u16 Event ID Releases Event ID
0064 AddOW AddPeople Flex Event ID Add Event ID overworld in the map
0065 RemoveOW RemovePeople Flex Event ID Removes Event ID overworld from the map
0066 LockCamera LockCam Flex X; Flex Y Locks the camera at position X and Y
0067 ReleaseCamera - Releases the camera
0068 FacePlayer FacePlayer - Makes the invoking event look at the player
0069 GetPlayerPosition CheckSpritePosition Var X; Var Y Saves the current player position in X and Y
006A GetOWPosition Flex Event ID; Var X; Var Y Saves the current Event ID position in X and Y
006B CheckPersonPosition Flex X; Flex Z; Flex Y ???
006C KeepOverworld ContinueFollow Flex Event ID; u8 Value If Value is 1, prevents Event ID from disappearing when entering on a new map header
006D SetOWMovement FollowHero Flex Event ID; u16 Movement Changes the Event ID default movement number to Movement
006E GiveMoney GiveMoney u32 Money Adds Money to the player's money
006F TakeMoney TakeMoney u32 Money Substracts Money from the player's money
0070 CompareMoney CheckMoney Var Variable; u32 Money Returns 1 to Variable if the player has Money or more money, returns 0 otherwise
0071 ShowMoney ShowMoney Flex X; Flex Y Shows the money box at X and Y coordinates of the screen
0072 HideMoney HideMoney - Hides the money box
0073 UpdateMoney - Updates the current money in the money box
0074
0075
0076
0077 CheckCoins Var Variable Stores the current casino coins amount in Variable
0078 GiveCoins Flex Coins Adds Coins to the player's casino coins
0079 TakeCoins Flex Coins Substracts Coins from the player's casino coins
007A
007B
007C
007D GiveItem Flex Item; Flex Amount; Var Variable Adds Amount of Item item, stores 1 in Variable if the player had less than 1000 - Amount (100 - Amount if TM/HM), stores 0 otherwise
007E TakeItem TakeItem Flex Item; Flex Amount; Var Variable Subs Amount of Item item, stores 1 in Variable if the player had at least Amount items in the bag, stores 0 otherwise
007F CheckItemSpace GiveItem Flex Item; Flex Amount; Var Variable Stores 1 in Variable if the player has less than 1000 - Amount of Item items (100 - Amount if TM/HM), stores 0 otherwise
0080 CheckItem CheckItem Flex Item; Flex Amount; Var Variable Stores 1 in Variable if the player has at least Amount of Item items in the bag, stores 0 otherwise
0081 CheckItemIsMachine Flex Item; Var Variable Stores 1 in Variable if Item is TM or HM, stores 0 otherwise
0082 GetItemPocket Flex Item; Var Variable Stores the bag pocket of Item in Variable
0083 SetStarter Flex Pokémon Stores Pokémon as the starting Pokémon in the game save data
0084 GenderMessage DoubleMessage u8 Male Text; u8 Female Text Displays Male Text or Female Text message depending on player's gender
0085
0086
0087
0088
0089 GivePokemon GiveStoredPokemon Flex Pokémon; Flex Level; Flex ???; Flex ???; Flex ???; Var Variable Gives Pokémon at level Level, store 1 in Variable if succeed and 0 otherwise
008A GivePokemonEgg Flex Pokémon; Flex Location Gives a Pokémon egg received from Location text slot at text bank #281
008B
008C
008D CheckMoveInParty Var Variable; Flex Move ID Checks if any Pokémon in the party knows Move ID move, stores in Variable the position of the first Pokémon that knows it or stores 6 if no Pokémon in the party knows the move
008E Flex ???; Var ??? ???
008F ChooseRivalName Var Variable Opens the keyboard for naming the rival, stores 1 in Variable if user cancels the proccess
0090
0091 UpgradePokegear u8 Module Adds the worldmap to the Pokegear if Module is 1, adds the radio if Module is 2
0092 RecordPokegearNumber RecordPokegearNumber Flex ???
0093 Flex ???; Var ??? ???
0094
0095
0096 ReturnScreen CallEnd - Restores the normal overworld screen
0097
0098 Wifi
0099
009A OpenPokemonDress
009B
009C
009D WorldMapScreen OpenPokegearMap - Opens the worldmap screen
009E
009F
00A0
00A1 CallEnd2
00A2
00A3 EndGameScreen EndGame - Opens the Hall of Fame and game ending screens
00A4
00A5
00A6 WFC
00A7 StarterSelectionScreen - Opens the starter Pokémon selection screen
00A8 Flex ???
00A9 Flex ???; Var Variable
00AA Var Variable
00AB Flex ???; Var Variable
00AC WritePlayerName Var Variable Opens the keyboard for naming the player, stores 1 in Variable if user cancels the proccess
00AD WritePokemonName GivePokemonNickname Flex Party Position; Var Variable Opens the keyboard for naming a Pokémon in Party Position, stores 1 in Variable if user cancels the proccess
00AE FadeScreen FadeScreen u16 Frame Count; u16 Duration; u16 Fade Style; u16 Color Fades screen to chosen 15-bit Color, using the chosen Fade Style. The transition will render Frame Count images, of Duration length each.
00AF WaitFadeScreen ResetScreen - Waits for the screen fade to end
00B0 Warp Warp Flex Map; u16 Door; Flex X; Flex Y; Flex Dir Warps to X and Y position of Map header with initial Dir direction, using Door warp
00B1 RockClimbAnimation HallFameData Flex Party Position Uses rock climb with the Pokémon at Party Position position
00B2 SurfAnimation Flex Party Position Uses surf with the Pokémon at Party Position position
00B3 WaterfallAnimation WFC1 Flex Party Position Uses waterfall with the Pokémon at Party Position position
00B4 FlyAnimation u16 Map; Flex X; Flex Y Flies to Map header map, to coordinates X and Y
00B5 FlashAnimation - Sets weather to 12 (darkness after flash) and then updates the weather graphics
00B6 WhirlpoolAnimation Flex Party Position Uses whirlpool with the Pokémon at Party Position position
00B7 CutAnimation Flex Party Position Uses cut with the Pokémon at Party Position position
00B8 CheckBike Var Variable Stores 1 in Variable if player is riding the bike, stores 0 otherwise
00B9 RideBike u8 Action Changes player form from normal to riding the bike if Action is 1, otherwise it sets the normal form to the player
00BA CyclingRoad u8 Action If Action is 1, the game sets the cycling road flag and moves the player down. Otherwise the flag is deactivated.
00BB CheckPlayerForm Var Variable Stores in Variable the current player form
00BC SetPlayerForm u16 Form Activates the Form bit in the internal player form data
00BD UpdatePlayerForm - Updates changes in the internal player form data in the screen
00BE TextPlayerName SetVariableHero u8 String Buffer Stores player's name in String Buffer
00BF TextRivalName SetVariableRival u8 String Buffer Stores rival's name in String Buffer
00C0 TextCounterpart SetVariableAlter u8 String Buffer Stores counterpart's name in String Buffer
00C1 TextPartyPokemon SetVariablePokemon u8 String Buffer; Flex Party Position Stores the name of the Pokémon in Party Position in String Buffer
00C2 TextItem SetVariableItem u8 String Buffer; Flex Item Stores Item's name in String Buffer
00C3 TextPocket u8 String Buffer; Flex Pocket Stores Pocket's name in String Buffer
00C4 TextMachineMove SetVariableAttackItem u8 String Buffer; Flex Item Stores the name of the move contained in Item TM/HM in String Buffer
00C5 TextMove SetVariableAttack u8 String Buffer; Flex Move Stores battle Move's name in String Buffer
00C6 TextNumber SetVariableNumber u8 String Buffer; Flex Number Stores a Number in String Buffer
00C7 TextPokeNickname SetVariablePokemonNickname u8 String Buffer; Flex Party Position Stores the nickname of the Pokémon in Party Position in String Buffer
00C8 SetVariableObject
00C9 TextPlayerTrainerType u8 String Buffer Stores player's Union Room trainer type in String Buffer
00CA TextPokemon SetVariablePokemonStored u8 String Buffer; Flex Pokémon; u16 Unused; u8 Unused Stores Pokémon's name in String Buffer
00CB TextStarterPokemon u8 String Buffer Stores the name of the player' starter Pokémon in String Buffer
00CC TextRivalStarter u8 String Buffer Stores the name of the rival' starter Pokémon in String Buffer
00CD TextCounterpartStarter CheckStarter u8 String Buffer Stores the name of the counterpart' starter Pokémon in String Buffer
00CE CheckStarter Var Variable Stores the starter Pokémon ID in Variable
00CF DummyTextGoods u8 String Buffer; Flex Unused Loads an empty string in String Buffer
00D0 DummyTextTrap u8 Unused; Flex Unused Nothing
00D1 DummyTextTreasure u8 Unused; Flex Unused Nothing
00D2 TextMapName u8 String Buffer; Flex Map Stores Map header name in String Buffer
00D3 GetSwarmInfo Var Map; Var Pokémon Selects a zone depending on a random seed, then stores the zone ID in Map and the corresponding swarm Pokémon of that zone in Pokémon
00D4 TrainerID Var Variable Stores the trainer ID number in Variable depending on the script ID
00D5 TrainerBattle TrainerBattle Flex Trainer 1; Flex Trainer 2; u8 ???; u8 ??? Starts a battle against Trainer 1 and, if Trainer 2 is neither 0 nor the same as Trainer 1, a double battle against both
00D6 TrainerMessage Flex Trainer ID; Flex Type Displays the text of Trainer ID trainer at condition Type
00D7 TrainerMsgCheck Var Noticing; Var Defeat; Var One Pokémon If the script ID corresponds to a single battle trainer, stores 0 in Noticing, 2 in Defeat and 0 in One Pokémon. If it corresponds to a double battle, stores 3, 5 and 6 or 7, 9 and 10 depending on whether it's the first or the second trainer
00D8 TrainerRematchMsgCheck Var Noticing; Var Defeat; Var One Pokémon If the script ID corresponds to a single battle trainer, stores 17 in Noticing, 0 in Defeat and 0 in One Pokémon. If it corresponds to a double battle, stores 18, 0 and 6 or 19, 0 and 10 depending on whether it's the first or the second trainer
00D9 TrainerTypeCheck Var Variable Stores 0 in Variable if the script ID corresponds to a single battle, stores 1 if it corresponds to a double battle
00DA TrainerMusic Flex Trainer Plays Trainer's overworld music
00DB LostBattle LostGoPokecenter - Return to Pokémon Center or player's house after being defeated
00DC CheckBattleIsLost CheckLost Var Variable Stores 0 in Variable if player has been defeated in battle, stores 1 otherwise
00DD CheckDefeatedPokemon Var Variable; u8 ??? Stores 0 in Variable if player defeated or catched the wild Pokemon, stores 1 otherwise
00DE Check2vs2 StoreStarter Var Variable Stores 1 in Variable if player has at least 2 not fainted Pokémon, stores 0 otherwise
00DF DummyTrainerBattle - Starts a battle against trainer with ID 1
00E0 DummyTrainerFlag - Sets the trainer flag with the same ID as the invoking event
00E1 DummyTrainerFlagJump u32 Relative Jump Jumps to a function, Relative Jump bytes forward or backward, if trainer flag with the invoking event ID is set
00E2
00E3
00E4
00E5
00E6
00E7
00E8
00E9
00EA
00EB
00EC
00ED
00EE CheckPokerus Var Variable Stores 1 in Variable if one or more Pokémon in the party are infected with the Pokérus
00EF GetPokemonGender ChecPokemonGender Flex Party Position; Var Variable Stores 0 in Variable if Pokémon at Party Position is male, 1 if is female and 2 if gender is unknown
00F0 WarpLift
00F1 GetElevatorFloor CheckFloor Var Variable Stores in Variable the current floor in a elevator
00F2 ElevatorBox u8 X; u8 Y; Var Variable; Flex Floor Shows the current floor number in a box at X and Y coordinates in the screen
00F3 CountJohtoDexSeen WirelessBattleWait Var Variable Stores in Variable the total seen Pokemon in the Johto Pokédex
00F4 CountJohtoDexObtained Var Variable Stores in Variable the total obtained Pokemon in the Johto Pokédex
00F5 CountNationalDexSeen Var Variable Stores in Variable the total seen Pokemon in the National Pokédex
00F6 CountNationalDexObtained Var Variable Stores in Variable the total obtained Pokemon in the National Pokédex
00F7 DummyNationalDexCheck PokemonContest - Nothing
00F8 GetDexProgressMsg u8 Mode; Var Message; Var Unknown Checks the number of seen Pokémon in the Johto Pokédex (if Mode is 0) or the number of obtained Pokémon in the National Pokédex (otherwise) and stores the corresponding Professor message in Message, also storing 0x4AA in Unknown
00F9 WildBattle Flex Pokémon; Flex Level Starts a wild battle against a Pokémon of level Level
00FA WildBattleNoButtons Flex Pokémon; Flex Level Starts a first wild battle against a Pokémon of level Level
00FB CatchTutorial - Starts the catch tutorial battle
00FC
00FD CheckSaveGame Var Variable Stores 0 in Variable if a different savegame exists and it's not possible to save, stores 1 if no previous savegame exists, stores 2 if game has to save a lot of data and stores 3 if game can perform a quick save
00FE
00FF
0100
0101
0102
0103
0104
0105
0106
0107
0108
0109
010A
010B
010C
010D
010E
010F
0110
0111
0112
0113 MartScreen Flex Unused Opens the common mart shopping screen
0114 SpMartScreen Flex Mart ID Opens the Mart ID mart shopping screen
0115 GoodsMartScreen Flex Mart ID Opens the Mart ID goods mart shopping screen
0116 SealMartScreen Flex Mart ID Opens the Mart ID seal mart shopping screen
0117 DummyLostBattle - Return to Pokémon Center or player's house after being defeated
0118 SetLastWarp Flex Warp ID Sets map's Warp ID warp as the last used warp
0119 CheckPlayerGender CheckGender Var Variable Stores 0 in Variable if player is male, stores 1 if female
011A HealPokemon HealPokemon - Heals every Pokémon in the player's party
011B
011C
011D
011E
011F
0120
0121
0122 CheckPokedex Var Variable Stores 1 in Variable if player has the Pokédex, stores 0 otherwise
0123 GivePokedex ActivatePokedex - Gives the Pokédex to the player
0124 CheckShoes Var Variable Stores 1 in Variable if player has the running shoes, stores 0 otherwise
0125 GiveShoes GiveRunningShoes - Gives the running shoes to the player
0126 CheckBadge CheckBadge Flex Badge ID; Var Variable Checks if player has Badge ID badge, stores result in Variable
0127 GiveBadge EnableBadge Flex Badge ID Gives the player Badge ID badge
0128 CountBadges DisableBadge Var Variable Stores in Variable the number of badges obtained
0129 DummyCheckBag Var Variable Stores 1 in Variable if flag 0x960 is set, stores 0 otherwise
012A DummyGiveBag - Sets flag 0x960
012B CheckPartner Var Variable Stores 1 in Variable if the following event flag is activated, stores 0 otherwise
012C SetPartner - Activates the following event flag, so you can no longer use the bike, surf, rock climb...
012D ClearPartner - Deactivates the following event flag, so you can use the bike, surf, rock climb... again
012E
012F
0130
0131 DummyCheckGameCompleted Var Variable Stores 1 in Variable if flag 0x964 is set, stores 0 otherwise
0132 DummyGameCompleted - Sets flag 0x964
0133 DoorAnimation PrepareDoorAnimation u16 Matrix X; u16 Matrix Y; Flex Map X; Flex Map Y; u8 Door ID Prepares a building located at Map X and Map Y coordinates in a map located at Matrix X and Matrix Y in the current matrix for animation, with Door ID animation ID
0134 WaitDoor CloseDoor u8 Door ID Wait animation of building with Door ID animation ID
0135 FreeDoor MoveDoor u8 Door ID Free animation of building with Door ID animation ID
0136 OpenDoor OpenDoor u8 Door ID Triggers first animation of building with Door ID animation ID
0137 CloseDoor WaitDoor u8 Door ID Triggers second animation of building with Door ID animation ID
0138 GetDaycareNames - Stores first daycare Pokémon nickname in string buffer 0, the second daycare Pokémon nickname in string buffer 1 and the first Pokémon trainer's name in buffer 2
0139 GetDaycareStatus Var Variable If daycare Pokémon have an egg, stores 1 in Variable. Otherwise it stores 0 if no Pokémon is in the daycare, 2 if only one Pokémon is in the daycare or 3 if there are two Pokémon
013A
013B
013C
013D
013E
013F
0140
0141 VermillionGymAnimation
0142 VermillionGymBin
0143
0144 InitVioletGym - Initializes Violet Gym internal data and 3D model animations
0145 VioletGymElevator - Triggers model #111 to move up or down
0146
0147 AzaleaGym
0148 AzaleaGym2
0149
014A
014B
014C CountPartyPokemon CheckPartyNumber Var Variable Stores in Variable the current number of Pokémon in the party
014D
014E
014F
0150
0151
0152 SetOWDefaultPosition Flex Event ID; Flex X; Flex Y Sets Event ID spawn position to global coords X and Y
0153 SetOWPosition SetOverworldPosition Flex Event ID; Flex X; Flex Z; Flex Y; Flex Dir Moves Event ID to global coords X, Y, Z with Dir direction
0154 SetOWDefaultMovement Flex Event ID; Flex Movement ID Sets Event ID's default move code to Movement ID
0155 SetOWDefaultDirection Flex Event ID; Flex Direction ID Sets Event ID's default direction to Direction ID
0156 SetWarpPosition Flex Warp ID; Flex X; Flex Y Moves Warp ID to global coords X and Y
0157 SetSpawnablePosition Flex Spawnable ID; Flex X; Flex Y Moves Spawnable ID to global coords X and Y
0158 SetOWDirection Flex Event ID; Flex Direction ID Sets Event ID's current direction to Direction ID
0159
015A
015B
015C WaitTimeOrAB Flex Time Stops script execution until Time frames have passed or until user presses A or B buttons
015D ChoosePokemonMenu
015E ChoosePokemonMenu2
015F GetSelectedPartySlot StorePokemonMenu Var Variable Stores in Variable the selected party slot in a party Pokémon screen, or 0xFF is user cancelled the selection
0160
0161
0162 GetPartyPokemonID StorePokemonNumber Var Party Position; Var Variable Stores in Variable the ID of the Pokémon at Party Position
0163 CheckTradedPokemon CheckIfPokemonTraded Var Party Position; Var Variable Stores 0 in Variable if trainer ID and secret ID of the Pokémon at Party Position are the player's ones, stores 1 otherwise
0164 CountPartyBornPokemon Var Variable Stores in Variable the number of Pokémon in the Pokémon party, excluding the eggs
0165 CountAlivePokemonExceptFirst Var Variable; Flex Party Position Stores in Variable how many alive Pokémon would remain in the Pokémon party if Pokémon at Party Position disappeared
0166 CountTotalAlivePokemon Var Variable Stores in Variable the number of Pokémon in the Pokémon party and PC boxes, excluding the eggs and fainted Pokémon
0167 CountPartyEggs Var Variable Stores in Variable the number of eggs in the Pokémon party
0168 TakeMoneyFlex Flex Money Substracts Money from the player's money
0169
016A
016B
016C DeletePartyPokemon Flex Party Position Deletes the Pokémon at Party Position from the party
016D
016E
016F
0170 CompareMoneyFlex CheckHiroMoneyNumber Var Variable; Flex Money Returns 1 to Variable if the player has Money or more money, returns 0 otherwise
0171 EggHatchScreen - Opens the egg hatching screen with an egg in the Pokémon party that has 0 steps left for hatching
0172
0173
0174
0175
0176 UnvanishOverworld Flex Event ID Makes Event ID visible again if it was invisible
0177 VanishOverworld Flex Event ID Makes Event ID invisible, but still collisionable
0178 MailScreen OpenMail - Opens the mail screen
0179 CountMail CheckMail Var Variable Stores in Variable the current amount of mails in the mailbox
017A
017B GetTimePeriod Var Variable Stores in Variable the current time period of the day
017C GetRandom Var Variable; Flex Range Generates a random number between 0 and Range - 1, and stores it in Variable
017D DummyGetRandom Var Variable; Flex Range Generates a random number between 0 and Range - 1, and stores it in Variable
017E GetPokemonHappiness Var Variable; Flex Party Position Stores in Variable the happiness of Pokémon in Party Position
017F AddHappiness Flex Happiness; Flex Party Position Adds Happiness to the happiness of Pokémon in Party Position
0180 SubHappiness Flex Happiness; Flex Party Position Subs Happiness to the happiness of Pokémon in Party Position
0181
0182 GetPlayerDirection Var Variable Stores in Variable the direction the player is looking at
0183
0184
0185 CheckBornPokemonInParty Flex Pokémon; Var Variable Stores 1 in Variable if Pokémon is currently in the Pokémon party, stores 0 otherwise
0186 CheckPokemonSizeRecord Var Variable; Flex Party Position Stores 0 in Variable if Pokémon at Party Position does not have a bigger relative size than player's record, stores 1 if it's the same size and stores 2 if it has a bigger relative size
0187 SetPokemonSizeRecord Flex Party Position Stores the relative size of Pokémon at Party Position as player's record
0188 TextPartyPokemonSize ComparePokemonHeight Flex Integer String Buffer; Flex Decimal String Buffer; Flex Party Position Stores the integer part of Pokémon at Party Position size in Integer String Buffer (1 to 3 digits) and the decimal part of the size in Decimal String Buffer (1 digit)
0189 TextPokemonRecordSize CheckPokemonHeight Flex Integer String Buffer; Flex Decimal String Buffer; Flex Pokémon ID Stores the integer part of player's record size, normalized to Pokémon ID range, in Integer String Buffer (1 to 3 digits) and the decimal part of the size in Decimal String Buffer (1 digit)
018A ChoosePokemonDelete
018B StoreDeleteMove
018C CountPokemonMoves CheckMoveNumber Var Variable; Flex Party Position Stores in Variable the total amount of moves that the Pokémon at Party Position currently has
018D DeleteMove DeleteMove Flex Party Position; Flex Move Slot Deletes the move in Move Slot from the Pokémon at Party Position
018E GetPartyPokemonMove Var Variable; Flex Party Position; Flex Move Slot Stores in Variable the ID of the move in Move Slot from the Pokémon at Party Position
018F TextPartyPokemonMove SetVariableDeleteMove u8 String Buffer; Flex Party Position; Flex Move Slot Stores the name of the move in Move Slot from the Pokémon at Party Position in String Buffer
0190 Strength Command format depends on the first parameter:
  • u8 0
  • u8 1
  • u8 2; Var Variable
Function depends on the first parameter:
  • 0: Disables Strength so player can no longer move boulders
  • 1: Allows the player to automatically move Strength boulders
  • 2: Checks if Strength is activated, store answer in Variable
0191 Command format depends on the first parameter:
  • u8 0
  • u8 1
  • u8 2; Var Variable
???
0192 Command format depends on the first parameter:
  • u8 0
  • u8 1
  • u8 2; Var Variable
???
0193
0194 GiveItemStored
0195
0196
0197
0198
0199
019A
019B
019C
019D
019E
019F
01A0
01A1
01A2
01A3
01A4
01A5
01A6
01A7 CheckCompleteJohtoDex Var Variable Stores 1 in Variable if every Pokémon in the Johto Pokédex has been seen, stores 0 otherwise
01A8 CheckCompleteNationalDex Var Variable Stores 1 in Variable if every Pokémon in the National Pokédex has been caught, stores 0 otherwise
01A9
01AA
01AB
01AC
01AD CountFossils Var Variable Stores in Variable the current amount of fossils in the bag
01AE
01AF
01B0 CheckFossilPokemon Var Variable; Flex Item ID Stores in Variable the ID of the Pokémon to which Item ID fossil belongs
01B1 CheckFossil Var Position; Var Item ID; Flex Amount Stores in Item ID the ID of the first fossil item in the bag that the player has at least Amount quantity of, and stores in Position the amount of fossils in the bag before the first fossil that met the quantity condition
01B2 CountPokemonUnderLevel Var Variable; Flex Level Stores in Variable the amount of Pokémon in party whose level is equal or lower than Level
01B3 SurvivePoison Var Variable; Flex Party Position If Pokémon at Party Position is poisoned and at 1 HP, it cures the poison and stores 1 in Variable, otherwise it stores 0
01B4
01B5
01B6
01B7
01B8
01B9
01BA
01BB
01BC
01BD GetPreviousHeaderID Var Variable Stores in Variable the header ID of the previous accessed map
01BE GetCurrentHeaderID Var Variable Stores in Variable the header ID of the map the player is in
01BF SetSafariFlag u8 Flag; u8 Mode If Flag is 0 safari encounters are activated, if Flag is 1 safari encounters are deactivated, being the own safari encounters if Mode is 0 or using the Safari Zone link if 1
01C0
01C1
01C2 GeonetScreen - Opens the Geonet screen
01C3
01C4 ShowPokemonPic Flex Pokémon; Flex Gender Opens a window with the picture of Pokémon with Gender gender and registers the Pokémon in the Pokédex as seen
01C5 HidePokemonPic - Hides the window of a Pokémon picture
01C6
01C7
01C8
01C9
01CA
01CB
01CC
01CD
01CE
01CF
01D0 AddRoamingPokemon u8 ID Activates a roaming Pokemon depending on the ID
01D1 UnionGroup Command format depends on the first parameter:
  • u16 0; Flex ID; Var Variable
  • u16 1; Flex ID; Var Variable
  • u16 2; Flex ID; Flex String Buffer
  • u16 3; Flex ID; Flex String Buffer
  • u16 4; Var Variable
  • u16 5; Flex ID
  • u16 6
  • u16 7; Var Variable
Function depends on the first parameter:
  • 0: Checks if group ID exists, returns answer in Variable
  • 1: Checks if group ID is accesible, returns answer in Variable
  • 2: Writes group ID name in String Buffer
  • 3: Writes leader's name of Group ID in String Buffer
  • 4: Opens keyboard, stores 1 in Variable if user cancels, 2 if group name already exists, 0 otherwise
  • 5: Enter in group ID
  • 6: Creates a group
  • 7: ???
01D2
01D3 ChoosePokemonRem
01D4
01D5 StoreMoveRem
01D6 InitTrade u8 Trade ID Initializes Trade ID trade data
01D7 GetOfferedPokemon Var Variable Stores in Variable the ID of the offered Pokémon of the current trade data
01D8 GetRequestedPokemon CheckPokemonTrade Var Variable Stores in Variable the ID of the requested Pokémon of the current trade data
01D9 TradePokemonScreen TradeChosenPokemon Flex Party Position Opens the trade Pokémon screen, giving the Pokémon at Party Position and receiving the offered Pokémon of the current trade data
01DA EndTrade StopTrade - Frees the current trade data from the memory
01DB DummyInternationalDex - Nothing
01DC DummyDimorphismDex - Nothing
01DD NationalDex Command format depends on the first parameter:
  • u8 1; Var Unused
  • u8 2; Var Variable
Function depends on the first parameter:
  • 1: Activates the National Pokédex mode
  • 2: Stores 1 in Variable if player has the National Pokédex, otherwise it stores 0
01DE CountPokemonRibbons Var Variable; Flex Party Position Stores in Variable the amount of ribbons that the Pokémon in Party Position has
01DF CountPartyRibbons Var Variable Stores in Variable the total amount of different ribbons in the current Pokémon party
01E0 CheckRibbon CheckRibbon Var Variable; Flex Party Position; Flex Ribbon Stores 1 in Variable if the Pokémon in Party Position has the Ribbon ribbon, stores 0 otherwise
01E1 GiveRibbon GiveRibbon Flex Party Position; Flex Ribbon Gives the Ribbon ribbon to Pokémon in Party Position
01E2 TextRibbon u8 String Buffer; Flex Ribbon Stores the name of the Ribbon in String Buffer
01E3 CountPokemonEVs CheckPokemonRibbon Var Variable; Flex Party Position Stores in Variable the total amount of effort values of Pokémon in Party Position
01E4 GetDayOfWeek Var Variable Stores in Variable the current day of the week
01E5 ShowRulesList Var Variable ???
01E6 DummyGetPokemonFootprint RBattleRecorder - Nothing
01E7 PCHealAnimation Flex PokéBalls Triggers the Pokémon Center healing animation with PokéBalls number of player's Pokémon
01E8 ElevatorAnimation Flex Direction; Flex Count Triggers the animation of building #208 up (if Direction is 0) or down (if Direction is 1) Count consecutive times
01E9 MysteryGiftGive Command format depends on the first parameter:
  • u16 0
  • u16 1; Var Variable
  • u16 2; Var Variable
  • u16 3; Var Variable
  • u16 4
  • u16 5; Var Text File; Var Text Line
  • u16 6; Var Text File; Var Text Line
  • u16 7
  • u16 8
Function depends on the first parameter:
  • 0: Initializes the data for receiving a Mystery Gift
  • 1: Checks if there is a Mystery Gift, stores answer in Variable
  • 2: Stores the Mystery Gift ID in Variable
  • 3: Checks if player can receive the Mystery Gift, stores answer in Variable
  • 4: Gives the Mystery Gift to the player
  • 5: Shows the succeed text at Text File file and Text Line slot
  • 6: Shows the unable text at Text File file and Text Line slot
  • 7: Ends the Mystery Gift process
  • 8: Saves data and ends the Mystery Gift process
01EA
01EB
01EC
01ED
01EE
01EF CheckVersion CheckVersion Var Variable Returns 0x7 to Variable if game is HeartGold, 0x8 if SoulSilver
01F0 FirstPokemonInParty Var Variable Stores in Variable the slot of the first Pokémon in the party that is not an egg
01F1
01F2
01F3
01F4
01F5
01F6
01F7 GetLottoNumber Var Variable Stores Lotto random number in Variable
01F8 CheckWinLotto Var MatchPos; Var Digits; Var PC; Flex Winning Number Takes a Winning Number as input and responds as follows.

If no matching Pokémon could be found or an error occurs:

  • MatchPos: 0; Digits: 0; PC: 0.

For all other cases:

  • If the matching Pokémon is in the Player's party, PC will be assigned 0.
  • Otherwise, if it's in the Player's Storage System, PC will be assigned 1.

MatchPos stores the zero-based position of the winning Pokémon (either as Party pos or Storage System pos, depending on the value of PC). When there's a match, the Digits var is assigned the number of matching digits of the Winning Pokémon's PID.

In case of multiple matches, priority is always given to the one with the most matching digits.

01F9 InitLotto - Generates two random numbers and assigns them to two system lottery variables.
01FA
01FB CountPCFreeSpace CheckBoxesNumber Var Variable Stores in Variable the amount of free Pokémon slots in PC boxes
01FC
01FD
01FE
01FF StoreFriendParkResult
0200
0201
0202
0203
0204 TextAccessory u8 String Buffer; Flex Accesory Stores Accesory's name in String Buffer
0205 CheckPokemonInParty Flex Pokémon; Var Variable Stores 1 in Variable if Pokémon (or its egg) is currently in the Pokémon party, stores 0 otherwise
0206 SetDeoxysForm Flex Form Sets every Deoxys in the Pokémon party the Form form
0207 CheckBurmyForms Var Variable Stores in Variable the number of current different Burmy forms in the Pokémon party
0208 - ???
0209 - ???
020A GetHour Var Variable Stores current hour from RTC in Variable
020B ShakeOverworld Flex Event ID; Flex Count; Flex Time; Flex X; Flex Y Makes Event ID overworld shake Count times in Time frames, moving X horizontally and Y vertically each shake
020C BlinkOverworld Flex ???; Flex ???; Flex ???; Flex ???; Flex ??? ???
020D CheckRegis Var Variable Stores 1 in Variable if player has the 3 Regis in the party, stores 0 otherwise
020E
020F MessageUnown u16 Text Slot Display line Text Slot from the text file with the Unown font
0210 CheckGBACartidge Var Variable Stores the current GBA cartridge ID in Variable
0211 GetFirstAlivePokemonSlot Var Variable Stores in Variable the slot of the first Pokémon in the party that is not an egg nor is fainted
0212 SetMatrixAlternativeMap Flex Alternative ID; u8 Status Permanently changes a worldmap matrix cell corresponding to Alternative ID if Status is 1, reverts the change if 0
0213
0214
0215
0216
0217
0218
0219
021A
021B
021C
021D TextNumberSp u8 String Buffer; Flex Number; u8 Alignment Type; u8 Digits Stores a Number in String Buffer with Alignment Type alignment and Digits length
021E
021F CheckBirthday Var Variable Stores 1 in Variable if the current day is the player's birthday, stores 0 otherwise
0220 MusicVolumeSet Flex Music ID; Flex Volume Identifies the BGM Player which is playing Music ID and sets its Volume
0221 CountSeenUnown Var Variable Stores in Variable the number of different seen Unown forms
0222
0223
0224
0225
0226
0227
0228
0229
022A
022B
022C
022D
022E
022F
0230 Flex ???; Var ???
0231 ShakeCamera Flex X Magnitude; Flex Y Magnitude; Flex Count; Flex Time Shakes the screen vertically and/or horizontally, moving the camera X Magnitude pixels horizontally and Y Magnitude pixels vertically in each shake, with Count total shakes of Time frames each one
0232 Battle2vs2 Flex Partner Trainer ID; Flex Trainer 1 ID; Flex Trainer 2 ID; u8 ??? Starts a double battle with Partner Trainer ID versus Trainer 1 ID and Trainer 2 ID
0233
0234
0235 Var ??? ???
0236 PartyPokemonTradeScreen ChoosePokemonMenuTrade - Opens the party Pokémon screen for a trade
0237
0238
0239
023A
023B
023C
023D
023E
023F
0240
0241
0242
0243
0244
0245
0246
0247
0248
0249
024A
024B - ???
024C
024D WildBattleSp LegendaryBattle Flex Pokémon; Flex Level; u8 Shiny Flag Starts a wild battle against a Pokémon of level Level, and shiny if Shiny Flag is 1
024E CheckTrainerCardLevel Var Variable Stores in Variable the current trainer card level
024F DummyRideBike - Nothing
0250
0251 ShowSaveBox - Displays the save data box (current map name, player's name, the amount of badges, the Pokédex counter and the play time)
0252 HideSaveBox - Hides the save data box
0253 ScopeMode u8 Mode If Mode is 1, activates the scope mode, otherwise the command deactivates the scope mode
0254 GetFollowingPokeSize Var Variable Stores 0 in Variable if the current following Pokémon is small and can follow the player indoors, stores 1 if it's big and can't follow the player indoors
0255 - ???
0256 u16 ??? ???
0257 FollowingPokePCAnimation - Triggers the animation of sending the current following Pokémon back to its PokéBall over the Pokémon Center healing counter
0258 SendBackFollowingPoke StartFriendPark - Triggers the animation of sending the current following Pokémon back to its PokéBall and deactivates the following Pokémon until the game is reset or a warp is used
0259 FollowingPokeFacePlayer - Makes the invoking event look at the player, but with a size limitation
025A LockFollowingPoke u16 Operation Releases the following Pokemon animation if Operation is 0, locks the animation otherwise
025B WaitFollowingPoke - Waits the following Pokemon to end its last movement
025C SetFollowingPokeMovement u16 Move Code Changes the following Pokemon default movement to Move Code
025D SetFollowingPokePosition u8 Position; u8 Direction Moves the following Pokémon to one tile Position next to player and facing at Direction
025E BallResetFollowingPoke EndFriendPark - Moves the following Pokémon to the current player's position, and triggers the animation of sending the Pokémon out of its PokéBall after the player walks a step
025F NoBallResetFollowingPoke - Moves the following Pokémon to the current player's position
0260 SendOutFollowingPoke - Triggers the animation of sending the first non-fainted Pokémon out of its PokéBall and spawns it on the last player position
0261 MecScript - ???
0262
0263
0264
0265
0266
0267 MakePhoto
0268
0269
026A CheckAlbumPhoto
026B
026C
026D
026E GetOWDirection u16 Event ID; Var Variable Stores in Variable the current direction which Event ID is facing
026F
0270
0271
0272
0273
0274
0275
0276
0277
0278
0279
027A
027B
027C
027D
027E
027F
0280
0281
0282 Var Variable ???
0283
0284
0285
0286
0287
0288
0289
028A
028B
028C
028D
028E
028F
0290
0291
0292
0293
0294
0295
0296
0297
0298
0299
029A
029B
029C
029D
029E
029F
02A0
02A1
02A2
02A3
02A4
02A5
02A6
02A7
02A8
02A9
02AA
02AB
02AC GetCurrentWeather Var Variable Stores the current weather in Variable
02AD
02AE
02AF
02B0
02B1
02B2
02B3
02B4
02B5
02B6
02B7
02B8
02B9
02BA
02BB
02BC CheckWildBattle2
02BD WildBattle2
02BE
02BF
02C0
02C1
02C2
02C3
02C4 FloorTrapAnimation Triggers Team Rocket HQ trap-floor's graphical effect in the player's current position
02C5
02C6
02C7 TalkFollowingPoke - The following Pokémon triggers a random movement, and then a random following message
02C8
02C9
02CA
02CB
02CC
02CD
02CE
02CF
02D0
02D1
02D2 u8 ???; u8 ???; u16 ???; u16 ???; u16 ??? ???
02D3
02D4
02D5
02D6
02D7 Var Variable ???
02D8 u8 ???; u8 ??? ???
02D9 CheckAlivePokemon Var Variable Checks if player has at least 1 not fainted Pokémon, stores the result in Variable
02DA CheckFollowingPoke Var Variable Checks if player has a following Pokémon, stores the result in Variable
02DB - ???
02DC u8 ??? ???
02DD u8 ???; Var ??? ???
02DE
02DF
02E0
02E1
02E2
02E3
02E4
02E5
02E6
02E7
02E8
02E9
02EA OpenTouchScreen OpenLowScreen - Changes the low screen design to the green Pokéball background
02EB CloseTouchScreen CloseLowScreen - Sets the default low screen design
02EC YesNoTouchScreen OpenLowYesNoBox Var Variable Opens a Yes-No selection, stores player's answer in Variable
02ED MultiTouchStandardText Multi4 u8 ???; u8 ???; u8 ???; u8 ???; Var Selection Prepares a multiple selection menu with text bank #191, returns selected slot ID in Selection
02EE MultiTouchLocalText Multi5 u8 ???; u8 ???; u8 ???; u8 ???; Var Selection Prepares a multiple selection menu with local texts, returns selected slot ID in Selection
02EF CreateMultiTouchBox TextScriptMulti4 Flex Text Slot; Flex ???; Flex Multi Box Slot Adds a box with Multi Box Slot ID showing Text Slot text
02F0 CloseMultiTouch CloseMulti4 - Closes the multiple selection boxes
02F1 Flex ???; Var ???; Var ??? ???
02F2 Var ??? ???
02F3
02F4
02F5
02F6
02F7
02F8
02F9
02FA
02FB
02FC
02FD
02FE
02FF - ???
0300
0301
0302
0303
0304
0305
0306
0307
0308
0309
030A - ???
030B
030C
030D
030E - ???
030F
0310
0311
0312
0313
0314
0315
0316
0317
0318
0319 TakeMomMoney
031A GiveMomMoney
031B ShowMomMoney OpenMomMoneyBox Flex X; Flex Y Shows mom savings money box at X and Y coordinates of the screen
031C HideMomMoney CloseMomMoneyBox - Hides mom savings money box
031D
031E
031F
0320
0321
0322
0323
0324
0325
0326
0327
0328
0329
032A
032B
032C
032D
032E
032F
0330
0331
0332
0333
0334
0335
0336
0337
0338
0339
033A
033B
033C
033D Var ??? ???
033E
033F
0340
0341
0342 Var Variable ???
0343 Var Variable ???
0344 CheckJadeOrbRequirements Var Variable Stores 1 in Variable if player has both Kyogre and Groudon in the Pokémon party and they have been caught in Johto, stores 0 otherwise
0345 Var Variable ???
0346 CheckMoneyFull CheckMomMoneyNumber u16 Money Account; Var Variable Stores 1 in Variable if the chosen money account is full.
  • Money account 0 for Mom's savings;
  • Money account 1 for Player;
0347
0348
0349
034A
034B TextItemLowercase u8 String Buffer; Flex Item Stores Item's lowercase name in String Buffer
034C TextItemPlural u8 String Buffer; Flex Item Stores Item's plural noun in String Buffer
034D TextPartyPokemonDefault u8 String Buffer; Flex Party position Stores the name of the Pokémon in Party Position in String Buffer with default color tags encoding
034E
034F u8 String Buffer ???
0350 u8 String Buffer; Flex Accesory ???
0351 TextTrainerClass u8 String Buffer; Flex Trainer class Stores Trainer class' lowercase noun in String Buffer
0352 TextSealPlural u8 String Buffer; Flex Seal Stores Seal's plural noun in String Buffer
0353 TextCapitalize u8 String Buffer Capitalizes the string currently stored in String Buffer
0354 TextFloor u8 String Buffer; u8 Floor Stores Floor's name in String Buffer