The PokéCommunity Forums Fan Games Game Development Scripts & Tutorials
Essentials Script Pumpkaboo Sizes

Scripts & Tutorials This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.

Reply
 
Thread Tools
  #1    
Old August 16th, 2017 (10:16 AM).
GT-Baka GT-Baka is offline
     
    Join Date: Jul 2008
    Posts: 76
    While hunting down Pumpkaboo I noticed that the size that appears seems to be random much like Unown, instead of each size (form) having its own encounter rate like in XY.

    So if you would like to add rarity to the different sizes, then this code is for you. (assuming you have the latest version of essentials or have already added Pumpkaboo to Pokemon_MultipleForms)

    In the script editor, find Pokemon_MultipleForms and find PUMPKABOO (Ctrl + F is your friend)
    and change
    Code:
    MultipleForms.register(:PUMPKABOO,{
    "getFormOnCreation"=>proc{|pokemon|
       next [rand(4),rand(4)].min
    },
    to (this also assumes that you use small for form 0)
    Code:
    MultipleForms.register(:PUMPKABOO,{
    "getFormOnCreation"=>proc{|pokemon|
       next 3 if rand(20)==10            #Super 5%
       next 2 if rand(20)>=18            #Large 15%
       next 1 if rand(20)<=9                #Average 45%
       next 0                           #Small 35%
    },
    Don't for get to do the same for Gourgeist!

    Side Note: While testing this I got a Super Pumpkaboo on the first encounter and though I had inverted the code to make the larger sizes common and the smaller sizes rare. After staring at this for longer than I would like to admit, I came to the realization that there was nothing wrong with the code I just got really lucky.
    Reply With Quote
      #2    
    Old August 16th, 2017 (1:35 PM). Edited August 16th, 2017 by Azurestonedog.
    Azurestonedog's Avatar
    Azurestonedog Azurestonedog is offline
    AZR Stonedog
       
      Join Date: Dec 2016
      Location: Wales
      Gender: Other
      Nature: Careful
      Posts: 21
      as gastrodon has copy shellos feature in multiple forms, would that not be the best way to do gourgeist?

      this is the relevant bit of code:

      MultipleForms.copy(:SHELLOS,:GASTRODON)
      Reply With Quote
        #3    
      Old August 16th, 2017 (4:25 PM).
      GT-Baka GT-Baka is offline
         
        Join Date: Jul 2008
        Posts: 76
        Gastrodon is a pure copy of Shellos, but with the Gourgeist they have different heights and weights so I am not sure if that would work. If it does then yes that would be a better method.

        "height"=>proc{|pokemon|
        next if pokemon.form==0 # Small Size
        next 9 if pokemon.form==1 # Average Size
        next 11 if pokemon.form==2 # Large Size
        next 17 if pokemon.form==3 # Super Size
        },
        "weight"=>proc{|pokemon|
        next if pokemon.form==0 # Small Size
        next 125 if pokemon.form==1 # Average Size
        next 140 if pokemon.form==2 # Large Size
        next 390 if pokemon.form==3 # Super Size
        },
        "getBaseStats"=>proc{|pokemon|
        next if pokemon.form==0 # Small Size
        next [65,90,122,84,58,75] if pokemon.form==1 # Average Size
        next [75,95,122,69,58,75] if pokemon.form==2 # Large Size
        next [85,100,122,54,58,75] if pokemon.form==3 # Super Size
        }
        Reply With Quote
          #4    
        Old August 17th, 2017 (12:36 AM).
        TheGamingPaladin TheGamingPaladin is offline
           
          Join Date: Jan 2017
          Location: Iowa
          Age: 37
          Gender: Male
          Nature: Serious
          Posts: 35
          this is much appreciated, nothing worse than RNG in Pokemon, as it usually craps out. XD

          and i for one would want a Super Size Pumpkaboo, not any bit smaller.
          Reply With Quote
            #5    
          Old August 17th, 2017 (4:06 AM).
          GT-Baka GT-Baka is offline
             
            Join Date: Jul 2008
            Posts: 76
            Quote:
            Originally Posted by TheGamingPaladin View Post
            this is much appreciated, nothing worse than RNG in Pokemon, as it usually craps out. XD

            and i for one would want a Super Size Pumpkaboo, not any bit smaller.
            But this code is a RNG... in Pokemon...
            Just one you can adjust the encounter rate XD
            Reply With Quote
              #6    
            Old August 18th, 2017 (4:59 AM).
            TheGamingPaladin TheGamingPaladin is offline
               
              Join Date: Jan 2017
              Location: Iowa
              Age: 37
              Gender: Male
              Nature: Serious
              Posts: 35
              Quote:
              Originally Posted by GT-Baka View Post
              But this code is a RNG... in Pokemon...
              Just one you can adjust the encounter rate XD
              true true.... still, it's a lot less RNG than default, so i dont see it as RNG if you can control the outcome.
              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
              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 10:38 AM.