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

[Scripting Question] Temporarily removing pkm and taking back later

  • 2
    Posts
    2
    Years
    • Seen Dec 8, 2022
    Hi felas.

    I'm New here, been studing a lot, but still struggling with scripting.

    Currently I'm using RPG Maker xp with essentials 2.1

    I wanna make team rocket npcs that can steal 1 of you Poke on defeat. The problem is, a wanna Also put a feature where you can battle them again and reclaim the stolen pkm.

    If you lose 3 times, for instance, they take 3 pkm. And If you Win once they give It the same ALL pokémon taken.

    I tried to make something using the daycare system, but didnt work.

    Can someone help?

    I can pay in thanks and appreciation =D
     
    The best I can think of is to implement a global array object of the Pokemon class similar to how the player's party is implemented. When a Pokémon is "stolen" you can use the array's push function to add that Pokémon to the array before deleting it. You'll want to address what would happen if you only had one Pokémon in your party.
     
    Back
    Top