• 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!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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] [19.1]Revisiting an Unsolved Question

  • 78
    Posts
    7
    Years
    Hey, guys.
    Still just trying to find an answer to this problem I had back in April. Any thoughts?

    Hey guys, I have a question about an item I put into the game. It's a Key Item that calls a Common Event. Here is the script:

    Code:
    ItemHandlers::UseInField.add(:SANITYCHECKER,proc{|item|
       pbCommonEvent(7)
    })

    The item works and calls the Common Event just fine, but when the Common Event ends, it says "Can't use that here."
    What do I need to do to fix that? I tried Googling and looking through the scripts but I'm not good with RMXP Scripts. I'm using Essentials v19.1.

    EDIT: I found that if I Register the item for quick use and use it in the field, it uses it just fine without saying "Can't use that here." It only says "Can't use that here." when I use it in the menu.
     
    Spoiler:

    Good Lord, I feel dumb. I couldn't find this anywhere. Thank you so much for your help! It works perfectly.
     
    Back
    Top