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

Activating a switch with a script

  • 277
    Posts
    9
    Years
    • Seen Dec 3, 2024
    Hi, I'm trying to activate a switch with a script. I'm using this:

    $game_switches[67]=true

    Apparently it doesn't work, but if you leave the map, when you enter again the switch is activated. How do I make it without delay?
     
    Last edited by a moderator:
    Code:
    $game_switches[67]=true
    sets Game Switch 67 to true. To check if Game Switch 67 is true, use
    Code:
    $game_switches[67]==true
    two equals signs
     
    Yes, my problem is that
    Code:
    $game_switches[67]=true
    doesn't work until I leave the map or restart the game, I don't know why.

    I finally made it calling a common event that calls the switch
     
    Back
    Top