Pokehero22:
Changing battle backgrounds is a new feature in Pokemon Essentials. See the documentation under "
Battle Backgrounds" for details.
Grifstar:
There are currently no mechanisms for enabling the two features you mention. The closest possible to getting the functionality of the second feature is below:
Edit the "blacklist" at the top of the script section "PokemonOrgBattle", a list of
species that are never allowed to participate in a battle.
On line 532 of PokemonOrgBattle, there is a check determining whether a Pokemon is eligible for a certain battle, in this case by checking its level against a maximum:
Code:
elsif pokemon.level<=maxlevel
eligibility.push(1) # ineligible
Change that to the following:
Code:
elsif pokemon.level<=maxlevel && pbIsEligible?(pokemon)
eligibility.push(1) # ineligible
That adds a function call to a not-yet-defined function, "pbIsEligible?", which will determine a Pokemon's eligibility. The function pbIsEligible? could be defined like this (put it at the bottom of the script section PokemonOrgBattle):
Code:
def pbIsEligible?(pokemon)
# If variable 30 is set to 1
if $game_variables[30]==1
# Only water types are eligible
if pokemon.type1==PBTypes::WATER || pokemon.type2==PBTypes::WATER
return true
end
return false
end
# If variable 30 is set to 2
if $game_variables[30]==2
# Only fire types are eligible
if pokemon.type1==PBTypes::FIRE || pokemon.type2==PBTypes::FIRE
return true
end
return false
end
# Variable wasn't set, assume Pokemon is eligible
return true
end
The eligibility of the Pokemon depends on the current value of variable number 30. Before letting the player choose a Pokemon, you set the variable to the appropriate value depending on the type of battle (1 for water types, 2 for fire types, 3 for all Pokemon).
I hope this helps.