• 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!
  • Scottie, Todd, Serena, Kris - 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.

Toggling Following Pokémon with an item

JustX

The Mutant
  • 34
    Posts
    9
    Years
    I want to create an item which toggles the following pokemon script so I created following script section:

    ItemHandlers::UseFromBag.add(:NAME,proc{|item|
    $game_switches[130]=!$game_switches[130]
    next 2
    })

    the switch 130 is reserved for the script, but when I click on use it says "Cant use that here".
    What do I have to change?
     
    Back
    Top