SHOW:
|
|
- or go back to the newest paste.
1 | [ | |
2 | { | |
3 | "description":"Does absolutely nothing.", | |
4 | "numParams":0, | |
5 | "name":"nop", | |
6 | "size":1 | |
7 | }, | |
8 | { | |
9 | "description":"Does absolutely nothing.", | |
10 | "numParams":0, | |
11 | "name":"nop1", | |
12 | "size":1 | |
13 | }, | |
14 | { | |
15 | "description":"Ends the execution of the script.", | |
16 | "numParams":0, | |
17 | "name":"end", | |
18 | "size":1 | |
19 | }, | |
20 | { | |
21 | "description":"Pops back to the last calling command used.", | |
22 | "numParams":0, | |
23 | "name":"return", | |
24 | "size":1 | |
25 | }, | |
26 | { | |
27 | "description":"Continues script execution from another point. Can be returned to.", | |
28 | "numParams":1, | |
29 | "name":"call", | |
30 | "size":5 | |
31 | }, | |
32 | { | |
33 | "description":"Continues script execution from another point.", | |
34 | "numParams":1, | |
35 | "name":"goto", | |
36 | "size":5 | |
37 | }, | |
38 | { | |
39 | "description":"If the last comparison returned a certain value, jumps to another script.", | |
40 | "numParams":2, | |
41 | "name":"if1", | |
42 | "size":6 | |
43 | }, | |
44 | { | |
45 | "description":"Calling version of the if command.", | |
46 | "numParams":2, | |
47 | "name":"if2", | |
48 | "size":6 | |
49 | }, | |
50 | { | |
51 | "description":"Jumps to a built-in function.", | |
52 | "numParams":1, | |
53 | "name":"gotostd", | |
54 | "size":2 | |
55 | }, | |
56 | { | |
57 | "description":"Calls a built-in function.", | |
58 | "numParams":1, | |
59 | "name":"callstd", | |
60 | "size":2 | |
61 | }, | |
62 | { | |
63 | "description":"Jumps to a built-in function, conditional version.", | |
64 | "numParams":2, | |
65 | "name":"gotostdif", | |
66 | "size":3 | |
67 | }, | |
68 | { | |
69 | "description":"Jumps to a built-in function, conditional version.", | |
70 | "numParams":2, | |
71 | "name":"callstdif", | |
72 | "size":3 | |
73 | }, | |
74 | { | |
75 | "description":"Jumps to a default RAM location, executing the script stored there.", | |
76 | "numParams":0, | |
77 | "name":"jumpram", | |
78 | "size":1 | |
79 | }, | |
80 | { | |
81 | "description":"Kills the script and resets the script RAM.", | |
82 | "numParams":0, | |
83 | "name":"killscript", | |
84 | "size":1 | |
85 | }, | |
86 | { | |
87 | "description":"Sets a predefined address to the specified byte value.", | |
88 | "numParams":1, | |
89 | "name":"setbyte", | |
90 | "size":2 | |
91 | }, | |
92 | { | |
93 | "description":"Loads a pointer into the script RAM so other commands can use it.", | |
94 | "numParams":2, | |
95 | "name":"loadpointer", | |
96 | "size":6 | |
97 | }, | |
98 | { | |
99 | "description":"Sets a memory bank to the specified byte value.", | |
100 | "numParams":2, | |
101 | "name":"setbyte2", | |
102 | "size":3 | |
103 | }, | |
104 | { | |
105 | "description":"Sets the byte at the specified offset to a certain value.", | |
106 | "numParams":2, | |
107 | "name":"writebytetooffset", | |
108 | "size":6 | |
109 | }, | |
110 | { | |
111 | "description":"Loads the byte found at a pointer into the script RAM so other commands can use it.", | |
112 | "numParams":2, | |
113 | "name":"loadbytefrompointer", | |
114 | "size":6 | |
115 | }, | |
116 | { | |
117 | "description":"Sets the byte into a specified pointer.", | |
118 | "numParams":2, | |
119 | "name":"setfarbyte", | |
120 | "size":6 | |
121 | }, | |
122 | { | |
123 | "description":"Copies one script bank to another.", | |
124 | "numParams":2, | |
125 | "name":"copyscriptbanks", | |
126 | "size":3 | |
127 | }, | |
128 | { | |
129 | "description":"Copies a byte value from one place to another.", | |
130 | "numParams":2, | |
131 | "name":"copybyte", | |
132 | "size":9 | |
133 | }, | |
134 | { | |
135 | "description":"Sets variable A to any value.", | |
136 | "numParams":2, | |
137 | "name":"setvar", | |
138 | "size":5 | |
139 | }, | |
140 | { | |
141 | "description":"Adds any value to variable A.", | |
142 | "numParams":2, | |
143 | "name":"addvar", | |
144 | "size":5 | |
145 | }, | |
146 | { | |
147 | "description":"Subtracts any value from variable A.", | |
148 | "numParams":2, | |
149 | "name":"subvar", | |
150 | "size":5 | |
151 | }, | |
152 | { | |
153 | "description":"Copies variable B to A.", | |
154 | "numParams":2, | |
155 | "name":"copyvar", | |
156 | "size":5 | |
157 | }, | |
158 | { | |
159 | "description":"Sets variable B to A, but only if B is higher than zero.", | |
160 | "numParams":2, | |
161 | "name":"copyvarifnotzero", | |
162 | "size":5 | |
163 | }, | |
164 | { | |
165 | "description":"Compares two banks.", | |
166 | "numParams":2, | |
167 | "name":"comparebanks", | |
168 | "size":5 | |
169 | }, | |
170 | { | |
171 | "description":"Compares a variable stored in a buffer to a byte value.", | |
172 | "numParams":2, | |
173 | "name":"comparebanktobyte", | |
174 | "size":3 | |
175 | }, | |
176 | { | |
177 | "description":"Compares a bank with a byte at some location.", | |
178 | "numParams":2, | |
179 | "name":"comparebanktofarbyte", | |
180 | "size":6 | |
181 | }, | |
182 | { | |
183 | "description":"Compares a byte at some location to a buffered variable.\r\nThe reverse of comparevartofarbyte.", | |
184 | "numParams":2, | |
185 | "name":"comparefarbytetobank", | |
186 | "size":6 | |
187 | }, | |
188 | { | |
189 | "description":"Compares a byte at some location to a byte value.", | |
190 | "numParams":2, | |
191 | "name":"comparefarbytetobyte", | |
192 | "size":6 | |
193 | }, | |
194 | { | |
195 | "description":"Compares a byte at some location to a byte at another location.", | |
196 | "numParams":2, | |
197 | "name":"comparefarbytes", | |
198 | "size":9 | |
199 | }, | |
200 | { | |
201 | "description":"Compares variable A to a value.", | |
202 | "numParams":2, | |
203 | "name":"compare", | |
204 | "size":5 | |
205 | }, | |
206 | { | |
207 | "description":"Compares two variables.", | |
208 | "numParams":2, | |
209 | "name":"comparevars", | |
210 | "size":5 | |
211 | }, | |
212 | { | |
213 | "description":"Calls a custom ASM routine.", | |
214 | "numParams":1, | |
215 | "name":"callasm", | |
216 | "size":5 | |
217 | }, | |
218 | { | |
219 | "description":"This command is currently under investigation. No detailed information is available at this time.", | |
220 | "numParams":1, | |
221 | "name":"cmd24", | |
222 | "size":5 | |
223 | }, | |
224 | { | |
225 | "description":"Calls a special event.", | |
226 | "numParams":1, | |
227 | "name":"special", | |
228 | "size":3 | |
229 | }, | |
230 | { | |
231 | "description":"Like special, but can store a returned value.", | |
232 | "numParams":2, | |
233 | "name":"special2", | |
234 | "size":5 | |
235 | }, | |
236 | { | |
237 | "description":"Sets the script to a wait state, useful for some specials and commands.", | |
238 | "numParams":0, | |
239 | "name":"waitstate", | |
240 | "size":1 | |
241 | }, | |
242 | { | |
243 | "description":"Pauses script execution for a short amount of time.", | |
244 | "numParams":1, | |
245 | "name":"pause", | |
246 | "size":3 | |
247 | }, | |
248 | { | |
249 | "description":"Sets a flag for later use.", | |
250 | "numParams":1, | |
251 | "name":"setflag", | |
252 | "size":3 | |
253 | }, | |
254 | { | |
255 | "description":"Clears the value of a flag.", | |
256 | "numParams":1, | |
257 | "name":"clearflag", | |
258 | "size":3 | |
259 | }, | |
260 | { | |
261 | "description":"Checks the value of a flag.", | |
262 | "numParams":1, | |
263 | "name":"checkflag", | |
264 | "size":3 | |
265 | }, | |
266 | { | |
267 | "description":"This command is currently under investigation. No detailed information is available at this time.", | |
268 | "numParams":2, | |
269 | "name":"cmd2c", | |
270 | "size":5 | |
271 | }, | |
272 | { | |
273 | "description":"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.", | |
274 | "numParams":0, | |
275 | "name":"checkdailyflags", | |
276 | "size":1 | |
277 | }, | |
278 | { | |
279 | "description":"Resets the value of variables 0x8000, 0x8001 and 0x8002.", | |
280 | "numParams":0, | |
281 | "name":"resetvars", | |
282 | "size":1 | |
283 | }, | |
284 | { | |
285 | "description":"Plays a sound.", | |
286 | "numParams":1, | |
287 | "name":"sound", | |
288 | "size":3 | |
289 | }, | |
290 | { | |
291 | "description":"Checks if a sound, a fanfare or a song is currently being played.", | |
292 | "numParams":0, | |
293 | "name":"checksound", | |
294 | "size":1 | |
295 | }, | |
296 | { | |
297 | "description":"Plays a Sappy song as a fanfare.", | |
298 | "numParams":1, | |
299 | "name":"fanfare", | |
300 | "size":3 | |
301 | }, | |
302 | { | |
303 | "description":"Waits for fanfare to finish.", | |
304 | "numParams":0, | |
305 | "name":"waitfanfare", | |
306 | "size":1 | |
307 | }, | |
308 | { | |
309 | "description":"Switches to another Sappy song.", | |
310 | "numParams":2, | |
311 | "name":"playsong", | |
312 | "size":4 | |
313 | }, | |
314 | { | |
315 | "description":"Switches to another Sappy song.", | |
316 | "numParams":1, | |
317 | "name":"playsong2", | |
318 | "size":3 | |
319 | }, | |
320 | { | |
321 | "description":"Gently fades the current music back to the map's default song.", | |
322 | "numParams":0, | |
323 | "name":"fadedefault", | |
324 | "size":1 | |
325 | }, | |
326 | { | |
327 | "description":"Gently fades into another Sappy song.", | |
328 | "numParams":1, | |
329 | "name":"fadesong", | |
330 | "size":3 | |
331 | }, | |
332 | { | |
333 | "description":"Fades out the currently playing Sappy song.", | |
334 | "numParams":1, | |
335 | "name":"fadeout", | |
336 | "size":2 | |
337 | }, | |
338 | { | |
339 | "description":"Fades the currently playing Sappy song back in.", | |
340 | "numParams":1, | |
341 | "name":"fadein", | |
342 | "size":2 | |
343 | }, | |
344 | { | |
345 | "description":"Warps the player to another map.", | |
346 | "numParams":5, | |
347 | "name":"warp", | |
348 | "size":8 | |
349 | }, | |
350 | { | |
351 | "description":"Warps the player to another map. No sound effect.", | |
352 | "numParams":5, | |
353 | "name":"warpmuted", | |
354 | "size":8 | |
355 | }, | |
356 | { | |
357 | "description":"Warps the player to another map. Walking effect.", | |
358 | "numParams":5, | |
359 | "name":"warpwalk", | |
360 | "size":8 | |
361 | }, | |
362 | { | |
363 | "description":"Warps the player to another map. Hole effect.", | |
364 | "numParams":2, | |
365 | "name":"warphole", | |
366 | "size":3 | |
367 | }, | |
368 | { | |
369 | "description":"Warps the player to another map. Teleport effect.", | |
370 | "numParams":5, | |
371 | "name":"warpteleport", | |
372 | "size":8 | |
373 | }, | |
374 | { | |
375 | "description":"Warps the player to another map.", | |
376 | "numParams":5, | |
377 | "name":"warp3", | |
378 | "size":8 | |
379 | }, | |
380 | { | |
381 | "description":"Sets the place a warp that lead to warp 127 of map 127.127 warps the player.", | |
382 | "numParams":5, | |
383 | "name":"setwarpplace", | |
384 | "size":8 | |
385 | }, | |
386 | { | |
387 | "description":"Warps the player to another map.", | |
388 | "numParams":5, | |
389 | "name":"warp4", | |
390 | "size":8 | |
391 | }, | |
392 | { | |
393 | "description":"Warps the player to another map.", | |
394 | "numParams":5, | |
395 | "name":"warp5", | |
396 | "size":8 | |
397 | }, | |
398 | { | |
399 | "description":"Gets current position of the player on the map and stores it on specified variables.", | |
400 | "numParams":2, | |
401 | "name":"getplayerpos", | |
402 | "size":5 | |
403 | }, | |
404 | { | |
405 | "description":"Counts the number of Pok\u00e9mon in your party and stores the result in LASTRESULT.", | |
406 | "numParams":0, | |
407 | "name":"countpokemon", | |
408 | "size":1 | |
409 | }, | |
410 | { | |
411 | "description":"Adds the quantity of the specified item.", | |
412 | "numParams":2, | |
413 | "name":"additem", | |
414 | "size":5 | |
415 | }, | |
416 | { | |
417 | "description":"Removes the quantity of the specified item.", | |
418 | "numParams":2, | |
419 | "name":"removeitem", | |
420 | "size":5 | |
421 | }, | |
422 | { | |
423 | "description":"Checks if the player has enough room in the bag for the specified item.", | |
424 | "numParams":2, | |
425 | "name":"checkitemroom", | |
426 | "size":5 | |
427 | }, | |
428 | { | |
429 | "description":"Checks if the player is carrying the specified item.", | |
430 | "numParams":2, | |
431 | "name":"checkitem", | |
432 | "size":5 | |
433 | }, | |
434 | { | |
435 | "description":"Checks the item type for the specified item and store the result in LASTRESULT.", | |
436 | "numParams":1, | |
437 | "name":"checkitemtype", | |
438 | "size":3 | |
439 | }, | |
440 | { | |
441 | "description":"Adds the quantity of the specified item to player's PC.", | |
442 | "numParams":2, | |
443 | "name":"addpcitem", | |
444 | "size":5 | |
445 | }, | |
446 | { | |
447 | "description":"Checks if the player has the specified item on his/her PC.", | |
448 | "numParams":2, | |
449 | "name":"checkpcitem", | |
450 | "size":5 | |
451 | }, | |
452 | { | |
453 | "description":"Adds a decoration to player's PC.", | |
454 | "numParams":1, | |
455 | "name":"adddecoration", | |
456 | "size":3 | |
457 | }, | |
458 | { | |
459 | "description":"Removes a decoration from player's PC.", | |
460 | "numParams":1, | |
461 | "name":"removedecoration", | |
462 | "size":3 | |
463 | }, | |
464 | { | |
465 | "description":"Tests a specific decoration to see if there's enough room to store it.", | |
466 | "numParams":1, | |
467 | "name":"testdecoration", | |
468 | "size":3 | |
469 | }, | |
470 | { | |
471 | "description":"Checks if a specific decoration is present in player's PC.", | |
472 | "numParams":1, | |
473 | "name":"checkdecoration", | |
474 | "size":3 | |
475 | }, | |
476 | { | |
477 | "description":"Applies the movement data found at the specified pointer to a sprite.", | |
478 | "numParams":2, | |
479 | "name":"applymovement", | |
480 | "size":7 | |
481 | }, | |
482 | { | |
483 | "description":"Applies the movement data found at the specified pointer to a sprite. Then set the specified X/Y coordinates.", | |
484 | "numParams":4, | |
485 | "name":"applymovementpos", | |
486 | "size":9 | |
487 | }, | |
488 | { | |
489 | "description":"Waits for applymovement to finish.", | |
490 | "numParams":1, | |
491 | "name":"waitmovement", | |
492 | "size":3 | |
493 | }, | |
494 | { | |
495 | "description":"Waits for applymovement to finish. Then set the specified X/Y coordinates.", | |
496 | "numParams":3, | |
497 | "name":"waitmovementpos", | |
498 | "size":5 | |
499 | }, | |
500 | { | |
501 | "description":"Hides a sprite.", | |
502 | "numParams":1, | |
503 | "name":"hidesprite", | |
504 | "size":3 | |
505 | }, | |
506 | { | |
507 | "description":"Hides a sprite, then set the specified X/Y coordinates.", | |
508 | "numParams":3, | |
509 | "name":"hidespritepos", | |
510 | "size":5 | |
511 | }, | |
512 | { | |
513 | "description":"Shows a previously vanished sprite.", | |
514 | "numParams":1, | |
515 | "name":"showsprite", | |
516 | "size":3 | |
517 | }, | |
518 | { | |
519 | "description":"Shows a previously vanished sprite. Then set the specified X/Y coordinates.", | |
520 | "numParams":3, | |
521 | "name":"showspritepos", | |
522 | "size":5 | |
523 | }, | |
524 | { | |
525 | "description":"Moves a sprite to the specified location.", | |
526 | "numParams":3, | |
527 | "name":"movesprite", | |
528 | "size":7 | |
529 | }, | |
530 | { | |
531 | "description":"Makes the sprite visible at selected bank and map.", | |
532 | "numParams":3, | |
533 | "name":"spritevisible", | |
534 | "size":5 | |
535 | }, | |
536 | { | |
537 | "description":"Makes the sprite invisible at selected bank and map.", | |
538 | "numParams":3, | |
539 | "name":"spriteinvisible", | |
540 | "size":5 | |
541 | }, | |
542 | { | |
543 | "description":"Turns the caller towards the player.", | |
544 | "numParams":0, | |
545 | "name":"faceplayer", | |
546 | "size":1 | |
547 | }, | |
548 | { | |
549 | "description":"Changes a facing of a sprite.", | |
550 | "numParams":2, | |
551 | "name":"spriteface", | |
552 | "size":4 | |
553 | }, | |
554 | { | |
555 | "description":"Starts a trainer battle. Depending on the kind of battle, last parameters may differ.", | |
556 | "numParams":5, | |
557 | "name":"trainerbattle", | |
558 | "size":14 | |
559 | }, | |
560 | { | |
561 | "description":"Repeats the last trainer battle started.", | |
562 | "numParams":0, | |
563 | "name":"repeattrainerbattle", | |
564 | "size":1 | |
565 | }, | |
566 | { | |
567 | "description":"Returns from the trainer battle screen without starting message.", | |
568 | "numParams":0, | |
569 | "name":"endtrainerbattle", | |
570 | "size":1 | |
571 | }, | |
572 | { | |
573 | "description":"Returns from the trainer battle screen without ending message.", | |
574 | "numParams":0, | |
575 | "name":"endtrainerbattle2", | |
576 | "size":1 | |
577 | }, | |
578 | { | |
579 | "description":"Checks it the specified trainer flag is already activated and store the result in LASTRESULT.", | |
580 | "numParams":1, | |
581 | "name":"checktrainerflag", | |
582 | "size":3 | |
583 | }, | |
584 | { | |
585 | "description":"Deactivates the specified trainer flag.", | |
586 | "numParams":1, | |
587 | "name":"cleartrainerflag", | |
588 | "size":3 | |
589 | }, | |
590 | { | |
591 | "description":"Activates the specified trainer flag.", | |
592 | "numParams":1, | |
593 | "name":"settrainerflag", | |
594 | "size":3 | |
595 | }, | |
596 | { | |
597 | "description":"Moves a sprite to the specified location. Permanent change.", | |
598 | "numParams":3, | |
599 | "name":"movesprite2", | |
600 | "size":7 | |
601 | }, | |
602 | { | |
603 | "description":"Changes the location of the specified sprite to a value which is exactly one tile above the top left corner of the screen.", | |
604 | "numParams":1, | |
605 | "name":"moveoffscreen", | |
606 | "size":3 | |
607 | }, | |
608 | { | |
609 | "description":"Changes the behaviour of a sprite.", | |
610 | "numParams":2, | |
611 | "name":"spritebehave", | |
612 | "size":4 | |
613 | }, | |
614 | { | |
615 | "description":"Waits for preparemsg to finish.", | |
616 | "numParams":0, | |
617 | "name":"waitmsg", | |
618 | "size":1 | |
619 | }, | |
620 | { | |
621 | "description":"Prepares a pointer to dialogue text for being displayed.", | |
622 | "numParams":1, | |
623 | "name":"preparemsg", | |
624 | "size":5 | |
625 | }, | |
626 | { | |
627 | "description":"Holds a msgbox open and closes it on keypress.", | |
628 | "numParams":0, | |
629 | "name":"closeonkeypress", | |
630 | "size":1 | |
631 | }, | |
632 | { | |
633 | "description":"Locks down movement for all the people on the screen.", | |
634 | "numParams":0, | |
635 | "name":"lockall", | |
636 | "size":1 | |
637 | }, | |
638 | { | |
639 | "description":"Locks down movement for the caller.", | |
640 | "numParams":0, | |
641 | "name":"lock", | |
642 | "size":1 | |
643 | }, | |
644 | { | |
645 | "description":"Resumes normal movement forall the people on the screen. Closes any previously opened msgboxes as well.", | |
646 | "numParams":0, | |
647 | "name":"releaseall", | |
648 | "size":1 | |
649 | }, | |
650 | { | |
651 | "description":"Resumes normal movement for the caller. Closes any previously opened msgboxes as well.", | |
652 | "numParams":0, | |
653 | "name":"release", | |
654 | "size":1 | |
655 | }, | |
656 | { | |
657 | "description":"Waits until a key is pressed.", | |
658 | "numParams":0, | |
659 | "name":"waitkeypress", | |
660 | "size":1 | |
661 | }, | |
662 | { | |
663 | "description":"Displays a Yes/No box at specified coordinates.", | |
664 | "numParams":2, | |
665 | "name":"yesnobox", | |
666 | "size":3 | |
667 | }, | |
668 | { | |
669 | "description":"Puts up a list of choices for the player to make.", | |
670 | "numParams":4, | |
671 | "name":"multichoice", | |
672 | "size":5 | |
673 | }, | |
674 | { | |
675 | "description":"Puts up a list of choices for the player to make. A default choice can be set.", | |
676 | "numParams":5, | |
677 | "name":"multichoice2", | |
678 | "size":6 | |
679 | }, | |
680 | { | |
681 | "description":"Puts up a list of choices for the player to make. The number of choices per row can be set.", | |
682 | "numParams":5, | |
683 | "name":"multichoice3", | |
684 | "size":6 | |
685 | }, | |
686 | { | |
687 | "description":"Displays a box with the given dimensions.", | |
688 | "numParams":4, | |
689 | "name":"showbox", | |
690 | "size":5 | |
691 | }, | |
692 | { | |
693 | "description":"Hides a displayed box. Ruby/Sapphire only.", | |
694 | "numParams":4, | |
695 | "name":"hidebox", | |
696 | "size":5 | |
697 | }, | |
698 | { | |
699 | "description":"Clears a part of a custom box.", | |
700 | "numParams":4, | |
701 | "name":"clearbox", | |
702 | "size":5 | |
703 | }, | |
704 | { | |
705 | "description":"Displays a Pok\u00e9mon in a picture box.", | |
706 | "numParams":3, | |
707 | "name":"showpokepic", | |
708 | "size":5 | |
709 | }, | |
710 | { | |
711 | "description":"Hides a Pok\u00e9mon picture box previously showed.", | |
712 | "numParams":0, | |
713 | "name":"hidepokepic", | |
714 | "size":1 | |
715 | }, | |
716 | { | |
717 | "description":"Shows the picture of the winner of set contest.", | |
718 | "numParams":1, | |
719 | "name":"showcontestwinner", | |
720 | "size":2 | |
721 | }, | |
722 | { | |
723 | "description":"Displays a braille box.", | |
724 | "numParams":1, | |
725 | "name":"braille", | |
726 | "size":5 | |
727 | }, | |
728 | { | |
729 | "description":"Gives the player a Pok\u00e9mon.", | |
730 | "numParams":6, | |
731 | "name":"givepokemon", | |
732 | "size":15 | |
733 | }, | |
734 | { | |
735 | "description":"Gives the player an egg of the specified Pok\u00e9mon.", | |
736 | "numParams":1, | |
737 | "name":"giveegg", | |
738 | "size":3 | |
739 | }, | |
740 | { | |
741 | "description":"Sets a new amount of PP for the specified Pok\u00e9mon in player's party.", | |
742 | "numParams":3, | |
743 | "name":"setpkmnpp", | |
744 | "size":5 | |
745 | }, | |
746 | { | |
747 | "description":"Checks if at least one Pok\u00e9mon in the party has a particular attack.", | |
748 | "numParams":1, | |
749 | "name":"checkattack", | |
750 | "size":3 | |
751 | }, | |
752 | { | |
753 | "description":"Stores a Pok\u00e9mon name within a specified buffer.", | |
754 | "numParams":2, | |
755 | "name":"bufferpokemon", | |
756 | "size":4 | |
757 | }, | |
758 | { | |
759 | "description":"Stores the first Pok\u00e9mon name in player's party within a specified buffer.", | |
760 | "numParams":1, | |
761 | "name":"bufferfirstpokemon", | |
762 | "size":2 | |
763 | }, | |
764 | { | |
765 | "description":"Stores the selected Pok\u00e9mon name in player's party within a specified buffer.", | |
766 | "numParams":2, | |
767 | "name":"bufferpartypokemon", | |
768 | "size":4 | |
769 | }, | |
770 | { | |
771 | "description":"Stores an item name within a specified buffer.", | |
772 | "numParams":2, | |
773 | "name":"bufferitem", | |
774 | "size":4 | |
775 | }, | |
776 | { | |
777 | "description":"Stores a decoration name within a specified buffer.", | |
778 | "numParams":2, | |
779 | "name":"bufferdecoration", | |
780 | "size":4 | |
781 | }, | |
782 | { | |
783 | "description":"Stores an attack name within a specified buffer.", | |
784 | "numParams":2, | |
785 | "name":"bufferattack", | |
786 | "size":4 | |
787 | }, | |
788 | { | |
789 | "description":"Variable version on buffernumber.", | |
790 | "numParams":2, | |
791 | "name":"buffernumber", | |
792 | "size":4 | |
793 | }, | |
794 | { | |
795 | "description":"Stores a standard string within a specified buffer.", | |
796 | "numParams":2, | |
797 | "name":"bufferstd", | |
798 | "size":4 | |
799 | }, | |
800 | { | |
801 | "description":"Stores a string within a specified buffer.", | |
802 | "numParams":2, | |
803 | "name":"bufferstring", | |
804 | "size":6 | |
805 | }, | |
806 | { | |
807 | "description":"Opens the Pok\u00e9mart shop system with the item/price list found at the selected pointer.", | |
808 | "numParams":1, | |
809 | "name":"pokemart", | |
810 | "size":5 | |
811 | }, | |
812 | { | |
813 | "description":"Opens the Pok\u00e9Mart shop system with the item/price list found at the selected pointer.", | |
814 | "numParams":1, | |
815 | "name":"pokemart2", | |
816 | "size":5 | |
817 | }, | |
818 | { | |
819 | "description":"Opens the Pok\u00e9Mart shop system with the item/price list found at the selected pointer.", | |
820 | "numParams":1, | |
821 | "name":"pokemart3", | |
822 | "size":5 | |
823 | }, | |
824 | { | |
825 | "description":"Opens the Casino system.", | |
826 | "numParams":1, | |
827 | "name":"pokecasino", | |
828 | "size":3 | |
829 | }, | |
830 | { | |
831 | "description":"Apparently does absolutely nothing.", | |
832 | "numParams":3, | |
833 | "name":"cmd8a", | |
834 | "size":4 | |
835 | }, | |
836 | { | |
837 | "description":"Opens up a menu for choosing a contest Pok\u00e9mon.", | |
838 | "numParams":0, | |
839 | "name":"choosecontestpkmn", | |
840 | "size":1 | |
841 | }, | |
842 | { | |
843 | "description":"Start a Pok\u00e9mon Contest.\r\n", | |
844 | "numParams":0, | |
845 | "name":"startcontest", | |
846 | "size":1 | |
847 | }, | |
848 | { | |
849 | "description":"Shows Pok\u00e9mon contest results.", | |
850 | "numParams":0, | |
851 | "name":"showcontestresults", | |
852 | "size":1 | |
853 | }, | |
854 | { | |
855 | "description":"Establishes a connection using the wireless adapter. Emerald only.\r\n\r\n", | |
856 | "numParams":0, | |
857 | "name":"contestlinktransfer", | |
858 | "size":1 | |
859 | }, | |
860 | { | |
861 | "description":"Generates a random number storing it into LASTRESULT.", | |
862 | "numParams":1, | |
863 | "name":"random", | |
864 | "size":3 | |
865 | }, | |
866 | { | |
867 | "description":"Gives the player some money.", | |
868 | "numParams":2, | |
869 | "name":"givemoney", | |
870 | "size":6 | |
871 | }, | |
872 | { | |
873 | "description":"Takes some money from the player.", | |
874 | "numParams":2, | |
875 | "name":"paymoney", | |
876 | "size":6 | |
877 | }, | |
878 | { | |
879 | "description":"Checks if the player has a specified amount of money.", | |
880 | "numParams":2, | |
881 | "name":"checkmoney", | |
882 | "size":6 | |
883 | }, | |
884 | { | |
885 | "description":"Shows the money counter on set coordinates.", | |
886 | "numParams":3, | |
887 | "name":"showmoney", | |
888 | "size":4 | |
889 | }, | |
890 | { | |
891 | "description":"Hides the money counter.", | |
892 | "numParams":2, | |
893 | "name":"hidemoney", | |
894 | "size":3 | |
895 | }, | |
896 | { | |
897 | "description":"Updates the amount of money displayed in the money counter.", | |
898 | "numParams":3, | |
899 | "name":"updatemoney", | |
900 | "size":4 | |
901 | }, | |
902 | { | |
903 | "description":"Apparently does absolutely nothing.", | |
904 | "numParams":1, | |
905 | "name":"cmd96", | |
906 | "size":3 | |
907 | }, | |
908 | { | |
909 | "description":"Fades the screen in or out.", | |
910 | "numParams":1, | |
911 | "name":"fadescreen", | |
912 | "size":2 | |
913 | }, | |
914 | { | |
915 | "description":"Fades the screen in or out, after some delay.", | |
916 | "numParams":2, | |
917 | "name":"fadescreendelay", | |
918 | "size":3 | |
919 | }, | |
920 | { | |
921 | "description":"Calls flash animation that darkens the area. Must be called from a level script.", | |
922 | "numParams":1, | |
923 | "name":"darken", | |
924 | "size":3 | |
925 | }, | |
926 | { | |
927 | "description":"Calls flash animation that lightens the area.", | |
928 | "numParams":1, | |
929 | "name":"lighten", | |
930 | "size":2 | |
931 | }, | |
932 | { | |
933 | "description":"This command is currently under investigation. No detailed information is available at this time.", | |
934 | "numParams":1, | |
935 | "name":"preparemsg2", | |
936 | "size":5 | |
937 | }, | |
938 | { | |
939 | "description":"Executes the specified move animation.", | |
940 | "numParams":1, | |
941 | "name":"doanimation", | |
942 | "size":3 | |
943 | }, | |
944 | { | |
945 | "description":"Sets the move animation.", | |
946 | "numParams":2, | |
947 | "name":"setanimation", | |
948 | "size":4 | |
949 | }, | |
950 | { | |
951 | "description":"Checks whether an animation is currently being played or not. If so, it'll pause until the animation is done.\r\n", | |
952 | "numParams":1, | |
953 | "name":"checkanimation", | |
954 | "size":3 | |
955 | }, | |
956 | { | |
957 | "description":"Sets the place where the player goes once he/she is out of usable Pok\u00e9mon.", | |
958 | "numParams":1, | |
959 | "name":"sethealingplace", | |
960 | "size":3 | |
961 | }, | |
962 | { | |
963 | "description":"Checks if the player is a boy or a girl and stores it in LASTRESULT.", | |
964 | "numParams":0, | |
965 | "name":"checkgender", | |
966 | "size":1 | |
967 | }, | |
968 | { | |
969 | "description":"Plays back the cry of a Pok\u00e9mon.", | |
970 | "numParams":2, | |
971 | "name":"cry", | |
972 | "size":5 | |
973 | }, | |
974 | { | |
975 | "description":"Sets a tile on the map. You must somehow refresh that part.", | |
976 | "numParams":4, | |
977 | "name":"setmaptile", | |
978 | "size":9 | |
979 | }, | |
980 | { | |
981 | "description":"Prepares to fade the weather into the default type.", | |
982 | "numParams":0, | |
983 | "name":"resetweather", | |
984 | "size":1 | |
985 | }, | |
986 | { | |
987 | "description":"Prepares to fade the weather into the type specified.", | |
988 | "numParams":1, | |
989 | "name":"setweather", | |
990 | "size":3 | |
991 | }, | |
992 | { | |
993 | "description":"Triggers the weather change set with setweather/resetweather.", | |
994 | "numParams":0, | |
995 | "name":"doweather", | |
996 | "size":1 | |
997 | }, | |
998 | { | |
999 | "description":"This command is currently under investigation. No detailed information is available at this time.", | |
1000 | "numParams":1, | |
1001 | "name":"cmda6", | |
1002 | "size":2 | |
1003 | }, | |
1004 | { | |
1005 | "description":"Changes the current map footer loading the new one. The map must be refreshed afterwards in order to work fine.", | |
1006 | "numParams":1, | |
1007 | "name":"setmapfooter", | |
1008 | "size":3 | |
1009 | }, | |
1010 | { | |
1011 | "description":"Makes the specified sprite go up one level at selected bank and map.\r\n", | |
1012 | "numParams":4, | |
1013 | "name":"spritelevelup", | |
1014 | "size":6 | |
1015 | }, | |
1016 | { | |
1017 | "description":"Restores the original level, at selected bank and map, for the specified sprite.", | |
1018 | "numParams":3, | |
1019 | "name":"restorespritelevel", | |
1020 | "size":5 | |
1021 | }, | |
1022 | { | |
1023 | "description":"Creates a virtual sprite in the current map.", | |
1024 | "numParams":6, | |
1025 | "name":"createsprite", | |
1026 | "size":9 | |
1027 | }, | |
1028 | { | |
1029 | "description":"Changes a facing of a virtual sprite.", | |
1030 | "numParams":2, | |
1031 | "name":"spriteface2", | |
1032 | "size":3 | |
1033 | }, | |
1034 | { | |
1035 | "description":"Prepares a door to be opened.", | |
1036 | "numParams":2, | |
1037 | "name":"setdooropened", | |
1038 | "size":5 | |
1039 | }, | |
1040 | { | |
1041 | "description":"Prepares a door to be closed.", | |
1042 | "numParams":2, | |
1043 | "name":"setdoorclosed", | |
1044 | "size":5 | |
1045 | }, | |
1046 | { | |
1047 | "description":"Changes the state of the selected door.", | |
1048 | "numParams":0, | |
1049 | "name":"doorchange", | |
1050 | "size":1 | |
1051 | }, | |
1052 | { | |
1053 | "description":"Prepares a door to be opened. No animation.", | |
1054 | "numParams":2, | |
1055 | "name":"setdooropened2", | |
1056 | "size":5 | |
1057 | }, | |
1058 | { | |
1059 | "description":"Prepares a door to be closed. No animation.", | |
1060 | "numParams":2, | |
1061 | "name":"setdoorclosed2", | |
1062 | "size":5 | |
1063 | }, | |
1064 | { | |
1065 | "description":"This command is currently under investigation. No detailed information is available at this time.", | |
1066 | "numParams":4, | |
1067 | "name":"cmdb1", | |
1068 | "size":7 | |
1069 | }, | |
1070 | { | |
1071 | "description":"This command is currently under investigation. No detailed information is available at this time.", | |
1072 | "numParams":0, | |
1073 | "name":"cmdb2", | |
1074 | "size":1 | |
1075 | }, | |
1076 | { | |
1077 | "description":"Checks the actual amount of coins and stores it on a specified variable.", | |
1078 | "numParams":1, | |
1079 | "name":"checkcoins", | |
1080 | "size":3 | |
1081 | }, | |
1082 | { | |
1083 | "description":"Gives the player a specified quantity of coins.", | |
1084 | "numParams":1, | |
1085 | "name":"givecoins", | |
1086 | "size":3 | |
1087 | }, | |
1088 | { | |
1089 | "description":"Removes a specified quantity of coins.", | |
1090 | "numParams":1, | |
1091 | "name":"removecoins", | |
1092 | "size":3 | |
1093 | }, | |
1094 | { | |
1095 | "description":"Prepares to start a battle with a specified Pok\u00e9mon, level and item.", | |
1096 | "numParams":3, | |
1097 | "name":"setwildbattle", | |
1098 | "size":6 | |
1099 | }, | |
1100 | { | |
1101 | "description":"Triggers the battle specified by setbattle.", | |
1102 | "numParams":0, | |
1103 | "name":"dowildbattle", | |
1104 | "size":1 | |
1105 | }, | |
1106 | { | |
1107 | "description":"Jumps to the specified value - value at 0x020375C4 in RAM, continuing execution from there.", | |
1108 | "numParams":1, | |
1109 | "name":"setvirtualaddress", | |
1110 | "size":5 | |
1111 | }, | |
1112 | { | |
1113 | "description":"Jumps to a custom function.", | |
1114 | "numParams":1, | |
1115 | "name":"virtualgoto", | |
1116 | "size":5 | |
1117 | }, | |
1118 | { | |
1119 | "description":"Calls a custom function.", | |
1120 | "numParams":1, | |
1121 | "name":"virtualcall", | |
1122 | "size":5 | |
1123 | }, | |
1124 | { | |
1125 | "description":"Jumps to a custom function, conditional version.", | |
1126 | "numParams":2, | |
1127 | "name":"virtualgotoif", | |
1128 | "size":6 | |
1129 | }, | |
1130 | { | |
1131 | "description":"Calls a custom function, conditional version.", | |
1132 | "numParams":2, | |
1133 | "name":"virtualcallif", | |
1134 | "size":6 | |
1135 | }, | |
1136 | { | |
1137 | "description":"Prepares a pointer to dialogue text for use.", | |
1138 | "numParams":1, | |
1139 | "name":"virtualmsgbox", | |
1140 | "size":5 | |
1141 | }, | |
1142 | { | |
1143 | "description":"Prepares a pointer to dialogue text for use.", | |
1144 | "numParams":1, | |
1145 | "name":"virtualloadpointer", | |
1146 | "size":5 | |
1147 | }, | |
1148 | { | |
1149 | "description":"Stores a custom string within a buffer.", | |
1150 | "numParams":2, | |
1151 | "name":"virtualbuffer", | |
1152 | "size":6 | |
1153 | }, | |
1154 | { | |
1155 | "description":"Shows the coin counter on set coordinates.", | |
1156 | "numParams":2, | |
1157 | "name":"showcoins", | |
1158 | "size":3 | |
1159 | }, | |
1160 | { | |
1161 | "description":"Hides the coin counter.", | |
1162 | "numParams":2, | |
1163 | "name":"hidecoins", | |
1164 | "size":3 | |
1165 | }, | |
1166 | { | |
1167 | "description":"Updates the amount of coins displayed in the coin counter.", | |
1168 | "numParams":2, | |
1169 | "name":"updatecoins", | |
1170 | "size":3 | |
1171 | }, | |
1172 | { | |
1173 | "description":"This command is currently under investigation. No detailed information is available at this time.", | |
1174 | "numParams":1, | |
1175 | "name":"cmdc3", | |
1176 | "size":2 | |
1177 | }, | |
1178 | { | |
1179 | "description":"Warps the player to another map.", | |
1180 | "numParams":5, | |
1181 | "name":"warp6", | |
1182 | "size":8 | |
1183 | }, | |
1184 | { | |
1185 | "description":"Waits for cry to finish.", | |
1186 | "numParams":0, | |
1187 | "name":"waitcry", | |
1188 | "size":1 | |
1189 | }, | |
1190 | { | |
1191 | "description":"Stores the name of a PC box within a specified buffer.", | |
1192 | "numParams":2, | |
1193 | "name":"bufferboxname", | |
1194 | "size":4 | |
1195 | }, | |
1196 | { | |
1197 | "description":"Changes the text color used. FR/LG only.", | |
1198 | "numParams":1, | |
1199 | "name":"textcolor", | |
1200 | "size":2 | |
1201 | }, | |
1202 | { | |
1203 | "description":"This command is currently under investigation. No detailed information is available at this time.", | |
1204 | "numParams":0, | |
1205 | "name":"cmdc8", | |
1206 | "size":1 | |
1207 | }, | |
1208 | { | |
1209 | "description":"This command is currently under investigation. No detailed information is available at this time.", | |
1210 | "numParams":0, | |
1211 | "name":"cmdc9", | |
1212 | "size":1 | |
1213 | }, | |
1214 | { | |
1215 | "description":"Changes the graphics used by msgboxes in order to make them look like signs. FR/LG only.", | |
1216 | "numParams":0, | |
1217 | "name":"signmsg", | |
1218 | "size":1 | |
1219 | }, | |
1220 | { | |
1221 | "description":"Clears the effect of the msgboxsign command. FR/LG only.", | |
1222 | "numParams":0, | |
1223 | "name":"normalmsg", | |
1224 | "size":1 | |
1225 | }, | |
1226 | { | |
1227 | "description":"Compares the value of a chosen hidden variable. FR/LG only.", | |
1228 | "numParams":2, | |
1229 | "name":"comparehiddenvar", | |
1230 | "size":4 | |
1231 | }, | |
1232 | { | |
1233 | "description":"Sets the specified Pok\u00e9mon in player's party as obedient.", | |
1234 | "numParams":1, | |
1235 | "name":"setobedience", | |
1236 | "size":3 | |
1237 | }, | |
1238 | { | |
1239 | "description":"Checks if the specified Pok\u00e9mon in player's party is obedient or not. The result is stored in LASTRESULT.", | |
1240 | "numParams":1, | |
1241 | "name":"checkobedience", | |
1242 | "size":3 | |
1243 | }, | |
1244 | { | |
1245 | "description":"Calculates the current location of the RAM script area and passes the execution to that offset.", | |
1246 | "numParams":0, | |
1247 | "name":"executeram", | |
1248 | "size":1 | |
1249 | }, | |
1250 | { | |
1251 | "description":"Sets the flag used to allow the player to fly to a specific place. FR/LG only.", | |
1252 | "numParams":1, | |
1253 | "name":"setworldmapflag", | |
1254 | "size":3 | |
1255 | }, | |
1256 | { | |
1257 | "description":"Warps the player to another map. Teleport effect.", | |
1258 | "numParams":5, | |
1259 | "name":"warpteleport2", | |
1260 | "size":8 | |
1261 | }, | |
1262 | { | |
1263 | "description":"Changes the catch location for a specified Pok\u00e9mon in player's party.", | |
1264 | "numParams":2, | |
1265 | "name":"setcatchlocation", | |
1266 | "size":4 | |
1267 | }, | |
1268 | { | |
1269 | "description":"This command is currently under investigation. No detailed information is available at this time.", | |
1270 | "numParams":1, | |
1271 | "name":"braille2", | |
1272 | "size":5 | |
1273 | }, | |
1274 | { | |
1275 | "description":"Stores a plural item name within a specified buffer. FR/LG only.", | |
1276 | "numParams":3, | |
1277 | "name":"bufferitems", | |
1278 | "size":6 | |
1279 | }, | |
1280 | { | |
1281 | "description":"This command is currently under investigation. No detailed information is available at this time.", | |
1282 | "numParams":1, | |
1283 | "name":"cmdd5", | |
1284 | "size":3 | |
1285 | }, | |
1286 | { | |
1287 | "description":"This command is currently under investigation. No detailed information is available at this time.", | |
1288 | "numParams":0, | |
1289 | "name":"cmdd6", | |
1290 | "size":1 | |
1291 | }, | |
1292 | { | |
1293 | "description":"This command is currently under investigation. No detailed information is available at this time.", | |
1294 | "numParams":5, | |
1295 | "name":"warp7", | |
1296 | "size":8 | |
1297 | }, | |
1298 | { | |
1299 | "description":"This command is currently under investigation. No detailed information is available at this time.", | |
1300 | "numParams":0, | |
1301 | "name":"cmdd8", | |
1302 | "size":1 | |
1303 | }, | |
1304 | { | |
1305 | "description":"This command is currently under investigation. No detailed information is available at this time.", | |
1306 | "numParams":0, | |
1307 | "name":"cmdd9", | |
1308 | "size":1 | |
1309 | }, | |
1310 | { | |
1311 | "description":"Hides a displayed box. Emerald only.", | |
1312 | "numParams":0, | |
1313 | "name":"hidebox2", | |
1314 | "size":1 | |
1315 | }, | |
1316 | { | |
1317 | "description":"This command is currently under investigation. No detailed information is available at this time.", | |
1318 | "numParams":1, | |
1319 | "name":"preparemsg3", | |
1320 | "size":5 | |
1321 | }, | |
1322 | { | |
1323 | "description":"Fades the screen in or out. Emerald only.", | |
1324 | "numParams":1, | |
1325 | "name":"fadescreen3", | |
1326 | "size":2 | |
1327 | }, | |
1328 | { | |
1329 | "description":"Stores the name of the selected trainer class within a specified buffer. Emerald only.", | |
1330 | "numParams":2, | |
1331 | "name":"buffertrainerclass", | |
1332 | "size":4 | |
1333 | }, | |
1334 | { | |
1335 | "description":"Stores the name of the selected trainer within a specified buffer. Emerald only.", | |
1336 | "numParams":2, | |
1337 | "name":"buffertrainername", | |
1338 | "size":4 | |
1339 | }, | |
1340 | { | |
1341 | "description":"Displays a Pok\u00e9nav call. Emerald only.", | |
1342 | "numParams":1, | |
1343 | "name":"pokenavcall", | |
1344 | "size":5 | |
1345 | }, | |
1346 | { | |
1347 | "description":"This command is currently under investigation. No detailed information is available at this time.", | |
1348 | "numParams":5, | |
1349 | "name":"warp8", | |
1350 | "size":8 | |
1351 | }, | |
1352 | { | |
1353 | "description":"Stores the name of the selected contest type within a specified buffer. Emerald only.", | |
1354 | "numParams":2, | |
1355 | "name":"buffercontestype", | |
1356 | "size":4 | |
1357 | }, | |
1358 | { | |
1359 | "description":"Stores a plural item name within a specified buffer. Emerald only.", | |
1360 | "numParams":3, | |
1361 | "name":"bufferitems2", | |
1362 | "size":6 | |
1363 | } | |
1364 | ] |