• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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.

How to Stage an Event Double Encounter + How to make Wild Pokemon AI "Smarter"

  • 39
    Posts
    14
    Years
    I plan to make a map where you have a partner and there is an event battle which contains two pokemon at the end of the map. Is there a way to stage an event double wild battle? And also, how do you make pokemon AI "smarter", as in the wild pokemon will not use status affecting moves like Thunder Wave if your pokemon is already Paralyzed or something. The reason for this is that my fangame is mostly battling wild pokemon.

    One last question, how much more exp do you get when fighting a pokemon from a trainer, than a pokemon with the same level in the wild? Please answer in percents (i.e 15% more exp, etc)

    I appreciate all the help. Sincerely,
    HankMan
     
    For double wild event encounters, use this:

    Code:
    pbDoubleWildBattle(PBSpecies::PIKACHU,17,PBSpecies::CLEFAIRY,19)
    That's for a Level 17 Pikachu and a Level 19 Clefairy. There are two optional arguments you can put on the end, to record the outcome and decide whether the player can flee respectively. As with double trainer battles against two trainers, make sure to deactivate the event you didn't speak to, so that you can't speak to each in turn and battle them twice.

    The AI for deciding which move to use is kept in the script section PokeBattle_AI, sorted by function code. Generally speaking, AI is a tough thing to do, but actually here it's quite easy. Try not to go to extremes when changing the probabilities, because that's boring.

    You gain 50% extra Exp from a trainer-owned Pokémon than from an identical wild Pokémon.
     
    Thank you very much, sir! ^_^

    Uh-oh, new problem. It seems that when I test the double wild battle, only the first pokemon mentioned in the script takes action. The second just does nothing. Is there a way to fix this? Thanks.
     
    Last edited:
    It works fine for me. Make sure you're using the latest version of Essentials - this was a bug in an older version, but was fixed in (apparently) version 1.
     
    Well, I would edit it sometimes when I see something missing, but I'm blind and the way wiki is built, my screen reader can'thelp me edit it.
    It sucks, actually.
    I wanted to create a wiki once, that's how I found out.
     
    Sorry, I forgot you were blind. I didn't know Wikia doesn't cater to blind people, but it's nice to see you're doing what you're doing despite it all.
     
    Back
    Top