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

[Error] What is $Trainer.numbadges but for Essentials Version 20?

  • 428
    Posts
    5
    Years
    I need a NPC to check the number of badges the player has. I've got a Conditional Branch checking "$Trainer.numbadges>=1" but this results in crashes, even though help threads for older versions of Pokemon Essentials say to use this.

    What do I use in the current Pokemon Essentials version to get a character to check if the number of badges is over a chosen number?
     
    $player.badge_count

    On Player_Deprecated (v19 script section) you can se the player deprecated values and the new ones. example:
    Code:
     deprecated_method_alias :numbadges, :badge_count, removal_in: 'v20'
      deprecated_method_alias :metaID, :character_ID, removal_in: 'v20'
      deprecated_method_alias :mysterygiftaccess, :mystery_gift_unlocked, removal_in: 'v20'
      deprecated_method_alias :mysterygift, :mystery_gifts, removal_in: 'v20'
      deprecated_method_alias :hasSeen?, :seen?, removal_in: 'v20'
      deprecated_method_alias :hasOwned?, :owned?, removal_in: 'v20'
      deprecated_method_alias :pokegear, :has_pokegear, removal_in: 'v20'

    By the way, always check the wiki.
     
    Back
    Top