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

[PBS Question] Adding gens 6 - 8?

  • 428
    Posts
    5
    Years
    I'd like to add Pokemon from Gen 6, 7, and 8 Pokemon to my game. Some script I found to make abilities like Schooling and Shields Down will only work if Minior and Wishiwashi are actually in the game, even though I plan on giving these abilities to other Pokemon too.

    What do I do? Pokemon are the most important because ever since I added the script to make Minior and Wishiwashi work properly, the game stopped turning on (Script hang problem) since those Pokemon aren't in my game.
     
    Just copy/paste data for those Pokemon into the Pokemon PBS file. There's plenty of threads here where people have shared these resources that I'm sure you can find. Just use the search bar to look for "Gen 8" 7, 6, etc.

    Also, your abilities probably shouldn't be crashing your game just because the Pokemon don't exist. There are plenty of Abilities and such coded into Essentials already for Pokemon that don't exist (Aegislash, for example). So I feel like there might be some other issues going on. Guess you won't know for sure till you install those Pokemon, though.
     
    I think it's because the code references forms that don't exist in-game for Pokemon that don't exist in-game.

    MultipleForms.register(:PUMPKABOO,{
    "getFormOnCreation"=>proc{|pokemon|
    r = rand(20)
    if r==0; next 3 # Super Size (5%)
    elsif r<4; next 2 # Large (15%)
    elsif r<13; next 1 # Average (45%)
    end
    next 0 # Small (35%)
    }
    })

    MultipleForms.copy(:PUMPKABOO,:GOURGEIST)

    MultipleForms.register(:XERNEAS,{
    "getFormOnEnteringBattle"=>proc{|pokemon|
    next 1
    }
    })

    MultipleForms.register(:HOOPA,{
    "getForm"=>proc{|pokemon|
    if !pokemon.formTime || pbGetTimeNow.to_i>pokemon.formTime.to_i+60*60*24*3 # 3 days
    next 0
    end
    next
    },
    MultipleForms.register(:MINIOR,{
    "getFormOnCreation"=>proc{|pokemon|
    next 1+rand(7)
    }
    },
    "onSetForm"=>proc{|pokemon,form|
    pokemon.formTime=(form>0) ? pbGetTimeNow.to_i : nil
    }
    })

    That final line, line 483, is causing a Syntax Error that stops the game from running. How can it be fixed?
     
    Last edited by a moderator:
    MultipleForms.register(:PUMPKABOO,{
    "getFormOnCreation"=>proc{|pokemon|
    r = rand(20)
    if r==0; next 3 # Super Size (5%)
    elsif r<4; next 2 # Large (15%)
    elsif r<13; next 1 # Average (45%)
    end
    next 0 # Small (35%)
    }
    })

    MultipleForms.copy(:PUMPKABOO,:GOURGEIST)

    MultipleForms.register(:XERNEAS,{
    "getFormOnEnteringBattle"=>proc{|pokemon|
    next 1
    }
    })

    MultipleForms.register(:HOOPA,{
    "getForm"=>proc{|pokemon|
    if !pokemon.formTime || pbGetTimeNow.to_i>pokemon.formTime.to_i+60*60*24*3 # 3 days
    next 0
    end
    next
    },
    MultipleForms.register(:MINIOR,{
    "getFormOnCreation"=>proc{|pokemon|
    next 1+rand(7)
    }
    },
    "onSetForm"=>proc{|pokemon,form|
    pokemon.formTime=(form>0) ? pbGetTimeNow.to_i : nil
    }
    })

    That final line, line 483, is causing a Syntax Error that stops the game from running. How can it be fixed?

    By replacing the comma above the Minior line with a closed parentheses ")"


    EDIT: Actually, in fact, your whole Hoopa code is wrong. It should be (looking at Essentials)
    Code:
    MultipleForms.register(:HOOPA,{
    "getForm"=>proc{|pokemon|
       if !pokemon.formTime || pbGetTimeNow.to_i>pokemon.formTime.to_i+60*60*24*3 # 3 days
         next 0
       end
       next
    },
    "onSetForm"=>proc{|pokemon,form|
       pokemon.formTime=(form>0) ? pbGetTimeNow.to_i : nil
    }
    })

    and then minior should be its own separate thing. You have both species combined in the same code, and im preeeetty sure you can't do that.
     
    Last edited:
    Thank you! Now the error is occuring on line 498

    MultipleForms.copy(:PUMPKABOO,:GOURGEIST)

    MultipleForms.register(:XERNEAS,{
    "getFormOnEnteringBattle"=>proc{|pokemon|
    next 1
    }
    })

    MultipleForms.register(:HOOPA,{
    "getForm"=>proc{|pokemon|
    if !pokemon.formTime || pbGetTimeNow.to_i>pokemon.formTime.to_i+60*60*24*3 # 3 days
    next 0
    end
    next
    },
    "onSetForm"=>proc{|pokemon,form|
    pokemon.formTime=(form>0) ? pbGetTimeNow.to_i : nil
    }
    })
    MultipleForms.register(:MINIOR,{
    "getFormOnCreation"=>proc{|pokemon|
    next 1+rand(7)
    }
    },
    "onSetForm"=>proc{|pokemon,form|
    pokemon.formTime=(form>0) ? pbGetTimeNow.to_i : nil
    }
    })

    the final line of the code, with the }) is line 498
     
    Thank you! Now the error is occuring on line 498
    Look at the hoopa code and the minior code and spot the difference. There's an extra bracket in the Minior code after the "next" line that shouldn't be there.
     
    That must have fixed things because this time, the error that stopped my game from loading was a problem with Power-Up Punch.

    Thank you!
     
    Back
    Top