Game Development Your number one stop for anything related to creating games (except ROM hacks). You can even make your own!

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old 6 Days Ago (9:49 AM).
#1TrubbishFan's Avatar
#1TrubbishFan #1TrubbishFan is offline
     
    Join Date: Apr 2019
    Posts: 8
    So I've been dabbling in Essentials for about a month. I've got an idea for an evil team, but I haven't the slightest idea how to code it. What if an Admin could steal one of your pokemon, chosen randomly, during battle? The pokemon is removed from your party and the opponent adds it to their team. After the battle your pokemon is returned. I know that would be nightmarishly complicated, but do you have any ideas? Steps in the right direction? Is it even possible?
    Reply With Quote
      #2   Link to this post, but load the entire thread.  
    Old 4 Days Ago (3:49 PM).
    mgriffin's Avatar
    mgriffin mgriffin is offline
     
    Join Date: Apr 2014
    Posts: 335
    Probably not too hard to do. I'd start by seeing if you can remove the Pokémon from the player's party and add it to the foe's. You could probably make that change during the initialization of the parties, i.e. somewhere in one of the PokeBattle_ scripts.
    Reply With Quote
      #3   Link to this post, but load the entire thread.  
    Old 4 Days Ago (5:52 PM).
    Poq's Avatar
    Poq Poq is offline
       
      Join Date: Aug 2017
      Posts: 119
      I agree with mgriffin. You could probably store the pokémon in a designated variable, then delete it from the party. Next, you would make sure the opponent used that variable in generating its team. After the battle, you would just add the pokémon back to the players party by copying it from the variable. And some of these steps could even be done in the event editor.
      Reply With Quote
        #4   Link to this post, but load the entire thread.  
      Old 3 Days Ago (8:17 PM).
      NettoHikari NettoHikari is offline
         
        Join Date: Jan 2019
        Gender: Male
        Posts: 12
        Actually, removing a Pokemon from the player's party during battle is NOT an easy task. Essentials just isn't designed to handle that, and things get out of hand very quickly if a Pokemon is suddenly missing from either side. If you're talking about removing from the player's party just BEFORE the start of the battle, though, then that's more feasible. I've found that adding a Pokemon to the enemy's party, though, is not as difficult.

        My suggestion is that you should first store the Pokemon that you want to remove in a variable and then remove it in the event itself as Poq said, just before the trainer battle call, and then in the script section "PField_EncounterModifiers", you can add the stored Pokemon to the enemy's party.
        Reply With Quote
        Reply

        Quick Reply

        Join the conversation!

        Create an account to post a reply in this thread, participate in other discussions, and more!

        Create a PokéCommunity Account
        Ad Content
        Thread Tools

        Posting Rules
        You may not post new threads
        You may not post replies
        You may not post attachments
        You may not edit your posts

        BB code is On
        Smilies are On
        [IMG] code is On
        HTML code is Off

        Forum Jump


        All times are GMT -8. The time now is 6:54 PM.