Advertisement
Tyler_Elric

Scripting DB.json

Nov 11th, 2012
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 79.28 KB | None | 0 0
  1. [
  2. {
  3. "name":"nop",
  4. "args":0,
  5. "value":0,
  6. "params":[
  7.  
  8. ],
  9. "desc":"Does absolutely nothing.",
  10. "size":1
  11. },
  12. {
  13. "name":"nop1",
  14. "args":0,
  15. "value":1,
  16. "params":[
  17.  
  18. ],
  19. "desc":"Does absolutely nothing.",
  20. "size":1
  21. },
  22. {
  23. "name":"end",
  24. "args":0,
  25. "value":2,
  26. "params":[
  27.  
  28. ],
  29. "desc":"Ends the execution of the script.",
  30. "size":1
  31. },
  32. {
  33. "name":"return",
  34. "args":0,
  35. "value":3,
  36. "params":[
  37.  
  38. ],
  39. "desc":"Pops back to the last calling command used.",
  40. "size":1
  41. },
  42. {
  43. "name":"call",
  44. "args":1,
  45. "value":4,
  46. "params":[
  47. {
  48. "type":"P",
  49. "desc":"Pointer to continue from"
  50. }
  51. ],
  52. "desc":"Continues script execution from another point. Can be returned to.",
  53. "size":5
  54. },
  55. {
  56. "name":"goto",
  57. "args":1,
  58. "value":5,
  59. "params":[
  60. {
  61. "type":"P",
  62. "desc":"Pointer to continue from"
  63. }
  64. ],
  65. "desc":"Continues script execution from another point.",
  66. "size":5
  67. },
  68. {
  69. "name":"if1",
  70. "args":2,
  71. "value":6,
  72. "params":[
  73. {
  74. "type":"B",
  75. "desc":"Condition"
  76. },
  77. {
  78. "type":"P",
  79. "desc":"Pointer to go to"
  80. }
  81. ],
  82. "desc":"If the last comparison returned a certain value, jumps to another script.",
  83. "size":6
  84. },
  85. {
  86. "name":"if2",
  87. "args":2,
  88. "value":7,
  89. "params":[
  90. {
  91. "type":"B",
  92. "desc":"Condition"
  93. },
  94. {
  95. "type":"P",
  96. "desc":"Pointer to call"
  97. }
  98. ],
  99. "desc":"Calling version of the if command.",
  100. "size":6
  101. },
  102. {
  103. "name":"gotostd",
  104. "args":1,
  105. "value":8,
  106. "params":[
  107. {
  108. "type":"B",
  109. "desc":"Function # to jump to"
  110. }
  111. ],
  112. "desc":"Jumps to a built-in function.",
  113. "size":2
  114. },
  115. {
  116. "name":"callstd",
  117. "args":1,
  118. "value":9,
  119. "params":[
  120. {
  121. "type":"B",
  122. "desc":"Function # to call"
  123. }
  124. ],
  125. "desc":"Calls a built-in function.",
  126. "size":2
  127. },
  128. {
  129. "name":"gotostdif",
  130. "args":2,
  131. "value":10,
  132. "params":[
  133. {
  134. "type":"B",
  135. "desc":"Condition"
  136. },
  137. {
  138. "type":"B",
  139. "desc":"Function # to jump to"
  140. }
  141. ],
  142. "desc":"Jumps to a built-in function, conditional version.",
  143. "size":3
  144. },
  145. {
  146. "name":"callstdif",
  147. "args":2,
  148. "value":11,
  149. "params":[
  150. {
  151. "type":"B",
  152. "desc":"Condition"
  153. },
  154. {
  155. "type":"B",
  156. "desc":"Function # to call"
  157. }
  158. ],
  159. "desc":"Jumps to a built-in function, conditional version.",
  160. "size":3
  161. },
  162. {
  163. "name":"jumpram",
  164. "args":0,
  165. "value":12,
  166. "params":[
  167.  
  168. ],
  169. "desc":"Jumps to a default RAM location, executing the script stored there.",
  170. "size":1
  171. },
  172. {
  173. "name":"killscript",
  174. "args":0,
  175. "value":13,
  176. "params":[
  177.  
  178. ],
  179. "desc":"Kills the script and resets the script RAM.",
  180. "size":1
  181. },
  182. {
  183. "name":"setbyte",
  184. "args":1,
  185. "value":14,
  186. "params":[
  187. {
  188. "type":"B",
  189. "desc":"Byte value to use"
  190. }
  191. ],
  192. "desc":"Sets a predefined address to the specified byte value.",
  193. "size":2
  194. },
  195. {
  196. "name":"loadpointer",
  197. "args":2,
  198. "value":15,
  199. "params":[
  200. {
  201. "type":"B",
  202. "desc":"Memory bank to use"
  203. },
  204. {
  205. "type":"P",
  206. "desc":"Pointer to load into memory"
  207. }
  208. ],
  209. "desc":"Loads a pointer into the script RAM so other commands can use it.",
  210. "size":6
  211. },
  212. {
  213. "name":"setbyte2",
  214. "args":2,
  215. "value":16,
  216. "params":[
  217. {
  218. "type":"B",
  219. "desc":"Memory bank to use"
  220. },
  221. {
  222. "type":"B",
  223. "desc":"Byte value to use"
  224. }
  225. ],
  226. "desc":"Sets a memory bank to the specified byte value.",
  227. "size":3
  228. },
  229. {
  230. "name":"writebytetooffset",
  231. "args":2,
  232. "value":17,
  233. "params":[
  234. {
  235. "type":"B",
  236. "desc":"Byte value to write"
  237. },
  238. {
  239. "type":"P",
  240. "desc":"Location to write it to"
  241. }
  242. ],
  243. "desc":"Sets the byte at the specified offset to a certain value.",
  244. "size":6
  245. },
  246. {
  247. "name":"loadbytefrompointer",
  248. "args":2,
  249. "value":18,
  250. "params":[
  251. {
  252. "type":"B",
  253. "desc":"Memory bank to use"
  254. },
  255. {
  256. "type":"P",
  257. "desc":"Pointer to byte to load into memory"
  258. }
  259. ],
  260. "desc":"Loads the byte found at a pointer into the script RAM so other commands can use it.",
  261. "size":6
  262. },
  263. {
  264. "name":"setfarbyte",
  265. "args":2,
  266. "value":19,
  267. "params":[
  268. {
  269. "type":"B",
  270. "desc":"Memory bank to use"
  271. },
  272. {
  273. "type":"P",
  274. "desc":"Pointer to write byte to"
  275. }
  276. ],
  277. "desc":"Sets the byte into a specified pointer.",
  278. "size":6
  279. },
  280. {
  281. "name":"copyscriptbanks",
  282. "args":2,
  283. "value":20,
  284. "params":[
  285. {
  286. "type":"B",
  287. "desc":"Bank #1 - Destination"
  288. },
  289. {
  290. "type":"B",
  291. "desc":"Bank #2 - Source"
  292. }
  293. ],
  294. "desc":"Copies one script bank to another.",
  295. "size":3
  296. },
  297. {
  298. "name":"copybyte",
  299. "args":2,
  300. "value":21,
  301. "params":[
  302. {
  303. "type":"P",
  304. "desc":"Destination byte location"
  305. },
  306. {
  307. "type":"P",
  308. "desc":"Source byte location"
  309. }
  310. ],
  311. "desc":"Copies a byte value from one place to another.",
  312. "size":9
  313. },
  314. {
  315. "name":"setvar",
  316. "args":2,
  317. "value":22,
  318. "params":[
  319. {
  320. "type":"W",
  321. "desc":"Variable A"
  322. },
  323. {
  324. "type":"W",
  325. "desc":"Value to set A to"
  326. }
  327. ],
  328. "desc":"Sets variable A to any value.",
  329. "size":5
  330. },
  331. {
  332. "name":"addvar",
  333. "args":2,
  334. "value":23,
  335. "params":[
  336. {
  337. "type":"W",
  338. "desc":"Variable A"
  339. },
  340. {
  341. "type":"W",
  342. "desc":"Value to add to A"
  343. }
  344. ],
  345. "desc":"Adds any value to variable A.",
  346. "size":5
  347. },
  348. {
  349. "name":"subvar",
  350. "args":2,
  351. "value":24,
  352. "params":[
  353. {
  354. "type":"W",
  355. "desc":"Variable A"
  356. },
  357. {
  358. "type":"W",
  359. "desc":"Value to subtract from A"
  360. }
  361. ],
  362. "desc":"Subtracts any value from variable A.",
  363. "size":5
  364. },
  365. {
  366. "name":"copyvar",
  367. "args":2,
  368. "value":25,
  369. "params":[
  370. {
  371. "type":"W",
  372. "desc":"Variable A - Destination"
  373. },
  374. {
  375. "type":"W",
  376. "desc":"Variable B - Source"
  377. }
  378. ],
  379. "desc":"Copies variable B to A.",
  380. "size":5
  381. },
  382. {
  383. "name":"copyvarifnotzero",
  384. "args":2,
  385. "value":26,
  386. "params":[
  387. {
  388. "type":"W",
  389. "desc":"Variable A - Destination"
  390. },
  391. {
  392. "type":"W",
  393. "desc":"Variable B - Source"
  394. }
  395. ],
  396. "desc":"Sets variable B to A, but only if B is higher than zero.",
  397. "size":5
  398. },
  399. {
  400. "name":"comparebanks",
  401. "args":2,
  402. "value":27,
  403. "params":[
  404. {
  405. "type":"W",
  406. "desc":"Bank #1"
  407. },
  408. {
  409. "type":"W",
  410. "desc":"Bank #2"
  411. }
  412. ],
  413. "desc":"Compares two banks.",
  414. "size":5
  415. },
  416. {
  417. "name":"comparebanktobyte",
  418. "args":2,
  419. "value":28,
  420. "params":[
  421. {
  422. "type":"B",
  423. "desc":"Bank #"
  424. },
  425. {
  426. "type":"B",
  427. "desc":"Byte value to compare variable to"
  428. }
  429. ],
  430. "desc":"Compares a variable stored in a buffer to a byte value.",
  431. "size":3
  432. },
  433. {
  434. "name":"comparebanktofarbyte",
  435. "args":2,
  436. "value":29,
  437. "params":[
  438. {
  439. "type":"B",
  440. "desc":"Bank #"
  441. },
  442. {
  443. "type":"P",
  444. "desc":"Pointer to a byte value to compare variable to"
  445. }
  446. ],
  447. "desc":"Compares a bank with a byte at some location.",
  448. "size":6
  449. },
  450. {
  451. "name":"comparefarbytetobank",
  452. "args":2,
  453. "value":30,
  454. "params":[
  455. {
  456. "type":"P",
  457. "desc":"Pointer to a byte value to compare B to"
  458. },
  459. {
  460. "type":"B",
  461. "desc":"Bank #"
  462. }
  463. ],
  464. "desc":"Compares a byte at some location to a buffered variable.\r\r\nThe reverse of comparevartofarbyte.",
  465. "size":6
  466. },
  467. {
  468. "name":"comparefarbytetobyte",
  469. "args":2,
  470. "value":31,
  471. "params":[
  472. {
  473. "type":"P",
  474. "desc":"Pointer to a byte value to compare with"
  475. },
  476. {
  477. "type":"B",
  478. "desc":"Byte value to compare with"
  479. }
  480. ],
  481. "desc":"Compares a byte at some location to a byte value.",
  482. "size":6
  483. },
  484. {
  485. "name":"comparefarbytes",
  486. "args":2,
  487. "value":32,
  488. "params":[
  489. {
  490. "type":"P",
  491. "desc":"Pointer to a byte value to compare with"
  492. },
  493. {
  494. "type":"P",
  495. "desc":"Pointer to a byte value to compare with"
  496. }
  497. ],
  498. "desc":"Compares a byte at some location to a byte at another location.",
  499. "size":9
  500. },
  501. {
  502. "name":"compare",
  503. "args":2,
  504. "value":33,
  505. "params":[
  506. {
  507. "type":"W",
  508. "desc":"Variable A"
  509. },
  510. {
  511. "type":"W",
  512. "desc":"Value to compare A to"
  513. }
  514. ],
  515. "desc":"Compares variable A to a value.",
  516. "size":5
  517. },
  518. {
  519. "name":"comparevars",
  520. "args":2,
  521. "value":34,
  522. "params":[
  523. {
  524. "type":"W",
  525. "desc":"Variable A"
  526. },
  527. {
  528. "type":"W",
  529. "desc":"Variable B"
  530. }
  531. ],
  532. "desc":"Compares two variables.",
  533. "size":5
  534. },
  535. {
  536. "name":"callasm",
  537. "args":1,
  538. "value":35,
  539. "params":[
  540. {
  541. "type":"P",
  542. "desc":"Address of custom ASM routine"
  543. }
  544. ],
  545. "desc":"Calls a custom ASM routine.",
  546. "size":5
  547. },
  548. {
  549. "name":"cmd24",
  550. "args":1,
  551. "value":36,
  552. "params":[
  553. {
  554. "type":"P",
  555. "desc":"???"
  556. }
  557. ],
  558. "desc":"This command is currently under investigation. No detailed information is available at this time.",
  559. "size":5
  560. },
  561. {
  562. "name":"special",
  563. "args":1,
  564. "value":37,
  565. "params":[
  566. {
  567. "type":"W",
  568. "desc":"Event # to call"
  569. }
  570. ],
  571. "desc":"Calls a special event.",
  572. "size":3
  573. },
  574. {
  575. "name":"special2",
  576. "args":2,
  577. "value":38,
  578. "params":[
  579. {
  580. "type":"W",
  581. "desc":"Variable to store returned value in"
  582. },
  583. {
  584. "type":"W",
  585. "desc":"Special event to call"
  586. }
  587. ],
  588. "desc":"Like special, but can store a returned value.",
  589. "size":5
  590. },
  591. {
  592. "name":"waitstate",
  593. "args":0,
  594. "value":39,
  595. "params":[
  596.  
  597. ],
  598. "desc":"Sets the script to a wait state, useful for some specials and commands.",
  599. "size":1
  600. },
  601. {
  602. "name":"pause",
  603. "args":1,
  604. "value":40,
  605. "params":[
  606. {
  607. "type":"W",
  608. "desc":"Delay"
  609. }
  610. ],
  611. "desc":"Pauses script execution for a short amount of time.",
  612. "size":3
  613. },
  614. {
  615. "name":"setflag",
  616. "args":1,
  617. "value":41,
  618. "params":[
  619. {
  620. "type":"W",
  621. "desc":"Flag #"
  622. }
  623. ],
  624. "desc":"Sets a flag for later use.",
  625. "size":3
  626. },
  627. {
  628. "name":"clearflag",
  629. "args":1,
  630. "value":42,
  631. "params":[
  632. {
  633. "type":"W",
  634. "desc":"Flag #"
  635. }
  636. ],
  637. "desc":"Clears the value of a flag.",
  638. "size":3
  639. },
  640. {
  641. "name":"checkflag",
  642. "args":1,
  643. "value":43,
  644. "params":[
  645. {
  646. "type":"W",
  647. "desc":"Flag #"
  648. }
  649. ],
  650. "desc":"Checks the value of a flag.",
  651. "size":3
  652. },
  653. {
  654. "name":"cmd2c",
  655. "args":2,
  656. "value":44,
  657. "params":[
  658. {
  659. "type":"W",
  660. "desc":"???"
  661. },
  662. {
  663. "type":"W",
  664. "desc":"???"
  665. }
  666. ],
  667. "desc":"This command is currently under investigation. No detailed information is available at this time.",
  668. "size":5
  669. },
  670. {
  671. "name":"checkdailyflags",
  672. "args":0,
  673. "value":45,
  674. "params":[
  675.  
  676. ],
  677. "desc":"Checks the daily flags to see if any of them have been set already, but only if they were set previously. Then it clears those flags. R/S/E only.",
  678. "size":1
  679. },
  680. {
  681. "name":"resetvars",
  682. "args":0,
  683. "value":46,
  684. "params":[
  685.  
  686. ],
  687. "desc":"Resets the value of variables 0x8000, 0x8001 and 0x8002.",
  688. "size":1
  689. },
  690. {
  691. "name":"sound",
  692. "args":1,
  693. "value":47,
  694. "params":[
  695. {
  696. "type":"W",
  697. "desc":"Sound #"
  698. }
  699. ],
  700. "desc":"Plays a sound.",
  701. "size":3
  702. },
  703. {
  704. "name":"checksound",
  705. "args":0,
  706. "value":48,
  707. "params":[
  708.  
  709. ],
  710. "desc":"Checks if a sound, a fanfare or a song is currently being played.",
  711. "size":1
  712. },
  713. {
  714. "name":"fanfare",
  715. "args":1,
  716. "value":49,
  717. "params":[
  718. {
  719. "type":"W",
  720. "desc":"Sappy song # to play"
  721. }
  722. ],
  723. "desc":"Plays a Sappy song as a fanfare.",
  724. "size":3
  725. },
  726. {
  727. "name":"waitfanfare",
  728. "args":0,
  729. "value":50,
  730. "params":[
  731.  
  732. ],
  733. "desc":"Waits for fanfare to finish.",
  734. "size":1
  735. },
  736. {
  737. "name":"playsong",
  738. "args":2,
  739. "value":51,
  740. "params":[
  741. {
  742. "type":"W",
  743. "desc":"Sappy song # to play"
  744. },
  745. {
  746. "type":"B",
  747. "desc":"???"
  748. }
  749. ],
  750. "desc":"Switches to another Sappy song.",
  751. "size":4
  752. },
  753. {
  754. "name":"playsong2",
  755. "args":1,
  756. "value":52,
  757. "params":[
  758. {
  759. "type":"W",
  760. "desc":"Sappy song # to play"
  761. }
  762. ],
  763. "desc":"Switches to another Sappy song.",
  764. "size":3
  765. },
  766. {
  767. "name":"fadedefault",
  768. "args":0,
  769. "value":53,
  770. "params":[
  771.  
  772. ],
  773. "desc":"Gently fades the current music back to the map's default song.",
  774. "size":1
  775. },
  776. {
  777. "name":"fadesong",
  778. "args":1,
  779. "value":54,
  780. "params":[
  781. {
  782. "type":"W",
  783. "desc":"Sappy song # to fade to"
  784. }
  785. ],
  786. "desc":"Gently fades into another Sappy song.",
  787. "size":3
  788. },
  789. {
  790. "name":"fadeout",
  791. "args":1,
  792. "value":55,
  793. "params":[
  794. {
  795. "type":"B",
  796. "desc":"Fading speed"
  797. }
  798. ],
  799. "desc":"Fades out the currently playing Sappy song.",
  800. "size":2
  801. },
  802. {
  803. "name":"fadein",
  804. "args":1,
  805. "value":56,
  806. "params":[
  807. {
  808. "type":"B",
  809. "desc":"Fading speed"
  810. }
  811. ],
  812. "desc":"Fades the currently playing Sappy song back in.",
  813. "size":2
  814. },
  815. {
  816. "name":"warp",
  817. "args":5,
  818. "value":57,
  819. "params":[
  820. {
  821. "type":"B",
  822. "desc":"Bank # to warp to"
  823. },
  824. {
  825. "type":"B",
  826. "desc":"Map # to warp to"
  827. },
  828. {
  829. "type":"B",
  830. "desc":"Exit # to warp to"
  831. },
  832. {
  833. "type":"W",
  834. "desc":"X coordinate"
  835. },
  836. {
  837. "type":"W",
  838. "desc":"Y coordinate"
  839. }
  840. ],
  841. "desc":"Warps the player to another map.",
  842. "size":8
  843. },
  844. {
  845. "name":"warpmuted",
  846. "args":5,
  847. "value":58,
  848. "params":[
  849. {
  850. "type":"B",
  851. "desc":"Bank # to warp to"
  852. },
  853. {
  854. "type":"B",
  855. "desc":"Map # to warp to"
  856. },
  857. {
  858. "type":"B",
  859. "desc":"Exit # to warp to"
  860. },
  861. {
  862. "type":"W",
  863. "desc":"X coordinate"
  864. },
  865. {
  866. "type":"W",
  867. "desc":"Y coordinate"
  868. }
  869. ],
  870. "desc":"Warps the player to another map. No sound effect.",
  871. "size":8
  872. },
  873. {
  874. "name":"warpwalk",
  875. "args":5,
  876. "value":59,
  877. "params":[
  878. {
  879. "type":"B",
  880. "desc":"Bank # to warp to"
  881. },
  882. {
  883. "type":"B",
  884. "desc":"Map # to warp to"
  885. },
  886. {
  887. "type":"B",
  888. "desc":"Exit # to warp to"
  889. },
  890. {
  891. "type":"W",
  892. "desc":"X coordinate"
  893. },
  894. {
  895. "type":"W",
  896. "desc":"Y coordinate"
  897. }
  898. ],
  899. "desc":"Warps the player to another map. Walking effect.",
  900. "size":8
  901. },
  902. {
  903. "name":"warphole",
  904. "args":2,
  905. "value":60,
  906. "params":[
  907. {
  908. "type":"B",
  909. "desc":"Bank # to warp to"
  910. },
  911. {
  912. "type":"B",
  913. "desc":"Map # to warp to"
  914. },
  915. {
  916. "type":"B",
  917. "desc":"Exit # to warp to"
  918. },
  919. {
  920. "type":"B",
  921. "desc":"???"
  922. }
  923. ],
  924. "desc":"Warps the player to another map. Hole effect.",
  925. "size":3
  926. },
  927. {
  928. "name":"warpteleport",
  929. "args":5,
  930. "value":61,
  931. "params":[
  932. {
  933. "type":"B",
  934. "desc":"Bank # to warp to"
  935. },
  936. {
  937. "type":"B",
  938. "desc":"Map # to warp to"
  939. },
  940. {
  941. "type":"B",
  942. "desc":"Exit # to warp to"
  943. },
  944. {
  945. "type":"W",
  946. "desc":"X coordinate"
  947. },
  948. {
  949. "type":"W",
  950. "desc":"Y coordinate"
  951. }
  952. ],
  953. "desc":"Warps the player to another map. Teleport effect.",
  954. "size":8
  955. },
  956. {
  957. "name":"warp3",
  958. "args":5,
  959. "value":62,
  960. "params":[
  961. {
  962. "type":"B",
  963. "desc":"Bank # to warp to"
  964. },
  965. {
  966. "type":"B",
  967. "desc":"Map # to warp to"
  968. },
  969. {
  970. "type":"B",
  971. "desc":"Exit # to warp to"
  972. },
  973. {
  974. "type":"W",
  975. "desc":"X coordinate"
  976. },
  977. {
  978. "type":"W",
  979. "desc":"Y coordinate"
  980. }
  981. ],
  982. "desc":"Warps the player to another map.",
  983. "size":8
  984. },
  985. {
  986. "name":"setwarpplace",
  987. "args":5,
  988. "value":63,
  989. "params":[
  990. {
  991. "type":"B",
  992. "desc":"Bank # to warp to"
  993. },
  994. {
  995. "type":"B",
  996. "desc":"Map # to warp to"
  997. },
  998. {
  999. "type":"B",
  1000. "desc":"Exit # to warp to"
  1001. },
  1002. {
  1003. "type":"W",
  1004. "desc":"X coordinate"
  1005. },
  1006. {
  1007. "type":"W",
  1008. "desc":"Y coordinate"
  1009. }
  1010. ],
  1011. "desc":"Sets the place a warp that lead to warp 127 of map 127.127 warps the player.",
  1012. "size":8
  1013. },
  1014. {
  1015. "name":"warp4",
  1016. "args":5,
  1017. "value":64,
  1018. "params":[
  1019. {
  1020. "type":"B",
  1021. "desc":"Bank # to warp to"
  1022. },
  1023. {
  1024. "type":"B",
  1025. "desc":"Map # to warp to"
  1026. },
  1027. {
  1028. "type":"B",
  1029. "desc":"Exit # to warp to"
  1030. },
  1031. {
  1032. "type":"W",
  1033. "desc":"X coordinate"
  1034. },
  1035. {
  1036. "type":"W",
  1037. "desc":"Y coordinate"
  1038. }
  1039. ],
  1040. "desc":"Warps the player to another map.",
  1041. "size":8
  1042. },
  1043. {
  1044. "name":"warp5",
  1045. "args":5,
  1046. "value":65,
  1047. "params":[
  1048. {
  1049. "type":"B",
  1050. "desc":"Bank # to warp to"
  1051. },
  1052. {
  1053. "type":"B",
  1054. "desc":"Map # to warp to"
  1055. },
  1056. {
  1057. "type":"B",
  1058. "desc":"Exit # to warp to"
  1059. },
  1060. {
  1061. "type":"W",
  1062. "desc":"X coordinate"
  1063. },
  1064. {
  1065. "type":"W",
  1066. "desc":"Y coordinate"
  1067. }
  1068. ],
  1069. "desc":"Warps the player to another map.",
  1070. "size":8
  1071. },
  1072. {
  1073. "name":"getplayerpos",
  1074. "args":2,
  1075. "value":66,
  1076. "params":[
  1077. {
  1078. "type":"W",
  1079. "desc":"Variable to store X coordinate"
  1080. },
  1081. {
  1082. "type":"W",
  1083. "desc":"Variable to store Y coordinate"
  1084. }
  1085. ],
  1086. "desc":"Gets current position of the player on the map and stores it on specified variables.",
  1087. "size":5
  1088. },
  1089. {
  1090. "name":"countpokemon",
  1091. "args":0,
  1092. "value":67,
  1093. "params":[
  1094.  
  1095. ],
  1096. "desc":"Counts the number of Pok\u00e9mon in your party and stores the result in LASTRESULT.",
  1097. "size":1
  1098. },
  1099. {
  1100. "name":"additem",
  1101. "args":2,
  1102. "value":68,
  1103. "params":[
  1104. {
  1105. "type":"W",
  1106. "desc":"Item # to add"
  1107. },
  1108. {
  1109. "type":"W",
  1110. "desc":"Quantity"
  1111. }
  1112. ],
  1113. "desc":"Adds the quantity of the specified item.",
  1114. "size":5
  1115. },
  1116. {
  1117. "name":"removeitem",
  1118. "args":2,
  1119. "value":69,
  1120. "params":[
  1121. {
  1122. "type":"W",
  1123. "desc":"Item # to remove"
  1124. },
  1125. {
  1126. "type":"W",
  1127. "desc":"Quantity"
  1128. }
  1129. ],
  1130. "desc":"Removes the quantity of the specified item.",
  1131. "size":5
  1132. },
  1133. {
  1134. "name":"checkitemroom",
  1135. "args":2,
  1136. "value":70,
  1137. "params":[
  1138. {
  1139. "type":"W",
  1140. "desc":"Item # to check for"
  1141. },
  1142. {
  1143. "type":"W",
  1144. "desc":"Quantity"
  1145. }
  1146. ],
  1147. "desc":"Checks if the player has enough room in the bag for the specified item.",
  1148. "size":5
  1149. },
  1150. {
  1151. "name":"checkitem",
  1152. "args":2,
  1153. "value":71,
  1154. "params":[
  1155. {
  1156. "type":"W",
  1157. "desc":"Item # to check for"
  1158. },
  1159. {
  1160. "type":"W",
  1161. "desc":"Quantity"
  1162. }
  1163. ],
  1164. "desc":"Checks if the player is carrying the specified item.",
  1165. "size":5
  1166. },
  1167. {
  1168. "name":"checkitemtype",
  1169. "args":1,
  1170. "value":72,
  1171. "params":[
  1172. {
  1173. "type":"W",
  1174. "desc":"Item # to check for"
  1175. }
  1176. ],
  1177. "desc":"Checks the item type for the specified item and store the result in LASTRESULT.",
  1178. "size":3
  1179. },
  1180. {
  1181. "name":"addpcitem",
  1182. "args":2,
  1183. "value":73,
  1184. "params":[
  1185. {
  1186. "type":"W",
  1187. "desc":"Item # to add"
  1188. },
  1189. {
  1190. "type":"W",
  1191. "desc":"Quantity"
  1192. }
  1193. ],
  1194. "desc":"Adds the quantity of the specified item to player's PC.",
  1195. "size":5
  1196. },
  1197. {
  1198. "name":"checkpcitem",
  1199. "args":2,
  1200. "value":74,
  1201. "params":[
  1202. {
  1203. "type":"W",
  1204. "desc":"Item # to add"
  1205. },
  1206. {
  1207. "type":"W",
  1208. "desc":"Quantity"
  1209. }
  1210. ],
  1211. "desc":"Checks if the player has the specified item on his/her PC.",
  1212. "size":5
  1213. },
  1214. {
  1215. "name":"adddecoration",
  1216. "args":1,
  1217. "value":75,
  1218. "params":[
  1219. {
  1220. "type":"W",
  1221. "desc":"Decoration #"
  1222. }
  1223. ],
  1224. "desc":"Adds a decoration to player's PC.",
  1225. "size":3
  1226. },
  1227. {
  1228. "name":"removedecoration",
  1229. "args":1,
  1230. "value":76,
  1231. "params":[
  1232. {
  1233. "type":"W",
  1234. "desc":"Decoration #"
  1235. }
  1236. ],
  1237. "desc":"Removes a decoration from player's PC.",
  1238. "size":3
  1239. },
  1240. {
  1241. "name":"testdecoration",
  1242. "args":1,
  1243. "value":77,
  1244. "params":[
  1245. {
  1246. "type":"W",
  1247. "desc":"Decoration #"
  1248. }
  1249. ],
  1250. "desc":"Tests a specific decoration to see if there's enough room to store it.",
  1251. "size":3
  1252. },
  1253. {
  1254. "name":"checkdecoration",
  1255. "args":1,
  1256. "value":78,
  1257. "params":[
  1258. {
  1259. "type":"W",
  1260. "desc":"Decoration #"
  1261. }
  1262. ],
  1263. "desc":"Checks if a specific decoration is present in player's PC.",
  1264. "size":3
  1265. },
  1266. {
  1267. "name":"applymovement",
  1268. "args":2,
  1269. "value":79,
  1270. "params":[
  1271. {
  1272. "type":"W",
  1273. "desc":"People # to use"
  1274. },
  1275. {
  1276. "type":"P",
  1277. "desc":"Pointer to the movement data"
  1278. }
  1279. ],
  1280. "desc":"Applies the movement data found at the specified pointer to a sprite.",
  1281. "size":7
  1282. },
  1283. {
  1284. "name":"applymovementpos",
  1285. "args":4,
  1286. "value":80,
  1287. "params":[
  1288. {
  1289. "type":"W",
  1290. "desc":"People # to use"
  1291. },
  1292. {
  1293. "type":"P",
  1294. "desc":"Pointer to the movement data"
  1295. },
  1296. {
  1297. "type":"B",
  1298. "desc":"X coordinate"
  1299. },
  1300. {
  1301. "type":"B",
  1302. "desc":"Y coordinate"
  1303. }
  1304. ],
  1305. "desc":"Applies the movement data found at the specified pointer to a sprite. Then set the specified X/Y coordinates.",
  1306. "size":9
  1307. },
  1308. {
  1309. "name":"waitmovement",
  1310. "args":1,
  1311. "value":81,
  1312. "params":[
  1313. {
  1314. "type":"W",
  1315. "desc":"People # to wait for"
  1316. }
  1317. ],
  1318. "desc":"Waits for applymovement to finish.",
  1319. "size":3
  1320. },
  1321. {
  1322. "name":"waitmovementpos",
  1323. "args":3,
  1324. "value":82,
  1325. "params":[
  1326. {
  1327. "type":"W",
  1328. "desc":"People # to wait for"
  1329. },
  1330. {
  1331. "type":"B",
  1332. "desc":"X coordinate"
  1333. },
  1334. {
  1335. "type":"B",
  1336. "desc":"Y coordinate"
  1337. }
  1338. ],
  1339. "desc":"Waits for applymovement to finish. Then set the specified X/Y coordinates.",
  1340. "size":5
  1341. },
  1342. {
  1343. "name":"hidesprite",
  1344. "args":1,
  1345. "value":83,
  1346. "params":[
  1347. {
  1348. "type":"W",
  1349. "desc":"People # to hide"
  1350. }
  1351. ],
  1352. "desc":"Hides a sprite.",
  1353. "size":3
  1354. },
  1355. {
  1356. "name":"hidespritepos",
  1357. "args":3,
  1358. "value":84,
  1359. "params":[
  1360. {
  1361. "type":"W",
  1362. "desc":"People # to hide"
  1363. },
  1364. {
  1365. "type":"B",
  1366. "desc":"X coordinate"
  1367. },
  1368. {
  1369. "type":"B",
  1370. "desc":"Y coordinate"
  1371. }
  1372. ],
  1373. "desc":"Hides a sprite, then set the specified X/Y coordinates.",
  1374. "size":5
  1375. },
  1376. {
  1377. "name":"showsprite",
  1378. "args":1,
  1379. "value":85,
  1380. "params":[
  1381. {
  1382. "type":"W",
  1383. "desc":"People # to show"
  1384. }
  1385. ],
  1386. "desc":"Shows a previously vanished sprite.",
  1387. "size":3
  1388. },
  1389. {
  1390. "name":"showspritepos",
  1391. "args":3,
  1392. "value":86,
  1393. "params":[
  1394. {
  1395. "type":"W",
  1396. "desc":"People # to show"
  1397. },
  1398. {
  1399. "type":"B",
  1400. "desc":"X coordinate"
  1401. },
  1402. {
  1403. "type":"B",
  1404. "desc":"Y coordinate"
  1405. }
  1406. ],
  1407. "desc":"Shows a previously vanished sprite. Then set the specified X/Y coordinates.",
  1408. "size":5
  1409. },
  1410. {
  1411. "name":"movesprite",
  1412. "args":3,
  1413. "value":87,
  1414. "params":[
  1415. {
  1416. "type":"W",
  1417. "desc":"People # to move"
  1418. },
  1419. {
  1420. "type":"W",
  1421. "desc":"X coordinate to move to"
  1422. },
  1423. {
  1424. "type":"W",
  1425. "desc":"Y coordinate to move to"
  1426. }
  1427. ],
  1428. "desc":"Moves a sprite to the specified location.",
  1429. "size":7
  1430. },
  1431. {
  1432. "name":"spritevisible",
  1433. "args":3,
  1434. "value":88,
  1435. "params":[
  1436. {
  1437. "type":"W",
  1438. "desc":"People #"
  1439. },
  1440. {
  1441. "type":"B",
  1442. "desc":"Bank #"
  1443. },
  1444. {
  1445. "type":"B",
  1446. "desc":"Map #"
  1447. }
  1448. ],
  1449. "desc":"Makes the sprite visible at selected bank and map.",
  1450. "size":5
  1451. },
  1452. {
  1453. "name":"spriteinvisible",
  1454. "args":3,
  1455. "value":89,
  1456. "params":[
  1457. {
  1458. "type":"W",
  1459. "desc":"People #"
  1460. },
  1461. {
  1462. "type":"B",
  1463. "desc":"Bank #"
  1464. },
  1465. {
  1466. "type":"B",
  1467. "desc":"Map #"
  1468. }
  1469. ],
  1470. "desc":"Makes the sprite invisible at selected bank and map.",
  1471. "size":5
  1472. },
  1473. {
  1474. "name":"faceplayer",
  1475. "args":0,
  1476. "value":90,
  1477. "params":[
  1478.  
  1479. ],
  1480. "desc":"Turns the caller towards the player.",
  1481. "size":1
  1482. },
  1483. {
  1484. "name":"spriteface",
  1485. "args":2,
  1486. "value":91,
  1487. "params":[
  1488. {
  1489. "type":"W",
  1490. "desc":"People #"
  1491. },
  1492. {
  1493. "type":"B",
  1494. "desc":"Facing"
  1495. }
  1496. ],
  1497. "desc":"Changes a facing of a sprite.",
  1498. "size":4
  1499. },
  1500. {
  1501. "name":"trainerbattle",
  1502. "args":5,
  1503. "value":92,
  1504. "params":[
  1505. {
  1506. "type":"B",
  1507. "desc":"Kind of battle"
  1508. },
  1509. {
  1510. "type":"W",
  1511. "desc":"Battle # to start"
  1512. },
  1513. {
  1514. "type":"W",
  1515. "desc":"Reserved"
  1516. },
  1517. {
  1518. "type":"P",
  1519. "desc":"Pointer to the challenge text"
  1520. },
  1521. {
  1522. "type":"P",
  1523. "desc":"Pointer to the defeat text"
  1524. },
  1525. {
  1526. "type":"P",
  1527. "desc":"Pointer to either denial or...?"
  1528. }
  1529. ],
  1530. "desc":"Starts a trainer battle. Depending on the kind of battle, last parameters may differ.",
  1531. "size":14
  1532. },
  1533. {
  1534. "name":"repeattrainerbattle",
  1535. "args":0,
  1536. "value":93,
  1537. "params":[
  1538.  
  1539. ],
  1540. "desc":"Repeats the last trainer battle started.",
  1541. "size":1
  1542. },
  1543. {
  1544. "name":"endtrainerbattle",
  1545. "args":0,
  1546. "value":94,
  1547. "params":[
  1548.  
  1549. ],
  1550. "desc":"Returns from the trainer battle screen without starting message.",
  1551. "size":1
  1552. },
  1553. {
  1554. "name":"endtrainerbattle2",
  1555. "args":0,
  1556. "value":95,
  1557. "params":[
  1558.  
  1559. ],
  1560. "desc":"Returns from the trainer battle screen without ending message.",
  1561. "size":1
  1562. },
  1563. {
  1564. "name":"checktrainerflag",
  1565. "args":1,
  1566. "value":96,
  1567. "params":[
  1568. {
  1569. "type":"W",
  1570. "desc":"Trainer # to check"
  1571. }
  1572. ],
  1573. "desc":"Checks it the specified trainer flag is already activated and store the result in LASTRESULT.",
  1574. "size":3
  1575. },
  1576. {
  1577. "name":"cleartrainerflag",
  1578. "args":1,
  1579. "value":97,
  1580. "params":[
  1581. {
  1582. "type":"W",
  1583. "desc":"Trainer # to disable"
  1584. }
  1585. ],
  1586. "desc":"Deactivates the specified trainer flag.",
  1587. "size":3
  1588. },
  1589. {
  1590. "name":"settrainerflag",
  1591. "args":1,
  1592. "value":98,
  1593. "params":[
  1594. {
  1595. "type":"W",
  1596. "desc":"Trainer # to enable"
  1597. }
  1598. ],
  1599. "desc":"Activates the specified trainer flag.",
  1600. "size":3
  1601. },
  1602. {
  1603. "name":"movesprite2",
  1604. "args":3,
  1605. "value":99,
  1606. "params":[
  1607. {
  1608. "type":"W",
  1609. "desc":"People # to move"
  1610. },
  1611. {
  1612. "type":"W",
  1613. "desc":"X coordinate to move to"
  1614. },
  1615. {
  1616. "type":"W",
  1617. "desc":"Y coordinate to move to"
  1618. }
  1619. ],
  1620. "desc":"Moves a sprite to the specified location. Permanent change.",
  1621. "size":7
  1622. },
  1623. {
  1624. "name":"moveoffscreen",
  1625. "args":1,
  1626. "value":100,
  1627. "params":[
  1628. {
  1629. "type":"W",
  1630. "desc":"People # to move"
  1631. }
  1632. ],
  1633. "desc":"Changes the location of the specified sprite to a value which is exactly one tile above the top left corner of the screen.",
  1634. "size":3
  1635. },
  1636. {
  1637. "name":"spritebehave",
  1638. "args":2,
  1639. "value":101,
  1640. "params":[
  1641. {
  1642. "type":"W",
  1643. "desc":"People #"
  1644. },
  1645. {
  1646. "type":"B",
  1647. "desc":"Behaviour #"
  1648. }
  1649. ],
  1650. "desc":"Changes the behaviour of a sprite.",
  1651. "size":4
  1652. },
  1653. {
  1654. "name":"waitmsg",
  1655. "args":0,
  1656. "value":102,
  1657. "params":[
  1658.  
  1659. ],
  1660. "desc":"Waits for preparemsg to finish.",
  1661. "size":1
  1662. },
  1663. {
  1664. "name":"preparemsg",
  1665. "args":1,
  1666. "value":103,
  1667. "params":[
  1668. {
  1669. "type":"P",
  1670. "desc":"Pointer to text"
  1671. }
  1672. ],
  1673. "desc":"Prepares a pointer to dialogue text for being displayed.",
  1674. "size":5
  1675. },
  1676. {
  1677. "name":"closeonkeypress",
  1678. "args":0,
  1679. "value":104,
  1680. "params":[
  1681.  
  1682. ],
  1683. "desc":"Holds a msgbox open and closes it on keypress.",
  1684. "size":1
  1685. },
  1686. {
  1687. "name":"lockall",
  1688. "args":0,
  1689. "value":105,
  1690. "params":[
  1691.  
  1692. ],
  1693. "desc":"Locks down movement for all the people on the screen.",
  1694. "size":1
  1695. },
  1696. {
  1697. "name":"lock",
  1698. "args":0,
  1699. "value":106,
  1700. "params":[
  1701.  
  1702. ],
  1703. "desc":"Locks down movement for the caller.",
  1704. "size":1
  1705. },
  1706. {
  1707. "name":"releaseall",
  1708. "args":0,
  1709. "value":107,
  1710. "params":[
  1711.  
  1712. ],
  1713. "desc":"Resumes normal movement forall the people on the screen. Closes any previously opened msgboxes as well.",
  1714. "size":1
  1715. },
  1716. {
  1717. "name":"release",
  1718. "args":0,
  1719. "value":108,
  1720. "params":[
  1721.  
  1722. ],
  1723. "desc":"Resumes normal movement for the caller. Closes any previously opened msgboxes as well.",
  1724. "size":1
  1725. },
  1726. {
  1727. "name":"waitkeypress",
  1728. "args":0,
  1729. "value":109,
  1730. "params":[
  1731.  
  1732. ],
  1733. "desc":"Waits until a key is pressed.",
  1734. "size":1
  1735. },
  1736. {
  1737. "name":"yesnobox",
  1738. "args":2,
  1739. "value":110,
  1740. "params":[
  1741. {
  1742. "type":"B",
  1743. "desc":"X coordinate"
  1744. },
  1745. {
  1746. "type":"B",
  1747. "desc":"Y coordinate"
  1748. }
  1749. ],
  1750. "desc":"Displays a Yes/No box at specified coordinates.",
  1751. "size":3
  1752. },
  1753. {
  1754. "name":"multichoice",
  1755. "args":4,
  1756. "value":111,
  1757. "params":[
  1758. {
  1759. "type":"B",
  1760. "desc":"Left coordinate"
  1761. },
  1762. {
  1763. "type":"B",
  1764. "desc":"Top coordinate"
  1765. },
  1766. {
  1767. "type":"B",
  1768. "desc":"Choice list ID # to use"
  1769. },
  1770. {
  1771. "type":"B",
  1772. "desc":"Determines if the B button can be used to cancel"
  1773. }
  1774. ],
  1775. "desc":"Puts up a list of choices for the player to make.",
  1776. "size":5
  1777. },
  1778. {
  1779. "name":"multichoice2",
  1780. "args":5,
  1781. "value":112,
  1782. "params":[
  1783. {
  1784. "type":"B",
  1785. "desc":"Left coordinate"
  1786. },
  1787. {
  1788. "type":"B",
  1789. "desc":"Top coordinate"
  1790. },
  1791. {
  1792. "type":"B",
  1793. "desc":"Choice list ID # to use"
  1794. },
  1795. {
  1796. "type":"B",
  1797. "desc":"Default selected choice"
  1798. },
  1799. {
  1800. "type":"B",
  1801. "desc":"Determines if the B button can be used to cancel"
  1802. }
  1803. ],
  1804. "desc":"Puts up a list of choices for the player to make. A default choice can be set.",
  1805. "size":6
  1806. },
  1807. {
  1808. "name":"multichoice3",
  1809. "args":5,
  1810. "value":113,
  1811. "params":[
  1812. {
  1813. "type":"B",
  1814. "desc":"Left coordinate"
  1815. },
  1816. {
  1817. "type":"B",
  1818. "desc":"Top coordinate"
  1819. },
  1820. {
  1821. "type":"B",
  1822. "desc":"Choice list ID # to use"
  1823. },
  1824. {
  1825. "type":"B",
  1826. "desc":"Number of choices per row"
  1827. },
  1828. {
  1829. "type":"B",
  1830. "desc":"Determines if the B button can be used to cancel"
  1831. }
  1832. ],
  1833. "desc":"Puts up a list of choices for the player to make. The number of choices per row can be set.",
  1834. "size":6
  1835. },
  1836. {
  1837. "name":"showbox",
  1838. "args":4,
  1839. "value":114,
  1840. "params":[
  1841. {
  1842. "type":"B",
  1843. "desc":"Left position"
  1844. },
  1845. {
  1846. "type":"B",
  1847. "desc":"Top position"
  1848. },
  1849. {
  1850. "type":"B",
  1851. "desc":"Width"
  1852. },
  1853. {
  1854. "type":"B",
  1855. "desc":"Height"
  1856. }
  1857. ],
  1858. "desc":"Displays a box with the given dimensions.",
  1859. "size":5
  1860. },
  1861. {
  1862. "name":"hidebox",
  1863. "args":4,
  1864. "value":115,
  1865. "params":[
  1866. {
  1867. "type":"B",
  1868. "desc":"Left position"
  1869. },
  1870. {
  1871. "type":"B",
  1872. "desc":"Top position"
  1873. },
  1874. {
  1875. "type":"B",
  1876. "desc":"Width"
  1877. },
  1878. {
  1879. "type":"B",
  1880. "desc":"Height"
  1881. }
  1882. ],
  1883. "desc":"Hides a displayed box. Ruby/Sapphire only.",
  1884. "size":5
  1885. },
  1886. {
  1887. "name":"clearbox",
  1888. "args":4,
  1889. "value":116,
  1890. "params":[
  1891. {
  1892. "type":"B",
  1893. "desc":"Left position"
  1894. },
  1895. {
  1896. "type":"B",
  1897. "desc":"Top position"
  1898. },
  1899. {
  1900. "type":"B",
  1901. "desc":"Width"
  1902. },
  1903. {
  1904. "type":"B",
  1905. "desc":"Height"
  1906. }
  1907. ],
  1908. "desc":"Clears a part of a custom box.",
  1909. "size":5
  1910. },
  1911. {
  1912. "name":"showpokepic",
  1913. "args":3,
  1914. "value":117,
  1915. "params":[
  1916. {
  1917. "type":"W",
  1918. "desc":"Pok\u00e9mon species to display"
  1919. },
  1920. {
  1921. "type":"B",
  1922. "desc":"X coordinate"
  1923. },
  1924. {
  1925. "type":"B",
  1926. "desc":"Y coordinate"
  1927. }
  1928. ],
  1929. "desc":"Displays a Pok\u00e9mon in a picture box.",
  1930. "size":5
  1931. },
  1932. {
  1933. "name":"hidepokepic",
  1934. "args":0,
  1935. "value":118,
  1936. "params":[
  1937.  
  1938. ],
  1939. "desc":"Hides a Pok\u00e9mon picture box previously showed.",
  1940. "size":1
  1941. },
  1942. {
  1943. "name":"showcontestwinner",
  1944. "args":1,
  1945. "value":119,
  1946. "params":[
  1947. {
  1948. "type":"B",
  1949. "desc":"Contest #"
  1950. }
  1951. ],
  1952. "desc":"Shows the picture of the winner of set contest.",
  1953. "size":2
  1954. },
  1955. {
  1956. "name":"braille",
  1957. "args":1,
  1958. "value":120,
  1959. "params":[
  1960. {
  1961. "type":"P",
  1962. "desc":"Pointer to braille data"
  1963. }
  1964. ],
  1965. "desc":"Displays a braille box.",
  1966. "size":5
  1967. },
  1968. {
  1969. "name":"givepokemon",
  1970. "args":6,
  1971. "value":121,
  1972. "params":[
  1973. {
  1974. "type":"W",
  1975. "desc":"Pok\u00e9mon species to give"
  1976. },
  1977. {
  1978. "type":"B",
  1979. "desc":"Level of the Pok\u00e9mon"
  1980. },
  1981. {
  1982. "type":"W",
  1983. "desc":"Item # to be held"
  1984. },
  1985. {
  1986. "type":"D",
  1987. "desc":"Filler"
  1988. },
  1989. {
  1990. "type":"D",
  1991. "desc":"Filler"
  1992. },
  1993. {
  1994. "type":"B",
  1995. "desc":"Filler"
  1996. }
  1997. ],
  1998. "desc":"Gives the player a Pok\u00e9mon.",
  1999. "size":15
  2000. },
  2001. {
  2002. "name":"giveegg",
  2003. "args":1,
  2004. "value":122,
  2005. "params":[
  2006. {
  2007. "type":"W",
  2008. "desc":"Pok\u00e9mon species to give"
  2009. }
  2010. ],
  2011. "desc":"Gives the player an egg of the specified Pok\u00e9mon.",
  2012. "size":3
  2013. },
  2014. {
  2015. "name":"setpkmnpp",
  2016. "args":3,
  2017. "value":123,
  2018. "params":[
  2019. {
  2020. "type":"B",
  2021. "desc":"Pok\u00e9mon #"
  2022. },
  2023. {
  2024. "type":"B",
  2025. "desc":"Attack slot"
  2026. },
  2027. {
  2028. "type":"W",
  2029. "desc":"PP amount"
  2030. }
  2031. ],
  2032. "desc":"Sets a new amount of PP for the specified Pok\u00e9mon in player's party.",
  2033. "size":5
  2034. },
  2035. {
  2036. "name":"checkattack",
  2037. "args":1,
  2038. "value":124,
  2039. "params":[
  2040. {
  2041. "type":"W",
  2042. "desc":"Attack # to check"
  2043. }
  2044. ],
  2045. "desc":"Checks if at least one Pok\u00e9mon in the party has a particular attack.",
  2046. "size":3
  2047. },
  2048. {
  2049. "name":"bufferpokemon",
  2050. "args":2,
  2051. "value":125,
  2052. "params":[
  2053. {
  2054. "type":"B",
  2055. "desc":"Buffer #"
  2056. },
  2057. {
  2058. "type":"W",
  2059. "desc":"Pok\u00e9mon species to store"
  2060. }
  2061. ],
  2062. "desc":"Stores a Pok\u00e9mon name within a specified buffer.",
  2063. "size":4
  2064. },
  2065. {
  2066. "name":"bufferfirstpokemon",
  2067. "args":1,
  2068. "value":126,
  2069. "params":[
  2070. {
  2071. "type":"B",
  2072. "desc":"Buffer #"
  2073. }
  2074. ],
  2075. "desc":"Stores the first Pok\u00e9mon name in player's party within a specified buffer.",
  2076. "size":2
  2077. },
  2078. {
  2079. "name":"bufferpartypokemon",
  2080. "args":2,
  2081. "value":127,
  2082. "params":[
  2083. {
  2084. "type":"B",
  2085. "desc":"Buffer #"
  2086. },
  2087. {
  2088. "type":"W",
  2089. "desc":"Pok\u00e9mon #"
  2090. }
  2091. ],
  2092. "desc":"Stores the selected Pok\u00e9mon name in player's party within a specified buffer.",
  2093. "size":4
  2094. },
  2095. {
  2096. "name":"bufferitem",
  2097. "args":2,
  2098. "value":128,
  2099. "params":[
  2100. {
  2101. "type":"B",
  2102. "desc":"Buffer #"
  2103. },
  2104. {
  2105. "type":"W",
  2106. "desc":"Item # to store"
  2107. }
  2108. ],
  2109. "desc":"Stores an item name within a specified buffer.",
  2110. "size":4
  2111. },
  2112. {
  2113. "name":"bufferdecoration",
  2114. "args":2,
  2115. "value":129,
  2116. "params":[
  2117. {
  2118. "type":"B",
  2119. "desc":"Buffer #"
  2120. },
  2121. {
  2122. "type":"W",
  2123. "desc":"Decoration # to store"
  2124. }
  2125. ],
  2126. "desc":"Stores a decoration name within a specified buffer.",
  2127. "size":4
  2128. },
  2129. {
  2130. "name":"bufferattack",
  2131. "args":2,
  2132. "value":130,
  2133. "params":[
  2134. {
  2135. "type":"B",
  2136. "desc":"Buffer #"
  2137. },
  2138. {
  2139. "type":"W",
  2140. "desc":"Attack # to store"
  2141. }
  2142. ],
  2143. "desc":"Stores an attack name within a specified buffer.",
  2144. "size":4
  2145. },
  2146. {
  2147. "name":"buffernumber",
  2148. "args":2,
  2149. "value":131,
  2150. "params":[
  2151. {
  2152. "type":"B",
  2153. "desc":"Buffer #"
  2154. },
  2155. {
  2156. "type":"W",
  2157. "desc":"Variable to store"
  2158. }
  2159. ],
  2160. "desc":"Variable version on buffernumber.",
  2161. "size":4
  2162. },
  2163. {
  2164. "name":"bufferstd",
  2165. "args":2,
  2166. "value":132,
  2167. "params":[
  2168. {
  2169. "type":"B",
  2170. "desc":"Buffer #"
  2171. },
  2172. {
  2173. "type":"W",
  2174. "desc":"Standard string #"
  2175. }
  2176. ],
  2177. "desc":"Stores a standard string within a specified buffer.",
  2178. "size":4
  2179. },
  2180. {
  2181. "name":"bufferstring",
  2182. "args":2,
  2183. "value":133,
  2184. "params":[
  2185. {
  2186. "type":"B",
  2187. "desc":"Buffer #"
  2188. },
  2189. {
  2190. "type":"P",
  2191. "desc":"Pointer to the string to store"
  2192. }
  2193. ],
  2194. "desc":"Stores a string within a specified buffer.",
  2195. "size":6
  2196. },
  2197. {
  2198. "name":"pokemart",
  2199. "args":1,
  2200. "value":134,
  2201. "params":[
  2202. {
  2203. "type":"P",
  2204. "desc":"Pointer to the item list"
  2205. }
  2206. ],
  2207. "desc":"Opens the Pok\u00e9mart shop system with the item/price list found at the selected pointer.",
  2208. "size":5
  2209. },
  2210. {
  2211. "name":"pokemart2",
  2212. "args":1,
  2213. "value":135,
  2214. "params":[
  2215. {
  2216. "type":"P",
  2217. "desc":"Pointer to the item list"
  2218. }
  2219. ],
  2220. "desc":"Opens the Pok\u00e9Mart shop system with the item/price list found at the selected pointer.",
  2221. "size":5
  2222. },
  2223. {
  2224. "name":"pokemart3",
  2225. "args":1,
  2226. "value":136,
  2227. "params":[
  2228. {
  2229. "type":"P",
  2230. "desc":"Pointer to the item list"
  2231. }
  2232. ],
  2233. "desc":"Opens the Pok\u00e9Mart shop system with the item/price list found at the selected pointer.",
  2234. "size":5
  2235. },
  2236. {
  2237. "name":"pokecasino",
  2238. "args":1,
  2239. "value":137,
  2240. "params":[
  2241. {
  2242. "type":"W",
  2243. "desc":"Variable #"
  2244. }
  2245. ],
  2246. "desc":"Opens the Casino system.",
  2247. "size":3
  2248. },
  2249. {
  2250. "name":"cmd8a",
  2251. "args":3,
  2252. "value":138,
  2253. "params":[
  2254. {
  2255. "type":"B",
  2256. "desc":"???"
  2257. },
  2258. {
  2259. "type":"B",
  2260. "desc":"???"
  2261. },
  2262. {
  2263. "type":"B",
  2264. "desc":"???"
  2265. }
  2266. ],
  2267. "desc":"Apparently does absolutely nothing.",
  2268. "size":4
  2269. },
  2270. {
  2271. "name":"choosecontestpkmn",
  2272. "args":0,
  2273. "value":139,
  2274. "params":[
  2275.  
  2276. ],
  2277. "desc":"Opens up a menu for choosing a contest Pok\u00e9mon.",
  2278. "size":1
  2279. },
  2280. {
  2281. "name":"startcontest",
  2282. "args":0,
  2283. "value":140,
  2284. "params":[
  2285.  
  2286. ],
  2287. "desc":"Start a Pok\u00e9mon Contest.\r\r\n",
  2288. "size":1
  2289. },
  2290. {
  2291. "name":"showcontestresults",
  2292. "args":0,
  2293. "value":141,
  2294. "params":[
  2295.  
  2296. ],
  2297. "desc":"Shows Pok\u00e9mon contest results.",
  2298. "size":1
  2299. },
  2300. {
  2301. "name":"contestlinktransfer",
  2302. "args":0,
  2303. "value":142,
  2304. "params":[
  2305.  
  2306. ],
  2307. "desc":"Establishes a connection using the wireless adapter. Emerald only.\r\r\n\r\r\n",
  2308. "size":1
  2309. },
  2310. {
  2311. "name":"random",
  2312. "args":1,
  2313. "value":143,
  2314. "params":[
  2315. {
  2316. "type":"W",
  2317. "desc":"Total possibilities"
  2318. }
  2319. ],
  2320. "desc":"Generates a random number storing it into LASTRESULT.",
  2321. "size":3
  2322. },
  2323. {
  2324. "name":"givemoney",
  2325. "args":2,
  2326. "value":144,
  2327. "params":[
  2328. {
  2329. "type":"D",
  2330. "desc":"Money quantity to give"
  2331. },
  2332. {
  2333. "type":"B",
  2334. "desc":"Command execution check"
  2335. }
  2336. ],
  2337. "desc":"Gives the player some money.",
  2338. "size":6
  2339. },
  2340. {
  2341. "name":"paymoney",
  2342. "args":2,
  2343. "value":145,
  2344. "params":[
  2345. {
  2346. "type":"D",
  2347. "desc":"Money quantity to pay"
  2348. },
  2349. {
  2350. "type":"B",
  2351. "desc":"Command execution check"
  2352. }
  2353. ],
  2354. "desc":"Takes some money from the player.",
  2355. "size":6
  2356. },
  2357. {
  2358. "name":"checkmoney",
  2359. "args":2,
  2360. "value":146,
  2361. "params":[
  2362. {
  2363. "type":"D",
  2364. "desc":"Money quantity to check"
  2365. },
  2366. {
  2367. "type":"B",
  2368. "desc":"Command execution check"
  2369. }
  2370. ],
  2371. "desc":"Checks if the player has a specified amount of money.",
  2372. "size":6
  2373. },
  2374. {
  2375. "name":"showmoney",
  2376. "args":3,
  2377. "value":147,
  2378. "params":[
  2379. {
  2380. "type":"B",
  2381. "desc":"X coordinate"
  2382. },
  2383. {
  2384. "type":"B",
  2385. "desc":"Y coordinate"
  2386. },
  2387. {
  2388. "type":"B",
  2389. "desc":"Command execution check"
  2390. }
  2391. ],
  2392. "desc":"Shows the money counter on set coordinates.",
  2393. "size":4
  2394. },
  2395. {
  2396. "name":"hidemoney",
  2397. "args":2,
  2398. "value":148,
  2399. "params":[
  2400. {
  2401. "type":"B",
  2402. "desc":"X coordinate"
  2403. },
  2404. {
  2405. "type":"B",
  2406. "desc":"Y coordinate"
  2407. }
  2408. ],
  2409. "desc":"Hides the money counter.",
  2410. "size":3
  2411. },
  2412. {
  2413. "name":"updatemoney",
  2414. "args":3,
  2415. "value":149,
  2416. "params":[
  2417. {
  2418. "type":"B",
  2419. "desc":"X coordinate"
  2420. },
  2421. {
  2422. "type":"B",
  2423. "desc":"Y coordinate"
  2424. },
  2425. {
  2426. "type":"B",
  2427. "desc":"Command execution check"
  2428. }
  2429. ],
  2430. "desc":"Updates the amount of money displayed in the money counter.",
  2431. "size":4
  2432. },
  2433. {
  2434. "name":"cmd96",
  2435. "args":1,
  2436. "value":150,
  2437. "params":[
  2438. {
  2439. "type":"W",
  2440. "desc":"???"
  2441. }
  2442. ],
  2443. "desc":"Apparently does absolutely nothing.",
  2444. "size":3
  2445. },
  2446. {
  2447. "name":"fadescreen",
  2448. "args":1,
  2449. "value":151,
  2450. "params":[
  2451. {
  2452. "type":"B",
  2453. "desc":"Fade effect"
  2454. }
  2455. ],
  2456. "desc":"Fades the screen in or out.",
  2457. "size":2
  2458. },
  2459. {
  2460. "name":"fadescreendelay",
  2461. "args":2,
  2462. "value":152,
  2463. "params":[
  2464. {
  2465. "type":"B",
  2466. "desc":"Fade effect"
  2467. },
  2468. {
  2469. "type":"B",
  2470. "desc":"Delay"
  2471. }
  2472. ],
  2473. "desc":"Fades the screen in or out, after some delay.",
  2474. "size":3
  2475. },
  2476. {
  2477. "name":"darken",
  2478. "args":1,
  2479. "value":153,
  2480. "params":[
  2481. {
  2482. "type":"W",
  2483. "desc":"Flash size"
  2484. }
  2485. ],
  2486. "desc":"Calls flash animation that darkens the area. Must be called from a level script.",
  2487. "size":3
  2488. },
  2489. {
  2490. "name":"lighten",
  2491. "args":1,
  2492. "value":154,
  2493. "params":[
  2494. {
  2495. "type":"B",
  2496. "desc":"Flash size"
  2497. }
  2498. ],
  2499. "desc":"Calls flash animation that lightens the area.",
  2500. "size":2
  2501. },
  2502. {
  2503. "name":"preparemsg2",
  2504. "args":1,
  2505. "value":155,
  2506. "params":[
  2507. {
  2508. "type":"P",
  2509. "desc":"Pointer to text"
  2510. }
  2511. ],
  2512. "desc":"This command is currently under investigation. No detailed information is available at this time.",
  2513. "size":5
  2514. },
  2515. {
  2516. "name":"doanimation",
  2517. "args":1,
  2518. "value":156,
  2519. "params":[
  2520. {
  2521. "type":"W",
  2522. "desc":"Animation "
  2523. }
  2524. ],
  2525. "desc":"Executes the specified move animation.",
  2526. "size":3
  2527. },
  2528. {
  2529. "name":"setanimation",
  2530. "args":2,
  2531. "value":157,
  2532. "params":[
  2533. {
  2534. "type":"B",
  2535. "desc":"Animation #"
  2536. },
  2537. {
  2538. "type":"W",
  2539. "desc":"Variable to use"
  2540. }
  2541. ],
  2542. "desc":"Sets the move animation.",
  2543. "size":4
  2544. },
  2545. {
  2546. "name":"checkanimation",
  2547. "args":1,
  2548. "value":158,
  2549. "params":[
  2550. {
  2551. "type":"W",
  2552. "desc":"Animation #"
  2553. }
  2554. ],
  2555. "desc":"Checks whether an animation is currently being played or not. If so, it'll pause until the animation is done.\r\r\n",
  2556. "size":3
  2557. },
  2558. {
  2559. "name":"sethealingplace",
  2560. "args":1,
  2561. "value":159,
  2562. "params":[
  2563. {
  2564. "type":"W",
  2565. "desc":"Flightspot "
  2566. }
  2567. ],
  2568. "desc":"Sets the place where the player goes once he/she is out of usable Pok\u00e9mon.",
  2569. "size":3
  2570. },
  2571. {
  2572. "name":"checkgender",
  2573. "args":0,
  2574. "value":160,
  2575. "params":[
  2576.  
  2577. ],
  2578. "desc":"Checks if the player is a boy or a girl and stores it in LASTRESULT.",
  2579. "size":1
  2580. },
  2581. {
  2582. "name":"cry",
  2583. "args":2,
  2584. "value":161,
  2585. "params":[
  2586. {
  2587. "type":"W",
  2588. "desc":"Pok\u00e9mon species #"
  2589. },
  2590. {
  2591. "type":"W",
  2592. "desc":"Effect #"
  2593. }
  2594. ],
  2595. "desc":"Plays back the cry of a Pok\u00e9mon.",
  2596. "size":5
  2597. },
  2598. {
  2599. "name":"setmaptile",
  2600. "args":4,
  2601. "value":162,
  2602. "params":[
  2603. {
  2604. "type":"W",
  2605. "desc":"X coordinate"
  2606. },
  2607. {
  2608. "type":"W",
  2609. "desc":"Y coordinate"
  2610. },
  2611. {
  2612. "type":"W",
  2613. "desc":"Tile #"
  2614. },
  2615. {
  2616. "type":"W",
  2617. "desc":"Tile attribute"
  2618. }
  2619. ],
  2620. "desc":"Sets a tile on the map. You must somehow refresh that part.",
  2621. "size":9
  2622. },
  2623. {
  2624. "name":"resetweather",
  2625. "args":0,
  2626. "value":163,
  2627. "params":[
  2628.  
  2629. ],
  2630. "desc":"Prepares to fade the weather into the default type.",
  2631. "size":1
  2632. },
  2633. {
  2634. "name":"setweather",
  2635. "args":1,
  2636. "value":164,
  2637. "params":[
  2638. {
  2639. "type":"W",
  2640. "desc":"New weather"
  2641. }
  2642. ],
  2643. "desc":"Prepares to fade the weather into the type specified.",
  2644. "size":3
  2645. },
  2646. {
  2647. "name":"doweather",
  2648. "args":0,
  2649. "value":165,
  2650. "params":[
  2651.  
  2652. ],
  2653. "desc":"Triggers the weather change set with setweather/resetweather.",
  2654. "size":1
  2655. },
  2656. {
  2657. "name":"cmda6",
  2658. "args":1,
  2659. "value":166,
  2660. "params":[
  2661. {
  2662. "type":"B",
  2663. "desc":"???"
  2664. }
  2665. ],
  2666. "desc":"This command is currently under investigation. No detailed information is available at this time.",
  2667. "size":2
  2668. },
  2669. {
  2670. "name":"setmapfooter",
  2671. "args":1,
  2672. "value":167,
  2673. "params":[
  2674. {
  2675. "type":"W",
  2676. "desc":"Footer #"
  2677. }
  2678. ],
  2679. "desc":"Changes the current map footer loading the new one. The map must be refreshed afterwards in order to work fine.",
  2680. "size":3
  2681. },
  2682. {
  2683. "name":"spritelevelup",
  2684. "args":4,
  2685. "value":168,
  2686. "params":[
  2687. {
  2688. "type":"W",
  2689. "desc":"People #"
  2690. },
  2691. {
  2692. "type":"B",
  2693. "desc":"Bank #"
  2694. },
  2695. {
  2696. "type":"B",
  2697. "desc":"Map #"
  2698. },
  2699. {
  2700. "type":"B",
  2701. "desc":"???"
  2702. }
  2703. ],
  2704. "desc":"Makes the specified sprite go up one level at selected bank and map.\r\r\n",
  2705. "size":6
  2706. },
  2707. {
  2708. "name":"restorespritelevel",
  2709. "args":3,
  2710. "value":169,
  2711. "params":[
  2712. {
  2713. "type":"W",
  2714. "desc":"People #"
  2715. },
  2716. {
  2717. "type":"B",
  2718. "desc":"Bank #"
  2719. },
  2720. {
  2721. "type":"B",
  2722. "desc":"Map #"
  2723. }
  2724. ],
  2725. "desc":"Restores the original level, at selected bank and map, for the specified sprite.",
  2726. "size":5
  2727. },
  2728. {
  2729. "name":"createsprite",
  2730. "args":6,
  2731. "value":170,
  2732. "params":[
  2733. {
  2734. "type":"B",
  2735. "desc":"Sprite # to use"
  2736. },
  2737. {
  2738. "type":"B",
  2739. "desc":"Virtual people #"
  2740. },
  2741. {
  2742. "type":"W",
  2743. "desc":"X coordinate"
  2744. },
  2745. {
  2746. "type":"W",
  2747. "desc":"Y coordinate"
  2748. },
  2749. {
  2750. "type":"B",
  2751. "desc":"Behaviour"
  2752. },
  2753. {
  2754. "type":"B",
  2755. "desc":"Facing"
  2756. }
  2757. ],
  2758. "desc":"Creates a virtual sprite in the current map.",
  2759. "size":9
  2760. },
  2761. {
  2762. "name":"spriteface2",
  2763. "args":2,
  2764. "value":171,
  2765. "params":[
  2766. {
  2767. "type":"B",
  2768. "desc":"Virtual people #"
  2769. },
  2770. {
  2771. "type":"B",
  2772. "desc":"Facing"
  2773. }
  2774. ],
  2775. "desc":"Changes a facing of a virtual sprite.",
  2776. "size":3
  2777. },
  2778. {
  2779. "name":"setdooropened",
  2780. "args":2,
  2781. "value":172,
  2782. "params":[
  2783. {
  2784. "type":"W",
  2785. "desc":"X coordinate"
  2786. },
  2787. {
  2788. "type":"W",
  2789. "desc":"Y coordinate"
  2790. }
  2791. ],
  2792. "desc":"Prepares a door to be opened.",
  2793. "size":5
  2794. },
  2795. {
  2796. "name":"setdoorclosed",
  2797. "args":2,
  2798. "value":173,
  2799. "params":[
  2800. {
  2801. "type":"W",
  2802. "desc":"X coordinate"
  2803. },
  2804. {
  2805. "type":"W",
  2806. "desc":"Y coordinate"
  2807. }
  2808. ],
  2809. "desc":"Prepares a door to be closed.",
  2810. "size":5
  2811. },
  2812. {
  2813. "name":"doorchange",
  2814. "args":0,
  2815. "value":174,
  2816. "params":[
  2817.  
  2818. ],
  2819. "desc":"Changes the state of the selected door.",
  2820. "size":1
  2821. },
  2822. {
  2823. "name":"setdooropened2",
  2824. "args":2,
  2825. "value":175,
  2826. "params":[
  2827. {
  2828. "type":"W",
  2829. "desc":"X coordinate"
  2830. },
  2831. {
  2832. "type":"W",
  2833. "desc":"Y coordinate"
  2834. }
  2835. ],
  2836. "desc":"Prepares a door to be opened. No animation.",
  2837. "size":5
  2838. },
  2839. {
  2840. "name":"setdoorclosed2",
  2841. "args":2,
  2842. "value":176,
  2843. "params":[
  2844. {
  2845. "type":"W",
  2846. "desc":"X coordinate"
  2847. },
  2848. {
  2849. "type":"W",
  2850. "desc":"Y coordinate"
  2851. }
  2852. ],
  2853. "desc":"Prepares a door to be closed. No animation.",
  2854. "size":5
  2855. },
  2856. {
  2857. "name":"cmdb1",
  2858. "args":4,
  2859. "value":177,
  2860. "params":[
  2861. {
  2862. "type":"B",
  2863. "desc":"???"
  2864. },
  2865. {
  2866. "type":"W",
  2867. "desc":"???"
  2868. },
  2869. {
  2870. "type":"B",
  2871. "desc":"???"
  2872. },
  2873. {
  2874. "type":"W",
  2875. "desc":"???"
  2876. }
  2877. ],
  2878. "desc":"This command is currently under investigation. No detailed information is available at this time.",
  2879. "size":7
  2880. },
  2881. {
  2882. "name":"cmdb2",
  2883. "args":0,
  2884. "value":178,
  2885. "params":[
  2886.  
  2887. ],
  2888. "desc":"This command is currently under investigation. No detailed information is available at this time.",
  2889. "size":1
  2890. },
  2891. {
  2892. "name":"checkcoins",
  2893. "args":1,
  2894. "value":179,
  2895. "params":[
  2896. {
  2897. "type":"W",
  2898. "desc":"Variable to use"
  2899. }
  2900. ],
  2901. "desc":"Checks the actual amount of coins and stores it on a specified variable.",
  2902. "size":3
  2903. },
  2904. {
  2905. "name":"givecoins",
  2906. "args":1,
  2907. "value":180,
  2908. "params":[
  2909. {
  2910. "type":"W",
  2911. "desc":"Number of coins to give"
  2912. }
  2913. ],
  2914. "desc":"Gives the player a specified quantity of coins.",
  2915. "size":3
  2916. },
  2917. {
  2918. "name":"removecoins",
  2919. "args":1,
  2920. "value":181,
  2921. "params":[
  2922. {
  2923. "type":"W",
  2924. "desc":"Number of coins to remove"
  2925. }
  2926. ],
  2927. "desc":"Removes a specified quantity of coins.",
  2928. "size":3
  2929. },
  2930. {
  2931. "name":"setwildbattle",
  2932. "args":3,
  2933. "value":182,
  2934. "params":[
  2935. {
  2936. "type":"W",
  2937. "desc":"Pok\u00e9mon species"
  2938. },
  2939. {
  2940. "type":"B",
  2941. "desc":"Level of the Pok\u00e9mon"
  2942. },
  2943. {
  2944. "type":"W",
  2945. "desc":"Item # to be held"
  2946. }
  2947. ],
  2948. "desc":"Prepares to start a battle with a specified Pok\u00e9mon, level and item.",
  2949. "size":6
  2950. },
  2951. {
  2952. "name":"dowildbattle",
  2953. "args":0,
  2954. "value":183,
  2955. "params":[
  2956.  
  2957. ],
  2958. "desc":"Triggers the battle specified by setbattle.",
  2959. "size":1
  2960. },
  2961. {
  2962. "name":"setvirtualaddress",
  2963. "args":1,
  2964. "value":184,
  2965. "params":[
  2966. {
  2967. "type":"D",
  2968. "desc":"Value"
  2969. }
  2970. ],
  2971. "desc":"Jumps to the specified value - value at 0x020375C4 in RAM, continuing execution from there.",
  2972. "size":5
  2973. },
  2974. {
  2975. "name":"virtualgoto",
  2976. "args":1,
  2977. "value":185,
  2978. "params":[
  2979. {
  2980. "type":"P",
  2981. "desc":"Pointer to custom function"
  2982. }
  2983. ],
  2984. "desc":"Jumps to a custom function.",
  2985. "size":5
  2986. },
  2987. {
  2988. "name":"virtualcall",
  2989. "args":1,
  2990. "value":186,
  2991. "params":[
  2992. {
  2993. "type":"P",
  2994. "desc":"Pointer to custom function"
  2995. }
  2996. ],
  2997. "desc":"Calls a custom function.",
  2998. "size":5
  2999. },
  3000. {
  3001. "name":"virtualgotoif",
  3002. "args":2,
  3003. "value":187,
  3004. "params":[
  3005. {
  3006. "type":"B",
  3007. "desc":"Condition"
  3008. },
  3009. {
  3010. "type":"P",
  3011. "desc":"Pointer to custom function"
  3012. }
  3013. ],
  3014. "desc":"Jumps to a custom function, conditional version.",
  3015. "size":6
  3016. },
  3017. {
  3018. "name":"virtualcallif",
  3019. "args":2,
  3020. "value":188,
  3021. "params":[
  3022. {
  3023. "type":"B",
  3024. "desc":"Condition"
  3025. },
  3026. {
  3027. "type":"P",
  3028. "desc":"Pointer to custom function"
  3029. }
  3030. ],
  3031. "desc":"Calls a custom function, conditional version.",
  3032. "size":6
  3033. },
  3034. {
  3035. "name":"virtualmsgbox",
  3036. "args":1,
  3037. "value":189,
  3038. "params":[
  3039. {
  3040. "type":"P",
  3041. "desc":"Pointer to text"
  3042. }
  3043. ],
  3044. "desc":"Prepares a pointer to dialogue text for use.",
  3045. "size":5
  3046. },
  3047. {
  3048. "name":"virtualloadpointer",
  3049. "args":1,
  3050. "value":190,
  3051. "params":[
  3052. {
  3053. "type":"P",
  3054. "desc":"Pointer to text"
  3055. }
  3056. ],
  3057. "desc":"Prepares a pointer to dialogue text for use.",
  3058. "size":5
  3059. },
  3060. {
  3061. "name":"virtualbuffer",
  3062. "args":2,
  3063. "value":191,
  3064. "params":[
  3065. {
  3066. "type":"B",
  3067. "desc":"Buffer #"
  3068. },
  3069. {
  3070. "type":"P",
  3071. "desc":"Pointer to the string to store"
  3072. }
  3073. ],
  3074. "desc":"Stores a custom string within a buffer.",
  3075. "size":6
  3076. },
  3077. {
  3078. "name":"showcoins",
  3079. "args":2,
  3080. "value":192,
  3081. "params":[
  3082. {
  3083. "type":"B",
  3084. "desc":"X coordinate"
  3085. },
  3086. {
  3087. "type":"B",
  3088. "desc":"Y coordinate"
  3089. }
  3090. ],
  3091. "desc":"Shows the coin counter on set coordinates.",
  3092. "size":3
  3093. },
  3094. {
  3095. "name":"hidecoins",
  3096. "args":2,
  3097. "value":193,
  3098. "params":[
  3099. {
  3100. "type":"B",
  3101. "desc":"X coordinate"
  3102. },
  3103. {
  3104. "type":"B",
  3105. "desc":"Y coordinate"
  3106. }
  3107. ],
  3108. "desc":"Hides the coin counter.",
  3109. "size":3
  3110. },
  3111. {
  3112. "name":"updatecoins",
  3113. "args":2,
  3114. "value":194,
  3115. "params":[
  3116. {
  3117. "type":"B",
  3118. "desc":"X coordinate"
  3119. },
  3120. {
  3121. "type":"B",
  3122. "desc":"Y coordinate"
  3123. }
  3124. ],
  3125. "desc":"Updates the amount of coins displayed in the coin counter.",
  3126. "size":3
  3127. },
  3128. {
  3129. "name":"cmdc3",
  3130. "args":1,
  3131. "value":195,
  3132. "params":[
  3133. {
  3134. "type":"B",
  3135. "desc":"???"
  3136. }
  3137. ],
  3138. "desc":"This command is currently under investigation. No detailed information is available at this time.",
  3139. "size":2
  3140. },
  3141. {
  3142. "name":"warp6",
  3143. "args":5,
  3144. "value":196,
  3145. "params":[
  3146. {
  3147. "type":"B",
  3148. "desc":"Bank # to warp to"
  3149. },
  3150. {
  3151. "type":"B",
  3152. "desc":"Map # to warp to"
  3153. },
  3154. {
  3155. "type":"B",
  3156. "desc":"Exit # to warp to"
  3157. },
  3158. {
  3159. "type":"W",
  3160. "desc":"X coordinate"
  3161. },
  3162. {
  3163. "type":"W",
  3164. "desc":"Y coordinate"
  3165. }
  3166. ],
  3167. "desc":"Warps the player to another map.",
  3168. "size":8
  3169. },
  3170. {
  3171. "name":"waitcry",
  3172. "args":0,
  3173. "value":197,
  3174. "params":[
  3175.  
  3176. ],
  3177. "desc":"Waits for cry to finish.",
  3178. "size":1
  3179. },
  3180. {
  3181. "name":"bufferboxname",
  3182. "args":2,
  3183. "value":198,
  3184. "params":[
  3185. {
  3186. "type":"B",
  3187. "desc":"Buffer #"
  3188. },
  3189. {
  3190. "type":"W",
  3191. "desc":"PC box # to store"
  3192. }
  3193. ],
  3194. "desc":"Stores the name of a PC box within a specified buffer.",
  3195. "size":4
  3196. },
  3197. {
  3198. "name":"textcolor",
  3199. "args":1,
  3200. "value":199,
  3201. "params":[
  3202. {
  3203. "type":"B",
  3204. "desc":"Color #"
  3205. }
  3206. ],
  3207. "desc":"Changes the text color used. FR/LG only.",
  3208. "size":2
  3209. },
  3210. {
  3211. "name":"cmdc8",
  3212. "args":0,
  3213. "value":200,
  3214. "params":[
  3215.  
  3216. ],
  3217. "desc":"This command is currently under investigation. No detailed information is available at this time.",
  3218. "size":1
  3219. },
  3220. {
  3221. "name":"cmdc9",
  3222. "args":0,
  3223. "value":201,
  3224. "params":[
  3225.  
  3226. ],
  3227. "desc":"This command is currently under investigation. No detailed information is available at this time.",
  3228. "size":1
  3229. },
  3230. {
  3231. "name":"signmsg",
  3232. "args":0,
  3233. "value":202,
  3234. "params":[
  3235.  
  3236. ],
  3237. "desc":"Changes the graphics used by msgboxes in order to make them look like signs. FR/LG only.",
  3238. "size":1
  3239. },
  3240. {
  3241. "name":"normalmsg",
  3242. "args":0,
  3243. "value":203,
  3244. "params":[
  3245.  
  3246. ],
  3247. "desc":"Clears the effect of the msgboxsign command. FR/LG only.",
  3248. "size":1
  3249. },
  3250. {
  3251. "name":"comparehiddenvar",
  3252. "args":2,
  3253. "value":204,
  3254. "params":[
  3255. {
  3256. "type":"B",
  3257. "desc":"Variable #"
  3258. },
  3259. {
  3260. "type":"W",
  3261. "desc":"Value to compare variable to"
  3262. }
  3263. ],
  3264. "desc":"Compares the value of a chosen hidden variable. FR/LG only.",
  3265. "size":4
  3266. },
  3267. {
  3268. "name":"setobedience",
  3269. "args":1,
  3270. "value":205,
  3271. "params":[
  3272. {
  3273. "type":"W",
  3274. "desc":"Pok\u00e9mon #"
  3275. }
  3276. ],
  3277. "desc":"Sets the specified Pok\u00e9mon in player's party as obedient.",
  3278. "size":3
  3279. },
  3280. {
  3281. "name":"checkobedience",
  3282. "args":1,
  3283. "value":206,
  3284. "params":[
  3285. {
  3286. "type":"W",
  3287. "desc":"Pok\u00e9mon #"
  3288. }
  3289. ],
  3290. "desc":"Checks if the specified Pok\u00e9mon in player's party is obedient or not. The result is stored in LASTRESULT.",
  3291. "size":3
  3292. },
  3293. {
  3294. "name":"executeram",
  3295. "args":0,
  3296. "value":207,
  3297. "params":[
  3298.  
  3299. ],
  3300. "desc":"Calculates the current location of the RAM script area and passes the execution to that offset.",
  3301. "size":1
  3302. },
  3303. {
  3304. "name":"setworldmapflag",
  3305. "args":1,
  3306. "value":208,
  3307. "params":[
  3308. {
  3309. "type":"W",
  3310. "desc":"Flag #"
  3311. }
  3312. ],
  3313. "desc":"Sets the flag used to allow the player to fly to a specific place. FR/LG only.",
  3314. "size":3
  3315. },
  3316. {
  3317. "name":"warpteleport2",
  3318. "args":5,
  3319. "value":209,
  3320. "params":[
  3321. {
  3322. "type":"B",
  3323. "desc":"Bank # to warp to"
  3324. },
  3325. {
  3326. "type":"B",
  3327. "desc":"Map # to warp to"
  3328. },
  3329. {
  3330. "type":"B",
  3331. "desc":"Exit # to warp to"
  3332. },
  3333. {
  3334. "type":"W",
  3335. "desc":"X coordinate"
  3336. },
  3337. {
  3338. "type":"W",
  3339. "desc":"Y coordinate"
  3340. }
  3341. ],
  3342. "desc":"Warps the player to another map. Teleport effect.",
  3343. "size":8
  3344. },
  3345. {
  3346. "name":"setcatchlocation",
  3347. "args":2,
  3348. "value":210,
  3349. "params":[
  3350. {
  3351. "type":"W",
  3352. "desc":"Pok\u00e9mon #"
  3353. },
  3354. {
  3355. "type":"B",
  3356. "desc":"Catch location #"
  3357. }
  3358. ],
  3359. "desc":"Changes the catch location for a specified Pok\u00e9mon in player's party.",
  3360. "size":4
  3361. },
  3362. {
  3363. "name":"braille2",
  3364. "args":1,
  3365. "value":211,
  3366. "params":[
  3367. {
  3368. "type":"P",
  3369. "desc":"Pointer to braille data"
  3370. }
  3371. ],
  3372. "desc":"This command is currently under investigation. No detailed information is available at this time.",
  3373. "size":5
  3374. },
  3375. {
  3376. "name":"bufferitems",
  3377. "args":3,
  3378. "value":212,
  3379. "params":[
  3380. {
  3381. "type":"B",
  3382. "desc":"Buffer #"
  3383. },
  3384. {
  3385. "type":"W",
  3386. "desc":"Item # to store"
  3387. },
  3388. {
  3389. "type":"W",
  3390. "desc":"Quantity"
  3391. }
  3392. ],
  3393. "desc":"Stores a plural item name within a specified buffer. FR/LG only.",
  3394. "size":6
  3395. },
  3396. {
  3397. "name":"cmdd5",
  3398. "args":1,
  3399. "value":213,
  3400. "params":[
  3401. {
  3402. "type":"W",
  3403. "desc":"???"
  3404. }
  3405. ],
  3406. "desc":"This command is currently under investigation. No detailed information is available at this time.",
  3407. "size":3
  3408. },
  3409. {
  3410. "name":"cmdd6",
  3411. "args":0,
  3412. "value":214,
  3413. "params":[
  3414.  
  3415. ],
  3416. "desc":"This command is currently under investigation. No detailed information is available at this time.",
  3417. "size":1
  3418. },
  3419. {
  3420. "name":"warp7",
  3421. "args":5,
  3422. "value":215,
  3423. "params":[
  3424. {
  3425. "type":"B",
  3426. "desc":"Bank # to warp to"
  3427. },
  3428. {
  3429. "type":"B",
  3430. "desc":"Map # to warp to"
  3431. },
  3432. {
  3433. "type":"B",
  3434. "desc":"Exit # to warp to"
  3435. },
  3436. {
  3437. "type":"W",
  3438. "desc":"X coordinate"
  3439. },
  3440. {
  3441. "type":"W",
  3442. "desc":"Y coordinate"
  3443. }
  3444. ],
  3445. "desc":"This command is currently under investigation. No detailed information is available at this time.",
  3446. "size":8
  3447. },
  3448. {
  3449. "name":"cmdd8",
  3450. "args":0,
  3451. "value":216,
  3452. "params":[
  3453.  
  3454. ],
  3455. "desc":"This command is currently under investigation. No detailed information is available at this time.",
  3456. "size":1
  3457. },
  3458. {
  3459. "name":"cmdd9",
  3460. "args":0,
  3461. "value":217,
  3462. "params":[
  3463.  
  3464. ],
  3465. "desc":"This command is currently under investigation. No detailed information is available at this time.",
  3466. "size":1
  3467. },
  3468. {
  3469. "name":"hidebox2",
  3470. "args":0,
  3471. "value":218,
  3472. "params":[
  3473.  
  3474. ],
  3475. "desc":"Hides a displayed box. Emerald only.",
  3476. "size":1
  3477. },
  3478. {
  3479. "name":"preparemsg3",
  3480. "args":1,
  3481. "value":219,
  3482. "params":[
  3483. {
  3484. "type":"P",
  3485. "desc":"Pointer to text"
  3486. }
  3487. ],
  3488. "desc":"This command is currently under investigation. No detailed information is available at this time.",
  3489. "size":5
  3490. },
  3491. {
  3492. "name":"fadescreen3",
  3493. "args":1,
  3494. "value":220,
  3495. "params":[
  3496. {
  3497. "type":"B",
  3498. "desc":"???"
  3499. }
  3500. ],
  3501. "desc":"Fades the screen in or out. Emerald only.",
  3502. "size":2
  3503. },
  3504. {
  3505. "name":"buffertrainerclass",
  3506. "args":2,
  3507. "value":221,
  3508. "params":[
  3509. {
  3510. "type":"B",
  3511. "desc":"Buffer #"
  3512. },
  3513. {
  3514. "type":"W",
  3515. "desc":"Trainer class #"
  3516. }
  3517. ],
  3518. "desc":"Stores the name of the selected trainer class within a specified buffer. Emerald only.",
  3519. "size":4
  3520. },
  3521. {
  3522. "name":"buffertrainername",
  3523. "args":2,
  3524. "value":222,
  3525. "params":[
  3526. {
  3527. "type":"B",
  3528. "desc":"Buffer #"
  3529. },
  3530. {
  3531. "type":"W",
  3532. "desc":"Trainer #"
  3533. }
  3534. ],
  3535. "desc":"Stores the name of the selected trainer within a specified buffer. Emerald only.",
  3536. "size":4
  3537. },
  3538. {
  3539. "name":"pokenavcall",
  3540. "args":1,
  3541. "value":223,
  3542. "params":[
  3543. {
  3544. "type":"P",
  3545. "desc":"Pointer to text"
  3546. }
  3547. ],
  3548. "desc":"Displays a Pok\u00e9nav call. Emerald only.",
  3549. "size":5
  3550. },
  3551. {
  3552. "name":"warp8",
  3553. "args":5,
  3554. "value":224,
  3555. "params":[
  3556. {
  3557. "type":"B",
  3558. "desc":"Bank # to warp to"
  3559. },
  3560. {
  3561. "type":"B",
  3562. "desc":"Map # to warp to"
  3563. },
  3564. {
  3565. "type":"B",
  3566. "desc":"Exit # to warp to"
  3567. },
  3568. {
  3569. "type":"W",
  3570. "desc":"X coordinate"
  3571. },
  3572. {
  3573. "type":"W",
  3574. "desc":"Y coordinate"
  3575. }
  3576. ],
  3577. "desc":"This command is currently under investigation. No detailed information is available at this time.",
  3578. "size":8
  3579. },
  3580. {
  3581. "name":"buffercontestype",
  3582. "args":2,
  3583. "value":225,
  3584. "params":[
  3585. {
  3586. "type":"B",
  3587. "desc":"Buffer #"
  3588. },
  3589. {
  3590. "type":"W",
  3591. "desc":"Contest type"
  3592. }
  3593. ],
  3594. "desc":"Stores the name of the selected contest type within a specified buffer. Emerald only.",
  3595. "size":4
  3596. },
  3597. {
  3598. "name":"bufferitems2",
  3599. "args":3,
  3600. "value":226,
  3601. "params":[
  3602. {
  3603. "type":"B",
  3604. "desc":"Buffer #"
  3605. },
  3606. {
  3607. "type":"W",
  3608. "desc":"Item # to store"
  3609. },
  3610. {
  3611. "type":"W",
  3612. "desc":"Quantity"
  3613. }
  3614. ],
  3615. "desc":"Stores a plural item name within a specified buffer. Emerald only.",
  3616. "size":6
  3617. },
  3618. {
  3619. "name":"message",
  3620. "args":2,
  3621. "value":228,
  3622. "params":[
  3623. {
  3624. "type":"P",
  3625. "desc":"Pointer to load into memory"
  3626. },
  3627. {
  3628. "type":"B",
  3629. "desc":"Message Type"
  3630. },
  3631. {
  3632. "type":"",
  3633. "desc":""
  3634. }
  3635. ],
  3636. "desc":"Loads a pointer into memory to display a message later on.",
  3637. "size":8
  3638. },
  3639. {
  3640. "name":"giveitem",
  3641. "args":3,
  3642. "value":229,
  3643. "params":[
  3644. {
  3645. "type":"W",
  3646. "desc":"ITEM to add"
  3647. },
  3648. {
  3649. "type":"W",
  3650. "desc":"Quantity"
  3651. },
  3652. {
  3653. "type":"B",
  3654. "desc":"Message Type"
  3655. },
  3656. {
  3657. "type":"",
  3658. "desc":""
  3659. }
  3660. ],
  3661. "desc":"Gives a specified item and displays an aftermath message of the player receiving the item.",
  3662. "size":12
  3663. },
  3664. {
  3665. "name":"giveitem2",
  3666. "args":3,
  3667. "value":230,
  3668. "params":[
  3669. {
  3670. "type":"W",
  3671. "desc":"ITEM to add"
  3672. },
  3673. {
  3674. "type":"W",
  3675. "desc":"Quantity"
  3676. },
  3677. {
  3678. "type":" W",
  3679. "desc":"Sapp song# to play"
  3680. },
  3681. {
  3682. "type":"",
  3683. "desc":""
  3684. }
  3685. ],
  3686. "desc":"Similar to giveitem except it plays a fanfare too.",
  3687. "size":17
  3688. },
  3689. {
  3690. "name":"giveitem3",
  3691. "args":1,
  3692. "value":231,
  3693. "params":[
  3694. {
  3695. "type":"W",
  3696. "desc":"Decoration#"
  3697. },
  3698. {
  3699. "type":"",
  3700. "desc":""
  3701. }
  3702. ],
  3703. "desc":"Gives the player a specified decoration and displays a related message.",
  3704. "size":7
  3705. },
  3706. {
  3707. "name":"wildbattle",
  3708. "args":3,
  3709. "value":232,
  3710. "params":[
  3711. {
  3712. "type":"W",
  3713. "desc":"PKMN species to battle"
  3714. },
  3715. {
  3716. "type":"B",
  3717. "desc":"Level of the pokemon"
  3718. },
  3719. {
  3720. "type":"W",
  3721. "desc":"Item # to be held "
  3722. },
  3723. {
  3724. "type":"",
  3725. "desc":""
  3726. }
  3727. ],
  3728. "desc":"Starts a wild Pok\u00e9mon battle.",
  3729. "size":7
  3730. },
  3731. {
  3732. "name":"wildbattle2",
  3733. "args":4,
  3734. "value":233,
  3735. "params":[
  3736. {
  3737. "type":"W",
  3738. "desc":"PKMN species to battle"
  3739. },
  3740. {
  3741. "type":"B",
  3742. "desc":"Level of the pokemon"
  3743. },
  3744. {
  3745. "type":"W",
  3746. "desc":"Item # to be held"
  3747. },
  3748. {
  3749. "type":"B",
  3750. "desc":"Battle Style"
  3751. },
  3752. {
  3753. "type":"",
  3754. "desc":""
  3755. }
  3756. ],
  3757. "desc":"Starts a wild battle using a specific graphic style.",
  3758. "size":10
  3759. },
  3760. {
  3761. "name":"registernav",
  3762. "args":1,
  3763. "value":234,
  3764. "params":[
  3765. {
  3766. "type":"W",
  3767. "desc":"Trainer ID#"
  3768. },
  3769. {
  3770. "type":"",
  3771. "desc":""
  3772. }
  3773. ],
  3774. "desc":"Register the specified trainer in the Pok\u00e9Nav. Emerald only.",
  3775. "size":7
  3776. }
  3777. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement