Jump to content

Code for battle pokemon priority


Recommended Posts

I noticed in Reborn that several important battles have the trainers sending out a specific pokemon when all the others are fainted, and will deliberately save this one for last.  Some fights which call it are: 

Spoiler

- First Lin battle with Pulse Abra

- Last Solaris battle with Pulse2 Mega Garchomp

- Courrin-Rouge sidequest battle with Magikarp

- Anomaly Arceus Postgame battle with Pulse Arceus

 

What does that code look like?  I was hoping to extend it to some other trainers.

Link to comment
Share on other sites

  • Global Mods

As far as I can tell, it's controlled by the Last_Ace_Switch being on in PokeBattle_AI_2, which is then turned on/off as part of the map events that initiate those battles. 

 

e.g for the clawitzer battle, this is in the map event
image.png.99a3187c95add016cff382838cedd6eb.png

Then in the AI there's this, which'll just give super low switch priority to whatevers last in the trainers party while the switch is on
image.png.0258cd9bca336475488347da7da4969a.png

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...