• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Better AI system

Yeah and it only happen in 3v1 battle so like I said it's not because of Dynamax (since they use 3v1 for raid battle)

I fixed that right now. ill release a new script but the will o' wisp thing is strange... it might be because of the random element of the final move choice (if no good moves are present)
 
What h appened? It seems to be this script in particular that causes the error.
[PokeCommunity.com] Better AI system


I checked and removing the script fixes the error.
 
Getting a syntax error on line 722 with the new script. I believe that is due to line 475, when commented out the script works for me.

For Will O' Wisp, its a Trainer with Skill 200 a Drought Torkoal that had has Solar Beam, Will O Wisp, Fireblast and Earthquake against a Charizard. Shouldn't it theoretically default to the Sunny Day boosted Fire Blast? Basically it has a moves that are power of 30 (Solar Beam Quad Resisted), Does Nothing, 135 (Fire Blast STAB+Sunny Day/2), and does nothing against said Charizard.
 
Last edited:
Is it because I'm using the official Gen8 project on Maruno's github? Do you have a fix for it?

Maybe...
Replace line 117 with
Code:
if pbGetOwnerFromBattlerIndex(idxBattler).skill
      skill = @battle.pbGetOwnerFromBattlerIndex(idxBattler).skill
    end
 
For me, the script works perfectly in trainer battles, but in wild battles there is an error message every turn and the wild pokemon doesn't use any move
 
Ive been getting the same error as 5QU3ET0N

Whenever I go into a wild battle and select a move, this error pops up and the wild Pokemon doesnt make a move.
https://ibb.co/2qdXRjJ

Ill have a look at it :) thx for posting the screen. I love your battle ui btw
 
Back
Top