if by 'Like that one' you mean a horde battle then you're out of luck, I don't know how sweet scent works. if you are encountering an actual error PLEASE REPORT IT BECAUSE I'M NOT PSYCHIC!
if you can't escape that means you either got Mean Looked (Very unlikely) or the pokemon you're testing with is too weak, it has nothing to do with my script's code or anything of the sort.
Sorry, my question was badly written :( and I should've have to give you details about it, sorry. I was trying to work on Sweet Scent script to give hordes instead of regular encounter, and I had an error about a "()" missing argument of something like that, but I managed to pull it through!
Okay so Sweet Scent works using the pbEncounter(enctype) script, which is basically used for all the static encounters, like Headbutt or RockSmash. this is the script:
Spoiler:
def pbEncounter(enctype)
$PokemonTemp.encounterType = enctype
encounter1 = $PokemonEncounters.pbEncounteredPokemon(enctype)
encounter1 = EncounterModifier.trigger(encounter1)
return false if !encounter1
if $PokemonGlobal.partner
encounter2 = $PokemonEncounters.pbEncounteredPokemon(enctype)
encounter2 = EncounterModifier.trigger(encounter2)
return false if !encounter2
pbDoubleWildBattle(encounter1[0],encounter1[1],encounter2[0],encounter2[1])
else
pbWildBattle(encounter1[0],encounter1[1])
end
$PokemonTemp.encounterType = -1
return true
end
$PokemonTemp.encounterType = enctype
encounter1 = $PokemonEncounters.pbEncounteredPokemon(enctype)
encounter1 = EncounterModifier.trigger(encounter1)
return false if !encounter1
if $PokemonGlobal.partner
encounter2 = $PokemonEncounters.pbEncounteredPokemon(enctype)
encounter2 = EncounterModifier.trigger(encounter2)
return false if !encounter2
pbDoubleWildBattle(encounter1[0],encounter1[1],encounter2[0],encounter2[1])
else
pbWildBattle(encounter1[0],encounter1[1])
end
$PokemonTemp.encounterType = -1
return true
end
So, using this, I tried to make a version of it, but with your pbModWildBattle. My first try failed and that's when I posted that comment (The error was from this and not your script, sorry :c) and now that I got back from class I tried another thing and it works now<3
First of all, I did this script and placed it below pbEncounter(enctype)
Spoiler:
def pbEncounterS(enctype)
$PokemonTemp.encounterType = enctype
encounter1 = $PokemonEncounters.pbEncounteredPokemon(enctype)
encounter1 = EncounterModifier.trigger(encounter1)
return false if !encounter1
encounter2 = $PokemonEncounters.pbEncounteredPokemon(enctype)
encounter2 = EncounterModifier.trigger(encounter2)
return false if !encounter2
encounter3 = $PokemonEncounters.pbEncounteredPokemon(enctype)
encounter3 = EncounterModifier.trigger(encounter3)
return false if !encounter3
encounter4 = $PokemonEncounters.pbEncounteredPokemon(enctype)
encounter4 = EncounterModifier.trigger(encounter4)
return false if !encounter4
encounter5 = $PokemonEncounters.pbEncounteredPokemon(enctype)
encounter5 = EncounterModifier.trigger(encounter5)
return false if !encounter5
pbModWildBattle(1,5,encounter1[0],encounter1[1],encounter2[0],encounter2[1],encounter3[0],encounter3[1],encounter4[0],encounter4[1],encounter5[0],encounter5[1])
$PokemonTemp.encounterType = -1
return true
end
$PokemonTemp.encounterType = enctype
encounter1 = $PokemonEncounters.pbEncounteredPokemon(enctype)
encounter1 = EncounterModifier.trigger(encounter1)
return false if !encounter1
encounter2 = $PokemonEncounters.pbEncounteredPokemon(enctype)
encounter2 = EncounterModifier.trigger(encounter2)
return false if !encounter2
encounter3 = $PokemonEncounters.pbEncounteredPokemon(enctype)
encounter3 = EncounterModifier.trigger(encounter3)
return false if !encounter3
encounter4 = $PokemonEncounters.pbEncounteredPokemon(enctype)
encounter4 = EncounterModifier.trigger(encounter4)
return false if !encounter4
encounter5 = $PokemonEncounters.pbEncounteredPokemon(enctype)
encounter5 = EncounterModifier.trigger(encounter5)
return false if !encounter5
pbModWildBattle(1,5,encounter1[0],encounter1[1],encounter2[0],encounter2[1],encounter3[0],encounter3[1],encounter4[0],encounter4[1],encounter5[0],encounter5[1])
$PokemonTemp.encounterType = -1
return true
end
And then, you just have to go the Sweet Scent FieldMove section, search for:
Code:
!pbEncounter(enctype)
And change it to:
Code:
!pbEncounterS(enctype)
And it's done, with this you can have hordes on Pokémon Essentials :)