• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Double wild Pokemon battles without partner Trainers?

1,405
Posts
11
Years
  • Pretty much what the title asks. I'm trying to make it so in certain areas you always encounter 2 wild pokemon at once instead of just 1, but i have no idea what to change and stuff.
     

    Maruno

    Lead Dev of Pokémon Essentials
    5,286
    Posts
    16
    Years
    • Seen May 3, 2024
    That depends entirely on what you mean by "certain areas", and indeed what you mean by "always" (the dark grass in Gen 5 only had a chance of double wild battles).
     
    1,405
    Posts
    11
    Years
  • That depends entirely on what you mean by "certain areas", and indeed what you mean by "always" (the dark grass in Gen 5 only had a chance of double wild battles).

    for example if Map ID is 6, then every(100% chance) wild battle you have will be a double battle.
     
    1,224
    Posts
    10
    Years
  • In PokemonField, look for def pbEncounter(enctype). This is the line you'll edit

    Code:
    if $PokemonGlobal.partner && $Trainer.ablePokemonCount>1

    Put whatever condition in there.
     
    1,405
    Posts
    11
    Years
  • In PokemonField, look for def pbEncounter(enctype). This is the line you'll edit

    Code:
    if $PokemonGlobal.partner && $Trainer.ablePokemonCount>1

    Put whatever condition in there.

    tried both
    Code:
    if $game_map.map_id== 3
    and
    Code:
    if $game_switches[64]

    but neither of them made double wild pokemon battles. sorry if i'm noob at this :/
     
    1,224
    Posts
    10
    Years
  • tried both
    Code:
    if $game_map.map_id== 3
    and
    Code:
    if $game_switches[64]

    but neither of them made double wild pokemon battles. sorry if i'm noob at this :/

    Code:
    if ($PokemonGlobal.partner || $game_map.map_id== 3 ||  $game_switches[64])  && $Trainer.ablePokemonCount>1

    this should work, I'm pretty sure
     
    148
    Posts
    11
    Years
  • Code:
    if ($PokemonGlobal.partner || $game_map.map_id== 3 ||  $game_switches[64])  && $Trainer.ablePokemonCount>1

    this should work, I'm pretty sure

    I wanted to try this out.

    Line 1233 of PokemonField
    Code:
    if $PokemonGlobal.partner

    made it

    Code:
    if ($PokemonGlobal.partner || $game_map.map_id== 3 ||  $game_switches[64])  && $Trainer.ablePokemonCount>1

    Didn't make any battle double. Unless I placed t wrong.
     
    1,405
    Posts
    11
    Years
  • Code:
    if ($PokemonGlobal.partner || $game_map.map_id== 3 ||  $game_switches[64])  && $Trainer.ablePokemonCount>1

    this should work, I'm pretty sure

    didn't work for me either. i guess it has something to do with how Essentials creates double wild pokemon battles.
     

    Maruno

    Lead Dev of Pokémon Essentials
    5,286
    Posts
    16
    Years
    • Seen May 3, 2024
    I do hope you have more than one able Pokémon in your party when you're trying this. And using the correct numbers, and actually setting the Game Switch if you're using it.

    The code is fine.
     
    1,405
    Posts
    11
    Years
  • I do hope you have more than one able Pokémon in your party when you're trying this. And using the correct numbers, and actually setting the Game Switch if you're using it.

    The code is fine.

    Checked all of them and it still doesn't work for me. I'm using 3 Pokemon on a map with ID 3 and an event that turns switch 64 on when you talk to it, but all wild encounters are still single battles.
     

    Maruno

    Lead Dev of Pokémon Essentials
    5,286
    Posts
    16
    Years
    • Seen May 3, 2024
    Ah, I see. The code's in the wrong place. It should be put in def pbBattleOnStepTaken, not where mej told you.

    pbEncounter is for fishing and Rock Smash and Sweet Scent. You can leave it there as well if you like.
     
    1,224
    Posts
    10
    Years
  • Ah, I see. The code's in the wrong place. It should be put in def pbBattleOnStepTaken, not where mej told you.

    pbEncounter is for fishing and Rock Smash and Sweet Scent. You can leave it there as well if you like.

    My bad on that, I was looking in the wrong place.
     
    4
    Posts
    186
    Days
    • Seen Nov 13, 2023
    I know I probably wont get a reply because this thread is REALLY old but what tool did you guys use for this ??? Im currently using hexmaniacadvance and cant find pbBattleOnStepTaken anywhere
     
    Back
    Top