Jump to content

Mobile script: Difference between revisions

(Created page with "{{incomplete|1=Lots of general information, intended behaviors}} The '''mobile scripts''' are scripts in Pokémon Crystal which use the control character 0x15, followed by...")
 
 
(7 intermediate revisions by the same user not shown)
Line 5:
 
==Documentation==
 
''For more information, see [https://github.com/pret/pokecrystal/blob/3648afda1694fcb4d6fe6625b14f5a3f8bc29c38/mobile/mobile_5f.asm here].''
 
*15 00 - Invalid (arbitrary code execution at WRAM CD46 in Japanese versions, or at WRAM CD52 in English versions).
*15 01 - Function17f081 (in the disassembly documentation this is function 0)
*15 01 - ???
*15 02 - ???Function17f0f8
*15 03 - ???Function17f154
*15 04 - ???Function17f181
*15 05 - ???Function17f1d0
*15 06 - ???Function17f220
*15 07 - ???Function17f27b
*15 08 - UnknownFunction17f2cb (can print the value of a number that varies based on player's position on the map when forced in a player's name in the Japanese version).
*15 09 - UnknownMobileScript_PlayerName (capable of arbitrary code execution or freezes in general in the Japanese version, when 15 09 is in various strings such as the player's name or a Pokémon's nickname)
*15 0A - PrefectureMobileScript_Prefecture (prints a prefecture name, (e.g. Aichi prefecture; あいちけん).
*15 0B - Print some digits (e.g. 000).
*15 0C - "Hello!" (こんにちは !), followed by other text (email form?).
*15 0D - ???Function17f3f0
*15 0E - ???Function17f41d
*15 0F - ??Terminate mobile script?
*15 10+ - Terminate mobile script (in the disassembly documentation this is function f)
{{stub}}
[[Category:Game mechanics]]
[[Category:Generation II mechanics]]
Cookies help us deliver our services. By using our services, you agree to our use of cookies.