• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • 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,099
    Posts
    12
    Years
    How to make Pokemon follow you & battle you

    Step 1 :
    [PokeCommunity.com] Overworld wild Pokémon that battle you


    Step 2:
    Wait can be any # that you want for the Re-Spawn
    [PokeCommunity.com] Overworld wild Pokémon that battle you


    Step 3:
    [PokeCommunity.com] Overworld wild Pokémon that battle you


    Now there probably is an easier way to do this or someone already has done this.​
     
    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.
     
    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.
     
    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:
    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)

    [PokeCommunity.com] Overworld wild Pokémon that battle you


    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

    [PokeCommunity.com] Overworld wild Pokémon that battle you



    I'm wondering if someone would know a way to randomize the pokemon level...
     
    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:
    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:
    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?
     
    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?
     
    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:
    Oh I see where you're going with that. Cool I might use this later. Play around with it a bit.
     
    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'
     
    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