- 428
- Posts
- 5
- Years
- Zekko
- Seen Nov 21, 2023
Safari Zone Mode isn't activating.
I've entered the default Safari Zone, paying and talking to the NPC and entering as intended, but I'm in regular 3v3 battle mode instead of Safari Battle mode. I cannot throw rocks or Safari Balls. It works normally on unchanged Pokemon Essentials, so it could be one of these changes that's overriding the Safari Zone Battle data.
What's causing this error and how do I fix it?
I've entered the default Safari Zone, paying and talking to the NPC and entering as intended, but I'm in regular 3v3 battle mode instead of Safari Battle mode. I cannot throw rocks or Safari Balls. It works normally on unchanged Pokemon Essentials, so it could be one of these changes that's overriding the Safari Zone Battle data.
What's causing this error and how do I fix it?
Code:
def pbBattleOnStepTaken(repel_active)
return if $player.able_pokemon_count == 0
return if !$PokemonEncounters.encounter_possible_here?
encounter_type = $PokemonEncounters.encounter_type
return if !encounter_type
return if !$PokemonEncounters.encounter_triggered?(encounter_type, repel_active)
$game_temp.encounter_type = encounter_type
encounter = $PokemonEncounters.choose_wild_pokemon(encounter_type)
EventHandlers.trigger(:on_wild_species_chosen, encounter)
if $PokemonEncounters.allow_encounter?(encounter, repel_active)
encounter2 = $PokemonEncounters.choose_wild_pokemon(encounter_type)
EventHandlers.trigger(:on_wild_species_chosen, encounter2)
encounter3 = $PokemonEncounters.choose_wild_pokemon(encounter_type)
EventHandlers.trigger(:on_wild_species_chosen, encounter3)
WildBattle.start(encounter, encounter2, encounter3, can_override: true)
$game_temp.encounter_type = nil
$game_temp.encounter_triggered = true
end
$game_temp.force_single_battle = false
end
Code:
def setBattleMode(mode)
@sideSizes =
case mode
when "triple", "3v3" then [3, 3]
when "3v2" then [3, 2]
when "3v1" then [3, 1]
when "2v3" then [2, 3]
when "double", "2v2" then [2, 2]
when "2v1" then [2, 1]
when "1v3" then [1, 3]
when "1v2" then [1, 2]
else [3, 3] # 3v3 new default
end
end