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

Script: Visible Overworld Wild Encounter

  • 16
    Posts
    3
    Years
    • Seen Jan 19, 2022
    Hi, so far everything is working perfectly, but a weird thing I noticed occurs with the Flabebe forms. When a yellow flower spawns and you go into the battle, its always a yellow flower. Same thing with blue, orange, and white. But with the red flower, when you go into the battle it can be any color. I'm assuming this occurs because red flower is the base form of Flabebe, while the others are considered alternate forms. I don't know if anyone else has noticed this, but is there any way to fix it ?
     
  • 308
    Posts
    4
    Years
    Hi, so far everything is working perfectly, but a weird thing I noticed occurs with the Flabebe forms. When a yellow flower spawns and you go into the battle, its always a yellow flower. Same thing with blue, orange, and white. But with the red flower, when you go into the battle it can be any color. I'm assuming this occurs because red flower is the base form of Flabebe, while the others are considered alternate forms. I don't know if anyone else has noticed this, but is there any way to fix it ?

    Try the following to fix it.
    • Replace the line
      Code:
              pkmn.form = form if USEALTFORMS==true and form!=nil and form>0
      of the method "pbWildBattleCore(*args)" in your overworld encounters script section by
      Code:
              pkmn.form = form if USEALTFORMS==true and form!=nil and form>=0
    (Here, I assumed version 18.0.6. I would guess that you use that version. If you use version 17.0.6 or 16.0.1.11.3 then you have to replace the line of code in the method "pbWildBattle" and also modify "pbDoubleWildBattle" concerning the forms.)

    If the first bullet item does not solve the problem completely, then additionally do the following.
    • Find the line
      Code:
        form = pokemon.form if USEALTFORMS == true
      in the method "pbChooseEncounter(x,y,repel=false)" in your overworld encounters script section and add the code
      Code:
        form = 0 if USEALTFORMS == true and form==nil
      right below.

    I haven't tested it yet, so I would be thankful if you let us know if it works. I will update the script versions after your answer.
     
    Last edited:
  • 16
    Posts
    3
    Years
    • Seen Jan 19, 2022
    Try the following to fix it.
    • Replace the line
      Code:
              pkmn.form = form if USEALTFORMS==true and form!=nil and form>0
      of the method "pbWildBattleCore(*args)" in your overworld encounters script section by
      Code:
              pkmn.form = form if USEALTFORMS==true and form!=nil and form>=0
    (Here, I assumed version 18.0.6. I would guess that you use that version. If you use version 17.0.6 or 16.0.1.11.3 then you have to replace the line of code in the method "pbWildBattle" and also modify "pbDoubleWildBattle" concerning the forms.)

    If the first bullet item does not solve the problem completely, then additionally do the following.
    • Find the line
      Code:
        form = pokemon.form if USEALTFORMS == true
      in the method "pbChooseEncounter(x,y,repel=false)" in your overworld encounters script section and add the code
      Code:
        form = 0 if USEALTFORMS == true and form==nil
      right below.

    I haven't tested it yet, so I would be thankful if you let us know if it works. I will update the script versions after your answer.


    [Sun Mar 14 15:52:55 Eastern Daylight Time 2021]
    [Pokémon Essentials version 18.1.dev]
    Exception: TypeError
    Message: no implicit conversion from nil to integer

    Backtrace:
    Game_Map:277:in `[]'
    Game_Map:277:in `bush?'
    Game_Map:275:in `each'
    Game_Map:275:in `bush?'
    always_on_bush:43:in `bush_depth'
    Sprite_Character:102:in `shadow_update'
    Sprite_DynamicShadows:157:in `update_or'
    Tilemap_Perspective:434:in `follow_update'
    Follower_Main:974:in `update'
    Follower_Main:1084:in `update'

    Hey, it's working great. Flabebe now is always the right form. However, I think there might be a problem with the Always in bush and in water script cause I'm getting this error. Is this because I'm using a follow pokemon script?
     
    Last edited:
  • 308
    Posts
    4
    Years
    [Sun Mar 14 15:52:55 Eastern Daylight Time 2021]
    [Pokémon Essentials version 18.1.dev]
    Exception: TypeError
    Message: no implicit conversion from nil to integer

    Backtrace:
    Game_Map:277:in `[]'
    Game_Map:277:in `bush?'
    Game_Map:275:in `each'
    Game_Map:275:in `bush?'
    always_on_bush:43:in `bush_depth'
    Sprite_Character:102:in `shadow_update'
    Sprite_DynamicShadows:157:in `update_or'
    Tilemap_Perspective:434:in `follow_update'
    Follower_Main:974:in `update'
    Follower_Main:1084:in `update'

    Hey, it's working great. Flabebe now is always the right form. However, I think there might be a problem with the Always in bush and in water script cause I'm getting this error. Is this because I'm using a follow pokemon script?

    Indeed, there was an error in the "Always in bush and in water" script. This crash can happen if there is a Game_Character at the border of the map. Now, I corrected the bug and updated the "always in bush and in water" script to version 1.2.

    Concerning Flabebe, did you use the first bullet item to remove the bug or did you have to use both corrections?
     
    Last edited:
  • 69
    Posts
    3
    Years
    • Seen May 27, 2021
    I got an error in Safari zone
    I have installed autospawn v18.1
    And the overworld encounter script v8.0.6
    Visible Overworld Wild Encounter
     
  • 69
    Posts
    3
    Years
    • Seen May 27, 2021
    I got an error in Safari zone is this causing this
    I have installed autospawn v18.1
    And the overworld encounter script v8.0.6
    Visible Overworld Wild Encounter
     
  • 69
    Posts
    3
    Years
    • Seen May 27, 2021
    I got an error in Safari zone or an bug fix for v18.1
    I have installed autospawn v18.1
    And the overworld encounter script v8.0.6
    Visible Overworld Wild Encounter
     
  • 16
    Posts
    3
    Years
    • Seen Jan 19, 2022
    Indeed, there was an error in the "Always in bush and in water" script. This crash can happen if there is a Game_Character at the border of the map. Now, I corrected the bug and updated the "always in bush and in water" script to version 1.2.

    Concerning Flabebe, did you use the first bullet item to remove the bug or did you have to use both corrections?

    I used both bullet items and it fixed it. So should I redownload always in bush and in water
     
  • 16
    Posts
    3
    Years
    • Seen Jan 19, 2022
    If I were to add a new terrain tag like say desert,flowers,beach,etc., Would there be any problem in the overworld pokemon or always in bush and in water.
     
  • 308
    Posts
    4
    Years
    I got an error in Safari zone or an bug fix for v18.1
    I have installed autospawn v18.1
    And the overworld encounter script v18.0.6
    https://photos.app.goo.gl/gfnCM1RANvtuLyGe6

    At first an important question: Have you installed a Dynamax script?
    So your error probabily comes from an error in the dynamax script.

    Secondly, we cannot read the whole error message. We can only see the beginning of the error message on your photo. Please post the whole error message, so we can help you here.

    Anyway, I still have a good idea for you.
    Start the script editor (F11), go into the script section "PokeBattle_SafariZone" and add the following code
    Code:
      def dynamax?;       return false; end
      alias isDynamax? dynamax?
    right below the line 38 (line 38 says " alias isMega? mega?").

    Please, let us know if this tip helped. And please inform the makers of the dynamax script about the error and the solution (in the dynamax thread for instance).

    EDIT: Updated the code above.
     
    Last edited:
  • 308
    Posts
    4
    Years
    If I were to add a new terrain tag like say desert,flowers,beach,etc., Would there be any problem in the overworld pokemon or always in bush and in water.

    A new terrain tag such as desert, flowers, beach, swamp etc. is by default not a bush and not water. So it should not cause any problems, since it does not affect the spawning of overworld encounters and does not let the player and pokemon sink in the tile like in bushes. But if you want that a new terrain tag will spawn new encounters or let the player and pokemon sink in (for example in flowers, since flowers are as high as bushes) then you have to modify that.

    For overworld spawning:
    There is a detailed section (which explains how to add a new desert tag) in the MODIFICATIONS section in the main post of your version. For short, the link is https://www.pokecommunity.com/showthread.php?p=10202528#post10202528

    For the "always in bush and in water" script:
    I recommend to ask your questions in that thread. So, we keep it easy for other readers to find the informations.
     
  • 16
    Posts
    3
    Years
    • Seen Jan 19, 2022
    A new terrain tag such as desert, flowers, beach, swamp etc. is by default not a bush and not water. So it should not cause any problems, since it does not affect the spawning of overworld encounters and does not let the player and pokemon sink in the tile like in bushes. But if you want that a new terrain tag will spawn new encounters or let the player and pokemon sink in (for example in flowers, since flowers are as high as bushes) then you have to modify that.

    For overworld spawning:
    There is a detailed section (which explains how to add a new desert tag) in the MODIFICATIONS section in the main post of your version. For short, the link is https://www.pokecommunity.com/showthread.php?p=10202528#post10202528

    For the "always in bush and in water" script:
    I recommend to ask your questions in that thread. So, we keep it easy for other readers to find the informations.

    This modification says it's for 17.0.7. Will it still work with 18.0.7?
     
  • 69
    Posts
    3
    Years
    • Seen May 27, 2021
    Is there any weather encounter script like sword and shield game
    There is a place called lake of outrage
     
  • 69
    Posts
    3
    Years
    • Seen May 27, 2021
    Is there any weather encounter script like sword and shield game
    There is a place called lake of outrage
    In snow weather glaceon and thunder clouds jolteon
    Like this script does this exist
     
  • 308
    Posts
    4
    Years
    There is a place called lake of outrage in Pokemon Sword and Shield, where the encounters vary with the weather.
    For example, glaceon encounters in snow and jolteon during thunderstorm.
    Is there any weather encounter script for Pokemon Essentials that does this?

    This thread is intended for questions for the overworld encounter script. If you have any other questions, such as for weather encounters, then please search for a suitable thread or ask your question in the questions section of the pokecommunity forum.

    However, you can find a weather encounter script here: https://www.pokecommunity.com/showthread.php?t=429803
     

    YashPokeFan123

    #PokeFan
  • 283
    Posts
    3
    Years
    • Seen Apr 28, 2023
    Is there any weather encounter script like sword and shield game
    There is a place called lake of outrage
    In snow weather glaceon and thunder clouds jolteon
    Like this script does this exist
    If you have any questions go to this section and want to ask any questions you can ask here.

    here!

    This thread is intended for questions for the overworld encounter script. If you have any other questions, such as for weather encounters, then please search for a suitable thread or ask your question in the questions section of the pokecommunity forum.

    However, you can find a weather encounter script here: https://www.pokecommunity.com/showthread.php?t=429803

    Yup he is new so he don't know things here.
     
    Last edited:
  • 69
    Posts
    3
    Years
    • Seen May 27, 2021
    At first an important question: Have you installed a Dynamax script?
    So your error probabily comes from an error in the dynamax script.

    Secondly, we cannot read the whole error message. We can only see the beginning of the error message on your photo. Please post the whole error message, so we can help you here.

    Anyway, I still have a good idea for you.
    Start the script editor (F11), go into the script section "PokeBattle_SafariZone" and add the following code
    Code:
      def dynamax?;       return false; end
      alias isDynamax? dynamax?
    right below the line 38 (line 38 says " alias isMega? mega?").https://photos.app.goo.gl/QshkADqi1xcuLNfi7

    Please, let us know if this tip helped. And please inform the makers of the dynamax script about the error and the solution (in the dynamax thread for instance).

    EDIT: Updated the code above.
    Visible Overworld Wild Encounter

    Here is the full error
     
  • 69
    Posts
    3
    Years
    • Seen May 27, 2021
    Is there any way that i can resize the taskbar of Pokemon essential
    It does not support
     
    Back
    Top