Frequently Asked Questions: Difference between revisions

m Clarify scripting changes to force a default team
m Fix section link
 
(7 intermediate revisions by 2 users not shown)
Line 118: Line 118:


=== Can new moves be added? ===
=== Can new moves be added? ===
The move list cannot be expanded at the moment, but you can replace some of the unused moves (named [M:D1]). Keep in mind that not all the [M:D1] moves are unused. Here’s a list with the known [M:D1] moves:
The move list cannot be expanded at the moment, but there's some unused move slots that can be replaced without any side effects. They are the following:


* 361: Excavate
<div class="mw-collapsible mw-collapsed">
* 362: Spin Slash
<div style="font-weight:bold;line-height:1.6;">List of unused moves (click the button to the right to expand)</div>
<div class="mw-collapsible-content">
* 361: Excavate (same effect as Rock Smash)
* 362: Spin Slash (same effect as Cut)
* 379: Observer Orb (no effect, Rescue Team leftover)
* 395: Reviver Orb (no effect, Rescue Team leftover)
* 398: Famish (depletes the target's belly)
* 402: Possess Orb (no effect, Rescue Team leftover)
* 404: attack animation with no sound effect (safe to edit)
* 404: attack animation with no sound effect (safe to edit)
* 408: Toss Orb (no effect, Rescue Team leftover)
* 411: attack animation with no sound effect (safe to edit)
* 411: attack animation with no sound effect (safe to edit)
* 413: walking animation with no sound effect (safe to edit)
* 413: walking animation with no sound effect (safe to edit)
Line 132: Line 140:
* 419: walking animation with no sound effect (safe to edit)
* 419: walking animation with no sound effect (safe to edit)
* 420: walking animation with no sound effect (safe to edit)
* 420: walking animation with no sound effect (safe to edit)
* 557: generic move sound effect ('''maybe''' safe to edit, not confirmed)
* 558: generic move sound effect ('''maybe''' safe to edit, not confirmed)
</div>
</div>
There's also a set of moves used for special purposes, which you can replace if you're certain their effect will never be called in your hack (for example, if you remove the Secret Bazaar, you can replace moves 421-423). These moves are the following:
<div class="mw-collapsible mw-collapsed">
<div style="font-weight:bold;line-height:1.6;">List of special moves (click the button to the right to expand)</div>
<div class="mw-collapsible-content">
* 357: Bide second half
** Displays a different message ID when used. This should be changed if the move is repurposed.
* 358: Revenge second half
** Displays a different message ID when used. This should be changed if the move is repurposed.
* 359: Avalanche second half
** Displays a different message ID when used. This should be changed if the move is repurposed.
* 363: See-Trap Orb
* 364: Mug Orb
* 365: Rebound Orb
* 366: Lob Orb
* 367: Switcher Orb
* 368: Blowback Orb
* 369: Warp Orb
* 370: Transfer Orb
* 371: Slow Orb
* 372: Quick Orb
* 373: Luminous Orb
* 374: Petrify Orb
* 375: Stayaway Orb
* 376: Pounce Orb
* 377: Trawl Orb
* 378: Cleanise Orb
* 380: Decoy Orb
* 381: Slumber Orb
* 382: Totter Orb
* 383: Two-edge Orb
* 384: Silence Orb
* 385: Escape Orb
* 386: Scanner Orb
* 387: Radar Orb
* 388: Drought Orb
* 389: Trapbust Orb
* 390: Rollcall Orb
* 391: Invisify Orb
* 392: One-Shot Orb
* 393: Identify Orb
* 396: Shocker Orb
* 397: Sizebust Orb
* 399: One-Room Orb
* 400: Fill-In Orb
* 401: Trapper Orb
* 403: Itemizer Orb
* 406: Hurl Orb
* 407: Mobile Orb
* 409: Stairs Orb
* 410: Longtoss Orb
* 412: Pierce Orb
* 421: Secret Bazaar Escape
* 421: Secret Bazaar Escape
* 422: Secret Bazaar Cleanse
* 422: Secret Bazaar Cleanse
Line 141: Line 206:
* 428: All-Hit Orb
* 428: All-Hit Orb
* 429: Foe-Seal Orb
* 429: Foe-Seal Orb
* 467: Judgement
* 543: Weather Ball Sun
* 543: Weather Ball Sun
* 544: Weather Ball Hail
* 544: Weather Ball Hail
Line 156: Line 220:
* 555: Skull Bash second half
* 555: Skull Bash second half
* 556: Ghost-type Curse animation
* 556: Ghost-type Curse animation
* 557: generic move sound effect
</div>
* 558: generic move sound effect
</div>
Of course, you could also replace existing moves. If you choose to do so, keep in mind that some moves have hardcoded checks that will cause problems if you replace them, so you should probably shouldn't touch those. Here's the list of moves with known hardcoded behavior:
 
If you need even more slots, you can also replace existing regular moves with entirely new ones. If you choose to do so, keep in mind that some moves have hardcoded checks that will cause problems if you replace them, so you should probably shouldn't touch those. Here's the list of moves with known hardcoded behavior:


<div class="mw-collapsible mw-collapsed">
<div style="font-weight:bold;line-height:1.6;">List of moves with hardcoded effects (click the button to the right to expand)</div>
<div class="mw-collapsible-content">
* 009: Thrash (makes the user attack in a random direction)
* 031: Weather Ball (has a special type check in <code>GetMoveTypeForMonster</code>)
* 031: Weather Ball (has a special type check in <code>GetMoveTypeForMonster</code>)
* 064: Thunder (has a special accuracy check in <code>MoveHitCheck</code>)
* 064: Thunder (has a special accuracy check in <code>MoveHitCheck</code>)
Line 170: Line 239:
* 471: Natural Gift (has a special check in <code>GetMoveTypeForMonster</code>)
* 471: Natural Gift (has a special check in <code>GetMoveTypeForMonster</code>)
* 526: Lunar Dance (has a hardcoded effect to set the user to 1 HP after using the move)
* 526: Lunar Dance (has a hardcoded effect to set the user to 1 HP after using the move)
</div>
</div>


=== How can I edit the way an item / move effect works? ===
=== How can I edit the way an item / move effect works? ===
Line 220: Line 291:
Yes, you can apply the [[ChooseStarter]] patch to do this. If you also want to remove the personality test you can also apply the [[SkipQuiz]] patch.
Yes, you can apply the [[ChooseStarter]] patch to do this. If you also want to remove the personality test you can also apply the [[SkipQuiz]] patch.


If you want to skip the quiz and force a specific player and partner combination, see “[[FAQ#Can I skip the personality test in my hack and just force a certain starting team?|Can I skip the personality test in my hack and just force a certain starting team?]]” in the scripting section.
If you want to skip the quiz and force a specific player and partner combination, see “[[Frequently Asked Questions#Can I skip the personality test and just force a certain starting team?|Can I skip the personality test and just force a certain starting team?]]” in the scripting section.


=== Can I expand the list of starters (e.g. to add starters from later generations?) ===
=== Can I expand the list of starters (e.g. to add starters from later generations?) ===
Line 232: Line 303:
These lines must be placed within <code>def 0 {</code>.
These lines must be placed within <code>def 0 {</code>.


'''Note''': Evolving your starters might cause them to be removed from the active team, and you can only add them back if [[Performance Progress Flags|performance progress flags 7 and 20]] are enabled.
'''Note''': Evolving any pokémon currently in your active team will disband it, which will cause your starters to be removed from the active team. You can only add them back if [[Performance Progress Flags|performance progress flags 7 and 20]] are enabled. You can add two more lines similar to the one used above to enable flag 10 to enable these two as well, although bear in mind that enabling these two flags has other side effects (check the page linked earlier for details).


=== Is there a way to mass edit data? ===
=== Is there a way to mass edit data? ===
Line 261: Line 332:
[[File:Jump to scene.png|none|thumb|Adding the call to the debug scene chooser to EVENT_DIVIDE]]
[[File:Jump to scene.png|none|thumb|Adding the call to the debug scene chooser to EVENT_DIVIDE]]


=== Can I skip the personality test in my hack and just force a certain starting team? ===
=== Can I skip the personality test and just force a certain starting team? ===
Yes, in order to do this you will have to do two things:
Yes, in order to do this you will have to do two things: