• 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.
  • 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!
  • Akari, Selene, Mint, Solana - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

A couple questions that I must ask

  • 73
    Posts
    9
    Years
    Now, there are many questions that I have came up with in my head when it comes to Pokemon Essentials. Here are a couple I currently have in mind:

    1) In Pokémon XD: Gale of Darkness, in order to continue and beat the game is to fight against Shadow Pokémon. Now, as much as I love shadow Pokémon, I definitely know that in GoD, you have to catch the opponent's Shadow Pokémon in order to win the trainer battle. How do you do that in Essentials?

    2) Now, I don't know if this can or will happen, but is it possible to fight against yourself? What I mean by that is that your opponent would have the exact same Pokémon that you have. If so, how do you do it, and can you manipulate stats, items, and moves?

    All the best,
    Mikning
     
    1) In Pokémon XD: Gale of Darkness, in order to continue and beat the game is to fight against Shadow Pokémon. Now, as much as I love shadow Pokémon, I definitely know that in GoD, you have to catch the opponent's Shadow Pokémon in order to win the trainer battle. How do you do that in Essentials?

    $Trainer.shadowcaught is an array indexed by species which keeps track of which shadow pokemon species have been caught. As long as there is only ever one shadow pokemon of a given species (as is the case in both games where shadow pokemon have appeared), you can use that to test to see if the shadow pokemon has been caught.

    2) Now, I don't know if this can or will happen, but is it possible to fight against yourself? What I mean by that is that your opponent would have the exact same Pokémon that you have. If so, how do you do it, and can you manipulate stats, items, and moves?

    All trainers in battle are instances of PokeBattle_Trainer. The player character just happens to be the only instance of PokeBattle_Trainer that persists between battles in the unmodified library. If you wanted to create a battle against yourself, it would be a matter of cloning the PokeBattle_Trainer in $Trainer (and all the Pokemon instances in the trainer.party) and passing that clone to the opponent side of the PokeBattle_Battle instance created for the fight. (Don't pass the same instance of PokeBattle_Trainer to both sides, especially the same Pokemon instances, because bad things will happen with HP and PP if you do.)
     
    Now, there are many questions that I have came up with in my head when it comes to Pokemon Essentials. Here are a couple I currently have in mind:

    1) In Pokémon XD: Gale of Darkness, in order to continue and beat the game is to fight against Shadow Pokémon. Now, as much as I love shadow Pokémon, I definitely know that in GoD, you have to catch the opponent's Shadow Pokémon in order to win the trainer battle. How do you do that in Essentials?

    2) Now, I don't know if this can or will happen, but is it possible to fight against yourself? What I mean by that is that your opponent would have the exact same Pokémon that you have. If so, how do you do it, and can you manipulate stats, items, and moves?

    All the best,
    Mikning

    If you're using a newer version of Essentials (15 I think), there's a trainer modifier you can use. It would be a bit of code, but you can effectively just modify that trainer by making copies of your party and such.
     
    Back
    Top