• 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!
  • It's time to vote for your favorite Pokémon Battle Revolution protagonist in our new weekly protagonist poll! Click here to cast your vote and let us know which PBR protagonist you like most.
  • 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] Pokemon Ignoring Orders (Solved)

  • 38
    Posts
    9
    Years
    • Seen Nov 26, 2023
    I know originally pokemons starts ignoring your orders after X level if you dont have certain badge, but, i want to edit the X level or complete disable it... anyone know how?
     
    Last edited by a moderator:
    Edit the badgelevel values in the method pbObedienceCheck?
     
    Edit the badgelevel values in the method pbObedienceCheck?

    Thx! Based in the script

    badgelevel=10
    badgelevel=20 if @battle.pbPlayer.numbadges>=1
    badgelevel=30 if @battle.pbPlayer.numbadges>=2
    badgelevel=40 if @battle.pbPlayer.numbadges>=3
    badgelevel=50 if @battle.pbPlayer.numbadges>=4
    badgelevel=60 if @battle.pbPlayer.numbadges>=5
    badgelevel=70 if @battle.pbPlayer.numbadges>=6
    badgelevel=80 if @battle.pbPlayer.numbadges>=7
    badgelevel=100 if @battle.pbPlayer.numbadges>=8

    if i edit the first line to 100 instead 10 it will remove the need badges or ill still need to edit every badge? So, if i simple active all the switchs related to badges it should solve the problem, right? I treid active all switchs and wont work ;(
     
    Just replace that bit with:

    Code:
    badgelevel=100
    #badgelevel=20 if @battle.pbPlayer.numbadges>=1
    #badgelevel=30 if @battle.pbPlayer.numbadges>=2
    #badgelevel=40 if @battle.pbPlayer.numbadges>=3
    #badgelevel=50 if @battle.pbPlayer.numbadges>=4
    #badgelevel=60 if @battle.pbPlayer.numbadges>=5
    #badgelevel=70 if @battle.pbPlayer.numbadges>=6
    #badgelevel=80 if @battle.pbPlayer.numbadges>=7
    #badgelevel=100 if @battle.pbPlayer.numbadges>=8

    Or yeah activate all the badges with:

    Code:
    for i in 0...16
     $Trainer.badges[i]=true
    end

    You can even change in the method def pbTryUseMove

    Code:
        return false if !pbObedienceCheck?(choice)

    to

    Code:
      #return false if !pbObedienceCheck?(choice)
     
    Back
    Top