• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - which Pokémon protagonist is your favorite? Let us know by voting in our 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.

How to keep HMs and TMs from being tossed?

In pbTossItemScreen you can see this part
Code:
if pbIsImportantItem?(item)
        @scene.pbDisplay(_INTL("That's too important to toss out!"))
        next
      end

Repeat that, but checking to see if it's an HM or TM
 
In pbTossItemScreen you can see this part
Code:
if pbIsImportantItem?(item)
        @scene.pbDisplay(_INTL("That's too important to toss out!"))
        next
      end
Repeat that, but checking to see if it's an HM or TM
Could you tell me which script this is in?
 
Last edited:
Okay, so I changed it to this:
Code:
if pbIsImportantItem?(item) || pbIsTechnicalMachine?(item) || pbIsHiddenMachine?(item) 
        @scene.pbDisplay(_INTL("That's too important to toss out!"))
        next
      end
But it still doesn't work? After looking through the code, I've seen that hidden machines shouldn't even be toss-able because of this code:
Code:
# Important items can't be sold, given to hold, or tossed.
def pbIsImportantItem?(item)
  return $ItemData[item] && (pbIsKeyItem?(item) || pbIsHiddenMachine?(item) ||
                             (INFINITETMS && pbIsTechnicalMachine?(item))
                            )
end
Does pbIsHiddenMachine?(item) not work?

EDIT: Oh, sorry, my PBS Item file was messed up. It works now.
 
Last edited:
Back
Top