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

[Scripting Question] Make a Pokemon marked as not seen and/or caught in the Pokedex

169
Posts
7
Years
    • They/Them
    • Seen Jan 17, 2023
    My game has a feature from Pokemon XD called Battle CDs. If you don't know what those are, basically, you have to beat a trainer with a preset team.

    And there lies the problem: the game thinks that the player has caught whatever I give them, since... well, they've technically caught it. But I don't want that to be the case; I want it to be like the Battle Factory where you can't add anything to your Pokedex, both in regards to the foe's Pokemon and your Pokemon. In other words, I'd like to temporarily turn the Pokedex's features off (and no, disallowing access to the Pokedex does not do this, in the event anyone was thinking that).
     
    277
    Posts
    8
    Years
    • Seen Aug 29, 2022
    I did this event long ago.
    https://gyazo.com/61092f6a1ce3b077d3b2c272eca236f7

    It's a conditional branch that if you have the pokemon it's given to you normally. But if you haven't, the owned flag turns to false once you get it, so won't count as caught.

    But as you said, it would work better turning off the pokedex. I think that a good way to do this would be making a switch to temporarily disable its functions.
     
    Last edited:
    169
    Posts
    7
    Years
    • They/Them
    • Seen Jan 17, 2023
    I did this event long ago.
    https://gyazo.com/61092f6a1ce3b077d3b2c272eca236f7

    It's a conditional branch that if you have the pokemon it's given to you normally. But if you haven't, the owned flag turns to false once you get it, so won't count as caught.

    But as you said, it would work better turning off the pokedex. I think that a good way to do this would be making a switch to temporarily disable its functions.

    Alright, thanks! What about seen, though? I tried .seen instead of .owned, but it still shows up as seen in the Pokedex.
     
    277
    Posts
    8
    Years
    • Seen Aug 29, 2022
    It should work changing owned for seen, but then you'd have to do it for every trainer you face. So that's not very viable

    Disabling the pokedex features of registering a pokemon with a switch should be something like adding the condition when the script is gonna register the pokemon.

    For example I've used the statement
    if $game_switches[97]==false
    To when the game switch 97 is ON, certain functions about seeing and owning pokemon won't work.

    This won't register the enemy pokemon as seen when you battle with them
    Before: https://gyazo.com/f67a0dea572790d241c63b4dce248901
    After : https://gyazo.com/57db7446685b790515bbf9f1472b3d71

    This won't register your pokemon when you receive them. pbAddPokemonSilent I think is the best to add temporary strange pokemon. So if you use another function to add them will be different
    Before: https://gyazo.com/1f1aeaeada1ce6500aefb2a306c82dc2
    After : https://gyazo.com/0bbcad9e99541d42b03c7ba686eef082


    I'm a mess up though, so I'm sure there a better ways to do this
     
    169
    Posts
    7
    Years
    • They/Them
    • Seen Jan 17, 2023
    It should work changing owned for seen, but then you'd have to do it for every trainer you face. So that's not very viable

    Changing it to .seen actually does work, I just discovered; I just couldn't place .owned and .seen one after the other.

    As for having to do it for every trainer, I don't; I just have to do it for every Battle CD I make, which isn't that big of a deal.

    Once again, thank you for your help!
     
    Back
    Top