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

[PBS Question] Adding gens 6 - 8?

429
Posts
4
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.
     
    1,406
    Posts
    10
    Years
    • Seen today
    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.
     
    429
    Posts
    4
    Years
  • 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:
    1,406
    Posts
    10
    Years
    • Seen today
    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:
    429
    Posts
    4
    Years
  • 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
     
    429
    Posts
    4
    Years
  • 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