• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Apologies if you've had troubles connecting to the site, you may need a VPN to access it. Staff are also facing issues connecting, so if it's urgent please message Cat on-site or through Discord directly.
  • Hey Guest, staff applications are open! If you are interested in becoming a forum staff member and/or Discord staff member, please apply through this Google Form before April 2! You can also message Cat with any questions.
Resource icon

v21.1 AI In-Fighting 1.0

This resource pertains to version 21.1 of Pokémon Essentials.
Pokémon Essentials Version
v21.1 ✅
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 made to the base scripts.
In def pbGetMoveScores in script section AI_ChooseMove
next if target_data.targets_foe && !@user.battler.opposes?(b) becomes
next if target_data.targets_foe && !@user.battler.opposes?(b) && !@trainer.should_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.
Credits
Vendily
Author
Vendily
Downloads
426
Views
2,898
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from Vendily

Back
Top