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

[Essentials Tutorial] Overworld wild Pokémon that battle you

Zeak6464

Zeak #3205 - Discord
1,101
Posts
11
Years
  • How to make Pokemon follow you & battle you

    Step 1 :
    QG6zB.jpg


    Step 2:
    Wait can be any # that you want for the Re-Spawn
    DX3JQ.jpg


    Step 3:
    PEDp9.jpg


    Now there probably is an easier way to do this or someone already has done this.​
     

    Nickalooose

    --------------------
    1,309
    Posts
    16
    Years
    • Seen Dec 28, 2023
    You don't need step 3 and no there isn't a better way to do this, so there's no "easier" way.

    But nice tutorial still.
     

    Black Eternity

    Lord of Eternity
    57
    Posts
    11
    Years
    • Seen Jun 30, 2016
    The event will walk/look much better if you put speed at Slow, and Freq at Highest.
    This will keep the event moving across the screen, instead of its current one tile at a time.

    Now that you see how it works, you can change speeds to whichever you desire,
    but I would recommend staying between Slower, Slow, and Fast for the best results.
     

    Bowlstir

    Media Arts and Game Development
    199
    Posts
    16
    Years
  • I'd suggest making some text for people to copy and paste to save a little time.

    And I'd advise that you make the corrections mentioned by the two above.

    Other than that, thanks for the tutorial.
     
    1,805
    Posts
    7
    Years
  • huh treating them like MMO mobs with a set respawn cooldown. I'm wondering if you can insert a radomizer in the wait time

    EDIT: you can!

    Instead of the wait command, in a script command

    Code:
    @wait_count = rand(min..max)
     
    Last edited:

    Uzagi

    the bunny
    20
    Posts
    5
    Years
  • Thank you.
    I made a few modifications to the script to better adjust the respawn since the wait time max is only 900 frames or so.
    The main purpose is to give them a minute based respawn for more rare pokemon.
    Here's what I've done.

    1- put the "pbSetEventTime(x)" (where x=event id, could be 1 or more events)

    T5CMmEi.png


    2- page 2 stays the same, and page 3 has the following configuration ;
    a variable "s:cooledDown?(x)" - where "x" is the seconds of the time you want the event to cool down ; the variable you can create yourself
    and the following commands in the event configuration

    oegQYw2.png



    I'm wondering if someone would know a way to randomize the pokemon level...
     

    WolfPP

    Spriter/ Pixel Artist
    1,309
    Posts
    5
    Years
  • Thank you.
    I'm wondering if someone would know a way to randomize the pokemon level...

    Inside your 'PField_EncounterModifiers':
    Spoiler:


    Or here: https://www.pokecommunity.com/showthread.php?t=409828
     
    Last edited:

    Zeak6464

    Zeak #3205 - Discord
    1,101
    Posts
    11
    Years
  • actually i made a script per say that spawns random pokemon based on a variable

    Code:
    # Pokemon Species 
    $game_variables[80]=rand(PBSpecies.maxValue)+1
    # Map event that changes into Graphic of Pokemon
    pbMoveRoute($game_map.events[3],[PBMoveRoute::Graphic,pbGet(80).to_s,0,2,0])
    # Level of Pokemon
    level = rand(20)
    # Battle
    pbWildBattle(PBSpecies::pbGet(80).to_i,level)
     
    Last edited:

    etique

    etique
    268
    Posts
    6
    Years
    • Seen Oct 30, 2022
    I want to do a pokemon event following me, after being defeated captured he will not appear on the map anymore, but if he is defeated or I leave the battle he will fly, can it be done?
     
    1,805
    Posts
    7
    Years
  • I want to do a pokemon event following me, after being defeated captured he will not appear on the map anymore, but if he is defeated or I leave the battle he will fly, can it be done?

    the event is set to reappear after x frames
     
    67
    Posts
    5
    Years
    • Seen Jan 9, 2024
    Can this be based off the encounters.txt at all? Like generating a few overworld Pokemon based from the text file randomly? Or would I have to make some kind of string of possibilities within the event?
     
    1,805
    Posts
    7
    Years
  • Can this be based off the encounters.txt at all? Like generating a few overworld Pokemon based from the text file randomly? Or would I have to make some kind of string of possibilities within the event?

    hmmmmmm you may have to define a new variable that randomizes between the possible encounters at the given probabilities then have a conditional branch starting a wild battle for each value of that variable, but there may be a more efficient solution

    so somethinglike like
    $game_variables[id#]=rand(12)
    Condtional Branch: $game_variables[id#]==0
    pbWildBattle(:RATTATA,5)
    else
    Conditional Branch: $game_variables[id#]>0
    pbWildBattle(:PIDGEY,5)
    branch end

    etc
     
    Last edited:
    67
    Posts
    5
    Years
    • Seen Jan 9, 2024
    Oh I see where you're going with that. Cool I might use this later. Play around with it a bit.
     
    18
    Posts
    5
    Years
    • Seen Sep 4, 2019
    i KEEP GETTING THIS ERROR

    [Pokémon Essentials version 17.2]
    Exception: RuntimeError
    Message: Script error within event 3 (coords 14,23), map 33 (Dawn Town):
    Exception: SyntaxError
    Message: (eval):2:in `pbExecuteScript'compile error
    (eval):1: syntax error
    Kernel.pbNoticePlayer.(get_character(
    ^
    (eval):2: syntax error
    ***Full script:
    Kernel.pbNoticePlayer.(get_character(
    0))
    WildBattle:PBSpecies::PIDGEY,1,1,True
    ,False)


    Interpreter:276:in `pbExecuteScript'
    Interpreter:1606:in `command_355'
    Interpreter:494:in `execute_command'
    Interpreter:193:in `update'
    Interpreter:106:in `loop'
    Interpreter:198:in `update'
    Scene_Map:163:in `follow_update'
    Scene_Map:161:in `loop'
    Scene_Map:170:in `follow_update'
    Pokemon_Follow:1551:in `update'
     
    1,682
    Posts
    8
    Years
    • Seen today
    Kernel.pbNoticePlayer.(get_character(
    ^
    (eval):2: syntax error
    ***Full script:
    Kernel.pbNoticePlayer.(get_character(
    0))
    WildBattle:PBSpecies::PIDGEY,1,1,True
    ,False)

    You have a period right before the bracket there.
    Kernel.pbNoticePlayer.(get_character(
     
    18
    Posts
    5
    Years
    • Seen Sep 4, 2019
    I am looking for a way to use the ow wild pokemon battle i have the random lvl set up but i want it to where if its at a certian level you get its evolution insted
     
    Back
    Top