Jump to content

How to make Omega Ruby Trainers harder


Recommended Posts

I've just begin making my first Omega Ruby rom hack, and wanted to know how to make the AI better for gym leader and other important trainer? I've seen something. on the pk3ds thread about AI values of 87 and 7, but wanted some more clarification about what to do to increase the difficulty of the game.

Link to comment
Share on other sites

  • 4 months later...

The AI value is a byte composed of one-bit flags, add up the values of the flags you want. If the value is 0, the game will basically choose a move at random. With each active flag, that random behavior is modified in some way.

Note that the numbers on the left are decimal values

1 - Will not use ineffective moves (e.g. Earthquake against a Flying Type), will be more likely to use Super Effective moves
2 - Checks to see if a move will have no effect (e.g. Thunder Wave on a Pokemon that is already Paralyzed), or if a move will very possibly have no effect (e.g. if the opponent's Evasion is raised, more likely to use something like Swift or Aura Sphere).
4 - If the Pokemon has a move that will definitely knock out the opponent if it hits, it will use it. Will always select a high-priority move if it will do so (if it has multiple options)
8 - On the first turn, will always use a Status move (Thunder Wave, Light Screen, Dragon Dance, etc)

---

I'm not sure if these actually do anything in the 3DS games, I do know they did in the GBA era:


16 - Will use risky moves more often. This includes suicide moves like Explosion, OHKO moves like Horn Drill, moves conditional on opponent actions like Focus Punch or Mirror Move, moves with a high crit chance, Belly Drum, etc.
32 - Prefers to use strongest damaging moves 

---
64 - Likes to use Baton Pass (so basically only useful on a trainer that is doing a Baton Pass chain.
128 - Double/Triple Battle AI (if not enabled, AI will do things like attack its teammate in Double/Triple battles).

 

So basically all trainers you want to have at decimal 7 (= 1+2+4).
If the trainer is a Double or Triple Battle trainer, you want the value set to 128 + 7 = 135.

I suspect that the person you are quoting was using the hexadecimal representation, decimal 135 is hexadecimal 87

Link to comment
Share on other sites

  • 3 months later...
On 7/7/2021 at 9:12 PM, ABZB said:

The AI value is a byte composed of one-bit flags, add up the values of the flags you want. If the value is 0, the game will basically choose a move at random. With each active flag, that random behavior is modified in some way.

Note that the numbers on the left are decimal values

1 - Will not use ineffective moves (e.g. Earthquake against a Flying Type), will be more likely to use Super Effective moves
2 - Checks to see if a move will have no effect (e.g. Thunder Wave on a Pokemon that is already Paralyzed), or if a move will very possibly have no effect (e.g. if the opponent's Evasion is raised, more likely to use something like Swift or Aura Sphere).
4 - If the Pokemon has a move that will definitely knock out the opponent if it hits, it will use it. Will always select a high-priority move if it will do so (if it has multiple options)
8 - On the first turn, will always use a Status move (Thunder Wave, Light Screen, Dragon Dance, etc)

---

I'm not sure if these actually do anything in the 3DS games, I do know they did in the GBA era:


16 - Will use risky moves more often. This includes suicide moves like Explosion, OHKO moves like Horn Drill, moves conditional on opponent actions like Focus Punch or Mirror Move, moves with a high crit chance, Belly Drum, etc.
32 - Prefers to use strongest damaging moves 

---
64 - Likes to use Baton Pass (so basically only useful on a trainer that is doing a Baton Pass chain.
128 - Double/Triple Battle AI (if not enabled, AI will do things like attack its teammate in Double/Triple battles).

 

So basically all trainers you want to have at decimal 7 (= 1+2+4).
If the trainer is a Double or Triple Battle trainer, you want the value set to 128 + 7 = 135.

I suspect that the person you are quoting was using the hexadecimal representation, decimal 135 is hexadecimal 87

OOH.. shit so thats how it works.. i figured the higher it was the better/harder the AI will be. that answers some questions. hm :/ so.. just keep Trainers around 8 then?

Edited by Freeasabird420183
Link to comment
Share on other sites

On 10/23/2021 at 4:41 PM, Freeasabird420183 said:

OOH.. shit so thats how it works.. i figured the higher it was the better/harder the AI will be. that answers some questions. hm :/ so.. just keep Trainers around 8 then?

Basically the default "Best AI" value is 7, except for Double and Triple Battles, where you want 135, (7 + 128 for the "turn on Double Battle awareness").

Other values only matter if you make a trainer with a team that needs to do something very specific to work:

If, for a particular trainer, you want them to always start with a setup move on the first turn whenever possible, then add 8 to whichever of those is appropriate (15 for single and 143 for double/triple).

Similarly, if you make a trainer who is doing a Baton Pass strategy, you'll want to add 64 to that value (so 71 for single and 199 for double, or 79 for single and 207 for double if combined with the previous paragraph).

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.
Note: Your post will require moderator approval before it will be visible.

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.

 Share

×
×
  • Create New...