• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • 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?

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