• 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.
Resource icon

SOS Battles 2020-09-03

Pokémon Essentials Version
v18 ➖
w7AuFvc.gif
This script adds in SOS Battles, the added mechanic from Alola, where Pokémon have a chance of calling for aid while in battle.
This version of the script does not implement special weather based encounters but does have a method that can be edited to do so.
The script also defines the manually used effect of the Adrenaline Orb item.

To use it, you must add species that are able to SOS call in the SOS_CALL_RATES hash. The key is the species symbol, and the value is the rate in percentage the mon will call at. AKA. :BULBASAUR=>100 is a valid entry

Optionally, you may add species to SOS_CALL_MONS, the species that the mon will call for. Add more entries of the same species to make them more likely. The Key is the species symbol, and the value is an array of species. AKA. :BULBASAUR=>[:BULBASAUR,:BULBASAUR,:BULBASAUR,:IVYSAUR,:IVYSAUR,:VENUSAUR] is a valid entry.
If you don't have an entry for a calling species, it will call another mon of the same species as itself.

To implement the doubled EV points in an SOS battle, there is an additional edit to def pbGainEVsOne in PokeBattle_Battle
under:
Code:
Expand Collapse Copy
    # Double EV gain because of Pokérus
    if pkmn.pokerusStage>=1   # Infected or cured
      evYield.collect! { |a| a*2 }
    end
put:
Code:
Expand Collapse Copy
    if @sosbattle
      evYield.collect! { |a| a*2 }
    end

If you wish to implement special called allies, edit the array returned by pbSpecialSOSMons. By default, it just passes through the regular array used. The method also takes the calling battler, if you wish to check its properties.

v17 version (no longer supported):
Credits
Just me.
Author
Vendily
Downloads
1,035
Views
5,144
First release
Last update

Ratings

5.00 star(s) 1 ratings

More resources from Vendily

Latest updates

  1. Bug fix with catching SOS-called mons

    Basically, the game would crash if you actually tossed a ball at it. And I only had the time to...
  2. v18 Compatible

    The script has been updated to work with v18, but only in Xv1 and Xv2 battles. The v17 version...
Back
Top