• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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.

Script: [v21] AI In-Fighting

This script adds in in-fighting between AI controlled battlers, such as Seviper and Zangoose fighting each other in horde encounters, or Mareanie targeting Corsola when summoned by SOS. (This script does not add Horde or SOS battles.)
It also allows the feature to be given to Trainers, though unlike wild battles, Trainer controlled battlers will not actively seek out to attack allies, they are just allowed to target them, and are not negatively scored if they do so.

An additional modification is necessary to make to the base scripts.
In def pbGetMoveScores in script section AI_ChooseMove, next if target_data.targets_foe && [email protected]?(b) becomesnext if target_data.targets_foe && [email protected]?(b) && [email protected]_in_fight?(@user, b)

Trainer Types or Wild Pokémon Species with the Infighting flag will be allowed to target allies.Wild Pokémon Species with the InFighting_SPECIES flag will specifically target SPECIES allies at an increased rate. The InFighting_SPECIES flag automatically applies the Infighting Flag. Only the Species with the InFighting_SPECIES flag will target allies.

Download:
 
Back
Top